Ask Your Question
0

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

asked 2014-06-05 03:43:57 -0500

punxism gravatar image

updated 2014-06-06 17:20:21 -0500

smaffulli gravatar image

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. single node, installed with 3 nic

I used nova-network with FlatDHCP.

on my instance 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,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

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 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 happens becase ip-range is 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 find dnsmasq. does it 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 doesn't included. But i don't understand why vmnet is included and why demo2 network doesn`t included. I didn't create vmnet. Does anybody have any suggestion on how to proceed?

edit retag flag offensive close merge delete

Comments

There are dozens of questions about similar issues on this site. Please search this site and edit your question to highlight why this issue should be different than the others.

smaffulli gravatar imagesmaffulli ( 2014-06-06 17:21:40 -0500 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2014-06-08 23:27:01 -0500

punxism gravatar image

updated 2014-06-08 23:29:54 -0500

Solved my self.

My instance ip is 10.0.1.2 but dnsmasq listen-address is 10.0.1.1. It was not matched. Then I deleted all vm network using "nova-manager delete" command in opentstack machine.

And NAT CIDR is 10.0.2.0/24 on virtual box, I think, It is duplicated with Host-Only network 10.0.0.254(I use that as private network on my openstack), then I changed my private network as 12.0.1.0/24.

Then when i created vm instance. I can connected vm instance and dnsmasq listen-address is 12.0.1.3

Thanks.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-06-05 03:43:57 -0500

Seen: 1,297 times

Last updated: Jun 08 '14