[openstack-dev] question regarding disk image builder

Ravikanth Samprathi rsamprat at gmail.com
Tue Oct 22 04:13:27 UTC 2013


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
<robertc at robertcollins.net>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 <rsamprat at gmail.com> 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
> > OpenStack-dev at lists.openstack.org
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> >
>
>
>
> --
> Robert Collins <rbtcollins at hp.com>
> Distinguished Technologist
> HP Converged Cloud
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20131021/6ce24245/attachment.html>


More information about the OpenStack-dev mailing list