Ask Your Question
0

openstack loadbalancer create .... give an ip address out of range of my network (198.51.100.1) !!

asked 2018-09-26 09:20:28 -0500

esxzawq gravatar image

updated 2018-10-03 06:15:51 -0500

hi , I have installed octavia in centos , and I have created two network (192.168.58.0/24 (provider) and 192.168.100.0/24 (selfservice)) after running "openstack loadbalancer create --project service --name lb1 --vip-subnet-id selfservice"

the lb1 loadbalancer ip will be 198.51.100.1 !!! that is out of range of my selfservice network. based on the poor documentation I must be able to ping the lb1 ip address which is ( 198.51.100.1) that naturally is impossible .

and also this ip address and its port will not shown up in "openstack port list" command

what should I do that the lb1 get the correct ip address in range of my selfservice network

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2018-10-03 06:15:02 -0500

esxzawq gravatar image

updated 2018-10-03 06:19:09 -0500

I found where does the ip "198.51.100.1" come from. by running the following command :

grep -rnw "/usr/lib/python2.7" -e "198.51.100.1"

the output shows that it comes from the noop_driver

/usr/lib/python2.7/site-packages/octavia/network/drivers/noop_driver/driver.py:38: ip_address = '198.51.100.1'

/usr/lib/python2.7/site-packages/octavia/network/drivers/noop_driver/driver.py:68: vrrp_ip='198.51.100.1',

/usr/lib/python2.7/site-packages/octavia/network/drivers/noop_driver/driver.py:69: ha_ip='198.51.100.1',

neutron driver is also available in /usr/lib/python2.7/site-packages/octavia/network/drivers/neutron/.

in octavia.conf the setting are

amphora_driver = amphora_noop_driver

compute_driver = compute_noop_driver

network_driver = network_noop_driver

distributor_driver = distributor_noop_driver

I have replaced the string noop_driver with neutron eg : network_driver = network_neutron and also network_driver = neutron

but after running "openstack loadbalancer create ...." the error "No 'octavia.network.drivers' driver found, looking for 'neutron' " appears

how can I made openstack to use neutron driver for octavia

edit flag offensive delete link more

Comments

Oh. The no-op drivers are there for testing. They take no action against the other services. It might help to reference one of our gate test configuration files: http://logs.openstack.org/24/604924/1...

johnsom gravatar imagejohnsom ( 2018-10-04 17:20:13 -0500 )edit
0

answered 2018-10-02 13:23:08 -0500

johnsom gravatar image

Using the command: "openstack loadbalancer create --project service --name lb1 --vip-subnet-id selfservice"

Would allocate the VIP address and ports from the "selfservice" subnet in neutron for the project "service". Since you did not ask for a specific IP address when creating the VIP, neutron allocates an IP address for us and provides it either on the port configuration or via DHCP.

If you got an IP address that is not on the neutron subnet "selfservice", please check your neutron configuration and logs to see why it issued Octavia such an address for the VIP port.

Also note, the VIP port should be visible in a port list to the project "service" you specified at load balancer creation time.

Michael

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: 2018-09-26 09:17:08 -0500

Seen: 31 times

Last updated: Oct 03