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/
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.
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.
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.
Created attachment 1199788 [details] RHV 4 - New host dialog
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?
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.
Dan can you please review again this bug after comment #8 and re-target this bug?
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.
The fix has been merged and will be available in 4.1 release
Please backport to 4.0.z.