F5Networks / f5-openstack-agent

The F5 Agent for OpenStack Neutron allows you to deploy BIG-IP services in an OpenStack environment.
http://clouddocs.f5.com/products/openstack/agent/latest
Apache License 2.0
14 stars 38 forks source link

TMOS 12.1.1 fails when attaching policy to virtual #424

Closed pjbreaux closed 7 years ago

pjbreaux commented 7 years ago

OpenStack Release

feature.l7switching

Description

This error occurs in _assure_l7rules_created in lbaas_builder module. The policy and at least one rule does exist on the device when this test is run, but it looks like during the recreation of the policy, it fails:

2016-11-18 16:02:04.518 32118 DEBUG root [req-e1699ffb-77d0-46e1-9868-f113b7cda26a aa83a0257cae4da59cf68a888e54014c 152885e519ae4f438d66a32c67863116 - - -] post WITH uri: https://10.190.7.195:
443/mgmt/tm/ltm/virtual/~Project_152885e519ae4f438d66a32c67863116~Project_46b4c7fc-46f8-46e4-9121-40283a96339b/policies/ AND suffix:  AND kwargs: {'json': {'partition': u'Project_152885e519ae4
f438d66a32c67863116', 'name': 'wrapper_policy'}} wrapper /usr/lib/python2.7/site-packages/icontrol/session.py:226
2016-11-18 16:02:04.541 32118 DEBUG root [req-e1699ffb-77d0-46e1-9868-f113b7cda26a aa83a0257cae4da59cf68a888e54014c 152885e519ae4f438d66a32c67863116 - - -] RESPONSE::STATUS: 404 Content-Type:
application/json Content-Encoding: None
Text: u'{"code":404,"message":"Object not found - wrapper_policy","errorStack":[],"apiError":1}' wrapper /usr/lib/python2.7/site-packages/icontrol/session.py:234
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver [req-e1699ffb-77d0-46e1-9868-f113b7cda26a aa83a0257cae4da59cf68a888e54014c 152885e519ae4f438d66a32c
67863116 - - -] 404 Unexpected Error: Not Found for uri: https://10.190.7.195:443/mgmt/tm/ltm/virtual/~Project_152885e519ae4f438d66a32c67863116~Project_46b4c7fc-46f8-46e4-9121-40283a96339b/pol
icies/
Text: u'{"code":404,"message":"Object not found - wrapper_policy","errorStack":[],"apiError":1}'
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver Traceback (most recent call last):
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver   File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/icontrol_driver.p
y", line 1132, in _common_service_handler
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver     all_subnet_hints)
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver   File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py", line 63, in assure_service
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver     self._assure_l7rules_created(service)
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver   File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/lbaas_builder.py", line 400, in _assure_l7rules_created
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver     raise f5_ex.L7PolicyCreationException(err.message)
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver L7PolicyCreationException: 404 Unexpected Error: Not Found for uri: https://10.190.7.195:443/mgmt/tm/ltm/virtual/~Project_152885e519ae4f438d66a32c67863116~Project_46b4c7fc-46f8-46e4-9121-40283a96339b/policies/
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver Text: u'{"code":404,"message":"Object not found - wrapper_policy","errorStack":[],"apiError":1}'
2016-11-18 16:02:04.542 32118 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.icontrol_driver
pjbreaux commented 7 years ago

@jlongstaf: I was able to modify a published policy, so that shouldn't be an issue.

pjbreaux commented 7 years ago

Fixed by #429