Ask Your Question
0

Queens Octavia Endpoint

asked 2018-12-06 22:42:48 -0600

danigrith gravatar image

updated 2018-12-06 22:43:37 -0600

I'm trying to setup Octavia in my Queens OpenStack deploy. I've setup the Octavia service and have it running. Now I am attempting to create the Octavia endpoint in keystone. Based on this bug: https://bugs.launchpad.net/heat/+bug/1737567 (https://bugs.launchpad.net/heat/+bug/...) I should be able to, however whenever I try, I get the following error:

# openstack endpoint create --region RegionOne load-balancer public http://cumulonimbus.asgard.int:9876
No service with a type, name or ID of 'load-balancer' exists.
# openstack endpoint create --region RegionOne octavia public http://cumulonimbus.asgard.int:9876
No service with a type, name or ID of 'octavia' exists.

Based on this question I should be able to create the service: https://ask.openstack.org/en/question/116031/solvedpikeoctavia-cannot-create-lb-from-horizon/ (https://ask.openstack.org/en/question...)

Despite the documentation never mentioning to do it in the first place. Additionally the documentation still says you need the neutron LBaaS configured and according to this: https://ask.openstack.org/en/question/113466/octavia-lbaasv2-driver-error/?answer=113469#post-id-113469 (https://ask.openstack.org/en/question...)

You don't need it and can do pure Octavia. What am I missing that Keystone doesn't recognize Octavia as a service?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-12-09 04:13:59 -0600

esxzawq gravatar image

updated 2018-12-09 04:22:23 -0600

it is because you have not created it's service, here is the step by step configurations : ( CentOS 7.5 )

1 - create it's database :

MariaDB [(none)]> create database octavia;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON octavia.* TO 'octavia'@'%' IDENTIFIED BY 'password';

MariaDB [(none)]> GRANT ALL PRIVILEGES ON octavia.* TO 'octavia'@'localhost' IDENTIFIED BY 'password';

2 - create the octavia user in openstack :

openstack user create --domain default --password-prompt octavia

3 - add the admin role to the octavia user :

openstack role add --project service --user octavia admin

4 - create the octavia service :

openstack service create --name octavia --description "OpenStack LoadBalancer" load-balancer

5 - create the endpoints :

openstack endpoint create --region RegionOne load-balancer public http://cumulonimbus.asgard.int:9876

openstack endpoint create --region RegionOne load-balancer admin http://cumulonimbus.asgard.int:9876

openstack endpoint create --region RegionOne load-balancer internal http://cumulonimbus.asgard.int:9876

6 - configure the octavia.conf file

7 - populate the database:

octavia-db-manage upgrade head

8 - start the services or restart if they have been started before :

systemctl start octavia-api.service

systemctl start octavia-worker.service

systemctl start octavia-health-manager.service

systemctl start octavia-housekeeping.service

edit flag offensive delete link more

Comments

That was it exactly. I missed creating the service in Keystone. Thank you also very much for the Octavia Setup breakdown. OpenStack's docs would be leagues better for basic setups if they just added these steps in themselves.

danigrith gravatar imagedanigrith ( 2018-12-10 22:14:02 -0600 )edit

You're welcome Yes the octavia doc is not as good as the others , but they are working on it. And also it would be better to add step by step TLS configuration and amphora creation for octavia.conf

esxzawq gravatar imageesxzawq ( 2018-12-11 13:07:04 -0600 )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: 2018-12-06 22:42:48 -0600

Seen: 22 times

Last updated: Dec 09