Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

[DEFAULT] transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

auth_strategy = keystone

[amphora_agent]

agent_server_ca = /etc/octavia/certs/client_ca.pem

agent_server_cert = /etc/octavia/certs/server.pem

agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf: ... service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf: ... [service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

[DEFAULT] transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

auth_strategy = keystone

[amphora_agent]

agent_server_ca = /etc/octavia/certs/client_ca.pem

agent_server_cert = /etc/octavia/certs/server.pem

agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf: ... service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf: ... [service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

[DEFAULT] transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

auth_strategy = keystone

[amphora_agent]

agent_server_ca = /etc/octavia/certs/client_ca.pem

agent_server_cert = /etc/octavia/certs/server.pem

[amphora_agent] agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf: ... service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf: ... [service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

[DEFAULT]

transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

[amphora_agent] agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf: neutron.conf:

...

service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf: neutron_lbaas.conf:

...

[service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

[DEFAULT]

transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

[amphora_agent] agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf:

...

service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf:

...

[service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin

Octavia LBaaSv2 driver error

Hello everyone,

I couldn't find a step-by-step documentation about Octavia. I installed and configured Octavia on a HA Ocata cluster according to the instructions on devstack notes and lbaas docs. After installing the horizon plugin, i tried to create a load balancer without success. On both the dashboard and the cli, I get the following error when i try to create or delete a load balancer.

Error

Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e'] Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 877, in run_subcommand return run_command(cmd, cmd_parser, sub_argv) File "/usr/lib/python2.7/dist-packages/neutronclient/shell.py", line 114, in run_command return cmd.run(known_args) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 324, in run return super(NeutronCommand, self).run(parsed_args) File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 90, in run return self.take_action(parsed_args) or 0 File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 506, in take_action self._bulk_delete(obj_deleter, neutron_client, parsed_args.id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 521, in _bulk_delete self.delete_item(obj_deleter, neutron_client, item_id) File "/usr/lib/python2.7/dist-packages/neutronclient/neutron/v2_0/__init__.py", line 561, in delete_item obj_deleter(_id) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1103, in delete_loadbalancer (lbaas_loadbalancer)) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 357, in delete headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 338, in retry_request headers=headers, params=params) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 301, in do_request self._handle_fault_response(status_code, replybody, resp) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 276, in _handle_fault_response exception_handler_v20(status_code, error_body) File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 92, in exception_handler_v20 request_ids=request_ids) InternalServerError: Driver error: The request you have made requires authentication. (HTTP 401) (Request-ID: req-3c1f97c9-82c8-4fa8-9e7e-720b730f9539) Neutron server returns request_ids: ['req-82a63bd7-3a34-4f7d-9dd0-ab57e9546f5e']

Here is my octavia.conf :

octavia.conf

[DEFAULT]

transport_url = rabbit://openstack:rabbit_pass@testCont01,openstack:rabbit_pass@testCont02,openstack:rabbit_pass@testCont03 api_handler = queue_producer bind_host = 10.20.1.91 bind_port = 9876

[amphora_agent] agent_server_ca = /etc/ssl/private/uyum.in.ca.crt agent_server_cert = /etc/ssl/private/uyum.in.crt

[anchor]

[certificates] ca_private_key_passphrase = None ca_private_key = /etc/octavia/certs/private/cakey.pem ca_certificate = /etc/octavia/certs/ca_01.pem

[controller_worker] amp_boot_network_list = 4652a6ce-e08b-4231-97b1-a70ff850452e amp_image_tag = octavia-amphora-image amp_secgroup_list = c6e919ee-95d5-4eed-a74e-cd1eb08a725c amp_flavor_id = ba60c149-096b-4d42-9683-d627832306c7 amp_image_owner_id = 1fa597e23ac64a00a324094f7f65e03aa amp_ssh_key_name = service network_driver = allowed_address_pairs_driver compute_driver = compute_nova_driver amphora_driver = amphora_haproxy_rest_driver workers = 2 amp_active_retries = 100 amp_active_wait_sec = 2 loadbalancer_topology = SINGLE client_ca = /etc/octavia/certs/ca_01.pem

[database] connection = mysql+pymysql://octavia:KelebeK@testcont/octavia

[glance]

[haproxy_amphora] server_ca = /etc/octavia/certs/ca_01.pem client_cert = /etc/octavia/certs/client.pem base_path = /var/lib/octavia base_cert_dir = /var/lib/octavia/certs connection_max_retries = 1500 connection_retry_interval = 1 rest_request_conn_timeout = 10 rest_request_read_timeout = 120

[health_manager] bind_port = 5555 bind_ip = 10.20.1.91 controller_ip_port_list = 10.20.1.91:5555,10.20.1.92:5555,10.20.1.93:5555 heartbeat_key = insecure

[house_keeping] load_balancer_expiry_age = 3600 amphora_expiry_age = 3600 spare_amphora_pool_size = 0

[keepalived_vrrp]

[keystone_authtoken] signing_dir = auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = octavia password = {octavia_secret}

[networking]

[nova]

[neutron]

[octavia] service_name = octavia region_name = RegionOne endpoint_type = publicURL

[oslo_messaging] topic = octavia_prov rpc_thread_pool_size = 2

[quotas]

[service_auth] auth_uri = http://testcont:5000 auth_url = http://testcont:35357 memcached_servers = testcont01:11211,testcont02:11211,testcont03:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = admin admin_user=admin username = admin password = {admin_secret} region_name = RegionOne

[task_flow]

My neutron.conf:

neutron.conf

...

service_plugins = router,vpnaas,neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2 ... [octavia] base_url=http://10.20.1.91:9876 ... [service_providers] service_provider = VPN:strongswan:neutron_vpnaas.services.vpn.service_drivers.ipsec.IPsecVPNDriver:default service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default ...

And neutron_lbaas.conf:

neutron_lbaas.conf

...

[service_auth]

auth_url = http://testcont:5000/v2.0 admin_user = octavia admin_tenant_name = service admin_password = {octavia_secret} admin_user_domain = default admin_project_domain = default region = RegionOne auth_version = 2 ... [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default

I tried several combinations without success. Does anybody have any idea about the problem? What am i missing?

Thanks, Huseyin