Re: [Openstack] Guest VM IP configuration script

2016-08-31 Thread Kevin Benton
The neutron DHCP agent does not issue leases for ports that don't exist in the Neutron DB. There was a time when it would issue a DHCPNAK to other DHCP traffic[1], but that's been fixed for quite some time now. perhaps that was the bad behavior in Juno that you observed? 1. http://lists.openstack.

Re: [Openstack] Guest VM IP configuration script

2016-08-31 Thread Turbo Fredriksson
On Aug 31, 2016, at 7:15 AM, Van Leeuwen, Robert wrote: > When you look at the dnsmasq process on a neutron server it is indeed set to > static and uses the –dhcp-host options: > dnsmasq --dhcp-range=set:tag0,1.1.1.0,static,5529600s > --dhcp-hostsfile=/var/lib/neutron/dhcp/123-4567/host --lots

Re: [Openstack] Guest VM IP configuration script

2016-08-30 Thread Van Leeuwen, Robert
On 8/30/16, 4:44 PM, "Satish Patel" wrote: >Robert, > >I didn't find any related configuration which blacklist mac address on >Mitaka. also i didn't find any document stated that DHCP agent only > gives ip address to instance mac address. I am not sure if there is any specific d

Re: [Openstack] Guest VM IP configuration script

2016-08-30 Thread Brent Troge
this is how i do things without dhcp services in the network. 1. enable config-drive within server declaration 2. using cloud-config write out the network l3 information to a file on the guest. 3. using cloud-config you can then add an user-data script to your config-drive, 4. the user data script

Re: [Openstack] Guest VM IP configuration script

2016-08-30 Thread Satish Patel
Robert, I didn't find any related configuration which blacklist mac address on Mitaka. also i didn't find any document stated that DHCP agent only gives ip address to instance mac address. Do you point me to any doc or any kind of material On Fri, Aug 26, 2016 at 4:07 PM, Van Leeuwen, Robert wr

Re: [Openstack] Guest VM IP configuration script

2016-08-26 Thread Van Leeuwen, Robert
Are you sure it was DHCP misbehaving? Because it could also have been that it tried to takeover the gateway IP. That would certainly mess with connectivity on the network. Just mentioning because you gave the example --router:external while I think it should be --router:external True Also if it

Re: [Openstack] Guest VM IP configuration script

2016-08-26 Thread Satish Patel
Robert, I remembered in JUNO release when i did flat network with my existing provider LAN then DHCP started giving IPs to my existing LAN clients and people started yelling their network is down :( Following networking i configured. #neutron net-create network1 --provider:network_type flat --p

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Van Leeuwen, Robert
> When i was trying to use DHCP in openstack i found openstack DHCP > start provide ip address to my existing LAN machines ( we are using > flat VLAN with neutron), that is why i disable openstack DHCP, Is it > common or i am doing something wrong? I do not think this should happen. It has been a

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Kaustubh Kelkar
Kelkar > Cc: Eugen Block ; openstack > Subject: Re: [Openstack] Guest VM IP configuration script > > This is perfect! > > In your script, does it automatically query to neutron to get IP ADDRESS of > instance? or i need to manually set IP address in script variable $IPADDR >

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Satish Patel
t; dump: > value: { get_attr: [ server, show ] } > > > Hope this helps. > > As for config-drive, I hope the folks can shed some light. > > > -Kaustubh > >> -Original Message- >> From: Satish Patel [mailto:satish@gmail.com] >>

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Eugen Block
es 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 T

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Kaustubh Kelkar
Hope this helps. As for config-drive, I hope the folks can shed some light. -Kaustubh > -Original Message- > From: Satish Patel [mailto:satish@gmail.com] > Sent: Thursday, August 25, 2016 9:27 AM > To: Eugen Block > Cc: openstack > Subject: Re: [Openstack] Gu

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Kaustubh Kelkar
Eugen Block > Cc: openstack > Subject: Re: [Openstack] Guest VM IP configuration script > > I am planning to upgrade liberty to mitaka now so hope i will have latest and > greatest feature to solve this problem. why openstack community doesn't have > any straightforward solu

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Satish Patel
k 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 informa

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Satish Patel
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. >>> >>> >>> -Kau

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Eugen Block
>> -Kaustubh >> >>> -----Original Message- >>> From: Satish Patel [mailto:satish@gmail.com] >>> Sent: Wednesday, August 24, 2016 5:05 PM >>> To: James Downs >>> Cc: openstack >>> Subject: Re: [Openstack] Guest VM IP configur

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Andreas Scheuring
ion 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: > >>

Re: [Openstack] Guest VM IP configuration script

2016-08-25 Thread Eugen Block
-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 Cc: openstack Subject: Re: [Openstack] Guest VM IP configuration script I am using neutron networking with vlan ( its

Re: [Openstack] Guest VM IP configuration script

2016-08-24 Thread Satish Patel
--Original Message- >> From: Satish Patel [mailto:satish@gmail.com] >> Sent: Wednesday, August 24, 2016 5:05 PM >> To: James Downs >> Cc: openstack >> Subject: Re: [Openstack] Guest VM IP configuration script >> >> I am using neutron networking with

Re: [Openstack] Guest VM IP configuration script

2016-08-24 Thread Kaustubh Kelkar
. -Kaustubh > -Original Message- > From: Satish Patel [mailto:satish@gmail.com] > Sent: Wednesday, August 24, 2016 5:05 PM > To: James Downs > Cc: openstack > Subject: Re: [Openstack] Guest VM IP configuration script > > I am using neutron networking with vlan ( it

Re: [Openstack] Guest VM IP configuration script

2016-08-24 Thread Satish Patel
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

Re: [Openstack] Guest VM IP configuration script

2016-08-24 Thread James Downs
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 on

Re: [Openstack] Guest VM IP configuration script

2016-08-24 Thread Satish Patel
I enabled following in nova.conf on compute node but didn't work :( flat_injected=true Do i need to do anything else? On Wed, Aug 24, 2016 at 1:52 PM, Satish Patel wrote: > This is weird requirement because i google it and i didn't find > solution. We are no using DHCP with openstack (there is

[Openstack] Guest VM IP configuration script

2016-08-24 Thread Satish Patel
This is weird requirement because i google it and i didn't find solution. We are no using DHCP with openstack (there is an reason) so not if i boot my VM it didn't getting IP address on eth0 interface so i have to manually configure IP address. Is there any script or API which i can put in VM gues