CLI fails to report an error after creating a snapshot from instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Undecided
|
wangxiyuan |
Bug Description
Description of problem:
The CLI fails to declare an error and stuck with "Server snapshotting... 0" when a user tries to save a snapshot of an instance while his quota is too small.
Version-Release number of selected component (if applicable):
python-
python-
python-
openstack-
openstack-
How reproducible:
100%
Steps to Reproduce:
1. Edit /etc/glance/
2. openstack-service restart glance
3. Create a snapshot from instance via command line: 'nova image-create <instanceName> <snapName> --poll'
Actual results:
The CLI fails to declare an error and stuck with "Server snapshotting... 0"
Expected results:
ERROR should be appeared indicating that quota is too small
Additional info:
log
Changed in glance: | |
assignee: | wangxiyuan (wangxiyuan) → nobody |
Changed in python-novaclient: | |
assignee: | nobody → wangxiyuan (wangxiyuan) |
Changed in python-novaclient: | |
status: | New → In Progress |
Changed in nova: | |
assignee: | wangxiyuan (wangxiyuan) → nobody |
tags: | added: quotas snapshot |
Changed in nova: | |
assignee: | nobody → Narendra Chanchali (narench809) |
Changed in python-novaclient: | |
milestone: | none → 2.27.0 |
status: | Fix Committed → Fix Released |
--poll is a novaclient action. So IMO, This bug should fix in python-novaclient.
In novaclient, if image's status is not 'active' or 'error', it will try to get status forever. In your bug's situation, when quota is limited, the snapshoot will be deleted from 'queue' status. Will never satisfy the 'active' or 'error' status.
Or another way to fix it is change the glance behavior, such as: set the image's status to 'error' when quota is limited.
I think the first way is better.Because Nova sent message to Glance via API V1 which will be deprecated soon perhaps.