Bug 1438874 - RHEV 4.0.7 - Host deploy with external provider Issue
Summary: RHEV 4.0.7 - Host deploy with external provider Issue
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-host-deploy
Version: 4.0.7
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
: ---
Assignee: Dan Kenigsberg
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-04-04 15:43 UTC by Alessio
Modified: 2017-04-19 08:46 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-19 07:49:23 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1438880 0 medium CLOSED [Docs][Admin] Add note to OSP director integration section that it is the only supported path for integrating OpenStack ... 2021-02-22 00:41:40 UTC

Internal Links: 1438880

Description Alessio 2017-04-04 15:43:10 UTC
Description of problem:
Hello all,
I'm trying to add a new host selecting an external neutron network provider.
The host ( RHEL 7.3 standard ) has those repositories enabled:

jb-eap-7-for-rhel-7-server-rpms
rhel-7-server-extras-rpms
rhel-7-server-openstack-10-devtools-rpms
rhel-7-server-openstack-10-rpms
rhel-7-server-rhv-4-mgmt-agent-rpms
rhel-7-server-rhv-4.0-rpms
rhel-7-server-rpms
rhel-7-server-supplementary-rpms
 

If the host does not have the package openstack-utils already installed this task will fail with error:

Failed to execute stage 'Misc configuration': Command 'openstack-config' is required but missing
I think the package should be installed during the deploy as for the others new missing packages.

Manually installing openstack-utils package will solve this issue.

Version-Release number of selected component (if applicable):
RHEV 4.0.7
RHOSP 10

How reproducible:
100%


Steps to Reproduce:
1. Install RHEV 4.0.7 and an external RHOSP 10
2. Configure RHOSP10 repositories on the hypervisor will be added
3. Add a new hypervisor without the package openstack-utils installed.

Actual results:
The host deploy fails.

Expected results:
The host deploy finish succesfully 

Additional info:
A short extract from the log:

2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_common.vmconsole.pki.Plugin._misc
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.gluster.nrpe.Plugin._misc
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:134 condition False
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.hosted-engine.configureha.Plugin._clear_ha_conf
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:134 condition False
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.hosted-engine.configureha.Plugin._set_ha_conf
2017-04-04 14:39:37 INFO otopi.plugins.ovirt_host_deploy.hosted-engine.configureha configureha._set_ha_conf:123 Updating hosted-engine configuration
2017-04-04 14:39:37 DEBUG otopi.transaction transaction._prepare:61 preparing 'File transaction for '/etc/ovirt-hosted-engine/hosted-engine.conf''
2017-04-04 14:39:37 DEBUG otopi.filetransaction filetransaction.prepare:183 file '/etc/ovirt-hosted-engine/hosted-engine.conf' missing
2017-04-04 14:39:37 ERROR otopi.plugins.ovirt_host_deploy.hosted-engine.configureha configureha._set_ha_conf:155 HA client was not imported
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.kdump.packages.Plugin._misc
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:134 condition False
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.kernel.kernel.Plugin._misc
2017-04-04 14:39:37 DEBUG otopi.transaction transaction._prepare:61 preparing 'KernelSetup Transaction'
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:128 Stage misc METHOD otopi.plugins.ovirt_host_deploy.openstack.neutron.Plugin._misc
2017-04-04 14:39:37 DEBUG otopi.context context._executeMethod:142 method exception
Traceback (most recent call last):
  File "/tmp/ovirt-iTQij82skT/pythonlib/otopi/context.py", line 132, in _executeMethod
    method['method']()
  File "/tmp/ovirt-iTQij82skT/otopi-plugins/ovirt-host-deploy/openstack/neutron.py", line 112, in _misc
    self.command.get('openstack-config'),
  File "/tmp/ovirt-iTQij82skT/pythonlib/otopi/command.py", line 74, in get
    command=command
RuntimeError: Command 'openstack-config' is required but missing
2017-04-04 14:39:37 ERROR otopi.context context._executeMethod:151 Failed to execute stage 'Misc configuration': Command 'openstack-config' is required but missing
2017-04-04 14:39:37 DEBUG otopi.transaction transaction.abort:119 aborting 'Yum Transaction'
2017-04-04 14:39:37 INFO otopi.plugins.otopi.packagers.yumpackager yumpackager.info:80 Yum Performing yum transaction rollback

Comment 1 Sandro Bonazzola 2017-04-05 06:12:57 UTC
Moving to network for further investigation since they own the external neutron network provider feature. Changing component to ovirt-host-deploy.
Looks like a regression due to changes in RHOSP10 but I let network team investigate.

Comment 2 Yaniv Lavi 2017-04-19 07:49:23 UTC
We do not support the deployment of Neutron services on the hosts. 
In any case, you can try to install the needed OSP packages and try again.
We only support manual configuration in 4.0 and in RHV 4.1 we added support of using director provisioned networker nodes.

Comment 3 Alessio 2017-04-19 08:46:01 UTC
Hello,
we were trying to integrate RHEV with an external network provider, in this case RHOSP 10. Our neutron services are OVS and neutron agent. 
Are you saying what is described here is not supported?

http://rhelblog.redhat.com/2016/09/19/integrating-red-hat-virtualization-and-red-hat-openstack-platform-with-neutron-networking/

"
The actual steps to take advantage of the integration between RHV 4 and RHOSP 8 are straightforward. The steps are as follows:

    Install the OpenStack Neutron packages on the RHV hypervisor hosts
    Configure hosts (hypervisor nodes) – a very quick text edit
    Define OpenStack Neutron as an “External Network Provider” in RHV Manager
    Create one or more hosts in RHV that utilize the Neutron integration
    Import one or more networks from RHOSP into RHV
    Create one or more virtual machines that use the Neutron network(s)
"

Regards
Alessio Dini


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