Bug 1426484 - Failed to add Fedora24/Centos73 host to RHVM
Summary: Failed to add Fedora24/Centos73 host to RHVM
Keywords:
Status: CLOSED DUPLICATE of bug 1316950
Alias: None
Product: cockpit-ovirt
Classification: oVirt
Component: Node
Version: 0.10.7-0.0.10
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.1.1
: ---
Assignee: Marek Libra
QA Contact: Wei Wang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-24 02:38 UTC by Wei Wang
Modified: 2017-03-07 09:20 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-03-07 09:20:21 UTC
oVirt Team: Node
Embargoed:
rule-engine: ovirt-4.1+
cshao: testing_ack+


Attachments (Terms of Use)
add fedora host to rhvm41 (2.45 MB, application/x-gzip)
2017-02-24 02:38 UTC, Wei Wang
no flags Details
add centos host to rhvm41 (358.67 KB, application/x-gzip)
2017-02-24 02:40 UTC, Wei Wang
no flags Details
picture (160.68 KB, image/png)
2017-02-24 02:41 UTC, Wei Wang
no flags Details
engine logs (24.36 KB, application/x-gzip)
2017-03-03 06:02 UTC, Wei Wang
no flags Details

Description Wei Wang 2017-02-24 02:38:44 UTC
Created attachment 1257128 [details]
add fedora host to rhvm41

Description of problem:
Failed to add Fedora24/Centos73 host to RHVM, hosts are installed with cockpit-ovirt plugin.

Version-Release number of selected component (if applicable):
1. Fedora-Server-dvd-x86_64-24-1.2.iso
   cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
   cockpit-0.103-1.fc24.x86_64
   vdsm-4.19.6-1.fc24.x86_64
   kernel-4.5.5-300.fc24.x86_64

2. CentOS-7-x86_64-DVD-1611.iso
   cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
   cockpit-126-1.el7.centos.x86_64
   vdsm-4.19.6-1.el7.centos.x86_64
   kernel-3.10.0-514.el7.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Clean install Fedora-Server-dvd-x86_64-24-1.2.iso/CentOS-7-x86_64-DVD-1611.iso
2. Install cockpit-ovirt repo
   #dnf install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm
3. Install cockpit-ovirt-dashboard package
   #dnf install cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch.rpm
4. Add host to RHVM 4.1, then check the host install process in RHVM.


Actual results:
Failed to add Fedora24/Centos73 host to RHVM


Expected results:
Fedora24/Centos73 host should be added to RHVM successfully.



Additional info:
/var/log/message
Feb 23 17:37:41 dell-per730-35 cockpit-bridge: Traceback (most recent call last):
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 406, in <module>
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    sys.exit(main())
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 368, in main
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    service = get_vdsm_service()
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/share/cockpit/ovirt-dashboard/vdsm/vdsm/vdsmJsonRPCCli.py", line 57, in get_vdsm_service
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    _service = jsonrpcvdscli.connect(rqueue)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 246, in connect
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    responseQueue)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 232, in _create
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    lazy_start=False)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib/python2.7/site-packages/yajsonrpc/stompreactor.py", line 606, in StandAloneRpcClient
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    client = StompClient(utils.create_connected_socket(host, port, sslctx),
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 882, in create_connected_socket
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    sock = sslctx.wrapSocket(sock)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib/python2.7/site-packages/vdsm/sslutils.py", line 96, in wrapSocket
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    ca_certs=self.ca_certs)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib64/python2.7/ssl.py", line 943, in wrap_socket
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    ciphers=ciphers)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:  File "/usr/lib64/python2.7/ssl.py", line 552, in __init__
Feb 23 17:37:41 dell-per730-35 cockpit-bridge:    self._context.load_verify_locations(ca_certs)
Feb 23 17:37:41 dell-per730-35 cockpit-bridge: IOError: [Errno 2] No such file or directory

Comment 1 Wei Wang 2017-02-24 02:40:20 UTC
Created attachment 1257129 [details]
add centos host to rhvm41

