Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 725992

Summary: Restart vdsm-reg immediately after configure RHEV-M on UI
Product: Red Hat Enterprise Linux 6 Reporter: Guohua Ouyang <gouyang>
Component: vdsmAssignee: Yotam Oron <yoron>
Status: CLOSED ERRATA QA Contact: Pavel Stehlik <pstehlik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: abaron, apevec, bazulay, cshao, iheim, ilvovsky, jboggs, leiwang, mburns, moli, sgordon, ycui, ykaul, yoron
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vdsm-4.9-96.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 07:32:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Guohua Ouyang 2011-07-27 09:29:27 UTC
Description of problem:
Currently it need to return shell to restart vdsm-reg in order to register to rhev-m.


Version-Release number of selected component (if applicable):
rhev-hypervisor-6.2-07.el6

How reproducible:
Always.

Steps to Reproduce:
1. Configure RHEVM.


Actual results:
vdsm-reg service is not restarted, cannot find rhev-h node on rhevm.

Expected results:
After configure rhevm, restart vdsm-reg immediately.

Comment 2 Dan Kenigsberg 2011-07-27 09:45:20 UTC
I guess you are referring to manual configuration of RHEV-M. Are you?

Alan, shouldn't this happen only after everything on the node is configured, i.e. by ovirt-node?

Comment 3 Guohua Ouyang 2011-07-27 09:59:04 UTC
(In reply to comment #2)
> I guess you are referring to manual configuration of RHEV-M. Are you?
> 

Yes, it's manual configuration, on UI.

> Alan, shouldn't this happen only after everything on the node is configured,
> i.e. by ovirt-node?

Comment 4 Alan Pevec 2011-08-01 15:25:26 UTC
With new RHEV-H TUI there are two steps:
- installation where only disk is selected and admin password set
  after installation to disk, node reboots and at login prompt you can
  logon as 'admin' to enter next step:

- configuration menu where hostname, networking, RHN, RHEV-M etc. can be set.

RHEV-M configuration UI plugin is part of this second step and there you don't have "end" phase where delayed actions can be performed. All configuration items should be self-contained e.g. under Networking we perform network restart after <Apply> button is selected.
So it's responsibility of the RHEV-M TUI plugin to restart services it needs.

But in this case, I'm not sure why vdsm-reg was not already running, once it's running (from RTFS) it should retry registration every 6-10s.

Please expand "Steps to Reproduce" so we can see how did you get into situation that vdsm-reg is not running.

Comment 5 Guohua Ouyang 2011-08-02 03:00:15 UTC
It should be the vdsm-reg are not reloading the conf file after configured rhevm in TUI.

#tail -f /var/log/vdsm-reg/vdsm-reg.log, it repeats below message in 6-10s: 

self.vdcURL None
	self.vdcPORT 443
	self.vdcURI /RHEVManagerWeb/VdsAutoRegistration.aspx
	self.vdcRegPort 54321
	self.ovirtURL None
	self.ovirtName None
	self.ovirtUID None
	self.vdcName None
MainThread::DEBUG::2011-08-02 02:57:48,214::vdsm-reg-setup::74::root::validate start
MainThread::DEBUG::2011-08-02 02:57:48,214::vdsm-reg-setup::81::root::validate end. return: False


expand steps below:
1. install rhev-h node.
2. logon, check vdsm-reg service is running.
3. enter setup, configure network interface
4. configure rhevm. 
5. apply the rhevm configuration.
6. drop to shell, check the vdsm-reg is still running.
7. check the conf file, looks fine.
vdc_host_name=10.66.11.102
vdc_host_port=8443

8. Check on rhevm host page, no rhev-h node added there.

Comment 6 Yotam Oron 2011-08-09 12:33:04 UTC
Ouyangguohua, can you please try and reproduce it on the latest ovirt image ? 
I can't seem to be able to reproduce it.
Thanks.

Comment 7 Guohua Ouyang 2011-08-10 09:34:12 UTC
Will try it (In reply to comment #6)
> Ouyangguohua, can you please try and reproduce it on the latest ovirt image ? 
> I can't seem to be able to reproduce it.
> Thanks.

Ok, I will try it on the latest build.

Comment 8 Alan Pevec 2011-08-10 22:36:37 UTC
I think I reproduced it, after configuring RHEV-M in TUI, I dropped to shell and checked vdsm-reg.log:
MainThread::DEBUG::2011-08-10 22:33:35,013::vdsm-reg-setup::270::vdsRegistrator::Total retry count: 535, waited: 8 seconds.
MainThread::DEBUG::2011-08-10 22:33:35,015::vdsm-reg-setup::37::root::__init__ begin.
MainThread::DEBUG::2011-08-10 22:33:35,016::vdsm-reg-setup::70::root::Setup::__init__ vars:
	self.vdcURL None
	self.vdcPORT 443
	self.vdcURI /RHEVManagerWeb/VdsAutoRegistration.aspx
	self.vdcRegPort 54321
	self.ovirtURL None
	self.ovirtName None
	self.ovirtUID None
	self.vdcName None
MainThread::DEBUG::2011-08-10 22:33:35,017::vdsm-reg-setup::74::root::validate start
MainThread::DEBUG::2011-08-10 22:33:35,018::vdsm-reg-setup::81::root::validate end. return: False
[root@node8 ~]# ll /etc/vdsm-reg/vdsm-reg.conf 
-rw-r--r--. 1 root root 758 2011-08-10 22:28 /etc/vdsm-reg/vdsm-reg.conf

Note vdsm-reg.conf timestamp - vdsm-reg still didn't pick it up after few minutes!

Comment 10 Mike Burns 2011-08-23 14:26:02 UTC
Simple fix for this would be to restart the vdsm-reg service when the rhev-m configuration is changed.

Comment 11 Yotam Oron 2011-08-25 12:54:59 UTC
Fix: 
http://gerrit.usersys.redhat.com/#change,852

Comment 13 Guohua Ouyang 2011-09-05 05:41:20 UTC
Verified on 6.2-0.15, after configure rhevm on TUI, the rhevh node is registered to rhevm automatically, no need to drop to shell and restart vdsm-reg now.

Comment 14 Yotam Oron 2011-10-02 08:08:38 UTC
Cleared release notes flags (no release notes needed)

Comment 15 errata-xmlrpc 2011-12-06 07:32:15 UTC
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.

http://rhn.redhat.com/errata/RHEA-2011-1782.html