Ask Your Question
0

How to get external IP from isntance?

asked 2019-06-05 19:58:05 -0500

Kilmer Luiz gravatar image

updated 2019-06-06 00:57:37 -0500

I have installed a OpenStack with RDO packstack (https://www.rdoproject.org/install/packstack/ (https://www.rdoproject.org/install/pa...)) in a Google Cloud Plataform CentOS VM, for infrastructure reasons.

When I create a instance, I got a 172.xxx... IP address, which, I think, it is a virtual address. If I ping that IP with my PC, I got nothing, and the same happens if I ping at the GCP console, I still don't get nothing, which seems weird to me.

How can I access my OpenStack instance? How can I access that instance from my PC?

edit retag flag offensive close merge delete

Comments

What were the parameters when you deployed the Packstack cloud? Did you connect the cloud to the outside network? If not, you won't be able to reach it from outside.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-06 01:13:05 -0500 )edit

You can also try the instructions from the RDO web site, but in my experience, they don't work for Stein without a few changes.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-06 01:14:19 -0500 )edit

In advance, thanks for helping me. So, I should re-install packstack, right? With those parameters on that question you pointed.

Kilmer Luiz gravatar imageKilmer Luiz ( 2019-06-06 11:50:09 -0500 )edit

Just to be sure, I would actually start from the very beginning, get a new Centos VM, then deploy Packstack on it. I don't know what unwanted configuration remains from your previous installation when you only redeploy.

However your error message "not reachable" points to a different problem.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-06 19:00:25 -0500 )edit

Can you share your network topology? How is the instance connected to the "external" network? Is it attached to the private network?

("external" in quotes, because it is not really external, it just pretends to be)

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-06 19:01:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-05 20:42:10 -0500

rafi gravatar image

you need a floating IP attached to the vm.

https://docs.openstack.org/ocata/user...

edit flag offensive delete link more

Comments

Thanks in advance for helping me. I tried that: created floating ip (openstack floating ip create public) and tried to set (openstack server add floating ip <instance> <ip>), but I got an error "reachable from subnet". I created a new router for my project and still cant create.

Kilmer Luiz gravatar imageKilmer Luiz ( 2019-06-06 00:58:07 -0500 )edit

Anyway, the created IP was another 172.xxx.... Does it still should work?

Kilmer Luiz gravatar imageKilmer Luiz ( 2019-06-06 00:58:30 -0500 )edit

To use floating IPs, the instance's network must be directly connected to the corresponding external network by a single router. The error message "not reachable from subnet" indicates that this is not the case.

Perhaps the network is isolated, or it is a second tier network.

Bernd Bausch gravatar imageBernd Bausch ( 2019-06-06 01:09:12 -0500 )edit

Sorry, Bernd, I didn't noticed that you answered me up there. What parameters from Packstack? I just followed the instructions from the instalation "tutorial" (disabled firewall, disabled NetworkManager and started network, and then installed the packstack (sorrry, I cant post links))

Kilmer Luiz gravatar imageKilmer Luiz ( 2019-06-06 11:44:01 -0500 )edit

In this case, as I already tried adding a router, what else should I do to connect network with a router?

Kilmer Luiz gravatar imageKilmer Luiz ( 2019-06-06 11:49:54 -0500 )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: 2019-06-05 19:58:05 -0500

Seen: 55 times

Last updated: Jun 06