[openstack-dev] [nova][docker] docker and openstack disagree about the IP address
John Bresnahan
john at bresnahan.me
Tue Mar 4 09:05:04 UTC 2014
Hello all,
I am trying to setup a devstack vagrant virtualbox VM and running into
network troubles. I can successful launch an container but docker and
openstack disagree on the IP address of that instance. Docker has the
correct IP. I an running devstack stable/havana on ubuntu 12.04. My
session is below. Any help is greatly appreciated.
Thanks,
John
nova boot --flavor 1 --image 5709b62d-0b54-43d9-82b6-fd149e477350 tst
nova list
+--------------------------------------+------+--------+------------+-------------+------------------+
| ID | Name | Status | Task State |
Power State | Networks |
+--------------------------------------+------+--------+------------+-------------+------------------+
| 4f331975-497d-4cbe-ad73-ca333e178e19 | tst | ACTIVE | - | NOSTATE
| private=10.0.0.2 |
+--------------------------------------+------+--------+------------+-------------+------------------+
$ ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
From 10.0.0.1 icmp_seq=1 Destination Host Unreachable
From 10.0.0.1 icmp_seq=2 Destination Host Unreachable
From 10.0.0.1 icmp_seq=3 Destination Host Unreachable
^C
--- 10.0.0.2 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms
pipe 3
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS NAMES
ebc7eae3e777 172.16.129.20:5042/docker-busybox:latest
sh 9 minutes ago Up 9
minutes lonely_pasteur
a4ea16899219 docker-registry:latest ./docker-registry/ru 24
minutes ago Up 24 minutes 0.0.0.0:5042->5000/tcp tender_brown
$ docker inspect ebc7eae3e777
....
"NetworkSettings": {
"IPAddress": "172.17.0.3",
...
$ ping 172.17.0.3
PING 172.17.0.3 (172.17.0.3) 56(84) bytes of data.
64 bytes from 172.17.0.3: icmp_req=1 ttl=64 time=0.081 ms
64 bytes from 172.17.0.3: icmp_req=2 ttl=64 time=0.053 ms
More information about the OpenStack-dev
mailing list