LBaaS (octavia) on Openstack 12 (Pike)

Latest response

Hello folks,

We need your help with our openstack environment.
It is our first openstack environment and we are not experts. We had some experts here to bring it up and running. Currently we are getting stuck to implement LBaaS.
We are learning day by day more but I hope to get some support from the community here.
I appreciate it very much.

the environment is as follows:

openstack v12
1 Director
2 Compute nodes
3 Controller nodes

I have installed LBaaS using the instruction below
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html-single/networking_guide/index#configure_lbaas

Current status. LBaaS is running
Neutron commands are not available and openstack cli should be instead.
Unfortunately I cannot find the corresponding commands.

second issue
LB is not visible on the Horizon dashboard
I edit /etc/openstack-dashboard/local_settings adding "enable_lb" entry
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': True,
'enable_quotas': True,
'enable_ipv6': True,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_fip_topology_check': True,
'enable_firewall': True,
'enable_lb': True,

Thank you very much
Best Regards

Niko

Responses

Hello Nikolaos, I am having similar problems with RHOSP12 Pike (I had no problems with Newton/Ocata). Try the steps below and let us know if that solves your problem. By default in /etc/openstack-dashboard/neutron_policy.json only the admin role can create LoadBalancers. I will update if I get it to work.

sudo ln -s /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_1481_project_ng_loadbalancersv2_panel.py /etc/openstack-dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py

sudo systemctl restart httpd

Hello Steve,

thanks for you reply. i tried the commands. Here is the result. [root@overcloud-controller-0 enabled]# ln -s /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_1481_project_ng_loadbalancersv2_panel.py ln: failed to create symbolic link ‘./_1481_project_ng_loadbalancersv2_panel.py’: File exists [root@overcloud-controller-0 enabled]# ln -s /etc/openstack-dashboard/enabled/_1481_project_ng_loadbalancersv2_panel.py ln: failed to create symbolic link ‘./_1481_project_ng_loadbalancersv2_panel.py’: File exists [root@overcloud-controller-0 enabled]#

so the files already exist. I really appreciate your support.

thanks Br Niko

Hi Steve, one more question. is there a way to configure the lb with cli. openstack cli commands don't exit. when i try neutron commands like neutron lbaas-loadbalancer-create ... i get the message too few arguments. any suggestion?

thanks in advance Br Niko

I currently us the python-octaviaclient which may be unavailable via RedHat Repos for OSP 12.

You can install it with pip.

sudo pip list 2> /dev/null 1> pre-octaviaclient.txt

sudo pip install python-octaviaclient

sudo pip list 2> /dev/null 1> post-octaviaclient.txt

If you have dependency problems with the other openstack client utils you can downgrade the pip packages that were upgraded (undercloud) [stack@director ~]$ diff pre-octaviaclient.txt post-octaviaclient.txt 134c134

< osc-lib (1.7.0)

osc-lib (1.10.0) 150c150

< oslo.utils (3.28.1)

oslo.utils (3.36.1) 188c188

< pyparsing (2.0.7)

pyparsing (2.2.0) 217a218

Now you can use the openstackclient instead of using neutron directly which will eventually be deprecated anyway. [stack@director ~]$ openstack loadbalancer --help Command "loadbalancer" matches: loadbalancer amphora list loadbalancer amphora show loadbalancer create loadbalancer delete loadbalancer failover loadbalancer healthmonitor create loadbalancer healthmonitor delete loadbalancer healthmonitor list loadbalancer healthmonitor set loadbalancer healthmonitor show loadbalancer l7policy create loadbalancer l7policy delete loadbalancer l7policy list loadbalancer l7policy set loadbalancer l7policy show loadbalancer l7rule create loadbalancer l7rule delete loadbalancer l7rule list loadbalancer l7rule set loadbalancer l7rule show loadbalancer list loadbalancer listener create loadbalancer listener delete loadbalancer listener list loadbalancer listener set loadbalancer listener show loadbalancer listener stats show loadbalancer member create loadbalancer member delete loadbalancer member list loadbalancer member set loadbalancer member show loadbalancer pool create loadbalancer pool delete loadbalancer pool list loadbalancer pool set loadbalancer pool show loadbalancer quota defaults show loadbalancer quota list loadbalancer quota reset loadbalancer quota set loadbalancer quota show loadbalancer set loadbalancer show loadbalancer stats show

thanks for the solution. my env has no internet access to use pip and without pip it is hard to downlaod the octaviaclient with all the required packets. do you have any other suggestion to get this file? thanks br NIko

Steve, currently i configure lbaas on the control nodes. i have 3 of them. in your description u have installed the package on the director. this makes more sense to me. can you confirm this? otherwise when i have more control nodes i have to make the configuration on each nodes separately which it is a huge overwork to me.

You could set up a temporary squid proxy on a host that does have access to the internet, and then on director use export https_proxy=http://myproxy.mydomain

Another option would be to download the package on a system that does have internet access and do a local pip install. https://pip.pypa.io/en/stable/user_guide/#installing-from-local-packages

i have installed this packet python-octaviaclient-doc-1.3.0-2.fc28.noarch.rpm on the control nodes as test. httpd deamon was restarted afterwards. no effect in the dashboard nor in the cli openstack command list. still not available. any idea Steve? Really appreciate your help and support

This is normal as the horizon dashboard is running in a container. You'll have to edit your horizon container image with this .

Dave good morning, i will try this and let you know. thanks br NIko

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.