*** This bug is a duplicate of bug 1811235 ***
    https://bugs.launchpad.net/bugs/1811235

** This bug is no longer a duplicate of bug 1551703
   Resize a vm that vm_state is "stopped"  failureļ¼Œ vm's task_state rollback to 
"active"
** This bug has been marked a duplicate of bug 1811235
   instance's vm-state becomes error when cold-migrate instance to same host  
failed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1475112

Title:
  Instance should return to its initial state instead of ACTIVE when
  resize fails

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  When instance resize fails, instead of return to its inital vm_state,
  it is set to ACTIVE:

  Creating an instance with flavor 2:

  root@kevin-dev:/opt/stack# nova boot --flavor 2 --nic 
net-id=13854918-10d5-466e-b576-1c4c9689f357 --image 
5e992b08-d772-44d7-90bf-0b0d9eaa2fcd test1
  
+--------------------------------------+----------------------------------------------------------------+
  | Property                             | Value                                
                          |
  
+--------------------------------------+----------------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                               
                          |
  | OS-EXT-AZ:availability_zone          | nova                                 
                          |
  | OS-EXT-SRV-ATTR:host                 | -                                    
                          |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | -                                    
                          |
  | OS-EXT-SRV-ATTR:instance_name        | instance-0000003a                    
                          |
  | OS-EXT-STS:power_state               | 0                                    
                          |
  | OS-EXT-STS:task_state                | scheduling                           
                          |
  | OS-EXT-STS:vm_state                  | building                             
                          |
  | OS-SRV-USG:launched_at               | -                                    
                          |
  | OS-SRV-USG:terminated_at             | -                                    
                          |
  | accessIPv4                           |                                      
                          |
  | accessIPv6                           |                                      
                          |
  | adminPass                            | wFUucx56wSEZ                         
                          |
  | config_drive                         |                                      
                          |
  | created                              | 2015-07-16T03:19:45Z                 
                          |
  | flavor                               | m1.small (2)                         
                          |
  | hostId                               |                                      
                          |
  | id                                   | 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 
                          |
  | image                                | cirros-0.3.4-x86_64-uec 
(5e992b08-d772-44d7-90bf-0b0d9eaa2fcd) |
  | key_name                             | -                                    
                          |
  | metadata                             | {}                                   
                          |
  | name                                 | test1                                
                          |
  | os-extended-volumes:volumes_attached | []                                   
                          |
  | progress                             | 0                                    
                          |
  | security_groups                      | default                              
                          |
  | status                               | BUILD                                
                          |
  | tenant_id                            | 939300520ec34fea975ef197c8fd61b8     
                          |
  | updated                              | 2015-07-16T03:19:45Z                 
                          |
  | user_id                              | 44c538801d8f46fa9b9b15d7d7986bef     
                          |
  
+--------------------------------------+----------------------------------------------------------------+
  root@kevin-dev:/opt/stack# nova list
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+
  | ID                                   | Name  | Status | Task State | Power 
State | Networks                                                |
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+
  | 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 | test1 | BUILD  | spawning   | 
NOSTATE     | private=10.0.0.40, fd89:f61e:48ad:0:f816:3eff:fe9b:6a35 |
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+

  stop the instance:

  root@kevin-dev:/opt/stack# nova stop 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4
  Request to stop server 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 has been accepted.

  root@kevin-dev:/opt/stack# nova list
  
+--------------------------------------+-------+---------+------------+-------------+---------------------------------------------------------+
  | ID                                   | Name  | Status  | Task State | Power 
State | Networks                                                |
  
+--------------------------------------+-------+---------+------------+-------------+---------------------------------------------------------+
  | 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 | test1 | SHUTOFF | -          | 
Shutdown    | private=10.0.0.40, fd89:f61e:48ad:0:f816:3eff:fe9b:6a35 |
  
+--------------------------------------+-------+---------+------------+-------------+---------------------------------------------------------+

  resize the instance to a smaller flavor 1

  root@kevin-dev:/opt/stack# nova resize 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 1
  root@kevin-dev:/opt/stack# nova list
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+
  | ID                                   | Name  | Status | Task State | Power 
State | Networks                                                |
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+
  | 0e74eff9-7a25-4a9d-b894-cf4db80dc1c4 | test1 | ACTIVE | -          | 
Shutdown    | private=10.0.0.40, fd89:f61e:48ad:0:f816:3eff:fe9b:6a35 |
  
+--------------------------------------+-------+--------+------------+-------------+---------------------------------------------------------+

  The action fails, but the VM state is set to ACTIVE

  ERROR LOG:

  2015-07-16 11:22:00.706 25351 ERROR oslo_messaging.rpc.dispatcher 
[req-367cb854-9703-47c2-a410-f42ebf5a693b 44c538801d8f46fa9b9b15d7d7986bef 
939300520ec34fea975ef197c8fd61b8 - - -] Exception during message handling: 
Resize error: Unable to resize disk down.
  2015-07-16 11:22:00.706 25351 ERROR oslo_messaging.rpc.dispatcher Traceback 
(most recent call last):

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1475112/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to