My question is how to query ports and pass info to cloud-init?  is
there any document or api which i can call using script and setup
network ifcfg-eth0 file

On Wed, Aug 24, 2016 at 5:38 PM, Kaustubh Kelkar
<kaustubh.kel...@casa-systems.com> wrote:
> You can create the ports beforehand and plug them in while creating the 
> instance. As for assigning IP addresses, you can query the ports and pass the 
> information to cloud-init. I am not sure if there is any other way to do this.
>
> Even if DHCP is disabled, OpenStack assigns IP information to ports when a VM 
> is created, and you can see this in your dashboard. The MAC and IP 
> information is used to configure iptables rules within security groups. Here 
> is the archived thread that provides this information: 
> http://lists.openstack.org/pipermail/openstack-dev/2014-December/053069.html.
>
>
> -Kaustubh
>
>> -----Original Message-----
>> From: Satish Patel [mailto:satish....@gmail.com]
>> Sent: Wednesday, August 24, 2016 5:05 PM
>> To: James Downs <e...@egon.cc>
>> Cc: openstack <openstack@lists.openstack.org>
>> Subject: Re: [Openstack] Guest VM IP configuration script
>>
>> I am using neutron networking with vlan ( its provider VLAN). We are not 
>> using
>> DHCP but i need some kind of hack to inject IP address in instance using 
>> cloud-
>> init.
>>
>> We are using cloud-init but i don't know how does it work and get IP from
>> neutron. I am new with neutron stuff.
>>
>> On Wed, Aug 24, 2016 at 4:29 PM, James Downs <e...@egon.cc> wrote:
>> > On Wed, Aug 24, 2016 at 03:25:26PM -0400, Satish Patel wrote:
>> >> I enabled following in nova.conf on compute node but didn't work :(
>> >>
>> >> flat_injected=true
>> >>
>> >> Do i need to do anything else?
>> >
>> > Are you using flat networking?
>> > Nova-networks or Neutron?
>> >
>> > At this point, if you're not using DHCP, your only option is to arrange to 
>> > feed
>> the networking information into the metadata for the VM at creation time, and
>> use someting like cloud-init to configure the networking. The ancient
>> networking injection stuff has either been removed, or been broken for years.
>> >
>> > Cheers,
>> > -j
>> >
>> > _______________________________________________
>> > Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> > Post to     : openstack@lists.openstack.org
>> > Unsubscribe :
>> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>>
>> _______________________________________________
>> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
>> Post to     : openstack@lists.openstack.org
>> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to