Ask Your Question
0

I cant ping/ssh instance from VM

asked 2015-01-24 12:57:30 -0600

oguz gravatar image

I have setup a clean Ubuntu 14.04 and openstack icehouse using devstack script. I create 3 instances and accessed their console. But when i tried ping these instances, i got "destination host unreachable" error for one of them. Then, in this instance's console, i used "ifconfig" command and i saw it's inet address is 192.168.177.138 but in openstack dashboard interface it's ip address is 10.0.0.3. Other 2 instances' ip and inet addresses are same and i can ping them but this instance's inet address is different. I want to ask what the reason is and how can i solve this problem ?

And i want to ask a second question. One of my pingable instances had different ip and inet address before, then i softrebooted this instance and i try ifconfig command in it's console, i saw it's inet address is same with ip address. And now i can ping it. i softreboot third instance also but it's not pingable. It's ip and inet address are still different.

I'm sharing some pictures.

My instances in openstack dashboard http://hizliresim.com/XD8NED

My pingable instance named Ankara. (it's ip and inet addresses are same) http://hizliresim.com/Q48Npg

My instance Izmir which has different addresses. http://hizliresim.com/bgZpLj

Have you any suggestions ? Thanks for your help.

edit retag flag offensive close merge delete

Comments

It seems that your instances possess all a correct IP on tour private (tenant) network and on the external (public) network. Can you please neutron net-list. neutron subnet-list, nova list, neutron subnet-show "your subnet(s) id" Also, there are a lot "I can't ping " topics. Have a look first :)

GLaupre gravatar imageGLaupre ( 2015-01-24 13:23:17 -0600 )edit

Also can you please edit your post with some configuration log like this man did. Thank you very much

GLaupre gravatar imageGLaupre ( 2015-01-24 13:37:49 -0600 )edit

have you added rules in default security group with all icmp ans ssh.

SGPJ gravatar imageSGPJ ( 2015-01-24 13:52:35 -0600 )edit

Hi SGPJ, yes i've added all icmp, all tcp and ssh rules. my problem is i can ping some instance but i cant ping others. one instance (named Izmir) is not pingable. i'm not sure but it's ip and inet address are different and i thought i cant ping it because of this difference.

oguz gravatar imageoguz ( 2015-01-25 14:56:36 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-01-26 17:34:19 -0600

oguz gravatar image

In my instances' log files, i saw network start line.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending select for 10.0.0.2...
Lease of 10.0.0.2 obtained, lease time 120
deleting routers
adding dns 10.0.0.1
check-version already run per instance
Starting dropbear sshd: OK
userdata already run per instance

this is normal, but when i restart this images or sometimes after launch new instance, in it's log file there are these lines.

Starting network...
udhcpc (v1.20.1) started
Sending discover...
Sending select for 10.0.0.2...
Received DHCP NAK
Sending discover...
Sending select for 192.168.177.140...
Lease of 192.168.177.140 obtained, lease time 1800
deleting routers
adding dns 192.168.177.2
check-version already run per instance
Starting dropbear sshd: OK
userdata already run per instance

when instance get ip like 192.168.177.x i cant ping it from host (host ip is 10.0.0.1), i think it's in different subnet. But if it's ip 10.0.0.x i can ping it.

How can i solve this ? Why i get nak issue ? I investigated it in ask.openstack forum and another sites all day but i couldnt find a solution. Can anyone help me ? Thanks.

edit flag offensive delete link more
0

answered 2015-01-24 13:42:44 -0600

hello

first of all you need to add the rules like all-icmp and all-tcp rules to your instance

nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0  (is used for PING)
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 (is used for SSH)

then ping and SSH to your instance. AS i have done it on cirros which takes default login details which they only provide like UNAME:cirros PWD:cubswin:). and i also used ubuntu image using private key.

please do check the documentation of image you trying to build.

edit flag offensive delete link more

Comments

I have added all icmp,tcp and ssh rules.My problem is i can ping some instance but i cant ping others. one instance (named Izmir) is not pingable.I'm not sure but it's ip and inet address are different and i thought i cant ping it because of this difference.sorry i'm new at openstack.can you help me

oguz gravatar imageoguz ( 2015-01-25 15:04:49 -0600 )edit

when I am adding nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 I am getting ERROR: Invalid OpenStack Nova credentials.

amitabh sinha gravatar imageamitabh sinha ( 2015-03-16 09:04:51 -0600 )edit

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: 2015-01-24 12:57:30 -0600

Seen: 3,930 times

Last updated: Jan 26 '15