How to expose local virtual interface to the controller/compute/outside

asked 2019-03-22 02:58:42 -0600

Srivalle gravatar image

updated 2019-03-22 05:05:27 -0600

I have instance in openstack - queens installed in ubuntu16.04 .

I am running an application in a VM . That application get virtual ip address from the provider DHCP server . I want to reach these ip addresses from controller /compute/outside. Whether is it achievable from openstack . if yes please share the configuration . If feature is not available in the openstack how to go about customizing the openstack

ubuntu@test-0:~$ ip addr 1: lo: <loopback,up,lower_up> mtu 65536 qdisc noqueue state UNKNOWN group default link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <broadcast,multicast,up,lower_up> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether fa:16:3e:59:4b:2b brd ff:ff:ff:ff:ff:ff inet <removed ip="" address=""> brd < removed Broadcast address> scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::f816:3eff:fe59:4b2b/64 scope link valid_lft forever preferred_lft forever 3: dummy0: <broadcast,noarp> mtu 1500 qdisc noop state DOWN group default link/ether 76:ea:cd:d3:e5:bc brd ff:ff:ff:ff:ff:ff 37: data: <broadcast,noarp,up,lower_up> mtu 1500 qdisc noqueue state UNKNOWN group default link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff inet 10.10.20.1/24 scope global data valid_lft forever preferred_lft forever inet 10.10.20.22/24 brd 10.10.20.255 scope global secondary data valid_lft forever preferred_lft forever inet 10.10.20.23/24 brd 10.10.20.255 scope global secondary data valid_lft forever preferred_lft forever inet 10.10.20.24/24 brd 10.10.20.255 scope global secondary data valid_lft forever preferred_lft forever inet 10.10.20.25/24 brd 10.10.20.255 scope global secondary data valid_lft forever preferred_lft forever inet6 fe80::1824:99ff:feb7:3bb2/64 scope link valid_lft forever preferred_lft forever

eth0 is instance interface and we can access that interface but i want to access these vnf interface ips<10.50.20.X> from outside.

edit retag flag offensive close merge delete

Comments

A virtual IP address is normally the address of a load balancer, not an application. What do you mean by this term?

I understand that your instance is attached to a provider network. If so, this network must be reachable from controller/compute/outside if you want to reach the instance.

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-22 03:37:35 -0600 )edit

And VNF application is running in the instance. I am able to reach openstack instance with its IP.there is loopack interface will be created using this application and external DHCP server will create virtual interfaces below this loop back interface.i hv added some more details in the question.

Srivalle gravatar imageSrivalle ( 2019-03-22 05:06:51 -0600 )edit

If the 10.10.20.0/24 addresses are from a DHCP server outside of the OpenStack cloud, you need to set up routing to the 10.10.20.0/24 network in order to access them. This doesn’t look like an OpenStack problem.

Is this instance connected to a tenant network or a provider network?

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-22 05:39:51 -0600 )edit

connected to provider network. Where do i need setup the route to the 10.10.20.0/24 network . is it from controller or compute ?

Srivalle gravatar imageSrivalle ( 2019-03-22 06:45:18 -0600 )edit

To access the instance from controller/compute/outside, create a route on controller/compute/outside, respectively. However you normally don’t use the compute node for anything else but running VMs.

Bernd Bausch gravatar imageBernd Bausch ( 2019-03-22 06:49:47 -0600 )edit