LBaaS (octavia) on Openstack 12 (Pike)
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
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)< oslo.utils (3.28.1)osc-lib (1.10.0) 150c150
< pyparsing (2.0.7)oslo.utils (3.36.1) 188c188
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
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
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
