dhcp-all-interfaces doesn't take effect early enough for cloud-init

Bug #1233577 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
diskimage-builder
Fix Released
Medium
Clint Byrum

Bug Description

I fixed dhcp-all-interfaces to work :) then tried it.

The machine booted and came up on the right IP - yay!. But it didn't have ssh keys from cloud-init.

I rebooted it, and once it came up, it was good.

Changed in diskimage-builder:
importance: High → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/49650

Changed in diskimage-builder:
assignee: nobody → Clint Byrum (clint-fewbar)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/49650
Committed: http://github.com/openstack/diskimage-builder/commit/4a751ba1626f1c3da333c47a120b8422af8b25f8
Submitter: Jenkins
Branch: master

commit 4a751ba1626f1c3da333c47a120b8422af8b25f8
Author: Clint Byrum <email address hidden>
Date: Thu Oct 3 16:00:19 2013 -0700

    Generate interfaces file before cloud-init runs

    Cloud-init needs to query the metadata server after the network
    interfaces are configured. The upstart job "cloud-init-nonet" is
    specifically in place to provide a hook to block cloud-init from
    running while we rearrange network interface configurations.

    Fixes bug #1233577

    Change-Id: Ib5cf75d858fdb670b2abcc082e912c4644d6b169

Changed in diskimage-builder:
status: In Progress → Fix Committed
Changed in diskimage-builder:
status: Fix Committed → Fix Released
Revision history for this message
Robert Collins (lifeless) wrote :

This fix didn't :(.

cloud-init-nonet didn't find an interface in a freshly built image on a machine with 4 interfaces, link on eth3; the machine is available for examination on 10.10.16.173 in the tripleo-cd cloud.

Changed in diskimage-builder:
status: Fix Released → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to diskimage-builder (master)

Fix proposed to branch: master
Review: https://review.openstack.org/51261

Changed in diskimage-builder:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to diskimage-builder (master)

Reviewed: https://review.openstack.org/51261
Committed: http://github.com/openstack/diskimage-builder/commit/28190d595489a027d65b2991e1e4c6fef6fa55bf
Submitter: Jenkins
Branch: master

commit 28190d595489a027d65b2991e1e4c6fef6fa55bf
Author: Clint Byrum <email address hidden>
Date: Fri Oct 11 11:02:52 2013 -0700

    Make dhcp-all-interfaces block all interfaces

    Previously dhcp-all-interfaces was only blocking the first network
    interface to come up. We add an instance stanza to make it run one
    instance of generate-interfaces-file per interface. We then use flock to
    serialize runs of generate-interfaces-file.

    Fixes bug #1233577

    Change-Id: Ib16bed6b37ce0789e315ef57e05ac561470a6f2a

Changed in diskimage-builder:
status: In Progress → Fix Committed
Changed in diskimage-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.