Here is the patch that added support for it in Nova: https://review.openstack.org/#/c/299591/
It's a property set on the port that prevents Nova from freaking out when there is no IP on the port. However, I'm not sure if an IPAM driver alone will have the ability to mark the allocation as deferred in Neutron since it was originally introduced to handle a separate use case (subnets associated with specific segments). On Mon, Apr 10, 2017 at 6:26 PM, Gregory Golberg <[email protected]> wrote: > Thanks - I was thinking that the second option (fake IP and update on port > update) may work - that validates it somewhat. > > And about the deferred allocation - where would I find more info on that? > > > > [image: --] > Gregory Golberg > [image: http://]about.me/gregorygolberg > <http://about.me/gregorygolberg?promo=email_sig> > > > On Mon, Apr 10, 2017 at 5:50 PM, Kevin Benton <[email protected]> wrote: > >> IIRC it will not. If you're building an ipam driver that needs to take >> into account host_id you will need to leverage the deferred allocation >> stuff done as part of the routed networks work. Or you could allocate a >> dummy IP and then update to a different one on the next port update that >> assigns the host ID. >> >> On Apr 10, 2017 16:13, "Gregory Golberg" <[email protected]> wrote: >> >>> Ah, thanks - but when you say nova may not have set them yet is it at >>> all possible that it would get set prior to an IPAM request? >>> >>> >>> >>> [image: --] >>> Gregory Golberg >>> [image: http://]about.me/gregorygolberg >>> <http://about.me/gregorygolberg?promo=email_sig> >>> >>> >>> On Mon, Apr 10, 2017 at 4:10 PM, Kevin Benton <[email protected]> wrote: >>> >>>> Nova may not have set them yet. The port is updated with the host ID >>>> and the device ID separately from the port creation in later Nova versions >>>> IIRC. >>>> >>>> On Apr 10, 2017 10:03, "Gregory Golberg" <[email protected]> wrote: >>>> >>>>> Sorry, that should read host AND instance ID (as the device_id was >>>>> instance_uuid). >>>>> >>>>> >>>>> >>>>> [image: --] >>>>> Gregory Golberg >>>>> [image: http://]about.me/gregorygolberg >>>>> <http://about.me/gregorygolberg?promo=email_sig> >>>>> >>>>> >>>>> On Mon, Apr 10, 2017 at 9:44 AM, Gregory Golberg <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi all >>>>>> >>>>>> In Liberty, port object that got passed into IPAM driver contained >>>>>> binding:host_id entry (and neutron.ports DB table had a device_id field). >>>>>> Now it looks like the host_id is not being passed in and device_id field >>>>>> is >>>>>> empty in the ports table. >>>>>> >>>>>> What is the proper way now to look for host in during the IPAM >>>>>> request? >>>>>> >>>>>> >>>>>> [image: --] >>>>>> Gregory Golberg >>>>>> [image: http://]about.me/gregorygolberg >>>>>> <http://about.me/gregorygolberg?promo=email_sig> >>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Mailing list: http://lists.openstack.org/cgi >>>>> -bin/mailman/listinfo/openstack >>>>> Post to : [email protected] >>>>> Unsubscribe : http://lists.openstack.org/cgi >>>>> -bin/mailman/listinfo/openstack >>>>> >>>>> >>> >
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
