Bug 1020226 - nova rebuild $VM_ID $IMG_ID --poll waits forever when VM SHUTOFF
Summary: nova rebuild $VM_ID $IMG_ID --poll waits forever when VM SHUTOFF
Keywords:
Status: CLOSED EOL
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient
Version: 3.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 6.0 (Juno)
Assignee: Jakub Ruzicka
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-17 10:22 UTC by Jaroslav Henner
Modified: 2019-09-09 17:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-16 14:59:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Henner 2013-10-17 10:22:16 UTC
Description of problem:
When VM is in SHUTOFF state and one tries to rebuild it, the client waits for ACTIVE. It should wait for transition to REBUILIDING and then 
 * probably for transition from REBUILIDING
 * or to transition to previous state

Version-Release number of selected component (if applicable):
python-novaclient-2.13.0-2.el6ost.noarch

How reproducible:
always

Steps to Reproduce:
1. nova boot
2. ssh to it, halt, wait for SHUTOFF
3. nova rebuild --poll $VM_ID $IMG_ID

Actual results:
Instance rebuilding... 0%
Traceback (most recent call last):
  File "/usr/bin/nova", line 9, in <module>
    load_entry_point('python-novaclient==2.13.0', 'console_scripts', 'nova')()
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 765, in main
    OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:]))
  File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 701, in main
    args.func(self.cs, args)
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 1008, in do_rebuild
    _poll_for_status(cs.servers.get, server.id, 'rebuilding', ['active'])
  File "/usr/lib/python2.7/site-packages/novaclient/v1_1/shell.py", line 370, in _poll_for_status
    time.sleep(poll_period)
KeyboardInterrupt


Expected results:
After rebuild complete instance either in ACTIVE or in previous state. Client exits.

Additional info:

Comment 5 Sahid Ferdjaoui 2015-12-16 14:59:40 UTC
This issue has been reported on a EOL versio n of OSP. Please feel free to reopen whether you think this issue is still happening on current release.

Thanks,
s.


Note You need to log in before you can comment on or make changes to this bug.