settingsLogin | Registersettings

[openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

0 votes

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get "Not Implemented Error".

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Oct 13, 2017 in openstack-dev by mihaela.balas_at_ora (480 points)   1 1

7 Responses

0 votes

Hello Mihaela,

It seems that you are referring to that part of code https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/driver_base.py#L36

I found that document for Mitaka https://docs.openstack.org/mitaka/networking-guide/config-lbaas.html

It might be related to incorrectly configured driver for LBaaS (or indeed not implemented driver for L7 policy for specific driver).

Questions:

  • What do you have configured in neutron configuration in section [service_providers]?
  • Which driver do you want to use?

Example line

serviceprovider = LOADBALANCERV2:Haproxy:neutronlbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

Cheers,
Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 11:13:34
Do: OpenStack Development Mailing List (not for usage questions)
Temat: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 3, 2017 by Pawel_Suder (220 points)  
0 votes

Hi,

I appreciate the help. In neutron-server I have the following service providers enabled:

serviceprovider = LOADBALANCERV2:Haproxy:neutronlbaas.drivers.haproxy.plugindriver.HaproxyOnHostPluginDriver:default
service
provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver

With Octavia provider L7 policy works fine. With haproxy (agent provider) I receive the error below.

On the haproxy agent I have the following setting (however, the neutron-server throws that error and not even sends any request to agent):

interfacedriver = neutron.agent.linux.interface.OVSInterfaceDriver
device
driver = neutronlbaas.drivers.haproxy.namespacedriver.HaproxyNSDriver

Mihaela

From: Pawel Suder [mailto:pawel.suder@corp.ovh.com]
Sent: Tuesday, October 03, 2017 3:10 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] Odp.: [neutron][lbaasv2][agent implementation] L7 policy support

Hello Mihaela,

It seems that you are referring to that part of code https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/driver_base.py#L36

I found that document for Mitaka https://docs.openstack.org/mitaka/networking-guide/config-lbaas.html

It might be related to incorrectly configured driver for LBaaS (or indeed not implemented driver for L7 policy for specific driver).

Questions:

  • What do you have configured in neutron configuration in section [service_providers]?
  • Which driver do you want to use?

Example line

serviceprovider = LOADBALANCERV2:Haproxy:neutronlbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

Cheers,
Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 11:13:34
Do: OpenStack Development Mailing List (not for usage questions)
Temat: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get "Not Implemented Error".

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 3, 2017 by mihaela.balas_at_ora (480 points)   1 1
0 votes

Hello,

It seems that HaproxyOnHostPluginDriver from https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/haproxy/plugin_driver.py#L21 extends AgentDriverBase https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/common/agent_driver_base.py#L301 where I could not located L7 things.

L7 things might be related to Octavia (only?). What I found is that HAProxy (https://www.haproxy.com/doc/aloha/7.0/haproxy/index.html) has L7 things.

It seems that in old good times that thing was not taken into the consideration.

Cheers,

Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 14:45:11
Do: OpenStack Development Mailing List (not for usage questions)
Temat: Re: [openstack-dev] Odp.: [neutron][lbaasv2][agent implementation] L7 policy support

Hi,

I appreciate the help. In neutron-server I have the following service providers enabled:

serviceprovider = LOADBALANCERV2:Haproxy:neutronlbaas.drivers.haproxy.plugindriver.HaproxyOnHostPluginDriver:default
service
provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver

With Octavia provider L7 policy works fine. With haproxy (agent provider) I receive the error below.

On the haproxy agent I have the following setting (however, the neutron-server throws that error and not even sends any request to agent):

interfacedriver = neutron.agent.linux.interface.OVSInterfaceDriver
device
driver = neutronlbaas.drivers.haproxy.namespacedriver.HaproxyNSDriver

Mihaela

From: Pawel Suder [mailto:pawel.suder@corp.ovh.com]
Sent: Tuesday, October 03, 2017 3:10 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] Odp.: [neutron][lbaasv2][agent implementation] L7 policy support

