[openstack-dev] docker with Juno devstack
Davanum Srinivas
davanum at gmail.com
Tue Apr 28 10:28:24 UTC 2015
Murali,
Are you using the juno branch of nova-docker?
-- dims
On Tue, Apr 28, 2015 at 4:09 AM, Murali B <mbirru at gmail.com> wrote:
> Hi
>
> I would like to spawn docker image using the devstack.
>
> Able to bring-up the devstack with compute_driver =
> novadocker.virt.docker.DockerDriver.
>
> created the .docker image in glance. when I try to create docker image using
> ""nova boot --flavor 1 --image <image-id> --nic net-id=<net-id> dock""
> command I am seeing the below
>
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00mTraceback
> (most recent call last):
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m File
> "/opt/stack/nova/nova/compute/manager.py", line 2303, in _build_resources
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m yield
> resources
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m File
> "/opt/stack/nova/nova/compute/manager.py", line 2173, in
> _build_and_run_instance
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m
> flavor=flavor)
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m File
> "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py",
> line 423, in spawn
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m
> 'mem_limit': self._get_memory_limit_bytes(instance),
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m File
> "/usr/local/lib/python2.7/dist-packages/novadocker/virt/docker/driver.py",
> line 336, in _get_memory_limit_bytes
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m return
> instance.flavor.memory_mb * units.Mi
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013]
> ^[[00mAttributeError: 'Instance' object has no attribute 'flavor'
> ^[[01;31m2015-04-27 18:17:12.213 TRACE nova.compute.manager
> ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013] ^[[00m
> 2015-04-27 18:17:12.214 ^[[01;36mAUDIT nova.compute.manager
> [^[[01;36mreq-d5179c71-527b-45c7-b7ec-3c67a171627c ^[[00;36madmin
> demo^[[01;36m] ^[[01;35m[instance: a4752d27-041c-4b5f-b025-cd803343f013]
> ^[[01;36mTerminating instance^[[00m
>
> your help is appreciated to overcome this error
>
> Thanks
> -Murali
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
--
Davanum Srinivas :: https://twitter.com/dims
More information about the OpenStack-dev
mailing list