question regarding disk image builder

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

question regarding disk image builder

rsamprat
Hi Folks

I'm using DiB to create an ubuntu 12.04 image where dhcp is enabled on all interfaces, and .ssh/authorized_keys is copied

 

$ bin/disk-image-create -a amd64 -o u1204.am d64.custom ubuntu local-config dhcp-all-interfaces

 

I see DiB printing these messages indicating it worked as expected

 

dib-run-parts Mon Oct 21 21:10:41 UTC 2013 Running /tmp/in_target.d/install.d/50-dhcp-all-interfaces

+ dirname /tmp/in_target.d/install.d/50-dhcp-all-interfaces

+ SCRIPTDIR=/tmp/in_target.d/install.d

+ [ -d /etc/init ]

+ install -D -g root -o root -m 0755

/tmp/in_target.d/install.d/generate-interfaces-file.sh

/usr/local/sbin/generate-interfaces-file.sh

+ install -D -g root -o root -m 0755

/tmp/in_target.d/install.d/dhcp-all-interfaces.conf

/etc/init/dhcp-all-interfaces.conf

dib-run-parts Mon Oct 21 21:10:41 UTC 2013 50-dhcp-all-interfaces completed

 

dib-run-parts Mon Oct 21 21:10:41 UTC 2013 62-ssh-key completed

 

But when the baremetal node boots up, the interfaces still don't have dhcp enabled. I see this in the BM node's console when cloud-init starts.

 

How can I troubleshoot this?

Thanks
Ravi


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: question regarding disk image builder

Robert Collins
You need to disable file injection in nova, and you need to have link
up on the interfaces, or dhcp-all-interfaces will skip them.

What do you see in the node console specifically?

-Rob

On 22 October 2013 16:11, Ravikanth Samprathi <[hidden email]> wrote:

> Hi Folks
>
> I'm using DiB to create an ubuntu 12.04 image where dhcp is enabled on all
> interfaces, and .ssh/authorized_keys is copied
>
>
>
> $ bin/disk-image-create -a amd64 -o u1204.am d64.custom ubuntu local-config
> dhcp-all-interfaces
>
>
>
> I see DiB printing these messages indicating it worked as expected
>
>
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 Running
> /tmp/in_target.d/install.d/50-dhcp-all-interfaces
>
> + dirname /tmp/in_target.d/install.d/50-dhcp-all-interfaces
>
> + SCRIPTDIR=/tmp/in_target.d/install.d
>
> + [ -d /etc/init ]
>
> + install -D -g root -o root -m 0755
>
> /tmp/in_target.d/install.d/generate-interfaces-file.sh
>
> /usr/local/sbin/generate-interfaces-file.sh
>
> + install -D -g root -o root -m 0755
>
> /tmp/in_target.d/install.d/dhcp-all-interfaces.conf
>
> /etc/init/dhcp-all-interfaces.conf
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 50-dhcp-all-interfaces completed
>
>
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 62-ssh-key completed
>
>
>
> But when the baremetal node boots up, the interfaces still don't have dhcp
> enabled. I see this in the BM node's console when cloud-init starts.
>
>
>
> How can I troubleshoot this?
>
> Thanks
> Ravi
>
>
> _______________________________________________
> OpenStack-dev mailing list
> [hidden email]
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
Reply | Threaded
Open this post in threaded view
|

Re: question regarding disk image builder

rsamprat
Thanks, Rob.

On the console, I see cloud-init starting up and it prints something like this

 

ci-info lo0 : 127.0.0.1 255.0.0.0 <MAC-ADDR> ci-info eth0 : - - <MAC-ADDR> ci-info eth1 : - - <MAC-ADDR>

 

Soon afterwards, I see this message repeat for 120s

 

util.py [WARNING]:

'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed: url error [[Errno 101] Network is unreachable]

 

 





On Mon, Oct 21, 2013 at 8:19 PM, Robert Collins <[hidden email]> wrote:
You need to disable file injection in nova, and you need to have link
up on the interfaces, or dhcp-all-interfaces will skip them.

What do you see in the node console specifically?

-Rob

On 22 October 2013 16:11, Ravikanth Samprathi <[hidden email]> wrote:
> Hi Folks
>
> I'm using DiB to create an ubuntu 12.04 image where dhcp is enabled on all
> interfaces, and .ssh/authorized_keys is copied
>
>
>
> $ bin/disk-image-create -a amd64 -o u1204.am d64.custom ubuntu local-config
> dhcp-all-interfaces
>
>
>
> I see DiB printing these messages indicating it worked as expected
>
>
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 Running
> /tmp/in_target.d/install.d/50-dhcp-all-interfaces
>
> + dirname /tmp/in_target.d/install.d/50-dhcp-all-interfaces
>
> + SCRIPTDIR=/tmp/in_target.d/install.d
>
> + [ -d /etc/init ]
>
> + install -D -g root -o root -m 0755
>
> /tmp/in_target.d/install.d/generate-interfaces-file.sh
>
> /usr/local/sbin/generate-interfaces-file.sh
>
> + install -D -g root -o root -m 0755
>
> /tmp/in_target.d/install.d/dhcp-all-interfaces.conf
>
> /etc/init/dhcp-all-interfaces.conf
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 50-dhcp-all-interfaces completed
>
>
>
> dib-run-parts Mon Oct 21 21:10:41 UTC 2013 62-ssh-key completed
>
>
>
> But when the baremetal node boots up, the interfaces still don't have dhcp
> enabled. I see this in the BM node's console when cloud-init starts.
>
>
>
> How can I troubleshoot this?
>
> Thanks
> Ravi
>
>
> _______________________________________________
> OpenStack-dev mailing list
> [hidden email]
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



--
Robert Collins <[hidden email]>
Distinguished Technologist
HP Converged Cloud

_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


_______________________________________________
OpenStack-dev mailing list
[hidden email]
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev