Impossible attach detached port to another instance

Bug #1572593 reported by Sergey Kraynev
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Timofey Durakov
Mitaka
Fix Released
High
Matt Riedemann
OpenStack Heat
Invalid
High
Unassigned
neutron
Invalid
Undecided
Unassigned

Bug Description

The follow scenario leads to error:
 - create independent port in neutron
 - boot VM in nova
 - attach port to VM via nova interface-attach. As result dns_name of port will be updated and port be attached to VM
 - detach port from VM via nova interface-detach. As result port will be detached, BUT dns_name will be still as name of VM.

if you try to attach this port to another VM you will get error, that it's not possible to attach port.

The same issue happens for Heat stack, when we have VM+port and execute update replace for Server.

Revision history for this message
Sergey Kraynev (skraynev) wrote :

This feature was added in mitaka-3, so if we decide to fix it in N1, we need to backport it.

description: updated
Changed in heat:
milestone: none → newton-1
tags: added: mitaka-backport-potential
Changed in heat:
importance: Undecided → High
Revision history for this message
Sergey Kraynev (skraynev) wrote :

I have added it to nova and neutron, because issue is related with feature, which affects both projects.

Revision history for this message
Timofey Durakov (tdurakov) wrote :

This is Nova issue.

Changed in nova:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Timofey Durakov (tdurakov)
Changed in heat:
status: New → Incomplete
Changed in neutron:
status: New → Invalid
Changed in heat:
status: Incomplete → Invalid
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

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

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

Reviewed: https://review.openstack.org/308389
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=fc66e7eb411eb8e99767c062ab8d0263738d5558
Submitter: Jenkins
Branch: master

commit fc66e7eb411eb8e99767c062ab8d0263738d5558
Author: Timofey Durakov <email address hidden>
Date: Wed Apr 20 17:58:23 2016 +0300

    Clean port dns_name in case of port detach

    In case of port detach dns_name should be also
    updated in Neutron

    Change-Id: I65edb33b955a91d1701fc91cb9fae0a5f26d4e46
    Closes-Bug: #1572593

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Richard Theis (rtheis) wrote :

This fix may have broken networking-ovn. Please see https://bugs.launchpad.net/networking-ovn/+bug/1575195 for details.

Revision history for this message
Matt Riedemann (mriedem) wrote :

If we backport the fix for this in nova we also have to backport the fix for the bug that it introduced:

https://review.openstack.org/#/c/310474/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/310489

Revision history for this message
bailin.zhang (bailin-zhang) wrote :

https://bugs.launchpad.net/nova/+bug/1553889 is similar with this bug.
Not so simply,I think we can not clear dns_name at detached-interface.
the dns_name of port should be retained ,when it was assigned by the user.

At the doc: http://docs.openstack.org/mitaka/networking-guide/adv-config-dns.html
"Instead of having the Compute service create the port for the instance, the user might have created it and assigned a value to its dns_name attribute. In this case, the value assigned to the dns_name attribute must be equal to the value that Compute service will assign to the instance’s hostname, in this example my-vm. Otherwise, the instance boot will fail"

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/nova 14.0.0.0b1

This issue was fixed in the openstack/nova 14.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/mitaka)

Reviewed: https://review.openstack.org/310489
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=66334ed7b52cd1bb21e507ea5da384cefcadc138
Submitter: Jenkins
Branch: stable/mitaka

commit 66334ed7b52cd1bb21e507ea5da384cefcadc138
Author: Timofey Durakov <email address hidden>
Date: Wed Apr 20 17:58:23 2016 +0300

    Clean port dns_name in case of port detach

    In case of port detach dns_name should be also
    updated in Neutron

    Change-Id: I65edb33b955a91d1701fc91cb9fae0a5f26d4e46
    Closes-Bug: #1572593
    (cherry picked from commit fc66e7eb411eb8e99767c062ab8d0263738d5558)

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/nova 13.1.0

This issue was fixed in the openstack/nova 13.1.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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