Bug 949832 - cloud-init fails to show network information correctly
Summary: cloud-init fails to show network information correctly
Keywords:
Status: CLOSED DUPLICATE of bug 786488
Alias: None
Product: Fedora
Classification: Fedora
Component: cloud-init
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Andrew Thomas
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-09 06:35 UTC by Juerg Haefliger
Modified: 2013-09-05 00:17 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-14 14:58:03 UTC


Attachments (Terms of Use)

Description Juerg Haefliger 2013-04-09 06:35:00 UTC
cloud-init fails to display networking information on boot in an OpenStack environment. I.e., the following is displayed even though the network is up at that time:

Cloud-init v. 0.7.1 running 'init' at Tue, 09 Apr 2013 06:25:05 +0000. Up 9.91 ci-info: ++++++++++++++++Net device info+++++++++++++++++
ci-info: +--------+-------+---------+------+------------+
ci-info: | Device |   Up  | Address | Mask | Hw-Address |
ci-info: +--------+-------+---------+------+------------+
ci-info: |  lo:   | False |    .    |  .   |     .      |
ci-info: | eth0:  | False |    .    |  .   |     .      |
ci-info: +--------+-------+---------+------+------------+
ci-info: ++++++++++++++++++++++++++++++Route info++++++++++++++++++++++++++++++
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: | Route | Destination | Gateway  |    Genmask    | Interface | Flags |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: |   0   |   0.0.0.0   | 10.0.0.1 |    0.0.0.0    |    eth0   |   UG  |
ci-info: |   1   |   10.0.0.0  | 0.0.0.0  | 255.255.255.0 |    eth0   |   U   |
ci-info: |   2   | 169.254.0.0 | 0.0.0.0  |  255.255.0.0  |    eth0   |   U   |
ci-info: +-------+-------------+----------+---------------+-----------+-------+

I believe the problem is in cloudinit/netinfo.py due to the fact the output of 'ifconfig -a' in Fedora 18 is different from other distros.

Comment 1 Matthew Miller 2013-05-24 11:27:31 UTC
Also, we might not even _have_ ifconfig. (net-tools is a leaf package.) It would be better to use 'ip' (from iproute, which is a core dependency.

Comment 2 Matthew Miller 2013-06-14 14:58:03 UTC

*** This bug has been marked as a duplicate of bug 786488 ***

Comment 3 Jiri Popelka 2013-06-14 15:02:53 UTC
(In reply to Juerg Haefliger from comment #0)
> of 'ifconfig -a' in Fedora 18 is different from other distros.

That's right, see bug #784314


Note You need to log in before you can comment on or make changes to this bug.