Bug 1379598 - Deploy Hosted-Engine failed through ova with vlan tag.
Summary: Deploy Hosted-Engine failed through ova with vlan tag.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node-plugin-hosted-engine
Version: 3.6.9
Hardware: Unspecified
OS: Unspecified
medium
urgent
Target Milestone: ovirt-3.6.11
: ---
Assignee: Fabian Deutsch
QA Contact: Yihui Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-27 08:13 UTC by Yihui Zhao
Modified: 2016-10-27 08:58 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-28 07:42:21 UTC
oVirt Team: Node
Target Upstream Version:


Attachments (Terms of Use)
HE_error (53.19 KB, image/png)
2016-09-27 08:13 UTC, Yihui Zhao
no flags Details
var_log,tmp_log,engine_log,sosreport (9.12 MB, application/x-bzip)
2016-09-27 08:17 UTC, Yihui Zhao
no flags Details
engine.log (33.75 KB, text/plain)
2016-09-28 03:37 UTC, Yihui Zhao
no flags Details

Description Yihui Zhao 2016-09-27 08:13:06 UTC
Created attachment 1205102 [details]
HE_error

Description of problem:
Deploy Hosted-Engine failed through ova with vlan tag.


Version-Release number of selected component (if applicable):
RHEV-H 7.3-20160923.2.el7ev
ovirt-node-3.6.1-20.0.el7ev.noarch
ovirt-hosted-engine-ha-1.3.5.8-1.el7ev.noarch
ovirt-hosted-engine-setup-1.3.7.3-1.el7ev.noarch
rhevm-appliance-20160721.0-1.el7ev.ova

How reproducible:
100%
Regression bug
Keywords: Hosted-Engine

Steps to Reproduce:
1.Install RHEVH7.3-3.6.10
2.Setup network with vlan tag
3.File Engine OVA path with remote rhevm ova address
4.Deploy hosted-engine
5.Check hosted-engine


Actual results:
1. After step4,an error appeared:cannot automatically add the host to cluster Default.And the details on attachment HE_error.

Expected results:
1. Deploy Hosted-engine can successful without error.

Additional info:
Duo to the bug didn't appear on 0920.1 version,so it is a regression bug.

Comment 3 Yihui Zhao 2016-09-27 08:17:09 UTC
Created attachment 1205103 [details]
var_log,tmp_log,engine_log,sosreport

Comment 4 Sandro Bonazzola 2016-09-27 14:51:05 UTC
Can you please provide engine logs?

Comment 5 Yihui Zhao 2016-09-28 03:37:40 UTC
Created attachment 1205383 [details]
engine.log

