Ask Your Question
1

Enabling lbaas through Octavia in Devstack Fails

asked 2015-10-14 07:04:37 -0500

praburm gravatar image

Hi,

I have Openstack setup where controller, compute and network(neutron) running in single physical machine through devstack(git branch: master). Enabling lbaas through Octavia plugin in devstack keeps provision status as "PENDING_CREATE" on lb creation for long time. Could find the below error message from /opt/stack/logs/q-lbaasv2.log

ERROR neutron_lbaas.agent.agent_manager [-] Unable to retrieve ready devices

Lbaas Options added in [local.conf] of devstack setup

Followed the below link and did the below config

https://wiki.openstack.org/wiki/Neutron/LBaaS/HowToRun (https://wiki.openstack.org/wiki/Neutr...)

I would like to confirm whether the way I enabled lbaas in devstack is correct. Please throw some light on this. I have added the logs neutron & lbaas config too here.

[NEUTRON CONFIG]
Q_USE_SECGROUP=True
FLOATING_RANGE=172.30.5.0/24
FIXED_RANGE=10.0.0.0/24
Q_FLOATING_ALLOCATION_POOL=start=172.30.5.250,end=172.30.5.254
PUBLIC_NETWORK_GATEWAY="172.30.5.1"
Q_L3_ENABLED=True
PUBLIC_INTERFACE=em1
Q_USE_PROVIDERNET_FOR_PUBLIC=True
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service q-l3

enable_plugin neutron-lbaas http://git.openstack.org/openstack/neutron-lbaas
enable_plugin octavia http://github.com/openstack/octavia.git
ENABLED_SERVICES+=,q-lbaasv2
ENABLED_SERVICES+=,octavia,o-cw,o-hk,o-hm,o-api

Below are debug info for lb creation & error output

>$:~/Openstack/devstack$ neutron --debug lbaas-loadbalancer-create --name lb2 private-subnet
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://172.30.5.21:5000/v2.0 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
DEBUG: keystoneclient.session RESP: [200] content-length: 337 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.7 (Ubuntu) connection: Keep-Alive date: Wed, 14 Oct 2015 19:12:21 GMT content-type: application/json x-openstack-request-id: req-832927f6-b9b4-4e35-a157-5ede404a690f
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-17T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v2.0+json"}], "id": "v2.0", "links": [{"href": "http://172.30.5.21:5000/v2.0/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}]}}

DEBUG: stevedore.extension found extension EntryPoint.parse('table = cliff.formatters.table:TableFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = cliff.formatters.json_format:JSONFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('shell = cliff.formatters.shell:ShellFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('value = cliff.formatters.value:ValueFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = cliff.formatters.yaml_format:YAMLFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('yaml = clifftablib.formatters:YamlFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('json = clifftablib.formatters:JsonFormatter')
DEBUG: stevedore.extension found extension EntryPoint.parse('html = clifftablib.formatters:HtmlFormatter')
DEBUG: neutronclient.neutron.v2_0.lb.v2.loadbalancer.CreateLoadBalancer get_data(Namespace(admin_state=True, columns=[], description=None, formatter='table', max_width=0, name=u'lb2', noindent=False, prefix='', provider=None, request_format='json', tenant_id=None, variables=[], vip_address=None, vip_subnet=u'private-subnet'))
DEBUG: keystoneclient.auth.identity.v2 Making authentication request to http://172.30.5.21:5000/v2.0/tokens
DEBUG: keystoneclient.session REQ: curl -g -i -X GET http://172.30.5.21:9696/v2.0/subnets.json?fields=id&name=private-subnet -H "User-Agent: python-neutronclient ...
(more)
edit retag flag offensive close merge delete

Comments

I am also facing the same issue. If you have resolved it , let us know :)

reedip-banerjee gravatar imagereedip-banerjee ( 2015-11-13 01:20:54 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-17 11:56:53 -0500

johnsom gravatar image

In the above case, the neutron-lbaas is trying to use the agent driver and not the octavia driver.

Please see this configuration for neutron: http://docs.openstack.org/newton/networking-guide/config-lbaas.html#configuring-lbaas-v2-with-octavia (http://docs.openstack.org/newton/netw...)

edit flag offensive delete link more
0

answered 2016-01-15 00:46:50 -0500

any update , I also have this issue. even I can find a screen session for q-lbaasv2 also no log file /opt/stack/logs/q-lbaasv2.log file generated.

edit flag offensive delete link more

Comments

find the reason why no q-lbaasv2 screen seesion and no log file q-lbaasv2.log # Octavia doesn't need the LBaaS V2 service running. If Octavia is the # only provider then don't run the process. plugin.sh file under /opt/stack/neutron-lbaas/devstack

pzx-hero-19841002 gravatar imagepzx-hero-19841002 ( 2016-01-15 03:53:30 -0500 )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

2 followers

Stats

Asked: 2015-10-14 06:58:34 -0500

Seen: 524 times

Last updated: Oct 14 '15