Hi,

I've followed the instructions from this blog (
http://blog.oddbit.com/2015/02/11/installing-novadocker-with-devstack/)  to
install nova-docker driver in Devstack.

Docker in itself works fine and I'm able to pull images and create glance
image using the commands mentioned in the above link (status of the docker
image in glance is *active* after creation). However, I'm not able to
successfully boot the image from glance. "$ nova list" shows the "status"
field marked as ERROR and "power state" marked as NOSTATE for the docker
image I'm trying to boot.

Surprisingly, I couldn't find "nova-compute" service, when I tried to list
nova services.

arun@ubuntu:~/devstack$ nova service-list
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host   | Zone     | Status  | State | Updated_at
                | Disabled Reason |
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-conductor   | ubuntu | internal | enabled | up    |
2015-03-25T23:21:30.000000 | -               |
| 2  | nova-cert        | ubuntu | internal | enabled | up    |
2015-03-25T23:21:36.000000 | -               |
| 3  | nova-scheduler   | ubuntu | internal | enabled | up    |
2015-03-25T23:21:30.000000 | -               |
| 4  | nova-consoleauth | ubuntu | internal | enabled | up    |
2015-03-25T23:21:28.000000 | -               |
+----+------------------+--------+----------+---------+-------+----------------------------+-----------------+

I couldn't run even the regular cirros images as a result. I'm not sure
what's wrong with my nova configuration after installing docker driver.

I have attached three files: local.conf, nova.conf, and nova-boot-debug.txt
(which contains the request-response messages from API calls to boot the
image).

I would really appreciate any assistance to fix this issue.

Thanks.