Hello Mihaela,

It seems that you are referring to that part of code https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/driver_base.py#L36

I found that document for Mitaka https://docs.openstack.org/mitaka/networking-guide/config-lbaas.html

It might be related to incorrectly configured driver for LBaaS (or indeed not implemented driver for L7 policy for specific driver).

Questions:

  • What do you have configured in neutron configuration in section [service_providers]?
  • Which driver do you want to use?

Example line

serviceprovider = LOADBALANCERV2:Haproxy:neutronlbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

Cheers,
Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 11:13:34
Do: OpenStack Development Mailing List (not for usage questions)
Temat: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 4, 2017 by Pawel_Suder (220 points)  
0 votes

Hi Mihaela,

The old neutron-lbaas haproxy namespace driver does not have L7
support. Only the Octavia driver and some vendor provider drivers have
L7 support.

Michael

On Tue, Oct 3, 2017 at 11:35 PM, Pawel Suder pawel.suder@corp.ovh.com wrote:
Hello,

It seems that HaproxyOnHostPluginDriver from
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/haproxy/plugin_driver.py#L21
extends AgentDriverBase
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/common/agent_driver_base.py#L301
where I could not located L7 things.

L7 things might be related to Octavia (only?). What I found is that HAProxy
(https://www.haproxy.com/doc/aloha/7.0/haproxy/index.html) has L7 things.

It seems that in old good times that thing was not taken into the
consideration.

Cheers,

Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 14:45:11
Do: OpenStack Development Mailing List (not for usage questions)
Temat: Re: [openstack-dev] Odp.: [neutron][lbaasv2][agent implementation] L7
policy support

Hi,

I appreciate the help. In neutron-server I have the following service
providers enabled:

serviceprovider =
LOADBALANCERV2:Haproxy:neutron
lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

serviceprovider =
LOADBALANCERV2:Octavia:neutron
lbaas.drivers.octavia.driver.OctaviaDriver

With Octavia provider L7 policy works fine. With haproxy (agent provider) I
receive the error below.

On the haproxy agent I have the following setting (however, the
neutron-server throws that error and not even sends any request to agent):

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

devicedriver =
neutron
lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver

Mihaela

From: Pawel Suder [mailto:pawel.suder@corp.ovh.com]
Sent: Tuesday, October 03, 2017 3:10 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] Odp.: [neutron][lbaasv2][agent implementation] L7
policy support

Hello Mihaela,

It seems that you are referring to that part of code
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lbaas/drivers/driver_base.py#L36

I found that document for Mitaka
https://docs.openstack.org/mitaka/networking-guide/config-lbaas.html

It might be related to incorrectly configured driver for LBaaS (or indeed
not implemented driver for L7 policy for specific driver).

Questions:

  • What do you have configured in neutron configuration in section
    [service_providers]?

  • Which driver do you want to use?

Example line

serviceprovider =
LOADBALANCERV2:Haproxy:neutron
lbaas.drivers.haproxy.plugin_driver.HaproxyOnHostPluginDriver:default

Cheers,

Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 11:13:34
Do: OpenStack Development Mailing List (not for usage questions)
Temat: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy
support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing
with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname":
"INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "projectid":
"a5f15235c0714365b98a50a11ec956e7", "domain
id": "-", "userdomainid": "-",
"projectdomainid": "-"},"instance": {},"message":"Calling driver operation
NotImplementedManager.create"}

{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname":
"ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "projectid":
"a5f15235c0714365b98a50a11ec956e7", "domain
id": "-", "userdomainid": "-",
"projectdomainid": "-"},"instance": {},"message":"There was an error in
the driver"}

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

Traceback (most recent call last):

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py",
line 486, in _call
driver_operation

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

drivermethod(context, dbentity)

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py",
line 36, in create

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

raise NotImplementedError()

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

NotImplementedError

2017-10-03 07:34:42.765 18 TRACE neutron_lbaas.services.loadbalancer.plugin

>