Comment 6 Yihui Zhao 2016-09-28 03:39:45 UTC
(In reply to Sandro Bonazzola from comment #4)
> Can you please provide engine logs?

Hi,Sandro
  the engine log is on attachment.If have other requests,please comment and reply.

Thanks,
Yihui

Comment 7 Douglas Schilling Landgraf 2016-09-28 04:07:14 UTC
Hi Yihui,

Looks like the logs you provided are empty.

$ find . -name ovirt-hosted*
./early-logs/ovirt-hosted-engine-ha
./early-logs/ovirt-hosted-engine-setup

$ du -sh  ./early-logs/ovirt-hosted-engine-setup
0	./early-logs/ovirt-hosted-engine-setup
$ du -sh ./early-logs/ovirt-hosted-engine-ha
0	./early-logs/ovirt-hosted-engine-ha

However, in engine log I see:

2016-09-27 22:35:37,750 ERROR [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (ajp-/127.0.0.1:8702-5) [13f24c7e] Failed to authenticate session with host 'hosted_engine_1': SSH authentication to 'root@localhost' failed. Please verify provided credentials. Make sure key is authorized at host

Could you please double check your settings and try a re-deploy setting hostname for the node? Looks like engine is trying to ssh to 'root@localhost' which will make a loop into the engine machine. Both hosts (engine and node) must have fqdn and be able to reach each other.

Thanks!

Comment 8 Yihui Zhao 2016-09-28 05:18:53 UTC
(In reply to Douglas Schilling Landgraf from comment #7)
> Hi Yihui,
> 
> Looks like the logs you provided are empty.
> 
> $ find . -name ovirt-hosted*
> ./early-logs/ovirt-hosted-engine-ha
> ./early-logs/ovirt-hosted-engine-setup
> 
> $ du -sh  ./early-logs/ovirt-hosted-engine-setup
> 0	./early-logs/ovirt-hosted-engine-setup
> $ du -sh ./early-logs/ovirt-hosted-engine-ha
> 0	./early-logs/ovirt-hosted-engine-ha
> 
> However, in engine log I see:
> 
> 2016-09-27 22:35:37,750 ERROR
> [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (ajp-/127.0.0.1:8702-5)
> [13f24c7e] Failed to authenticate session with host 'hosted_engine_1': SSH
> authentication to 'root@localhost' failed. Please verify provided
> credentials. Make sure key is authorized at host
> 
> Could you please double check your settings and try a re-deploy setting
> hostname for the node? Looks like engine is trying to ssh to
> 'root@localhost' which will make a loop into the engine machine. Both hosts
> (engine and node) must have fqdn and be able to reach each other.
> 
> Thanks!

Hi Douglas,
  Thank you for your advice.I will tell you about details.

Details:
#1.HE-VM(192.168.20.31): /etc/hosts

[root@rhca ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.20.27 used
192.168.20.31 rhca.redhat.com

[root@rhca ~]# ping used
PING used (192.168.20.27) 56(84) bytes of data.
64 bytes from used (192.168.20.27): icmp_seq=1 ttl=64 time=0.109 ms
64 bytes from used (192.168.20.27): icmp_seq=2 ttl=64 time=0.145 ms
64 bytes from used (192.168.20.27): icmp_seq=3 ttl=64 time=0.126 ms
64 bytes from used (192.168.20.27): icmp_seq=4 ttl=64 time=0.117 ms
64 bytes from used (192.168.20.27): icmp_seq=5 ttl=64 time=0.154 ms
64 bytes from used (192.168.20.27): icmp_seq=6 ttl=64 time=0.128 ms
^C
--- used ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5681ms
rtt min/avg/max/mdev = 0.109/0.129/0.154/0.021 ms






#2.RHVH(node)(192.168.20.27) : /etc/hosts
[root@localhost ~]# cat /etc/hosts
127.0.0.1		localhost.localdomain localhost
::1		localhost6.localdomain6 localhost6
192.168.20.31   rhca.redhat.com
192.168.20.27   used

[root@localhost ~]# ping rhca.redhat.com
PING rhca.redhat.com (192.168.20.31) 56(84) bytes of data.
64 bytes from rhca.redhat.com (192.168.20.31): icmp_seq=1 ttl=64 time=0.147 ms
64 bytes from rhca.redhat.com (192.168.20.31): icmp_seq=2 ttl=64 time=0.113 ms
64 bytes from rhca.redhat.com (192.168.20.31): icmp_seq=3 ttl=64 time=0.115 ms

--- rhca.redhat.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 0.113/0.125/0.147/0.015 ms


#3.HE-VM fqdn: rhca.redhat.com  192.168.20.31
   RHVH node:  used             192.168.20.27

#4.Addtional:
If deploy the hosted-engine via ova with no vlan tag,it can deploy successfully.

Also,if have other requests,please comment or reply.

Comment 9 Douglas Schilling Landgraf 2016-09-28 05:50:26 UTC
I would start requesting logs from node side:

    - In TUI press F2
    - Check for: /var/log/ovirt-hosted-engine-setup/*.log


Thanks!

Comment 12 Douglas Schilling Landgraf 2016-09-28 07:42:21 UTC
Thanks for sharing the resource, as I said in the previous comment, the attached log was empty for the HE but here the findings:

From your rhev-h host (you can check now):

#1 - Hostname (fqdn) not set. You must be set in the host, not only in 
     /etc/hosts.

     # hostname
     localhost

#2 - Logging showing that you didn't setup the hostname of host before trigging 
     the hosted-engine setup. See Host Address field:

/var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160928021351-c6nsg2.log:

2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 --== CONFIGURATION PREVIEW ==--
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Bridge interface                   : p3p1.20
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Engine FQDN                        : rhca.**FILTERED**.com
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Bridge name                        : ovirtmgmt
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Host address                       : localhost
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 SSH daemon port                    : 22
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Firewall manager                   : iptables
2016-09-28 02:18:29 DEBUG otopi.plugins.otopi.dialog.human dialog.__logString:219 DIALOG:SEND                 Gateway address                    : 192.168.20.1


Based on the above, closing the bug for now.


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