Hide Forgot
Description of problem: Subscription-manager config --remove can't remove configuration entry's current value. Version-Release number of selected component (if applicable): subscription-manager-gnome-0.98.2-1.el5 subscription-manager-0.98.2-1.el5 subscription-manager-firstboot-0.98.2-1.el5 python-rhsm-0.98.2-1.el5 How reproducible: always Steps to Reproduce: 1.Change the value of server.insecure(default value 0). [root@localhost ~]# subscription-manager config --server.insecure=1 2.Check the config file. [root@localhost ~]# cat /etc/rhsm/rhsm.conf # Red Hat Subscription Manager Configuration File: # Unified Entitlement Platform Configuration [server] # Server hostname: hostname = subscription.rhn.stage.redhat.com # Server prefix: prefix = /subscription # Server port: port = 443 # Set to 1 to disable certificate validation: insecure = 1 ^^^^^^^^^^^^modification is successful ...... 3.Remove current value of server.insecure. [root@localhost ~]# subscription-manager config --remove server.insecure Actual results: Current value isn't removed and an error msg "Section server and name insecure cannot be removed" displays. Expected results: The default value of server.insecure should be set.
Has been fixed as part of 752854. Will be in build 0.98.3
Moving the bug to verified.. RPM used: [root@tiger ~]# rpm -qa | grep subscription-manager subscription-manager-gnome-0.98.3-1.git.16.14460bc.el5_7 subscription-manager-firstboot-0.98.3-1.git.16.14460bc.el5_7 subscription-manager-migration-0.98.3-1.git.16.14460bc.el5_7 subscription-manager-0.98.3-1.git.16.14460bc.el5_7 Steps to reproduce: [root@tiger ~]# cat /etc/rhsm/rhsm.conf # Red Hat Subscription Manager Configuration File: # Unified Entitlement Platform Configuration [server] # Server hostname: hostname = 10.65.193.169 # Server prefix: prefix =/candlepin # Server port: port = 8443 # Set to 1 to disable certificate validation: insecure = 1 [root@tiger ~]# subscription-manager config --remove server.insecure You have removed the value for section server and name insecure. The default value for insecure will now be used. [root@tiger ~]# cat /etc/rhsm/rhsm.conf # Red Hat Subscription Manager Configuration File: # Unified Entitlement Platform Configuration [server] # Server hostname: hostname = 10.65.193.169 # Server prefix: prefix =/candlepin # Server port: port = 8443 # Set to 1 to disable certificate validation: # Set the depth of certs which should be checked
Verified against brew build RPM used: [root@tiger ~]# rpm -qa | grep subscription-manager subscription-manager-firstboot-0.98.3-1.el5 subscription-manager-0.98.3-1.el5 subscription-manager-gnome-0.98.3-1.el5 subscription-manager-debuginfo-0.98.3-1.el5 subscription-manager-migration-0.98.3-1.el5 [root@tiger ~]# cat /etc/rhsm/rhsm.conf # Red Hat Subscription Manager Configuration File: # Unified Entitlement Platform Configuration [server] # Server hostname: hostname = subscription.rhn.redhat.com # Server prefix: prefix = /subscription # Server port: port = 443 # Set to 1 to disable certificate validation: insecure = 1 # Set the depth of certs which should be checked # when validating a certificate ssl_verify_depth = 3 [root@tiger ~]# subscription-manager config --remove server.insecure You have removed the value for section server and name insecure. The default value for insecure will now be used. [root@tiger ~]# cat /etc/rhsm/rhsm.conf # Red Hat Subscription Manager Configuration File: # Unified Entitlement Platform Configuration [server] # Server hostname: hostname = subscription.rhn.redhat.com # Server prefix: prefix = /subscription # Server port: port = 443 # Set to 1 to disable certificate validation: # Set the depth of certs which should be checked # when validating a certificate ssl_verify_depth = 3