Bug 1244636 - Can't automatically add RHEV-H to hosted-engine through vlan tagged network
Summary: Can't automatically add RHEV-H to hosted-engine through vlan tagged network
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 3.5.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Sandro Bonazzola
QA Contact: meital avital
URL:
Whiteboard: integration
Depends On:
Blocks: 1059435 1250199
TreeView+ depends on / blocked
 
Reported: 2015-07-20 08:03 UTC by cshao
Modified: 2015-08-04 17:51 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-23 10:41:20 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
HE6.tar.gz (199.36 KB, application/x-gzip)
2015-07-20 08:06 UTC, cshao
no flags Details
sosreport (6.64 MB, application/x-xz)
2015-07-20 08:28 UTC, cshao
no flags Details

Description cshao 2015-07-20 08:03:48 UTC
Description of problem:
Can't automatically add RHEV-H to engine through vlan tagged network

Version-Release number of selected component (if applicable):
rhev-hypervisor6-6.7-20150717.0.el6ev
ovirt-node-3.2.3-11.el6.noarch
ovirt-node-plugin-hosted-engine-0.2.0-16.0.el6ev.noarch
ovirt-hosted-engine-ha-1.2.6-2.el6ev.noarch
ovirt-hosted-engine-setup-1.2.5.1-1.el6ev.noarch
rhevm-appliance-20150709.0-1.x86_64.rhevm.ova


How reproducible:
100%


