Revision history [back]

click to hide/show revision 1
initial version

cannot ssh, ping to instance

HI all,

I`m newbi in openstack and network.

I can`t connect using ssh to my instance.

  1. virtual box on my window machine.
  2. icehouse, ubuntu 14.04.
  3. signle node, installed with 3 nic

I used nova-network with FlatDHCP.

on my Intance consol-log.

udhcpc (v1.20.1) started Sending discover...

No lease, failing

WARN: /etc/rc3.d/S40-network failed

.....

checking http://169.254.169.254/2009-04-04/instance-id

failed 1/20: up 186.37. request failed

on my ubuntu syslog

un 5 17:25:03 openstack-ubuntu dnsmasq-dhcp[2576]: DHCPDISCOVER(br100) fa:16:3e:7b:2d:6c no address available

ps aux | grep dns

nobody 2576 0.0 0.0 28204 996 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

root 2577 0.0 0.0 28204 248 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

nova network-list

| ID                                   | Label | Cidr        |
+--------------------------------------+-------+-------------+
| dd760648-8f94-4cc4-8f94-7fe4c59f141c | vmnet | 10.0.0.0/26 |
| b328c540-324a-4bc3-b6ec-0e50e29acdb0 | demo2 | 10.0.1.0/24 |

nova list (my instacne use demo2 network)

| ID                                   | Name           | Status | Task State | Power State | Networks                               |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------------+
| 4593ec95-ed4f-4859-8543-5e93b677aa2b | demo-instance1 | ACTIVE | -          | Running     | demo2=10.0.1.2, 172.16.1.1, 172.16.1.2 |
  1. I created floating ip (172.16.1.2) and associated ip to intance. But i can`t ssh, ping to instance.
  2. I disabled ufw firewall but problem is same.

I assumed the problem is happen ip-range is miss matched. I found that dnsmasq listen-address is 10.0.0.1, But my instance address 10.0.1.2, then i think, my instance can`t found dnsmasq. does it right?

then I want to changed listen-address to 10.0.1.1. how to change dnsmasq listen-address.

and my dnsmasq dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s my instance ip doesnt included. But i dont understand why vmnet is included and why demo2 network doesnt included. I didnt create vmnet.

I digging this problem about a week. is there any clue?

