build network with specified port will not update device_id

Bug #1715040 reported by Xinran WANG
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mogan
Fix Released
Undecided
Zhenguo Niu

Bug Description

Now we support to create a server with the specified network or specified neutron port. But when we create a server with the specified neutron port, the port['device_id'] will not be updated.
And once the build network task failed, there is no operation to clean up port's info.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mogan (master)

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

Changed in mogan:
assignee: nobody → Xinran WANG (xinran)
status: New → In Progress
Changed in mogan:
assignee: Xinran WANG (xinran) → Zhenguo Niu (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

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

Changed in mogan:
assignee: Zhenguo Niu (niu-zglinux) → Xinran WANG (xinran)
Changed in mogan:
assignee: Xinran WANG (xinran) → Zhenguo Niu (niu-zglinux)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to mogan (master)

Reviewed: https://review.openstack.org/500668
Committed: https://git.openstack.org/cgit/openstack/mogan/commit/?id=2ba65aad823006a35af12e15128619d907164836
Submitter: Jenkins
Branch: master

commit 2ba65aad823006a35af12e15128619d907164836
Author: Zhenguo Niu <email address hidden>
Date: Fri Sep 8 09:19:34 2017 +0800

    Update port['device_id'] when creating server

    Co-Authored-By: Zhenguo Niu <email address hidden>

    Change-Id: Ia54f7a5121c33ab09874c35fba06adf7b622d20d
    Closes-Bug: #1715040

Changed in mogan:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/501940
Committed: https://git.openstack.org/cgit/openstack/mogan/commit/?id=1c50ceed0bc78b862fe711db7592af91c998cedc
Submitter: Jenkins
Branch: master

commit 1c50ceed0bc78b862fe711db7592af91c998cedc
Author: Zhenguo Niu <email address hidden>
Date: Fri Sep 8 11:52:20 2017 +0800

    Add preserve_on_delete to server nic object

    This field will indicate whether we should delete or unbind the
    port during server deletion or detaching interfaces.

    Change-Id: I25834a82b83806bf87b4c7006a8d33d56e2ce976
    Closes-Bug: #1715040

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

Other bug subscribers

Remote bug watches

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