Can't delete a host using Physical Resource plugin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Blazar |
Fix Released
|
Medium
|
Pablo Andres Fuente |
Bug Description
When you try to delete a host previously created, you should pass the host_id as a parameter. If you pass the host_id, you get an error when the PR plugin is trying to get the servers of the host that you are trying to delete (https:/
/opt/stack/climate$ climate --debug host-create my_host
Starting new HTTP connection (1): 10.130.192.41
Starting new HTTP connection (1): 10.130.192.41
Created a new host:
+------
| Field | Value |
+------
| cpu_info | { |
| | "arch": "x86_64", |
| | "model": "Westmere", |
| | "vendor": "Intel", |
| | "features": [ |
| | "rdtscp", |
| | "x2apic", |
| | "xtpr", |
| | "tm2", |
| | "est", |
| | "vmx", |
| | "ds_cpl", |
| | "monitor", |
| | "pbe", |
| | "tm", |
| | "ht", |
| | "ss", |
| | "acpi", |
| | "ds", |
| | "vme" |
| | ], |
| | "topology": { |
| | "cores": 2, |
| | "threads": 2, |
| | "sockets": 1 |
| | } |
| | } |
| created_at | 2014-03-29 03:39:13.422971 |
| hypervisor_hostname | my_host |
| hypervisor_type | QEMU |
| hypervisor_version | 1000000 |
| id | 1 |
| local_gb | 142 |
| memory_mb | 3655 |
| status | |
| trust_id | eec1ca5b23e244f
| updated_at | |
| vcpus | 4 |
+------
/opt/stack/climate$ climate host-delete 1
Starting new HTTP connection (1): 10.130.192.41
Starting new HTTP connection (1): 10.130.192.41
ERROR: Host '1' not found!
/opt/stack/climate$ climate host-delete my_host
Starting new HTTP connection (1): 10.130.192.41
Starting new HTTP connection (1): 10.130.192.41
ERROR: Object with {'host_id': u'my_host'} not found
Changed in climate: | |
assignee: | nobody → Pablo Andres Fuente (pablo-a-fuente) |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in blazar: | |
milestone: | none → 0.1.1 |
Changed in blazar: | |
status: | Fix Committed → Fix Released |
This is my proposal.