Comment 2 Wei Wang 2017-02-24 02:41:48 UTC
Created attachment 1257130 [details]
picture

Comment 3 Ying Cui 2017-03-01 06:48:04 UTC
Wei, could you provide the following info into this bug for better debug issue.
1. Could you try engine on upstream instead of downstream engine?
2. Could you check vdsmd status before and after registering engine?
3. If you adding host failed on engine, could you provide the /var/log/ovirt-engine/engine.log?

Comment 4 Wei Wang 2017-03-02 09:47:25 UTC
(In reply to Ying Cui from comment #3)
> Wei, could you provide the following info into this bug for better debug
> issue.
> 1. Could you try engine on upstream instead of downstream engine?

Yes, but now we dosen't have upstream engine environment. We are setting up it . When it is ready, I will give the feedback quickly.

> 2. Could you check vdsmd status before and after registering engine?
> 3. If you adding host failed on engine, could you provide the
> /var/log/ovirt-engine/engine.log?

Comment 5 Wei Wang 2017-03-03 06:01:53 UTC
(In reply to Wei Wang from comment #4)
> (In reply to Ying Cui from comment #3)
> > Wei, could you provide the following info into this bug for better debug
> > issue.
> > 1. Could you try engine on upstream instead of downstream engine?
> 
> Yes, but now we dosen't have upstream engine environment. We are setting up
> it . When it is ready, I will give the feedback quickly.
> 
> > 2. Could you check vdsmd status before and after registering engine?
> > 3. If you adding host failed on engine, could you provide the
> > /var/log/ovirt-engine/engine.log?

Test Version
Fedora-Server-dvd-x86_64-24-1.2.iso
cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
cockpit-0.103-1.fc24.x86_64
vdsm-4.19.6-1.fc24.x86_64
kernel-4.5.5-300.fc24.x86_64

1. Clean install Fedora-Server-dvd-x86_64-24-1.2.iso
2. Install cockpit-ovirt repo
   #dnf install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm
3. Install cockpit-ovirt-dashboard package
   #dnf install cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch.rpm
4. Add host to ovirt-engine 4.1, then check the host install process

Result:
The host is added failed since dnf package is not installed.

Traceback (most recent call last):
  File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py", line 150, in _boot
    constants.PackEnv.DNF_DISABLED_PLUGINS
  File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py", line 60, in _getMiniDNF
    from otopi import minidnf
  File "/tmp/ovirt-c851QcgNiD/pythonlib/otopi/minidnf.py", line 16, in <module>
    import dnf
ImportError: No module named dnf

after installed python2-dnf package, the host is added to engine successfully.
Attach the log file in attachment.

Comment 6 Wei Wang 2017-03-03 06:02:32 UTC
Created attachment 1259413 [details]
engine logs

Comment 7 Sandro Bonazzola 2017-03-06 08:08:40 UTC
(In reply to Wei Wang from comment #5)
> (In reply to Wei Wang from comment #4)
> > (In reply to Ying Cui from comment #3)
> > > Wei, could you provide the following info into this bug for better debug
> > > issue.
> > > 1. Could you try engine on upstream instead of downstream engine?
> > 
> > Yes, but now we dosen't have upstream engine environment. We are setting up
> > it . When it is ready, I will give the feedback quickly.
> > 
> > > 2. Could you check vdsmd status before and after registering engine?
> > > 3. If you adding host failed on engine, could you provide the
> > > /var/log/ovirt-engine/engine.log?
> 
> Test Version
> Fedora-Server-dvd-x86_64-24-1.2.iso
> cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
> cockpit-0.103-1.fc24.x86_64
> vdsm-4.19.6-1.fc24.x86_64
> kernel-4.5.5-300.fc24.x86_64
> 
> 1. Clean install Fedora-Server-dvd-x86_64-24-1.2.iso
> 2. Install cockpit-ovirt repo
>    #dnf install -y
> http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm
> 3. Install cockpit-ovirt-dashboard package
>    #dnf install cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch.rpm
> 4. Add host to ovirt-engine 4.1, then check the host install process
> 
> Result:
> The host is added failed since dnf package is not installed.
> 
> Traceback (most recent call last):
>   File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py",
> line 150, in _boot
>     constants.PackEnv.DNF_DISABLED_PLUGINS
>   File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py",
> line 60, in _getMiniDNF
>     from otopi import minidnf
>   File "/tmp/ovirt-c851QcgNiD/pythonlib/otopi/minidnf.py", line 16, in
> <module>
>     import dnf
> ImportError: No module named dnf
> 
> after installed python2-dnf package, the host is added to engine
> successfully.
> Attach the log file in attachment.

So this is a duplicate of 1316950; What about CentOS?

Comment 8 Wei Wang 2017-03-06 08:49:41 UTC
(In reply to Sandro Bonazzola from comment #7)
> (In reply to Wei Wang from comment #5)
> > (In reply to Wei Wang from comment #4)
> > > (In reply to Ying Cui from comment #3)
> > > > Wei, could you provide the following info into this bug for better debug
> > > > issue.
> > > > 1. Could you try engine on upstream instead of downstream engine?
> > > 
> > > Yes, but now we dosen't have upstream engine environment. We are setting up
> > > it . When it is ready, I will give the feedback quickly.
> > > 
> > > > 2. Could you check vdsmd status before and after registering engine?
> > > > 3. If you adding host failed on engine, could you provide the
> > > > /var/log/ovirt-engine/engine.log?
> > 
> > Test Version
> > Fedora-Server-dvd-x86_64-24-1.2.iso
> > cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
> > cockpit-0.103-1.fc24.x86_64
> > vdsm-4.19.6-1.fc24.x86_64
> > kernel-4.5.5-300.fc24.x86_64
> > 
> > 1. Clean install Fedora-Server-dvd-x86_64-24-1.2.iso
> > 2. Install cockpit-ovirt repo
> >    #dnf install -y
> > http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm
> > 3. Install cockpit-ovirt-dashboard package
> >    #dnf install cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch.rpm
> > 4. Add host to ovirt-engine 4.1, then check the host install process
> > 
> > Result:
> > The host is added failed since dnf package is not installed.
> > 
> > Traceback (most recent call last):
> >   File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py",
> > line 150, in _boot
> >     constants.PackEnv.DNF_DISABLED_PLUGINS
> >   File "/tmp/ovirt-c851QcgNiD/otopi-plugins/otopi/packagers/dnfpackager.py",
> > line 60, in _getMiniDNF
> >     from otopi import minidnf
> >   File "/tmp/ovirt-c851QcgNiD/pythonlib/otopi/minidnf.py", line 16, in
> > <module>
> >     import dnf
> > ImportError: No module named dnf
> > 
> > after installed python2-dnf package, the host is added to engine
> > successfully.
> > Attach the log file in attachment.
> 
> So this is a duplicate of 1316950; What about CentOS?

Test version:
CentOS-7-x86_64-DVD-1611.iso
cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch
cockpit-126-1.el7.centos.x86_64
vdsm-4.19.7-1.el7.centos.x86_64
kernel-3.10.0-514.el7.x86_64

Test steps:
1. Clean install CentOS-7-x86_64-DVD-1611.iso
2. Install cockpit-ovirt repo
   #yum install -y http://resources.ovirt.org/pub/yum-repo/ovirt-release41-pre.rpm
3. Install cockpit-ovirt-dashboard package
   #yum install cockpit-ovirt-dashboard-0.10.7-0.0.11.fc24.noarch.rpm
4. Add host to ovirt-engine 4.1, then check the host install process in RHVM.

Result:
Centos7.3 host can be added to ovirt-engine 4.1 successfully.

Comment 9 Sandro Bonazzola 2017-03-07 09:20:21 UTC

*** This bug has been marked as a duplicate of bug 1316950 ***


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