Bug 1139556
| Summary: | [Cloud init] Extra ip set on NIC when configuring static ip via cloud-init | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Michael Burman <mburman> |
| Component: | cloud-init | Assignee: | Lars Kellogg-Stedman <lars> |
| Status: | CLOSED WONTFIX | QA Contact: | Michael Burman <mburman> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.0 | CC: | gklein, lpeer, mburman, michal.skrivanek, rbalakri, Rhev-m-bugs, s.kieske, srevivo, yacao, ykaul |
| Target Milestone: | pre-dev-freeze | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | virt | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-06 19:44:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Michael Burman
2014-09-09 08:02:44 UTC
what is the guest os? what version of cloud init installed on the vm? you do not mention in the steps when you install cloud init? is it part of the template? cloud-init-0.7.5-1.el7.x86_64 Guest OS rhel7 and rhel6.5 I'm installing the cloud-init as part of a new VM creation. This VM based on 'neutron-appliance' template and contains relevant neutron services. 1. Can you post the output of the shell that you see the two ips. 2. if its the order of of the services the bug should be assigned to the cloud-init package under Rhel-7.1 eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:1a:4a:16:88:63 brd ff:ff:ff:ff:ff:ff
inet 10.35.128.99/24 brd 10.35.128.255 scope global dynamic eth0
valid_lft 42824sec preferred_lft 42824sec
inet 10.35.128.196/24 brd 10.35.128.255 scope global secondary eth0
valid_lft forever preferred_lft forever
inet6 fe80::21a:4aff:fe16:8863/64 scope link
valid_lft forever preferred_lft forever
First ip is from network service when vm starts for the first time
Second ip is the static ip that was configured via cloud-init
When restarting network service, only static ip will remain on NIC
How are you configuring the static ip address? Via the cloud-init New VM > Initial Run > Networks > Network checked > Add New > eth0 > Boot protocol- Static Ip address- Netmask- Gateway- I am a little confused. It sounds like you're using some sort of gui; does this generate a cloud-init user-data script? Can you provide the contents of /var/lib/cloud/instance/user-data.txt? Yes i'm using rhevm GUI
[admin@localhost ~]$ sudo cat /var/lib/cloud/instance/user-data.txt
#cloud-config
ssh_pwauth: true
disable_root: 0
output:
all: '>> /var/log/cloud-init-output.log'
user: admin
password: '1'
chpasswd:
expire: false
runcmd:
- 'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:
["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'
[admin@localhost ~]$ ip a | grep eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
inet 10.35.128.97/24 brd 10.35.128.255 scope global dynamic eth0
inet 10.35.128.198/24 brd 10.35.128.255 scope global secondary eth0
We are only able to address cloud-init issues that impact functionality in OpenStack environments. |