cannot ssh, ping to instanceinstance (instance can`t get dhcp ip).

HI all,

I`m newbi in openstack and network.

I can`t connect using ssh to my instance.

  1. virtual box on my window machine.
  2. icehouse, ubuntu 14.04.
  3. signle node, installed with 3 nic

I used nova-network with FlatDHCP.

on my Intance consol-log.

udhcpc (v1.20.1) started Sending discover...

No lease, failing

WARN: /etc/rc3.d/S40-network failed

.....

checking http://169.254.169.254/2009-04-04/instance-id

failed 1/20: up 186.37. request failed

on my ubuntu syslog

un 5 17:25:03 openstack-ubuntu dnsmasq-dhcp[2576]: DHCPDISCOVER(br100) fa:16:3e:7b:2d:6c no address available

ps aux | grep dns

nobody 2576 0.0 0.0 28204 996 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

root 2577 0.0 0.0 28204 248 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

nova network-list

| ID                                   | Label | Cidr        |
+--------------------------------------+-------+-------------+
| dd760648-8f94-4cc4-8f94-7fe4c59f141c | vmnet | 10.0.0.0/26 |
| b328c540-324a-4bc3-b6ec-0e50e29acdb0 | demo2 | 10.0.1.0/24 |

nova list (my instacne use demo2 network)

| ID                                   | Name           | Status | Task State | Power State | Networks                               |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------------+
| 4593ec95-ed4f-4859-8543-5e93b677aa2b | demo-instance1 | ACTIVE | -          | Running     | demo2=10.0.1.2, 172.16.1.1, 172.16.1.2 |
  1. I created floating ip (172.16.1.2) and associated ip to intance. But i can`t ssh, ping to instance.
  2. I disabled ufw firewall but problem is same.

I assumed the problem is happen ip-range is miss matched. I found that dnsmasq listen-address is 10.0.0.1, But my instance address 10.0.1.2, then i think, my instance can`t found dnsmasq. does it right?

then I want to changed listen-address to 10.0.1.1. how to change dnsmasq listen-address.

and my dnsmasq dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s my instance ip doesnt included. But i dont understand why vmnet is included and why demo2 network doesnt included. I didnt create vmnet.

I digging this problem about a week. is there any clue?

cannot ssh, ping to instance (instance can`t can't get dhcp ip).

HI all,

I`m I'm newbi in openstack and network.

I can`t network. I can't connect using ssh to my instance.

  1. virtual box on my window machine.
  2. icehouse, ubuntu 14.04.
  3. signle single node, installed with 3 nic

I used nova-network with FlatDHCP.

on my Intance instance consol-log.

> udhcpc (v1.20.1) started
 > Sending discover...

discover... > No lease, failing

failing > WARN: /etc/rc3.d/S40-network failed

.....

failed > ..... > checking http://169.254.169.254/2009-04-04/instance-id

http://169.254.169.254/2009-04-04/instance-id > failed 1/20: up 186.37. request failed

failed

on my ubuntu syslog

un

 **un  5 17:25:03 openstack-ubuntu dnsmasq-dhcp[2576]: DHCPDISCOVER(br100) fa:16:3e:7b:2d:6c no address available

available** ps aux | grep dns

dns nobody 2576 0.0 0.0 28204 996 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 **--listen-address=10.0.0.1** --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --**dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s** --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

--domain=novalocal root 2577 0.0 0.0 28204 248 ? S 17:13 0:00 /usr/sbin/dnsmasq --strict-order --bind-interfaces --conf-file= --pid-file=/var/lib/nova/networks/nova-br100.pid --listen-address=10.0.0.1 **--listen-address=10.0.0.1** --except-interface=lo --dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s --**dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120**s --dhcp-lease-max=64 --dhcp-hostsfile=/var/lib/nova/networks/nova-br100.conf --dhcp-script=/usr/bin/nova-dhcpbridge --leasefile-ro --domain=novalocal

--domain=novalocal nova network-list

network-list

| ID                                   | Label | Cidr        |
+--------------------------------------+-------+-------------+
| dd760648-8f94-4cc4-8f94-7fe4c59f141c | vmnet | 10.0.0.0/26 |
| b328c540-324a-4bc3-b6ec-0e50e29acdb0 | demo2 | 10.0.1.0/24 |

nova list (my instacne instance use demo2 network)

| ID                                   | Name           | Status | Task State | Power State | Networks                               |
+--------------------------------------+----------------+--------+------------+-------------+----------------------------------------+
| 4593ec95-ed4f-4859-8543-5e93b677aa2b | demo-instance1 | ACTIVE | -          | Running     | demo2=10.0.1.2, 172.16.1.1, 172.16.1.2 |
  1. I created floating ip (172.16.1.2) and associated ip to intance. But i can`t ssh, ping to instance.
  2. I disabled ufw firewall but problem is same.

I assumed the problem is happen happens becase ip-range is miss matched. mismatched. I found that dnsmasq listen-address is 10.0.0.1, But my instance address 10.0.1.2, then i think, my instance can`t found can't find dnsmasq. does it right? seem a correct assumption?

then I want to changed listen-address to 10.0.1.1. how to change dnsmasq listen-address.

and my dnsmasq dhcp-range=set:vmnet,10.0.0.3,static,255.255.255.192,120s my instance ip doesnt doesn't included. But i dont don't understand why vmnet is included and why demo2 network doesnt doesn`t included. I didnt didn't create vmnet.

I digging this problem about a week. is there vmnet. Does anybody have any clue?suggestion on how to proceed?