Need raise exception when performing action on instance if compute service is down
Bug #1228804 reported by
ChangBo Guo(gcb)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Current compute api doesn't have precheck for compute service before performing action on instance . If the compute service isn't available, for example like the compute host is down. and stop/start instance will lead to keep instance' task_state with 'powering-
These actions include stop/start, pause/unpause suspend/resume
We need raise exception to report compute service is not available as below:
[root@guochbo-
ERROR: Compute service of guochbo-
tags: | added: api |
summary: |
- Need add precheck compute service before stop/start instance + Need add precheck compute service before performing action on instance |
summary: |
- Need add precheck compute service before performing action on instance + Need raise exception when performing action on instance if compute + service is down |
description: | updated |
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
This can be reproduced as follow steps:
1)nova show gcb_test_222 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- + ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- + 21T03:45: 52Z | STS:task_ state | None | SRV-ATTR: host | kvm-installer-222 | 4978-4ee9- af0e-d1e0d5db26 31) | 89a65a645d88d70 8b82745b4706361 d9ef18bf410 | SRV-ATTR: instance_ name | instance-00000038 | USG:launched_ at | 2013-09- 20T22:45: 53.555626 | SRV-ATTR: hypervisor_ hostname | kvm-installer-222 | f5f4-42ee- a5d1-f1dbcddab7 69 | USG:terminated_ at | None | a90387adcc7cf26 64 | 21T03:45: 49Z | 18cbebb56f70ebe d3 | volumes: volumes_ attached | [] | STS:power_ state | 1 | AZ:availability _zone | nova |
+------
| Property | Value |
+------
| status | ACTIVE |
| updated | 2013-09-
| OS-EXT-
| OS-EXT-
| key_name | None |
| image | cirros-Image (c2fdf54f-
| hostId | b605c007b2a5de3
| OS-EXT-STS:vm_state | active |
| OS-EXT-
| OS-SRV-
| OS-EXT-
| flavor | m1.tiny (1) |
| id | 7677f07e-
| security_groups | [{u'name': u'default'}] |
| OS-SRV-
| user_id | d02e0752613142d
| name | gcb_test_222 |
| created | 2013-09-
| tenant_id | 6db20e01ef6f42f
| OS-DCF:diskConfig | MANUAL |
| metadata | {} |
| os-extended-
| accessIPv4 | |
| accessIPv6 | |
| net1 network | 10.0.2.7 |
| progress | 0 |
| OS-EXT-
| OS-EXT-
| config_drive ...