Comment 2 for bug 1426293

Revision history for this message
Boris Derzhavets (bderzhavets) wrote :

Due to commit "Sync oslo imports to be in line with Nova trunk" 333656f4ad0e2c06f11eb8244bd6796110b9931d. (https://bugs.launchpad.net/nova-docker/+bug/1425111)

In meantime Nova launch instance and starts container. Attempting reproduce

http://blog.oddbit.com/2015/02/11/installing-novadocker-with-devstack/

Perform statements :-
$ nova floating-ip-create
+------------+-----------+----------+--------+
| Ip | Server Id | Fixed Ip | Pool |
+------------+-----------+----------+--------+
| 172.24.4.3 | - | - | public |
+------------+-----------+----------+--------+
$ nova floating-ip-associate test0 172.24.4.3
$ curl http://172.24.4.3
curl: (7) Failed to connect to 172.24.4.3 port 80: No route to host

Then scan via hping3 port 80 at 172.24.4.3

ubuntu@ubuntu-VM:~$ sudo hping3 -c 1 -V -p 80 -s 5050 -M 0 -UPF 172.24.4.3
using br-ex, addr: 172.24.4.1, MTU: 1500
HPING 172.24.4.3 (br-ex 172.24.4.3): FPU set, 40 headers + 0 data bytes
len=40 ip=172.24.4.3 ttl=64 DF id=62681 tos=0 iplen=40
sport=80 flags=RA seq=0 win=0 rtt=3.9 ms
seq=0 ack=1 sum=913b urp=0

--- 172.24.4.3 hping statistic ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.9/3.9/3.9 ms

ubuntu@ubuntu-VM:~$ sudo hping3 -c 1 -V -p 80 -s 5050 -M 0 -Y 172.24.4.3
using br-ex, addr: 172.24.4.1, MTU: 1500
HPING 172.24.4.3 (br-ex 172.24.4.3): Y set, 40 headers + 0 data bytes
len=40 ip=172.24.4.3 ttl=64 DF id=64274 tos=0 iplen=40
sport=80 flags=RA seq=0 win=0 rtt=3.4 ms
seq=0 ack=0 sum=923b urp=0

--- 172.24.4.3 hping statistic ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 3.4/3.4/3.4 ms

hping3 return packets , it means port 80 is closed.

UbuntuDocker is container launched via docker image Ubuntu Rastasheep (sshd), which worked fine on 02/15/2015 and still working fine on host running stack.sh instance, recoverable between reboots.
In meantime I get :-

ubuntu@ubuntu-VM:~/devstack$ nova list
+--------------------------------------+--------------+--------+------------+-------------+--------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------+--------+------------+-------------+--------------------------------+
| f7d3731c-d2bf-44bf-8517-8d351f6af502 | UbuntuDocker | ACTIVE | - | Running | private=10.254.1.4, 172.24.4.4 |
| 8cb55a85-ce20-4f61-bf34-f4075e6480a1 | test0 | ACTIVE | - | Running | private=10.254.1.2, 172.24.4.3 |
+--------------------------------------+--------------+--------+------------+-------------+--------------------------------+
ubuntu@ubuntu-VM:~/devstack$ sudo hping3 -c 3 -p 22 -s 5050 -FPU 172.24.4.4
HPING 172.24.4.4 (br-ex 172.24.4.4): FPU set, 40 headers + 0 data bytes
len=40 ip=172.24.4.4 ttl=64 DF id=41373 sport=22 flags=RA seq=0 win=0 rtt=3.8 ms
len=40 ip=172.24.4.4 ttl=64 DF id=41432 sport=22 flags=RA seq=1 win=0 rtt=3.3 ms
len=40 ip=172.24.4.4 ttl=64 DF id=41498 sport=22 flags=RA seq=2 win=0 rtt=3.3 ms

--- 172.24.4.4 hping statistic ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 3.3/3.5/3.8 ms

ubuntu@ubuntu-VM:~/devstack$ nova secgroup-list-rules default
+-------------+-----------+---------+-----------+--------------+
| IP Protocol | From Port | To Port | IP Range | Source Group |
+-------------+-----------+---------+-----------+--------------+
| | | | | default |
| tcp | 1 | 65535 | 0.0.0.0/0 | |
| | | | | default |
| icmp | -1 | -1 | 0.0.0.0/0 | |
+-------------+-----------+---------+-----------+--------------+