Closed fduranti closed 7 years ago
I am not clear on what you are asking.
Most of the native types in the puppet-subscription_manager
module have providers that directly wrap the /usr/sbin/subscription-manager
command. Any issues with this command will impact these providers.
From your log of using subscription-manager, it appears that you have encountered a bug. For the /usr/sbin/subscription-manager config
command any value setting option is ignored if there are any --remove-*
options present. Only the remove options are run.
I have verified this on CentOS 7.3 and for a variety of remote and value setting options. The man pages do not indicate that this is the expected behavior.
--remove=section.name
Deletes the current value for the parameter without supplying a
new parameter. A blank value tells Subscription Manager to use
service default values for that parameter. If there are no
defaults, then the feature is ignored.
--section.name=VALUE
Sets a parameter to a new, specified value. This is commonly
used for connection settings:
* server.hostname (subscription management service)
* server.proxy
* server.proxy_port
* server.proxy_user
* server.proxy_password
* rhsm.baseurl (content server)
* rhsm.certFrequency
That is clearly a bug with the command. I can work around this by running a separate command to do any --remove-*
actions, but this needs to be fixed in the command itself.
I get a wrong behaviour on new server where the module try to change the SAM server to the correct pulp server for baseurl. Tested on a REDHAT 7.3 server.
In the past this error was not happening because I think you was not "removing" those configurations if those (proxy settings) was not present... now it try to remove them but don't work (it's possible it's a bug of subscription-manager or you should just run 2 commands: one for changed and one for removed variable?)
When it run the subscription-manager command, if there are any --remove it will not change the baseurl:
manually running the command i get those warning but it will not change anything
Removing the --remove make it work correctly: