Bug 1297635 - Instance rebuild removes some interfaces & also changes interface mac address of the rest
Summary: Instance rebuild removes some interfaces & also changes interface mac address...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 7.0 (Kilo)
Hardware: All
OS: Linux
urgent
urgent
Target Milestone: async
: 7.0 (Kilo)
Assignee: Sahid Ferdjaoui
QA Contact: Prasanth Anbalagan
URL:
Whiteboard:
Depends On: 1279505
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-12 04:40 UTC by Jaison Raju
Modified: 2019-10-10 10:51 UTC (History)
19 users (show)

Fixed In Version: openstack-nova-2015.1.2-15.el7ost
Doc Type: Bug Fix
Doc Text:
Clone Of: 1279505
Environment:
Last Closed: 2016-02-18 16:09:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1522112 0 None None None 2016-01-12 04:40:22 UTC
OpenStack gerrit 252565 0 None None None 2016-01-12 04:40:22 UTC
Red Hat Product Errata RHBA-2016:0261 0 normal SHIPPED_LIVE openstack-nova bug fix advisory 2016-02-18 21:04:04 UTC

Comment 18 Prasanth Anbalagan 2016-02-12 13:20:04 UTC
Verified as follows - Interface list remains intact after rebuilding a nova instance.

*************
Version
*************

[root@seal17 ~(keystone_admin)]# yum list installed | grep openstack-nova
openstack-nova-api.noarch            2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-cert.noarch           2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-common.noarch         2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-compute.noarch        2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-conductor.noarch      2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-console.noarch        2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-novncproxy.noarch     2015.1.2-18.el7ost      @rhelosp-7.0-puddle
openstack-nova-scheduler.noarch      2015.1.2-18.el7ost      @rhelosp-7.0-puddle
[root@seal17 ~(keystone_admin)]# 

************
Logs
************

