Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

docker ps -a does not show anything using nova-docker

Hi,

I just installed nova-docker on my compute node, however after booting a docker container, docker ps -a does not show anything, and of course the container is not pingable. However nova list shows that the container is running. Here is my nova-conf on the compute node:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

compute_driver = novadocker.virt.docker.DockerDriver

network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller-std:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = NEUTRON_PASS
neutron_admin_auth_url = http://controller-std:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

auth_strategy = keystone

rpc_backend = rabbit
rabbit_host = controller-std
rabbit_password = RABBIT_PASS

my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller-std:6080/vnc_auto.html

glance_host = controller-std

[database]
# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:NOVA_DBPASS@controller-std/nova

[keystone_authtoken]
auth_uri = http://controller-std:5000
auth_host = controller-std
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = NOVA_PASS

And this is nova list on controller node:

controller@controller-std:~$ nova list
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ID                                   | Name           | Status  | Task State | Power State | Networks                            |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ce6fbd83-953f-427d-a794-750392d8a8e4 | demo-docker    | ACTIVE  | -          | Running     | demo-net=192.168.1.9                |
| 97f85631-cf9e-476d-bb1b-63fbe1e9de02 | demo-instance1 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.2, 203.0.113.102 |
| 20cc943f-07be-462b-af1b-fa358a47bf9e | demo-instance2 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.4, 203.0.113.103 |
| 15bfcc13-a85c-4906-9db9-5ae50df99d33 | demo-instance3 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.5, 203.0.113.104 |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+

docker ps -a does not show anything using nova-docker

Hi,

I just installed nova-docker on my compute node, however after booting a docker container, docker ps -a does not show anything, and of course the container is not pingable. However nova list shows that the container is running. Here is my nova-confnova.conf on the compute node:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

compute_driver = novadocker.virt.docker.DockerDriver

network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller-std:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = NEUTRON_PASS
neutron_admin_auth_url = http://controller-std:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

auth_strategy = keystone

rpc_backend = rabbit
rabbit_host = controller-std
rabbit_password = RABBIT_PASS

my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller-std:6080/vnc_auto.html

glance_host = controller-std

[database]
# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:NOVA_DBPASS@controller-std/nova

[keystone_authtoken]
auth_uri = http://controller-std:5000
auth_host = controller-std
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = NOVA_PASS

And this is nova list on controller node:

controller@controller-std:~$ nova list
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ID                                   | Name           | Status  | Task State | Power State | Networks                            |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ce6fbd83-953f-427d-a794-750392d8a8e4 | demo-docker    | ACTIVE  | -          | Running     | demo-net=192.168.1.9                |
| 97f85631-cf9e-476d-bb1b-63fbe1e9de02 | demo-instance1 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.2, 203.0.113.102 |
| 20cc943f-07be-462b-af1b-fa358a47bf9e | demo-instance2 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.4, 203.0.113.103 |
| 15bfcc13-a85c-4906-9db9-5ae50df99d33 | demo-instance3 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.5, 203.0.113.104 |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+

docker ps -a does not show anything using nova-docker

Hi,

I just installed nova-docker on my compute node, however after booting a docker container, docker ps -a does not show anything, and of course the container is not pingable. However nova list shows that the container is running. Here is my nova.conf on the compute node:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

compute_driver = novadocker.virt.docker.DockerDriver

network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller-std:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = NEUTRON_PASS
neutron_admin_auth_url = http://controller-std:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

auth_strategy = keystone

rpc_backend = rabbit
rabbit_host = controller-std
rabbit_password = RABBIT_PASS

my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller-std:6080/vnc_auto.html

glance_host = controller-std

[database]
# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:NOVA_DBPASS@controller-std/nova

[keystone_authtoken]
auth_uri = http://controller-std:5000
auth_host = controller-std
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = NOVA_PASS

And this is nova list on controller node:

controller@controller-std:~$ nova list
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ID                                   | Name           | Status  | Task State | Power State | Networks                            |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ce6fbd83-953f-427d-a794-750392d8a8e4 | demo-docker    | ACTIVE  | -          | Running     | demo-net=192.168.1.9                |
| 97f85631-cf9e-476d-bb1b-63fbe1e9de02 | demo-instance1 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.2, 203.0.113.102 |
| 20cc943f-07be-462b-af1b-fa358a47bf9e | demo-instance2 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.4, 203.0.113.103 |
| 15bfcc13-a85c-4906-9db9-5ae50df99d33 | demo-instance3 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.5, 203.0.113.104 |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+

P.S.: I am using openstack icehouse

docker ps -a does not show anything using nova-docker

Hi,

I just installed nova-docker on my compute node, however after booting a docker container, docker ps -a does not show anything, and of course the container is not pingable. However nova list shows that the container is running. Here is my nova.conf on the compute node:

[DEFAULT]
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
logdir=/var/log/nova
state_path=/var/lib/nova
lock_path=/var/lock/nova
force_dhcp_release=True
iscsi_helper=tgtadm
libvirt_use_virtio_for_bridges=True
connection_type=libvirt
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
verbose=True
ec2_private_dns_show_ip=True
api_paste_config=/etc/nova/api-paste.ini
volumes_path=/var/lib/nova/volumes
enabled_apis=ec2,osapi_compute,metadata

compute_driver = novadocker.virt.docker.DockerDriver

network_api_class = nova.network.neutronv2.api.API
neutron_url = http://controller-std:9696
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = neutron
neutron_admin_password = NEUTRON_PASS
neutron_admin_auth_url = http://controller-std:35357/v2.0
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron

auth_strategy = keystone

rpc_backend = rabbit
rabbit_host = controller-std
rabbit_password = RABBIT_PASS

my_ip = 10.0.0.31
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 10.0.0.31
novncproxy_base_url = http://controller-std:6080/vnc_auto.html

glance_host = controller-std

[database]
# The SQLAlchemy connection string used to connect to the database
connection = mysql://nova:NOVA_DBPASS@controller-std/nova

[keystone_authtoken]
auth_uri = http://controller-std:5000
auth_host = controller-std
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = NOVA_PASS

And this is nova list on controller node:

controller@controller-std:~$ nova list
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ID                                   | Name           | Status  | Task State | Power State | Networks                            |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+
| ce6fbd83-953f-427d-a794-750392d8a8e4 | demo-docker    | ACTIVE  | -          | Running     | demo-net=192.168.1.9                |
| 97f85631-cf9e-476d-bb1b-63fbe1e9de02 | demo-instance1 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.2, 203.0.113.102 |
| 20cc943f-07be-462b-af1b-fa358a47bf9e | demo-instance2 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.4, 203.0.113.103 |
| 15bfcc13-a85c-4906-9db9-5ae50df99d33 | demo-instance3 | SHUTOFF | -          | Shutdown    | demo-net=192.168.1.5, 203.0.113.104 |
+--------------------------------------+----------------+---------+------------+-------------+-------------------------------------+

P.S.: I am using openstack icehouseicehouse, and not using heat.