Bug 1264740 - RHEL OSP Director must be configure with nova-event-callback by default
Summary: RHEL OSP Director must be configure with nova-event-callback by default
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 7.0 (Kilo)
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: y2
: 7.0 (Kilo)
Assignee: Jay Dobies
QA Contact: Ofer Blaut
URL:
Whiteboard:
Depends On:
Blocks: 1273409 1298608
TreeView+ depends on / blocked
 
Reported: 2015-09-21 06:28 UTC by Ofer Blaut
Modified: 2023-02-22 23:02 UTC (History)
18 users (show)

Fixed In Version: openstack-tripleo-heat-templates-0.8.6-89.el7ost
Doc Type: Bug Fix
Doc Text:
Neutron uses Nova's event callback to make sure the Neutron port is configured before running a VM. The director did not include configuration for this feature. This fix add the configuration in the director's Heat templates. Now Neutron uses Nova's event callback successfully.
Clone Of:
: 1273409 1298608 (view as bug list)
Environment:
Last Closed: 2015-12-21 16:55:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 225962 0 None None None Never
OpenStack gerrit 234325 0 None None None Never
Red Hat Product Errata RHBA-2015:2651 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OSP 7 director Bug Fix Advisory 2015-12-21 21:50:26 UTC

Description Ofer Blaut 2015-09-21 06:28:47 UTC
Description of problem:

Neutron is using nova event call-back to make sure neutron port is configured before VM is running

Both packstack and RHEL OSP installer are using it.

Configuration must be done on nova.conf and neutron.conf on contr


https://bugzilla.redhat.com/show_bug.cgi?id=1067211
https://blueprints.launchpad.net/neutron/+spec/nova-event-callback
https://blueprints.launchpad.net/nova/+spec/admin-event-callback-api


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Brent Eagles 2015-09-21 17:30:15 UTC
Just a heads up that, if memory serves, that the nova part (vif_plugging_is_fatal = True) needs to be set to True on the compute nodes as well. The defaults would be preferable to what there is now. It seems that it might be being set to false in openstack-tripleo-heat-templates/puppet/hierdata/common.yaml - which might explain how this regression wheedled in.

The neutron config needs to have the appropriate entries to know "how to talk" to nova. The properties can be seen starting on line 331 or the sample neutron.conf on http://docs.openstack.org/kilo/config-reference/content/section_neutron.conf.html

I imagine that this stuff was configured in the installer version so it is probably just a matter of enabling it (openstack-puppet/modules/neutron/manifests/server/notifications.pp?) as long as nothing else gets in the way.

Comment 2 Brent Eagles 2015-09-21 17:31:25 UTC
Forgot to mention that we probably should have an U/S bug on this once the details of the real culprits are figured out.

Comment 3 Emilien Macchi 2015-09-21 17:53:03 UTC
Patch submitted upstream in TripleO Heat Templates: https://review.openstack.org/225962

Comment 4 James Slagle 2015-10-07 20:03:31 UTC
note that vif_plugging_timeout also needs to use the default upstream value of 300 instead of the TripleO value of 30.

this has been pointed out on the above review as well

Comment 6 Emilien Macchi 2015-10-13 16:29:13 UTC
Currently working on the undercloud part: https://review.openstack.org/234325
And also on the overcloud side: https://review.openstack.org/225962

Comment 17 Ofer Blaut 2015-12-06 10:24:48 UTC
Doesn't seem to be working

neutron.conf is missing 

nova_admin_tenant_id = 
nova_admin_password = 
nova_admin_username = 

openstack-tripleo-heat-templates-0.8.6-87.el7ost.noarch

Comment 19 Ofer Blaut 2015-12-15 13:41:27 UTC
openstack-tripleo-heat-templates-0.8.6-92.el7ost.noarch


tested with creating VMs

[root@overcloud-controller-2 ~]# tail -f /var/log/nova/nova-api.log -f /var/log/neutron/server.log | grep -n --line-buffered -e'^==> .* <==$' -e'event'
1:==> /var/log/nova/nova-api.log <==
13:==> /var/log/neutron/server.log <==
22:2015-12-15 08:36:38.581 3831 INFO neutron.notifiers.nova [-] Nova event response: {u'status': u'completed', u'tag': u'287cd79b-41fd-4c80-bfcb-63e23589e34a', u'name': u'network-vif-plugged', u'server_uuid': u'5cb77bbb-153d-44f3-8f0c-1eaf1faafbcc', u'code': 200}
23:2015-12-15 08:36:39.916 3832 INFO neutron.notifiers.nova [-] Nova event response: {u'status': u'completed', u'tag': u'25db17fe-9ff9-484e-9412-43fd3dbec936', u'name': u'network-vif-plugged', u'server_uuid': u'9e0186f5-e548-498e-8823-bc17717858af', u'code': 200}

Comment 21 errata-xmlrpc 2015-12-21 16:55:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2015:2651


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