[root@seal17 ~(keystone_admin)]# nova boot --flavor 1 --image cirros --nic net-id=0b33dda8-d1ca-4129-a5c6-7004e73aa2a3 vm1
+--------------------------------------+-----------------------------------------------+
| Property                             | Value                                         |
+--------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                        |
| OS-EXT-AZ:availability_zone          |                                               |
| OS-EXT-SRV-ATTR:host                 | -                                             |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                             |
| OS-EXT-SRV-ATTR:instance_name        | instance-00000001                             |
| OS-EXT-STS:power_state               | 0                                             |
| OS-EXT-STS:task_state                | scheduling                                    |
| OS-EXT-STS:vm_state                  | building                                      |
| OS-SRV-USG:launched_at               | -                                             |
| OS-SRV-USG:terminated_at             | -                                             |
| accessIPv4                           |                                               |
| accessIPv6                           |                                               |
| adminPass                            | dQi6NbWPbFC6                                  |
| config_drive                         |                                               |
| created                              | 2016-02-12T13:01:36Z                          |
| flavor                               | m1.tiny (1)                                   |
| hostId                               |                                               |
| id                                   | c09bb59d-964b-44ea-a544-66515e9a7b70          |
| image                                | cirros (313e7a28-d1c0-47ad-96af-419567167533) |
| key_name                             | -                                             |
| metadata                             | {}                                            |
| name                                 | vm1                                           |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| security_groups                      | default                                       |
| status                               | BUILD                                         |
| tenant_id                            | 23b5b63bfbf747a9a82faf414dcfc8ea              |
| updated                              | 2016-02-12T13:01:36Z                          |
| user_id                              | 1d7f335b6f2145db9be6ac8ad9ae59ea              |
+--------------------------------------+-----------------------------------------------+
[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID                                   | Name | Status | Task State | Power State | Networks         |
+--------------------------------------+------+--------+------------+-------------+------------------+
| c09bb59d-964b-44ea-a544-66515e9a7b70 | vm1  | ACTIVE | -          | Running     | private=10.0.0.3 |
+--------------------------------------+------+--------+------------+-------------+------------------+
[root@seal17 ~(keystone_admin)]# 

[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# virsh list --all
 Id    Name                           State
----------------------------------------------------
 2     instance-00000001              running

[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 0a210425-6336-485c-bffb-8fe65bb23ea4 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 2071bf01-4c3e-475f-8f32-31a284b08f87 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 3dbd4281-b84c-439f-8675-9136a3acb34e vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 606fba3f-ee75-48c9-861e-2fb47e37d536 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 86e2818c-3c99-42db-bb04-3cb2ecce2d97 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id 99a6cbac-031a-4dbb-af22-82b737533e0b vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id b4c27619-b04a-49b3-ac43-814163ce2f49 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id bd8bacd8-be23-4301-821a-d4e63a267626 vm1
[root@seal17 ~(keystone_admin)]# nova interface-attach --port-id c19b0249-8a2f-42ca-affe-cb0027ac7b39 vm1
[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# virsh dumpxml 2 | grep mac
    <partition>/machine</partition>
    <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type>
      <mac address='fa:16:3e:3d:61:aa'/>
      <mac address='fa:16:3e:a5:f5:e9'/>
      <mac address='fa:16:3e:cb:c0:ee'/>
      <mac address='fa:16:3e:18:32:fc'/>
      <mac address='fa:16:3e:ec:19:c6'/>
      <mac address='fa:16:3e:22:a1:5c'/>
      <mac address='fa:16:3e:bb:cc:9c'/>
      <mac address='fa:16:3e:2f:0a:45'/>
      <mac address='fa:16:3e:88:a7:bb'/>
      <mac address='fa:16:3e:34:f5:49'/>
[root@seal17 ~(keystone_admin)]# 


[root@seal17 ~(keystone_admin)]# nova rebuild vm1 cirros
+-------------------+----------------------------------------------------------+
| Property          | Value                                                    |
+-------------------+----------------------------------------------------------+
| OS-DCF:diskConfig | MANUAL                                                   |
| accessIPv4        |                                                          |
| accessIPv6        |                                                          |
| adminPass         | 9Yj47tFLPXqP                                             |
| created           | 2016-02-12T13:01:36Z                                     |
| flavor            | m1.tiny (1)                                              |
| hostId            | f7da22d9da1e8258463a1e0c8fde861b2291968365e0784bd7a56c89 |
| id                | c09bb59d-964b-44ea-a544-66515e9a7b70                     |
| image             | cirros (313e7a28-d1c0-47ad-96af-419567167533)            |
| metadata          | {}                                                       |
| name              | vm1                                                      |
| net1 network      |                                                          |
| net2 network      |                                                          |
| net3 network      |                                                          |
| net4 network      |                                                          |
| net5 network      |                                                          |
| net6 network      |                                                          |
| net7 network      |                                                          |
| net8 network      |                                                          |
| net9 network      |                                                          |
| private network   | 10.0.0.3                                                 |
| progress          | 0                                                        |
| status            | REBUILD                                                  |
| tenant_id         | 23b5b63bfbf747a9a82faf414dcfc8ea                         |
| updated           | 2016-02-12T13:16:40Z                                     |
| user_id           | 1d7f335b6f2145db9be6ac8ad9ae59ea                         |
+-------------------+----------------------------------------------------------+
[root@seal17 ~(keystone_admin)]# nova list
+--------------------------------------+------+---------+------------------+-------------+------------------+
| ID                                   | Name | Status  | Task State       | Power State | Networks         |
+--------------------------------------+------+---------+------------------+-------------+------------------+
| c09bb59d-964b-44ea-a544-66515e9a7b70 | vm1  | REBUILD | rebuild_spawning | Running     | private=10.0.0.3 |
+--------------------------------------+------+---------+------------------+-------------+------------------+
[root@seal17 ~(keystone_admin)]# nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID                                   | Name | Status | Task State | Power State | Networks         |
+--------------------------------------+------+--------+------------+-------------+------------------+
| c09bb59d-964b-44ea-a544-66515e9a7b70 | vm1  | ACTIVE | -          | Running     | private=10.0.0.3 |
+--------------------------------------+------+--------+------------+-------------+------------------+
[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# 
[root@seal17 ~(keystone_admin)]# virsh list --all
 Id    Name                           State
----------------------------------------------------
 3     instance-00000001              running

[root@seal17 ~(keystone_admin)]# virsh dumpxml 3 | grep mac
    <partition>/machine</partition>
    <type arch='x86_64' machine='pc-i440fx-rhel7.2.0'>hvm</type>
      <mac address='fa:16:3e:3d:61:aa'/>
      <mac address='fa:16:3e:a5:f5:e9'/>
      <mac address='fa:16:3e:cb:c0:ee'/>
      <mac address='fa:16:3e:18:32:fc'/>
      <mac address='fa:16:3e:ec:19:c6'/>
      <mac address='fa:16:3e:22:a1:5c'/>
      <mac address='fa:16:3e:bb:cc:9c'/>
      <mac address='fa:16:3e:2f:0a:45'/>
      <mac address='fa:16:3e:88:a7:bb'/>
      <mac address='fa:16:3e:34:f5:49'/>
[root@seal17 ~(keystone_admin)]#

Comment 22 errata-xmlrpc 2016-02-18 16:09:21 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-0261.html


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