Bug 1020687 - ESX5.5: Migration guest to another host result in "Error loading certificate" in the guest
ESX5.5: Migration guest to another host result in "Error loading certificate"...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager (Show other bugs)
x86_64 Linux
unspecified Severity high
: rc
: ---
Assigned To: candlepin-bugs
John Sefler
: TestBlocker
Depends On:
Blocks: rhsm-rhel65
  Show dependency treegraph
Reported: 2013-10-18 03:46 EDT by Liushihui
Modified: 2013-10-22 07:49 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-10-22 07:49:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rhsm.log (42.81 KB, text/x-log)
2013-10-18 03:47 EDT, Liushihui
no flags Details

  None (edit)
Description Liushihui 2013-10-18 03:46:30 EDT
Description of problem:
Subscribe a instance-base subscription in the guest, after migrate the guest from original host to destination host, it will result in "Error loading certificate"

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Prepare RHEL6.5 with latest subscription-manager and virt-who installed. 
Two ESX5.5 hosts have been added to vcenter5.5, And ESX host1 with three guests.ESX host2 without guest, Guest1 on ESX host1
Our test env as the following:
ESX host 1:
ESX host 2:

2. Configure virt-who in ESX mode as the following, Make sure virt-who run normally:
[root@hp-z220-03 ~]# cat /etc/sysconfig/virt-who 
    # Enable debugging output.
    # Register ESX machines using vCenter
    # Option for ESX mode
[root@hp-z220-03 ~]# service virt-who restart
virt-who (pid  15975) is running...
3. Register the RHEL6.5 to SAM server(Make sure two ESX hosts have been register to SAM server)
# Subscription-manager register --username=admin --password=admin
4. Register Guest1 to SAM server
# Subscription-manager register --username=admin --password=admin
5. In the guest : Subscribe the Instancebase subscription
# subscription-manager subscribe --pool=8ac28c3b41c468750141c46c20720286
6. In the ESX management tool(vClient5.5): Migrate guest from host1 to host2

7. After migrate successfully, do refresh subscription in the guest
# subscription-manager refresh
Error loading certificate

Actual results:
Guest still registered. But it will pop up "Error loading certificate" after do refresh, please see the rhsm log file in the attachement.

Expected results:
Migration hasn't effect on the subscription's status, it should refresh successfully.

Additional info:
Comment 1 Liushihui 2013-10-18 03:47:01 EDT
Created attachment 813640 [details]
Comment 5 John Sefler 2013-10-21 10:04:07 EDT
rshm.log shows the following warning which could possible lead to the "Error loading certificate".
[WARNING]  @connection.py:464 - Clock skew detected, please check your system time
Comment 6 Bryan Kearney 2013-10-21 14:49:01 EDT
also, is auto heal on? If not, I would suggest that you enable it. That will help the migration process.
Comment 7 Liushihui 2013-10-21 23:53:31 EDT
Guest's system time: 
[root@dhcp12-223 ~]# date
Tue Oct 22 11:41:58 EDT 2013
SAM server's system time:
[root@samserv ~]# date
Mon Oct 21 23:23:21 EDT 2013
After update the Guest's system time to the SAM server's system, it hasn't this problem, by the way, auto heal is on.
Comment 8 Devan Goodwin 2013-10-22 07:49:13 EDT
Based on comment #7, I am closing this as notabug. Clock needs to be in sync for SSL certs to work.

Note You need to log in before you can comment on or make changes to this bug.