openstackopenstack-novaopenstack-neutron

can not ssh on the floating ip given by openstack to the ubuntu cloud server image


i created an instance of Ubuntu server cloud image on Open-stack with an associated SSH Key pair and floating IP assigned to it. I can not ssh on the floating IP and neither ping works on the IP. When i open the instance in the console of open-stack, It asks me for username and password!

I have tried to access it with the private IP instead of floating IP but it doesn't work as well. I have configured Open-stack on the physical IP address of host.

ssh -i key.pem cirros@172.24.4.212

I have configured the openstack on the physical machine on the physical IP address of the machine.


Solution

  • There is many reasons for this problem, is possible your provider network is missconfigured, e.g. you has set wrong segmentation, external bridge down, wrong bridge-mappings, etc.

    But assuming you has configured everything fine, then the problem would be in your Neutron ports.

    If your OpenStack deployment has been deployed with Neutron port security, you would need to setup your security groups first, then make sure at least one security bridge has been assigned to your instance.

    You can add a security group rule by using the OpenStack API:

    $ openstack security group rule create SECURITY_GROUP_NAME --protocol tcp --dst-port 22:22 --remote-ip 0.0.0.0/0
    
    $ openstack security group rule create --protocol icmp SECURITY_GROUP_NAME
    

    Or just use your Horizon GUI.