resize should not require network of the instance has a project_id

Bug #1075215 reported by Jian Wen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Jian Wen

Bug Description

How to reproduce:
  Boot then resize:
   image_uuid=`glance image-list | grep "cirros-0.3.0-x86_64-uec " | awk '{print $2}'`
   instance_name=vm_$RANDOM

   id=`nova boot --flavor=1 --image=$image_uuid $instance_name | grep ' id ' | awk '{print $4}'`
   sleep 20
   nova resize $id 2

On the instance's host raises:
2012-11-06 00:15:45 ERROR nova.compute.manager [req-eb41f288-8667-4f3e-be45-6f0a8ca75ad8 demo demo] [instance: b268463c-dad8-48d7-bda7-4b66a0a9fee9] Network 1 could not be found.. Setting instance vm_state to ERROR

Jian Wen (wenjianhn)
Changed in nova:
assignee: nobody → Jian Wen (wenjianhn)
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/15434

Changed in nova:
status: New → In Progress
Revision history for this message
Vish Ishaya (vishvananda) wrote :

Jian: FYI you can skip your crazy grep by just passing in --image=cirros-0.3.0-x86_64-uec

Changed in nova:
importance: Undecided → Medium
tags: added: folsom-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/15434
Committed: http://github.com/openstack/nova/commit/2368eadcc8e87bdb0691b3d753d113d20a98aa18
Submitter: Jenkins
Branch: master

commit 2368eadcc8e87bdb0691b3d753d113d20a98aa18
Author: Jian Wen <email address hidden>
Date: Tue Nov 6 01:31:32 2012 +0800

    Corrects usage of db.api.network_get

    Sets project_only='allow_none' to get the network whose project_id
    is None or not.

    Fixes bug 1075215

    Change-Id: I80622b1f5ccf194b4810bd0560bd0cdb077370df

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Jian Wen (wenjianhn) wrote :

Thanks, Vish.

Thierry Carrez (ttx)
Changed in nova:
milestone: none → grizzly-1
status: Fix Committed → Fix Released
Revision history for this message
Vish Ishaya (vishvananda) wrote :

This depends on patches that change rpcapi and shouldn't be backported.

tags: removed: folsom-backport-potential
no longer affects: nova/folsom
Thierry Carrez (ttx)
Changed in nova:
milestone: grizzly-1 → 2013.1
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.