Steps to Reproduce:
1. Install rhev-hypervisor6-6.7-20150717.0
2. Setup network as vlan tagged.
3. File the OVA URL for download.
4. Choose nfs storage(please keep nfs storage is available in vlan env).
5. While setup hosted engine, choose "p2p1.20"(vlan bridge) as network.
6. Finished the engine VM create process.
7. Login engine host, finished deploy engine process(#engine-setup --offline --config-append=ovirt-engine-answers).
8. Login engine webUI, add vlan tagged(20).
9. Back to hypervisor console, choose <1> and press enter key.
...
To continue make a selection from the options below:
          (1) Continue setup - engine installation is complete
          (2) Power off and restart the VM
          (3) Abort setup
          (4) Destroy VM and abort setup
...
10. Enter the name of the cluster to which you want to add the host (Default) [Default]:  press enter key
11. Goes on press enter key.


Actual results:
1. After step11, it will auto jump to TUI from console.
2. Can't automatically add RHEV-H to engine through vlan tagged network

====================================================================
          (1) Continue setup - engine installation is complete
          (2) Power off and restart the VM
          (3) Abort setup
          (4) Destroy VM and abort setup
        
          (1, 2, 3, 4)[1]: 1
[ INFO  ] Engine replied: DB Up!Welcome to Health Status!
          Enter the name of the cluster to which you want to add the host (Default) [Default]:


          To continue make a selection from the options below:
          (1) Continue setup - engine installation is complete
          (2) Power off and restart the VM
          (3) Abort setup
          (4) Destroy VM and abort setup
        
          (1, 2, 3, 4)[1]: 1
[ INFO  ] Engine replied: DB Up!Welcome to Health Status!
          Enter the name of the cluster to which you want to add the host (Default) [Default]:
[ ERROR ] Cannot automatically add the host to cluster Default: Cannot add Host. SSH authentication failed, verify authentication parameters are correct (Username/Password, public-key etc.) You may refer to the engine.log file for further details.
[ ERROR ] Failed to execute stage 'Closing up': Cannot add the host to cluster Default
[ INFO  ] Stage: Clean up
[ INFO  ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20150720013927.conf'
[ INFO  ] Stage: Pre-termination
[ INFO  ] Stage: Termination




Expected results:
1. After step 11, it should pop-up dialog to continue configure register process (e.g. choose cluster).
2. Can automatically add RHEV-H to engine through vlan tagged network

Additional info:
1. The same issue occurs on rhev-hypervisor7-7.1-20150717.0.el7ev build    (ovirt-node-3.2.3-11.el7.noarch).
2. The same issue occurs during setup hosted engine through ova with bond as networkon.

Comment 1 cshao 2015-07-20 08:06:11 UTC
Created attachment 1053780 [details]
HE6.tar.gz

RHEV-H 6.7 HE all log

Comment 2 cshao 2015-07-20 08:28:11 UTC
Created attachment 1053785 [details]
sosreport

Comment 4 Fabian Deutsch 2015-07-20 09:32:01 UTC
Does this bug also appear on a plain RHEL host?

Comment 6 cshao 2015-07-20 09:47:52 UTC
(In reply to Fabian Deutsch from comment #4)
> Does this bug also appear on a plain RHEL host?

Hi fabiand, 

We haven't RHEL + vlan ENV currently in lab, can you contact RHEV QE to cove this scenario?

Thanks!

Comment 7 Fabian Deutsch 2015-07-20 10:01:50 UTC
Nikolai, can this bug also be reproduced on plain RHEL + HE?

This information will help us to identify the responsible component for this bug.

Comment 8 Nikolai Sednev 2015-07-20 14:06:48 UTC
I totally agree and think that Network team should have such environment and also Ying Cui's team should have such environment, especially as they're testing TUI on RHEVH.

Comment 9 Artyom 2015-07-22 12:24:22 UTC
I checked deployment of hosted-engine on RHEL6.7 and I had the same error about ssh connection, but it was because I defined on vlan static ip that not mapped to hostname, but when hosted-engine try to add host to engine he use:
address=socket.gethostname() and failed. To prevent failing on engine vm you can add line to /etc/hosts:
vlan_ip_address    your_hostname_where_you_deploy_hosted_engine
So can you please verify you configuration and check that your vlan ip mapped to hostname?

Comment 10 Michael Burman 2015-07-23 05:02:59 UTC
As Artyom wrote in previous comment, hosted-engine deploy over vlan tagged interface with rhel 6.7 is working as expected. After adding line with new ip and hostname to /etc/hosts which is part of the hosted-engine configuration steps.
So i don't think it is a network bug, management network was configured with success over vlan tagged interface.

Comment 11 cshao 2015-07-23 05:50:08 UTC
(In reply to Artyom from comment #9)
> I checked deployment of hosted-engine on RHEL6.7 and I had the same error
> about ssh connection, but it was because I defined on vlan static ip that
> not mapped to hostname, but when hosted-engine try to add host to engine he
> use:
> address=socket.gethostname() and failed. To prevent failing on engine vm you
> can add line to /etc/hosts:
> vlan_ip_address    your_hostname_where_you_deploy_hosted_engine
> So can you please verify you configuration and check that your vlan ip
> mapped to hostname?

Yes, I already mapped it, you can check my sosreport which recorded it.
# cat hosts
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
192.168.20.129	localhost.localdomain (this is rhevh)
192.168.20.159	cshao67.redhat.com (this is hosted engine)

Today I will deploy another new vlan env and test this issue again. and then I will update test result in here later.

Comment 13 cshao 2015-07-23 10:27:39 UTC
We probably found the cause, it is relevant to rhev-hypervisor's hostname, if the host's hostname set FQDN, then here can automatically add RHEV-H to hosted-engine through vlan tagged network. if host's hostname set localhost.localdomain as default, then it will cause this issue just unexpected termination to back RHEV-H TUI.

So set severity to medium.

Comment 15 Nikolai Sednev 2015-07-23 10:33:57 UTC
(In reply to shaochen from comment #13)
> We probably found the cause, it is relevant to rhev-hypervisor's hostname,
> if the host's hostname set FQDN, then here can automatically add RHEV-H to
> hosted-engine through vlan tagged network. if host's hostname set
> localhost.localdomain as default, then it will cause this issue just
> unexpected termination to back RHEV-H TUI.
> 
> So set severity to medium.

Then it's not a bug.
Please review the topic 5 at here https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3/html/Installation_Guide/Configuring_the_Self-Hosted_Engine.html 

FQDN should look like HostedEngine-VM.example.com, should be resolvable by DNS and get IP address from DHCP by reserved MAC.

Comment 16 Fabian Deutsch 2015-07-23 10:41:20 UTC
I agree with Nikolai, and further more that is documented.

Closing this bug according to comment 13 and comment 15.


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