{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname":
"ERROR","name": "neutron.api.v2.resource", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "user
identity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "project
id":
"a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-",
"project
domain_id": "-"},"instance": {},"message":"create failed"}

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback
(most recent call last):

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line
84, in resource

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result =
method(request=request, **args)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410,
in create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
self._create(request, body, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in
wrapper

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
ectxt.value = e.inner_exc

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220,
in exit

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
self.force_reraise()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/osloutils/excutils.py", line 196,
in force
reraise

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
six.reraise(self.type_, self.value, self.tb)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in
wrapper

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
f(*args, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521,
in _create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj =
do_create(body)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503,
in do_create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
request.context, reservation.reservation_id)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220,
in exit

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
self.force_reraise()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/osloutils/excutils.py", line 196,
in force
reraise

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
six.reraise(self.type_, self.value, self.tb)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496,
in do_create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
obj_creator(request.context, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py",
line 1086, in create
l7policy

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
l7policy_db)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py",
line 494, in _call
driver_operation

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise
loadbalancerv2.DriverError()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError:
An error happened in the driver

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,

Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu
ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.

This message and its attachments may contain confidential or privileged
information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and
delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.

Thank you.


Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu
ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou
falsifie. Merci.

This message and its attachments may contain confidential or privileged
information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and
delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been
modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 4, 2017 by Michael_Johnson (4,380 points)   4 5
0 votes

Thanks a lot for the response.

Mihaela

-----Original Message-----
From: Michael Johnson [mailto:johnsomor@gmail.com]
Sent: Wednesday, October 04, 2017 7:36 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] Odp.: Odp.: [neutron][lbaasv2][agent implementation] L7 policy support

Hi Mihaela,

The old neutron-lbaas haproxy namespace driver does not have L7 support. Only the Octavia driver and some vendor provider drivers have
L7 support.

Michael

On Tue, Oct 3, 2017 at 11:35 PM, Pawel Suder pawel.suder@corp.ovh.com wrote:
Hello,

It seems that HaproxyOnHostPluginDriver from
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lba
as/drivers/haproxy/plugindriver.py#L21
extends AgentDriverBase
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lba
as/drivers/common/agent
driver_base.py#L301
where I could not located L7 things.

L7 things might be related to Octavia (only?). What I found is that
HAProxy
(https://www.haproxy.com/doc/aloha/7.0/haproxy/index.html) has L7 things.

It seems that in old good times that thing was not taken into the
consideration.

Cheers,

Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 14:45:11
Do: OpenStack Development Mailing List (not for usage questions)
Temat: Re: [openstack-dev] Odp.: [neutron][lbaasv2][agent
implementation] L7 policy support

Hi,

I appreciate the help. In neutron-server I have the following service
providers enabled:

serviceprovider =
LOADBALANCERV2:Haproxy:neutron
lbaas.drivers.haproxy.plugin_driver.Hap
roxyOnHostPluginDriver:default

serviceprovider =
LOADBALANCERV2:Octavia:neutron
lbaas.drivers.octavia.driver.OctaviaDri
ver

With Octavia provider L7 policy works fine. With haproxy (agent
provider) I receive the error below.

On the haproxy agent I have the following setting (however, the
neutron-server throws that error and not even sends any request to agent):

interface_driver = neutron.agent.linux.interface.OVSInterfaceDriver

devicedriver =
neutron
lbaas.drivers.haproxy.namespace_driver.HaproxyNSDriver

Mihaela

From: Pawel Suder [mailto:pawel.suder@corp.ovh.com]
Sent: Tuesday, October 03, 2017 3:10 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: [openstack-dev] Odp.: [neutron][lbaasv2][agent
implementation] L7 policy support

Hello Mihaela,

It seems that you are referring to that part of code
https://github.com/openstack/neutron-lbaas/blob/mitaka-eol/neutron_lba
as/drivers/driver_base.py#L36

I found that document for Mitaka
https://docs.openstack.org/mitaka/networking-guide/config-lbaas.html

It might be related to incorrectly configured driver for LBaaS (or
indeed not implemented driver for L7 policy for specific driver).

Questions:

  • What do you have configured in neutron configuration in section
    [service_providers]?

  • Which driver do you want to use?

Example line

serviceprovider =
LOADBALANCERV2:Haproxy:neutron
lbaas.drivers.haproxy.plugin_driver.Hap
roxyOnHostPluginDriver:default

Cheers,

Paweł


Od: mihaela.balas@orange.com mihaela.balas@orange.com
Wysłane: 3 października 2017 11:13:34
Do: OpenStack Development Mailing List (not for usage questions)
Temat: [openstack-dev] [neutron][lbaasv2][agent implementation] L7
policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am
testing with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname":
"INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "projectid":
"a5f15235c0714365b98a50a11ec956e7", "domain
id": "-",
"userdomainid": "-",
"projectdomainid": "-"},"instance": {},"message":"Calling driver
operation NotImplementedManager.create"}

{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname":
"ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "projectid":
"a5f15235c0714365b98a50a11ec956e7", "domain
id": "-",
"userdomainid": "-",
"projectdomainid": "-"},"instance": {},"message":"There was an error
in the driver"}

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

Traceback (most recent call last):

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadb
alancer/plugin.py",
line 486, in _call
driver_operation

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

drivermethod(context, dbentity)

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

File
"/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/drivers/driver
_base.py",
line 36, in create

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

raise NotImplementedError()

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

NotImplementedError

2017-10-03 07:34:42.765 18 TRACE
neutron_lbaas.services.loadbalancer.plugin

>

{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname":
"ERROR","name": "neutron.api.v2.resource", "requestid":
"req-186bf812-1cdf-496b-a117-711f1e42c6bd", "user
identity": {"userid":
"44364a07de754daa9ffeb2911fe3620a", "project
id":
"a5f15235c0714365b98a50a11ec956e7", "domainid": "-",
"user
domainid": "-",
"project
domain_id": "-"},"instance": {},"message":"create failed"}

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource

Traceback (most recent call last):

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py",
line 84, in resource

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result =
method(request=request, **args)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py",
line 410, in create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
self._create(request, body, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148,
in wrapper

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
ectxt.value = e.inner_exc

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py",
line 220, in exit

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
self.force_reraise()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/osloutils/excutils.py",
line 196, in force
reraise

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
six.reraise(self.type_, self.value, self.tb)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138,
in wrapper

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
f(*args, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py",
line 521, in _create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj =
do_create(body)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py",
line 503, in do_create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
request.context, reservation.reservation_id)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py",
line 220, in exit

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
self.force_reraise()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/osloutils/excutils.py",
line 196, in force
reraise

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
six.reraise(self.type_, self.value, self.tb)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py",
line 496, in do_create

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return
obj_creator(request.context, **kwargs)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadb
alancer/plugin.py",
line 1086, in create
l7policy

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>
l7policy_db)

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File
"/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadb
alancer/plugin.py",
line 494, in _call
driver_operation

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise
loadbalancerv2.DriverError()

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError:
An error happened in the driver

2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,

Mihaela Balas



Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les
messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere,
deforme ou falsifie. Merci.

This message and its attachments may contain confidential or
privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and
delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have
been modified, changed or falsified.

Thank you.



Ce message et ses pieces jointes peuvent contenir des informations
confidentielles ou privilegiees et ne doivent donc pas etre diffuses,
exploites ou copies sans autorisation. Si vous avez recu ce message
par erreur, veuillez le signaler a l'expediteur et le detruire ainsi
que les pieces jointes. Les messages electroniques etant susceptibles
d'alteration, Orange decline toute responsabilite si ce message a ete
altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or
privileged information that may be protected by law; they should not
be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and
delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have
been modified, changed or falsified.
Thank you.


____ OpenStack Development Mailing List (not for usage questions)
Unsubscribe:
OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 5, 2017 by mihaela.balas_at_ora (480 points)   1 1
0 votes

Mihaela,

The first version with L7 was Newton and beginning then the LBaaS V2 namespace driver would support it as well as Octavia.

German

From: "mihaela.balas@orange.com" mihaela.balas@orange.com
Reply-To: "OpenStack Development Mailing List (not for usage questions)" openstack-dev@lists.openstack.org
Date: Tuesday, October 3, 2017 at 2:13 AM
To: "OpenStack Development Mailing List (not for usage questions)" openstack-dev@lists.openstack.org
Subject: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 9, 2017 by German_Eichberger (720 points)  
0 votes

Hi German,

I just tested with Newton version and I get the same error as with Mitaka “Not Implemented Error” (see below).

Mihaela

From: German Eichberger [mailto:German.Eichberger@rackspace.com]
Sent: Tuesday, October 10, 2017 12:42 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Mihaela,

The first version with L7 was Newton and beginning then the LBaaS V2 namespace driver would support it as well as Octavia.

German

From: "mihaela.balas@orange.com" mihaela.balas@orange.com
Reply-To: "OpenStack Development Mailing List (not for usage questions)" openstack-dev@lists.openstack.org
Date: Tuesday, October 3, 2017 at 2:13 AM
To: "OpenStack Development Mailing List (not for usage questions)" openstack-dev@lists.openstack.org
Subject: [openstack-dev] [neutron][lbaasv2][agent implementation] L7 policy support

Hello,

Does the agent implementation of LBaaSv2 support L7 policies? I am testing with Mitaka version and I get “Not Implemented Error”.

{"asctime": "2017-10-03 07:34:42.764","process": "18","levelname": "INFO","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"Calling driver operation NotImplementedManager.create"}
{"asctime": "2017-10-03 07:34:42.765","process": "18","levelname": "ERROR","name": "neutronlbaas.services.loadbalancer.plugin", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomainid": "-"},"instance": {},"message":"There was an error in the driver"}
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/services/loadbalancer/plugin.py", line 486, in _calldriveroperation
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> drivermethod(context, dbentity)
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutronlbaas/drivers/driverbase.py", line 36, in create
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>> raise NotImplementedError()
2017-10-03 07:34:42.765 18 TRACE neutronlbaas.services.loadbalancer.plugin >>>>>NotImplementedError
2017-10-03 07:34:42.765 18 TRACE neutron
lbaas.services.loadbalancer.plugin >>>>>
{"asctime": "2017-10-03 07:34:42.800","process": "18","levelname": "ERROR","name": "neutron.api.v2.resource", "requestid": "req-186bf812-1cdf-496b-a117-711f1e42c6bd", "useridentity": {"userid": "44364a07de754daa9ffeb2911fe3620a", "projectid": "a5f15235c0714365b98a50a11ec956e7", "domainid": "-", "userdomainid": "-", "projectdomain_id": "-"},"instance": {},"message":"create failed"}
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>Traceback (most recent call last):
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 84, in resource
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> result = method(request=request, **args)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 410, in create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return self._create(request, body, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 148, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> ectxt.value = e.inner_exc
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_db/api.py", line 138, in wrapper
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return f(*args, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 521, in _create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> obj = do_create(body)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 503, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> request.context, reservation.reservation_id)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> self.force_reraise()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> six.reraise(self.type_, self.value, self.tb)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron/api/v2/base.py", line 496, in do_create
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> return obj_creator(request.context, **kwargs)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 1086, in create_l7policy
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> l7policy_db)
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> File "/opt/neutron/lib/python2.7/site-packages/neutron_lbaas/services/loadbalancer/plugin.py", line 494, in _call_driver_operation
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>> raise loadbalancerv2.DriverError()
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>DriverError: An error happened in the driver
2017-10-03 07:34:42.800 18 TRACE neutron.api.v2.resource >>>>>

Thanks you,
Mihaela Balas


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.


Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.


OpenStack Development Mailing List (not for usage questions)
Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Oct 13, 2017 by mihaela.balas_at_ora (480 points)   1 1
...