Cannot delete instances using "nova delete <instance id>"
I'm creating instances on a kilo openstack release using the kilo ubuntu installation guide from openstack. One controller, one compute and one network node.
I can launch an instance from the dashboard, and then the instance have an ERROR status:
~# nova show 0dadc0d0-cf5e-492f-8896-deb907d80075 | grep status
| status | ERROR |
Since the image is still shown while doing a nova list, I'm trying to delete them.
~# nova list
+--------------------------------------+-----------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-----------+--------+------------+-------------+----------+
| 0dadc0d0-cf5e-492f-8896-deb907d80075 | example00 | ERROR | - | NOSTATE | |
| 19937fde-3a8a-410f-8b06-9c5fb3fc686c | example01 | ERROR | - | NOSTATE | |
| d3ab4faf-e888-4b4c-86a4-63e09248752b | example03 | ERROR | - | NOSTATE | |
| 38e7b547-fd5f-4b45-b0ab-2910b01e3e10 | example04 | ERROR | - | NOSTATE | |
+--------------------------------------+-----------+--------+------------+-------------+----------+
~# nova delete 0dadc0d0-cf5e-492f-8896-deb907d80075
Request to delete server 0dadc0d0-cf5e-492f-8896-deb907d80075 has been accepted.
But the instance is still there after some minutes or hours. The nova show is giving me the following output:
| created | 2015-11-23T19:51:24Z |
| fault | {"message": "Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=0dadc0d0-cf5e-492f-8896-deb907d80075", "code": 500, "details": " File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 349, in decorated_function |
| | return function(self, context, *args, **kwargs) |
| | File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2768, in terminate_instance |
| | do_terminate_instance(instance, bdms) |
| | File \"/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py\", line 445, in inner |
| | return f(*args, **kwargs) |
| | File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2766, in do_terminate_instance |
| | self._set_instance_error_state(context, instance) |
| | File \"/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py\", line 85, in __exit__
What's the component I shall check for configuration? oviously is related with the line with
Unable to establish connection to http://127.0.0.1:9696/v2.0/ports.json?device_id=0dadc0d0-cf5e-492f-8896-deb907d80075
Is this for nova?
Thanks in advance.