Bug 1373968 - Deploying a host with an external Neutron network configured fails
Summary: Deploying a host with an external Neutron network configured fails
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: ovirt-host-deploy
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ovirt-4.0.5
: 1.5.3
Assignee: Sandro Bonazzola
QA Contact: Meni Yakove
URL: http://www.ovirt.org/documentation/ho...
Whiteboard:
Depends On:
Blocks: 1379992
TreeView+ depends on / blocked
 
Reported: 2016-09-07 14:50 UTC by Tony James
Modified: 2016-12-16 13:25 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Previously, with the release of OpenStack Liberty the Open vSwitch agent ini file location changed. This caused host deployment to fail when the latest releases of OpenStack were used. Now, support for Liberty and newer releases of OpenStack has been added and host deployment no longer fails.
Clone Of:
Environment:
Last Closed: 2016-09-29 06:24:58 UTC
oVirt Team: Network
Embargoed:
ylavi: ovirt-4.0.z?
ylavi: Triaged+
ylavi: planning_ack+
danken: devel_ack+
rule-engine: testing_ack?


Attachments (Terms of Use)
RHV 4 - New host dialog (343.57 KB, image/png)
2016-09-10 14:59 UTC, Tony James
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1377783 0 high CLOSED [TEXT] - Choosing to deploy Neutron provider on host should warn user 2021-02-22 00:41:40 UTC
oVirt gerrit 63707 0 master MERGED Fix location for OPENSTACK_NEUTRON_OPENVSWITCH_CONFIG 2020-07-20 14:16:42 UTC
oVirt gerrit 64266 0 ovirt-host-deploy-1.5 MERGED Fix location for OPENSTACK_NEUTRON_OPENVSWITCH_CONFIG 2020-07-20 14:16:44 UTC

Internal Links: 1377783

Description Tony James 2016-09-07 14:50:39 UTC
With the release of Red Hat OpenStack Platform 8 the Open vSwitch
agent ini file location has changed.

OLD: /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
NEW: /etc/neutron/plugins/ml2/openvswitch_agent.ini

Due to this change adding an external network to a host fails with an error that says something to the effect of "File not found: /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini"

Since the RHV 4 release notes claim support for Red Hat OpenStack Platform 8 I have submitted a patch upstream to correct this:

https://gerrit.ovirt.org/#/c/63104/

Comment 1 Yaniv Lavi 2016-09-08 08:28:43 UTC
We do not support deploying OSP on the host. You can either use manual agent configuration or use OSP methods we tested like packstack. We expect this to be done before adding the host to RHV.

Comment 4 Dan Kenigsberg 2016-09-08 10:09:21 UTC
Would you please lay down the individual steps you are taking, and the error messages that you are seeing?

What we support is for you to configure Neutron on a host, then add it to RHV-M, then import the external to the RHV DC (note: *not* to any specific hypervisor), attach that network to a VM, and then start it.

Comment 5 Tony James 2016-09-10 14:58:38 UTC
I've configured a brand new RHV 4.0 environment and added an OSP 8 Neutron provider under "External Providers".  I've attached a screenshot of the "New Host" dialog for reference.  Once I click OK, the process of adding the new host fails with the following errors in the relevant log under /var/log/ovirt-engine/host-deploy on RHV-M:

2016-09-10 07:47:24 DEBUG otopi.plugins.ovirt_host_deploy.openstack.neutron_openvswitch plugin.execute:926 execute-output: ('/bin/openstack-config', '--set', '/etc/neutron/plugins
/openvswitch/ovs_neutron_plugin.ini', 'OVS', 'bridge_mappings', 'vmnet:br-neutron') stderr:
[Errno 2] No such file or directory: '/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini'

This is due to the location of the openvswitch agent ini file changing in OSP 8.  The new location is: /etc/neutron/plugins/ml2/openvswitch_agent.ini

Adding the host succeeds if I run the following on the hypervisor:

cd /etc/neutron/plugins
mkdir openvswitch
cp ml2/openvswitch_agent.ini openvswitch/ovs_neutron_plugin.ini

The commit I've submitted upstream changes a variable in ovirt-host-deploy to use the new location of the Open vSwitch ini file as of OSP 8.

Comment 6 Tony James 2016-09-10 14:59:30 UTC
Created attachment 1199788 [details]
RHV 4 - New host dialog

Comment 7 Dan Kenigsberg 2016-09-11 10:14:02 UTC
Thanks for trying out RHV4 and thanks for your patch. As it stands, it would break support for the older (but still supported) OSP. Maybe you can add some smarter logic to it?

That's basically the reason we do not support configuration of the hosts' neutron installation. Would you be kind to try out manual installation, and then add a generic external network provider?

Comment 8 Tony James 2016-09-12 16:53:49 UTC
I've pushed a new patch with additional logic to allow continued support for older versions of Red Hat OpenStack Platform:

https://gerrit.ovirt.org/#/c/63707/

This patch has been tested on RHV 4.0 with both OSP 7 and 8.  I will work on testing the generic external network provider and report back.

Comment 9 Sandro Bonazzola 2016-09-15 13:30:40 UTC
Dan can you please review again this bug after comment #8 and re-target this bug?

Comment 10 Dan Kenigsberg 2016-09-15 14:14:54 UTC
I'm not I understand your request, Sandro. You've raised valid questions on the patch, and we should wait for Tony to respond. Do you think I should drop my +1? If Tony verifies his path on both "old" and "new" OSP, I'm fine with his patch.

Comment 12 Sandro Bonazzola 2016-09-19 08:42:22 UTC
The fix has been merged and will be available in 4.1 release

Comment 13 Yaniv Lavi 2016-09-20 15:15:52 UTC
Please backport to 4.0.z.


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