Nova send wrong information when there are several networks which have same name and VM uses more than one of them
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Medium
|
Stephen Finucane | ||
neutron |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Description
===========
Nova send wrong information when there are
several networks which have same name and
VM uses more than one of them
Steps to reproduce
==================
1. Create two networks which have same name
2. Create VM with the networks created in 1st step.
3. Check the VM using "nova show <VM>"
Expected result
===============
...
| tenant_id | 92f3ea23c5b84fd
| testnet1 network | 192.168.0.12 |
| testnet1 network | 192.168.1.4 |
| updated | 2017-07-
...
Actual result
=============
...
| tenant_id | 92f3ea23c5b84fd
| testnet1 network | 192.168.0.12, 192.168.1.4 |
| updated | 2017-07-
...
Environment
===========
1. Openstack Version : I tested this using Mitaka & Ocata
2. Network : Neutron with LinuxBridge
tags: | added: api |
Changed in nova: | |
assignee: | nobody → Jonghan (forhim-park) |
status: | Confirmed → In Progress |
Changed in neutron: | |
status: | New → Triaged |
Changed in neutron: | |
status: | Triaged → Won't Fix |
Changed in nova: | |
assignee: | Jonghan (forhim-park) → Maciej Kucia (maciejkucia) |
Changed in nova: | |
assignee: | Maciej Kucia (maciejkucia) → Matt Riedemann (mriedem) |
Changed in nova: | |
importance: | Undecided → Medium |
assignee: | Matt Riedemann (mriedem) → Maciej Kucia (maciejkucia) |
Changed in nova: | |
assignee: | Maciej Kucia (maciejkucia) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Maciej Kucia (maciejkucia) → Krzysztof Opasiak (kopasiak) |
From the debug messages, below part are releated to this problem.
# nova --debug show testvm 10.251. 214.128: 8774/v2/ 99324deb5cbc422 5bcf461cb5263f0 73/servers/ dff73b1e- c52d-4eb0- b2bf-0aac6a323a 8e -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}8c47607ea f5f705b9b6803c9 c1c430601dcea72 d" :401) "GET /v2/99324deb5cb c4225bcf461cb52 63f073/ servers/ dff73b1e- c52d-4eb0- b2bf-0aac6a323a 8e HTTP/1.1" 200 2101 Request- Id: req-2ca57fe2- c873-44e6- a09b-3be7f183a0 e7 Date: Sat, 22 Jul 2017 06:51:58 GMT Connection: keep-alive 21T10:07: 05Z", "hostId": "b5b56d2e7c70f5 0d4f72d2d071592 b35949398832f1b bb3c3cca43f8" , "OS-EXT- SRV-ATTR: host": "dellnova1", "addresses": {"testnet1": [{"OS-EXT- IPS-MAC: mac_addr" : "fa:16: 3e:65:83: 12", "version": 4, "addr": "192.168.0.1", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT- IPS-MAC: mac_addr" : "fa:16: 3e:7c:67: 72", "version": 4, "addr": "192.168.0.1", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT- IPS-MAC: mac_addr" : "fa:16: 3e:12:5c: 47", "version": 4, "addr": "192.168.0.1", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT- IPS-MAC: mac_addr" : "fa:16: 3e:7e:0b: 64", "version": 4, "addr": "192.168.0.1", "OS-EXT-IPS:type": "fixed"}]}, "links": [{"href": "http:// 10.251. 214.128: 8774/v2/ 99324deb5cbc422 5bcf461cb5263f0 73/servers/ dff73b1e- c52d-4eb0- b2bf-0aac6a323a 8e", "rel": "self"}, {"href": "http:// 10.251. 214.128: 8774/99324deb5c bc4225bcf461cb5 263f073/ servers/ dff73b1e- c52d-4eb0- b2bf-0aac6a323a 8e", "rel": "bookmark"}], "key_name": null, "image": {"id": "6479dc43- c7b0-4b4b- bcf6-7f566aec35 35", "links": [{"href": "http:// 10.251. 214.128: 8774/99324deb5c bc4225bcf461cb5 263f073/ images/ 6479dc43- c7b0-4b4b- bcf6-7f566aec35 35", "rel": "bookmark"}]}, "OS-EXT- STS:task_ state": null, "OS-EXT- STS:vm_ state": "active", "OS-EXT- SRV-ATTR: instance_ name": "testvm", "OS-SRV- USG:launched_ at": "2017-07- 21T10:07: 05.000000" , "OS-EXT- SRV-ATTR: hypervisor_ hostname" : "dellnova1", "flavor": {"id": "1", "links": [{"href": "http:// 10.251. 214.128: 8774/99324deb5c bc4225bcf461cb5 263f073/ flavors/ 1", "rel": "bookmark"}]}, "id": "dff73b1e- c52d-4eb0- b2bf-0aac6a323a 8e", "security_groups": [{"name": "default"}, {"name": "default"}, {"name": "default"}, {"name": "default"}], "OS-SRV- USG:terminated_ at": null, "OS-EXT- AZ:availability _zone": "nova", "user_id": "419724e2c52a46 2dbb9efc45db9eb c14", "name": "testvm", "created": "2017-07- 21T10:06: 54Z", "tenant_id": "99324deb5cbc42 25bcf461cb5263f 073", "OS-DCF: diskConfig" : "AUTO", "os-extended- volumes: volumes_ attached" : [], "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT- STS:power_ state": 1, "config_drive": "", "metadata": {}}}
.......
DEBUG (session:248) REQ: curl -g -i -X GET http://
DEBUG (connectionpool
DEBUG (session:277) RESP: [200] Content-Length: 2101 Content-Type: application/json X-Compute-
RESP BODY: {"server": {"status": "ACTIVE", "updated": "2017-07-
.......
Let's isolate JSON data.
"addresses": { IPS-MAC: mac_addr" : "fa:16: 3e:65:83: 12", "version": 4, "addr": "192.168.0.12", "OS-EXT-IPS:type": "fixed"}, IPS-MAC: mac_addr" : "fa:16: 3e:7c:67: 72", "version": 4, "addr": "192.168.1.4", "OS-EXT-IPS:type": "fixed"}
"testnet1":
[
{"OS-EXT-
{"OS-EXT-
]
}