[Openstack] [OpenStack][Nova] Configuring IP address on a DHCP disabled network

Brent Troge brenttroge2016 at gmail.com
Wed Jul 20 23:27:00 UTC 2016


Isn't that exposed through outputs ?
And then use the output combined with configdrive cloudinit  to configure
your NICS

outputs:
  instance_ip:
    description: The IP address of the deployed instance
    value: { get_attr: [my_instance, first_address] }

On Jul 20, 2016 5:58 PM, "Kaustubh Kelkar" <kaustubh.kelkar at casa-systems.com>
wrote:

> My use case involves booting up an instance attached to two networks – one
> having Neutron DHCP service running and one without. Looking within the
> documentation [1], I was hoping to use configuration drive to provide IP
> information for the second interface. But, if I understand correctly, one
> could theoretically pass any IP information through it; which may or may
> not match the IP that is assigned to the Neutron port. I wonder if there is
> any way the actual IP assigned to the Neutron port is exposed in some way
> within the VM.
>
>
>
> One crude workaround I can think of is to create a port beforehand with a
> fixed IP, and use this information to configure static networking within
> the VM. However this might not be manageable if a user launches numerous
> VMs since he/she will have to ensure that IPs do not overlap.
>
>
>
> [2] looks promising, but I am not clear how I can just specify the second
> interface only.
>
>
>
> [1] http://docs.openstack.org/user-guide/cli_config_drive.html
>
> [2] http://blog.oddbit.com/2015/06/26/openstack-networking-without-dhcp/
>
>
>
>
>
> Thanks,
>
> Kaustubh
>
> _______________________________________________
> Mailing list:
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> Post to     : openstack at lists.openstack.org
> Unsubscribe :
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160720/9baa526c/attachment.html>


More information about the Openstack mailing list