Bug 1715080 - Wrong port ":-1" being reported several times, while running "hosted-engine --add-console-password"
Summary: Wrong port ":-1" being reported several times, while running "hosted-engine -...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.3.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ovirt-4.3.5
: ---
Assignee: Simone Tiraboschi
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-29 14:22 UTC by Nikolai Sednev
Modified: 2019-08-12 11:54 UTC (History)
3 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.3.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-12 11:53:59 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:2435 0 None None None 2019-08-12 11:54:01 UTC
oVirt gerrit 100401 0 master MERGED vnc: wait reporting VNC port 2020-03-23 07:36:22 UTC
oVirt gerrit 100538 0 master MERGED Avoid failing --start-paused if the VM is in down state 2020-03-23 07:36:22 UTC
oVirt gerrit 100600 0 ovirt-hosted-engine-setup-2.3 MERGED Avoid failing --start-paused if the VM is in down state 2020-03-23 07:36:22 UTC
oVirt gerrit 100601 0 ovirt-hosted-engine-setup-2.3 MERGED vnc: wait reporting VNC port 2020-03-23 07:36:22 UTC

Description Nikolai Sednev 2019-05-29 14:22:05 UTC
Description of problem:
Wrong port ":-1" being reported several times, while running "hosted-engine --add-console-password" right after running "hosted-engine --vm-start-paused" on ha-host in global maintenance.

Opening this bug based on https://bugzilla.redhat.com/show_bug.cgi?id=1674932#c13. I see that VNC console port getting reported incorrectly to the customer for engine's VM started in paused mode:

alma03 ~]# hosted-engine --add-console-password
Enter password: 
You can now connect the hosted-engine VM with VNC at 10.35.92.3:5902
[root@alma03 ~]# hosted-engine --vm-poweroff
[root@alma03 ~]# hosted-engine --vm-start-paused
[root@alma03 ~]# hosted-engine --add-console-password
Enter password: 
You can now connect the hosted-engine VM with VNC at 10.35.92.3:-1
[root@alma03 ~]# hosted-engine --add-console-password
Enter password: 
You can now connect the hosted-engine VM with VNC at 10.35.92.3:-1
[root@alma03 ~]# hosted-engine --add-console-password
Enter password: 
You can now connect the hosted-engine VM with VNC at 10.35.92.3:-1
[root@alma03 ~]# hosted-engine --add-console-password
Enter password: 
You can now connect the hosted-engine VM with VNC at 10.35.92.3:5902



Version-Release number of selected component (if applicable):
ovirt-hosted-engine-ha-2.3.1-1.el7ev.noarch
ovirt-hosted-engine-setup-2.3.8-1.el7ev.noarch


How reproducible:
100%

Steps to Reproduce:
1.Deploy HE over NFS.
2.Set environment in to global maintenance.
3.hosted-engine --vm-poweroff
4.hosted-engine --vm-start-paused
5.Run hosted-engine --add-console-password
6.Run hosted-engine --add-console-password several more times, until you receive correct VNC port value.

Actual results:
Wrong port ":-1" being reported several times, while running "hosted-engine --add-console-password" right after running "hosted-engine --vm-start-paused" on ha-host in global maintenance.

Expected results:
VNC should have only positive port numbers and they should work properly.

Additional info:
Please see also https://pnt-devops-rad-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/ccs-mr-preview-prod/2608/artifact/doc-Administration_Guide/preview/index.html#Booting_a_Self-Hosted_Engine_in_Recovery_Mode_SHE_admin.

Comment 2 Petr Matyáš 2019-06-17 12:56:22 UTC
Verified on ovirt-hosted-engine-setup-2.3.10-1.el7ev.noarch

Comment 4 errata-xmlrpc 2019-08-12 11:53:59 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.

https://access.redhat.com/errata/RHEA-2019:2435


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