Connection_info is refreshed on reboot unintentionally

Bug #1722771 reported by Ildiko Vancsa
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Ildiko Vancsa
Ocata
Confirmed
Medium
Unassigned
Pike
Confirmed
Medium
Unassigned

Bug Description

_get_instance_block_device_info is called without explicitly specifying 'bdms' which is an optional parameter here: https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L3044

Function definition: https://github.com/openstack/nova/blob/master/nova/compute/manager.py#L1659

This results in triggering connection_info refresh, which is unnecessary and also causes problems with implementing the new style attachment flow.

Related logs: http://logs.openstack.org/31/511031/1/check/gate-nova-tox-functional-ubuntu-xenial/3744c55/console.html#_2017-10-11_00_35_23_981104

Tags: reboot
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/511209

Changed in nova:
assignee: nobody → Ildiko Vancsa (ildiko-vancsa)
status: New → In Progress
Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → Medium
tags: added: reboot
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit 0184bb4798dd4660182062fe4099a07e63dd90e8
Author: Ildiko Vancsa <email address hidden>
Date: Wed Oct 11 12:56:02 2017 +0200

    Fix connection info refresh for reboot

    The 'bdms' parameter is not referenced correctly in
    _get_instance_block_device_info in compute/manager.py which causes
    the function to call down to the bdm to refresh the connection_info
    which is not supposed to happen during reboot.

    The patch fixes to use the optional parameter correctly.

    Fixes-Bug: #1722771
    Change-Id: I5545d0807626b353ca723ab1f125fd1f94bcef2e

Changed in nova:
status: In Progress → Fix Released
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.