Error status in the server created via Openstack Api's

asked 2016-12-27 01:09:04 -0500

dvigneshwer gravatar image

updated 2017-01-16 15:16:40 -0500

rbowen gravatar image

Post Request :

curl -g -i -X POST http://172.25.1.35:8774/v2/f59cdfc4eac44febb09e607866a379e4/servers -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: 6a262f967d184a0683b0fdd015f1f1f9" -d '{"server": {"name": "viki_test_instance", "imageRef": "76d560bd-9a71-48ad-8037-c6e9cd7c449b", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "214a5016-c2e1-47e2-aec3-fcdcdec9e939"}], "security_groups": [{"name": "default"}]}}'

Response

HTTP/1.1 202 Accepted
Content-Length: 438
Location: http://172.25.1.35:8774/v2/f59cdfc4eac44febb09e607866a379e4/servers/290ddcd6-ee53-4dfa-af3b-87901ee23b22
Content-Type: application/json
X-Compute-Request-Id: req-92a46827-1200-4084-bc4e-7c74a9d6f671
Date: Tue, 27 Dec 2016 06:19:10 GMT

{"server": {"security_groups": [{"name": "default"}], "OS-DCF:diskConfig": "MANUAL", "id": "290ddcd6-ee53-4dfa-af3b-87901ee23b22", "links": [{"href": "http://172.25.1.35:8774/v2/f59cdfc4eac44febb09e607866a379e4/servers/290ddcd6-ee53-4dfa-af3b-87901ee23b22", "rel": "self"}, {"href": "http://172.25.1.35:8774/f59cdfc4eac44febb09e607866a379e4/servers/290ddcd6-ee53-4dfa-af3b-87901ee23b22", "rel": "bookmark"}], "adminPass": "8vCSQzmf6uwu"}}

openstack server list command output

--------------------------------------+-------------------------+--------+----------------------------------+
| ID                                   | Name                    | Status | Networks                         |
+--------------------------------------+-------------------------+--------+----------------------------------+
| 290ddcd6-ee53-4dfa-af3b-87901ee23b22 | viki_test_instance      | ERROR  |                                  |

nova-api.log

2016-12-27 01:19:09.199 20414 WARNING nova.image.glance [req-92a46827-1200-4084-bc4e-7c74a9d6f671 e4121c85c5104f05be55d2eedd305701 f59cdfc4eac44febb09e607866a379e4 - - -] No protocol specified in for api_server 'http://172.25.1.35:9292', please update [glance] api_servers with fully qualified url including scheme (http / https)

2016-12-27 01:19:10.381 20414 INFO nova.osapi_compute.wsgi.server [req-92a46827-1200-4084-bc4e-7c74a9d6f671 e4121c85c5104f05be55d2eedd305701 f59cdfc4eac44febb09e607866a379e4 - - -] 172.25.2.57 "POST /v2/f59cdfc4eac44febb09e607866a379e4/servers HTTP/1.1" status: 202 len: 733 time: 1.3330271

2016-12-27 01:19:10.548 20415 INFO nova.osapi_compute.wsgi.server [req-bf42318a-85c8-4c87-bf47-75fdeb08133c 37354b5b4510427990b828af573e0a63 1f64101adc25473091aec73c70521a44 - - -] 172.25.1.47 "GET /v2/1f64101adc25473091aec73c70521a44/servers/detail?all_tenants=True&changes-since=2016-12-27T06%3A09%3A10.363098%2B00%3A00&host=compute47.ird.mu-sigma.com HTTP/1.1" status: 200 len: 211 time: 0.1795661

2016-12-27 01:19:15.269 20414 INFO nova.api.openstack.wsgi [req-eda29e9e-c9d7-4213-bf27-4745984c5572 e2b3403372df4e5080e02678c3bc9122 1f64101adc25473091aec73c70521a44 - - -] HTTP exception thrown: No instances found for any event

2016-12-27 01:19:15.270 20414 INFO nova.osapi_compute.wsgi.server [req-eda29e9e-c9d7-4213-bf27-4745984c5572 e2b3403372df4e5080e02678c3bc9122 1f64101adc25473091aec73c70521a44 - - -] 172.25.1.35 "POST /v2/1f64101adc25473091aec73c70521a44/os-server-external-events HTTP/1.1" status: 404 len: 296 time: 0.0535219

I am able to create the server via the horizon dashboard and openstack cli.

Also asked in http://stackoverflow.com/questions/41...

edit retag flag offensive close merge delete