[Openstack] Injecting a specific MAC address

2013-04-10 Thread Burney, Jeffrey P (N-Engineering Service Professionals)
Hi Stackers,

We have a little test lab where we are working with puppet and OpenStack.  
Here's what we are trying to do on Folsom (currently not using Quantum).

From a puppet master (also running dhcp, dns, kickstart), issue a command to 
OpenStack controller to boot a small pxe boot image.  We would like to inject 
a MAC address into the newly instantiated VM so that when It goes to our dhcp 
server, it will get the correct IP and be built by our kickstart server.

We've looked at node_openstack but it does not have inject a MAC.

I'd imagine this has been done before I just can't find anything online.

Any help would be greatly appreciated.

Jeff

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp


Re: [Openstack] Injecting a specific MAC address

2013-04-10 Thread Robert Collins
On 11 April 2013 07:19, Burney, Jeffrey P (N-Engineering Service
Professionals) jeffrey.p.bur...@lmco.com wrote:
 Hi Stackers,



 We have a little test lab where we are working with puppet and OpenStack.
 Here’s what we are trying to do on Folsom (currently not using Quantum).



 From a puppet master (also running dhcp, dns, kickstart), issue a command to
 OpenStack controller to boot a small pxe boot image.  We would like to
 inject a MAC address into the newly instantiated VM so that when It goes to
 our dhcp server, it will get the correct IP and be built by our kickstart
 server.



 We’ve looked at node_openstack but it does not have inject a MAC.



 I’d imagine this has been done before I just can’t find anything online.



 Any help would be greatly appreciated.

The MAC address used is generated dynamically by nova and then handed
out to either nova-network or Quantum. You may be able to manually
generate the MAC by using Quantum and making a call to Quantum to
create a port with that MAC, then passing the port id to nova boot.

HTH,
Rob

-- 
Robert Collins rbtcoll...@hp.com
Distinguished Technologist
HP Cloud Services

___
Mailing list: https://launchpad.net/~openstack
Post to : openstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp