Description of problem: Registration to Satellite is not working in Red Hat Enterprise Virtualization Hypervisor release 6.5 (20140112.0.el6) using TUI. Version-Release number of selected component (if applicable): Red Hat Enterprise Virtualization Hypervisor release 6.5 (20140112.0.el6) How reproducible: 100% Steps to Reproduce: 1.install a new hypervisor 2. Using TUI - RHN Registration, fill in the username, password, choose Satellite, fill in the url and confirm. 3. Error is presented : An error occurred while applying the changes: Error registering to RHN account Actual results: Error message about registration issue Expected results: Successful registration Additional info: Error message in ovirt-node: 014-01-26 20:50:54,016 ERROR Failed to call: ['/usr/sbin/rhnreg_ks', '--username', 'qsgarabiboh', '--password', 'XXXXXXX', '--profilename', 'bl460-275 - RHEV-H', '--novirtinfo', '--norhnsd', '--nopackages', '--force'] Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/ovirt/node/setup/rhn/rhn_model.py", line 188, in commit File "/usr/lib64/python2.6/subprocess.py", line 505, in check_call CalledProcessError: Command '['/usr/sbin/rhnreg_ks', '--username', 'qsgarabiboh', '--password', u'XXXXXXXX', '--profilename', 'bl460-275 - RHEV-H', '--novirtinfo', '--norhnsd', '--nopackages', '--force']' returned non-zero exit status 1 2014-01-26 20:50:54,020 INFO Captured nothing 2014-01-26 20:50:54,022 INFO An exception during the transaction: Error registering to RHN account Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/ovirt/node/ui/__init__.py", line 945, in __run_transaction File "/usr/lib/python2.6/site-packages/ovirt/node/plugins.py", line 234, in dry_or File "/usr/lib/python2.6/site-packages/ovirt/node/ui/__init__.py", line 945, in <lambda> File "/usr/lib/python2.6/site-packages/ovirt/node/setup/rhn/rhn_model.py", line 199, in commit RuntimeError: Error registering to RHN account Running the rhnreg_ks command manually works as expected and the system gets registred
Hey Tomas, could you please ask the customer to provide /etc/default/ovirt and the rhnreg_ks command he ran manually.
Hello Fabian, the rhnreg_ks command ran manually is as follows: /usr/sbin/rhnreg_ks --username=qsgarabiboh --password=XXXXXX --profilename="bl460-275 - RHEV-H" --serverUrl=https://rhn.cezdata.corp/XMLRPC --novirtinfo --norhnsd --nopackages --force -vvv --sslCACert=RHN
Fabian, as requested, this is the /etc/default/ovirt content: [root@bl460-275 ~]# cat /etc/default/ovirt MANAGED_BY="oVirt Engine http://rhevm.cezdata.corp:8443" MANAGED_IFNAMES="rhevm" OVIRT_BOND_NAME="bond0" OVIRT_BOND_OPTIONS="mode=1 miimon=100" OVIRT_BOND_SLAVES="eth1,eth0" OVIRT_BOOTIF="bond0" OVIRT_BOOTPARAMS="RD_NO_LVM crashkernel=128M elevator=deadline quiet max_loop=256 rhgb rd_NO_LUKS rd_NO_MD rd_NO_DM" OVIRT_CONFIG_VERSION="3.0.1" OVIRT_DNS="172.24.255.10,172.24.254.10" OVIRT_FIRSTBOOT="0" OVIRT_HOSTNAME="bl460-275.cezdata.corp" OVIRT_INIT="" OVIRT_INSTALL="" OVIRT_IP_ADDRESS="172.24.8.215" OVIRT_IP_GATEWAY="172.24.8.1" OVIRT_IP_NETMASK="255.255.255.0" OVIRT_ISCSI_NODE_NAME="iqn.1994-05.com.redhat:e559a159321b" OVIRT_KEYBOARD_LAYOUT="us" OVIRT_LOGROTATE_MAX_SIZE="1024" OVIRT_MANAGEMENT_CERTIFICATE="/etc/pki/vdsm/certs/engine_web_ca.pem" OVIRT_MANAGEMENT_PORT="8443" OVIRT_MANAGEMENT_SERVER="rhevm.cezdata.corp" OVIRT_NTP="ntpg.cezdata.corp,ntpt.cezdata.corp" OVIRT_RHN_ACTIVATIONKEY="" OVIRT_RHN_CA_CERT="http://rhn.cezdata.corp/pub/RHN" OVIRT_RHN_ORG="" OVIRT_RHN_PROFILE="bl460-275 - RHEV-H" OVIRT_RHN_PROXYUSER="" OVIRT_RHN_TYPE="satellite" OVIRT_RHN_URL="https://rhn.cezdata.corp/XMLRPC" OVIRT_RHN_USERNAME="qsgarabiboh" OVIRT_SNMP_ENABLED="1" OVIRT_SSH_PWAUTH="yes" OVIRT_STANDALONE="1" OVIRT_UPGRADE="" OVIRT_USE_STRONG_RNG=""
1. QE cannot reproduce the issue on rhevh 6.5-20140112.0.el6, register RHN satellite successfully. 2. Also tested the jenkins auto1032 build, it register to RHN satellite successfully.
I guess http://rhn.cezdata.corp/pub/RHN should be https://rhn.cezdata.corp/pub/RHN
Hello, customer claims the certificate is correct. Is it possible that the issue is caused by missing Satellite server URL in rhnreg_ks call? As Fabian mentioned (cmnt #2): Customer used custom satellite url, but url does not appear in rhnreg_ks call.
oh, I believe the problem is that serverUrl should be https://rhn.cezdata.corp but not https://rhn.cezdata.corp/XMLRPC Please ask customer do not add XMLPRC to the url and give it a try.
any(In reply to Ouyang guohua from comment #9) > oh, I believe the problem is that serverUrl should be > https://rhn.cezdata.corp but not https://rhn.cezdata.corp/XMLRPC > > Please ask customer do not add XMLPRC to the url and give it a try. anyway, https://rhn.cezdata.corp/XMLRPC should be acceptable, after read bug 782893, this is a regression isssue.
Tested on RHEV-H 6.6-20141119.0.el6ev Test steps: 1. install rhevh 2. register to RHN in TUI with username:password 3. registration is successful 4. register to Satellite with url / ca 5. registration is successful
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHEA-2015-0160.html