---
Regards​,
Arun Adiththan
arun@ubuntu:~/devstack$ nova --debug boot --image "ubuntu" --flavor 1 test0
REQ: curl -i 'http://172.16.168.142:5000/v2.0/tokens' -X POST -H "Accept: 
application/json" -H "Content-Type: application/json" -H "User-Agent: 
python-novaclient" -d '{"auth": {"tenantName": "admin", "passwordCredentials": 
{"username": "admin", "password": 
"{SHA1}1f40acbeaf410200b6aed57cb8034a9caea2cc36"}}}'
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:00 GMT', 
'vary': 'X-Auth-Token', 'content-length': '4288', 'content-type': 
'application/json', 'server': 'Apache/2.4.7 (Ubuntu)'})
RESP BODY: {"access": {"token": {"issued_at": "2015-03-25T23:17:00.972104", 
"expires": "2015-03-26T00:17:00Z", "id": 
"{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3", "tenant": {"enabled": true, 
"description": null, "name": "admin", "id": 
"5b64493a6198480c8f981f2c98a856c3"}, "audit_ids": ["tq4OSnWGSZaELQPrXjadog"]}, 
"serviceCatalog": [{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8774/v2.1/5b64493a6198480c8f981f2c98a856c3";, "region": 
"RegionOne", "publicURL": 
"http://172.16.168.142:8774/v2.1/5b64493a6198480c8f981f2c98a856c3";, 
"internalURL": 
"http://172.16.168.142:8774/v2.1/5b64493a6198480c8f981f2c98a856c3";, "id": 
"789dbcaa726f48128430449933db10a7"}], "type": "computev21", "name": "novav21"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3";, "region": 
"RegionOne", "publicURL": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3";, 
"internalURL": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3";, "id": 
"371c82b82cb84bf0b3b4c467919e9573"}], "type": "compute", "name": "nova"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:9696/";, "region": "RegionOne", "publicURL": 
"http://172.16.168.142:9696/";, "internalURL": "http://172.16.168.142:9696/";, 
"id": "09d6a87179bb4214b7791fbf0e142a22"}], "type": "network", "name": 
"neutron"}, {"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8776/v2/5b64493a6198480c8f981f2c98a856c3";, "region": 
"RegionOne", "publicURL": 
"http://172.16.168.142:8776/v2/5b64493a6198480c8f981f2c98a856c3";, 
"internalURL": 
"http://172.16.168.142:8776/v2/5b64493a6198480c8f981f2c98a856c3";, "id": 
"c6733c269ceb48e8a37e59bfe8d7d808"}], "type": "volumev2", "name": "cinderv2"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:3333";, "region": "RegionOne", "publicURL": 
"http://172.16.168.142:3333";, "internalURL": "http://172.16.168.142:3333";, 
"id": "04918edfcffa4cbb8a5a22018a9d0a1a"}], "type": "s3", "name": "s3"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:9292";, "region": "RegionOne", "publicURL": 
"http://172.16.168.142:9292";, "internalURL": "http://172.16.168.142:9292";, 
"id": "1169b956ae8342b9b50a6dca7118ca47"}], "type": "image", "name": "glance"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8000/v1";, "region": "RegionOne", "publicURL": 
"http://172.16.168.142:8000/v1";, "internalURL": 
"http://172.16.168.142:8000/v1";, "id": "25da46fe8eb54101b076796587f08661"}], 
"type": "cloudformation", "name": "heat-cfn"}, {"endpoints_links": [], 
"endpoints": [{"adminURL": 
"http://172.16.168.142:8776/v1/5b64493a6198480c8f981f2c98a856c3";, "region": 
"RegionOne", "publicURL": 
"http://172.16.168.142:8776/v1/5b64493a6198480c8f981f2c98a856c3";, 
"internalURL": 
"http://172.16.168.142:8776/v1/5b64493a6198480c8f981f2c98a856c3";, "id": 
"030b977e3d344407ac700ab694968ec9"}], "type": "volume", "name": "cinder"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8773/services/Admin";, "region": "RegionOne", 
"publicURL": "http://172.16.168.142:8773/services/Cloud";, "internalURL": 
"http://172.16.168.142:8773/services/Cloud";, "id": 
"3379921febe946c6818ada1d00f14892"}], "type": "ec2", "name": "ec2"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:8004/v1/5b64493a6198480c8f981f2c98a856c3";, "region": 
"RegionOne", "publicURL": 
"http://172.16.168.142:8004/v1/5b64493a6198480c8f981f2c98a856c3";, 
"internalURL": 
"http://172.16.168.142:8004/v1/5b64493a6198480c8f981f2c98a856c3";, "id": 
"78d7b702e1164e2a84f3d12399513fa0"}], "type": "orchestration", "name": "heat"}, 
{"endpoints_links": [], "endpoints": [{"adminURL": 
"http://172.16.168.142:35357/v2.0";, "region": "RegionOne", "publicURL": 
"http://172.16.168.142:5000/v2.0";, "internalURL": 
"http://172.16.168.142:5000/v2.0";, "id": "13cbdf61f3cc41189d2fe8b1737c73e0"}], 
"type": "identity", "name": "keystone"}], "user": {"username": "admin", 
"roles_links": [], "id": "267fb0f1ca7f4b868fcedad8a8414ed7", "roles": [{"name": 
"_member_"}, {"name": "heat_stack_owner"}, {"name": "admin"}], "name": 
"admin"}, "metadata": {"is_admin": 0, "roles": 
["9fe2ff9ee4384b1894a90878d3e92bab", "cb2e1b7adce0425aab2254903a9cf813", 
"0e263e0e5506416d92f4dd01c9ca8bfb"]}}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images' -X GET 
-H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:01 GMT', 
'content-length': '2190', 'content-type': 'application/json', 
'x-compute-request-id': 'req-09ea4fae-fdd3-4d6c-839c-e5baaa32afc9'})
RESP BODY: {"images": [{"id": "4bbd19dc-7e04-4523-8429-8139005f6015", "links": 
[{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": 
"ubuntu"}, {"id": "0139a508-ab78-48f0-b40a-0c387d681369", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/0139a508-ab78-48f0-b40a-0c387d681369";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/0139a508-ab78-48f0-b40a-0c387d681369";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/0139a508-ab78-48f0-b40a-0c387d681369";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": 
"cirros-0.3.2-x86_64-uec"}, {"id": "00d16100-fe47-4618-a71c-71177303a6dd", 
"links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/00d16100-fe47-4618-a71c-71177303a6dd";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/00d16100-fe47-4618-a71c-71177303a6dd";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/00d16100-fe47-4618-a71c-71177303a6dd";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": 
"cirros-0.3.2-x86_64-uec-ramdisk"}, {"id": 
"be9dcba3-5d96-4175-822b-14b88f9daedd", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/be9dcba3-5d96-4175-822b-14b88f9daedd";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/be9dcba3-5d96-4175-822b-14b88f9daedd";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/be9dcba3-5d96-4175-822b-14b88f9daedd";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": 
"cirros-0.3.2-x86_64-uec-kernel"}]}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015'
 -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:02 GMT', 
'content-length': '722', 'content-type': 'application/json', 
'x-compute-request-id': 'req-ef53ba6c-36da-4d88-81f2-4a5834d623a2'})
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2015-03-25T23:11:56Z", 
"name": "ubuntu", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": 
"2015-03-25T23:11:40Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": 
{}, "id": "4bbd19dc-7e04-4523-8429-8139005f6015", "OS-EXT-IMG-SIZE:size": 
197419008}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/flavors/1' -X 
GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:02 GMT', 
'content-length': '426', 'content-type': 'application/json', 
'x-compute-request-id': 'req-8b972d9e-7e06-48d0-a27f-33eb358f49f2'})
RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/flavors/1";, 
"rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/flavors/1";, "rel": 
"bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, 
"swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, 
"OS-FLV-EXT-DATA:ephemeral": 0, "disk": 1, "id": "1"}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/servers' -X 
POST -H "Accept: application/json" -H "Content-Type: application/json" -H 
"User-Agent: python-novaclient" -H "X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3" -d '{"server": {"min_count": 1, 
"flavorRef": "1", "name": "test0", "imageRef": 
"4bbd19dc-7e04-4523-8429-8139005f6015", "max_count": 1}}'
RESP: [202] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:03 GMT', 
'content-length': '444', 'content-type': 'application/json', 'location': 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4',
 'x-compute-request-id': 'req-54c583c0-1612-4a01-b9e4-09844ae9c176'})
RESP BODY: {"server": {"links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4";,
 "rel": "bookmark"}], "OS-DCF:diskConfig": "MANUAL", "id": 
"5d6e92f7-3022-4185-b78c-e35b0b97afc4", "security_groups": [{"name": 
"default"}], "adminPass": "dQKsBa5sCqR7"}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4'
 -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:03 GMT', 
'content-length': '1432', 'content-type': 'application/json', 
'x-compute-request-id': 'req-32fe4698-5c46-4bc8-ac52-851cedc22e10'})
RESP BODY: {"server": {"OS-EXT-STS:task_state": "scheduling", "addresses": {}, 
"links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/servers/5d6e92f7-3022-4185-b78c-e35b0b97afc4";,
 "rel": "bookmark"}], "image": {"id": "4bbd19dc-7e04-4523-8429-8139005f6015", 
"links": [{"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "bookmark"}]}, "OS-EXT-STS:vm_state": "building", 
"OS-EXT-SRV-ATTR:instance_name": "instance-00000002", "OS-SRV-USG:launched_at": 
null, "flavor": {"id": "1", "links": [{"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/flavors/1";, "rel": 
"bookmark"}]}, "id": "5d6e92f7-3022-4185-b78c-e35b0b97afc4", "user_id": 
"267fb0f1ca7f4b868fcedad8a8414ed7", "OS-DCF:diskConfig": "MANUAL", 
"accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 0, 
"OS-EXT-AZ:availability_zone": "nova", "config_drive": "", "status": "BUILD", 
"updated": "2015-03-25T23:17:03Z", "hostId": "", "OS-EXT-SRV-ATTR:host": null, 
"OS-SRV-USG:terminated_at": null, "key_name": null, 
"OS-EXT-SRV-ATTR:hypervisor_hostname": null, "name": "test0", "created": 
"2015-03-25T23:17:03Z", "tenant_id": "5b64493a6198480c8f981f2c98a856c3", 
"os-extended-volumes:volumes_attached": [], "metadata": {}}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/flavors/1' -X 
GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:03 GMT', 
'content-length': '426', 'content-type': 'application/json', 
'x-compute-request-id': 'req-31722bbe-56cb-47a9-8155-d76d29361315'})
RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/flavors/1";, 
"rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/flavors/1";, "rel": 
"bookmark"}], "ram": 512, "OS-FLV-DISABLED:disabled": false, "vcpus": 1, 
"swap": "", "os-flavor-access:is_public": true, "rxtx_factor": 1.0, 
"OS-FLV-EXT-DATA:ephemeral": 0, "disk": 1, "id": "1"}}

REQ: curl -i 
'http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015'
 -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H 
"X-Auth-Project-Id: admin" -H "X-Auth-Token: 
{SHA1}bb8767367984b3eb9699aa49c4f1a1a1f592c5a3"
RESP: [200] CaseInsensitiveDict({'date': 'Wed, 25 Mar 2015 23:17:04 GMT', 
'content-length': '722', 'content-type': 'application/json', 
'x-compute-request-id': 'req-930f496d-9170-4eee-b162-86cca705be5a'})
RESP BODY: {"image": {"status": "ACTIVE", "updated": "2015-03-25T23:11:56Z", 
"name": "ubuntu", "links": [{"href": 
"http://172.16.168.142:8774/v2/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "self"}, {"href": 
"http://172.16.168.142:8774/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "rel": "bookmark"}, {"href": 
"http://172.16.168.142:9292/5b64493a6198480c8f981f2c98a856c3/images/4bbd19dc-7e04-4523-8429-8139005f6015";,
 "type": "application/vnd.openstack.image", "rel": "alternate"}], "created": 
"2015-03-25T23:11:40Z", "minDisk": 0, "progress": 100, "minRam": 0, "metadata": 
{}, "id": "4bbd19dc-7e04-4523-8429-8139005f6015", "OS-EXT-IMG-SIZE:size": 
197419008}}

Attachment: local.conf
Description: Binary data

Attachment: nova.conf
Description: Binary data

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to