Bug 2052968 - TLS-terminated: AttributeError: type object 'Pool' has no attribute 'crl_container_ref'
Summary: TLS-terminated: AttributeError: type object 'Pool' has no attribute 'crl_cont...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-octavia
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: z9
: 16.1 (Train on RHEL 8.2)
Assignee: Tom Weininger
QA Contact: Bruna Bonguardo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-10 11:11 UTC by Omer Schwartz
Modified: 2022-12-07 20:26 UTC (History)
4 users (show)

Fixed In Version: openstack-octavia-5.0.3-1.20220216175316.8c32d2e.el8ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-12-07 20:25:48 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 776909 0 None MERGED Fix pools going into ERROR when updating the pool 2022-02-10 14:00:39 UTC
Red Hat Issue Tracker OSP-12601 0 None None None 2022-02-10 11:21:16 UTC
Red Hat Product Errata RHBA-2022:8795 0 None None None 2022-12-07 20:26:06 UTC

Description Omer Schwartz 2022-02-10 11:11:37 UTC
Description of problem:
The test octavia_tempest_plugin.tests.barbican_scenario.v2.test_tls_barbican.TLSWithBarbicanTest.test_pool_reencryption failed because of the following error message:

AttributeError: type object 'Pool' has no attribute 'crl_container_ref'

Traceback from the worker container:
2022-02-10 01:38:29.141 29 DEBUG octavia.controller.worker.v1.tasks.database_tasks [req-07fa9b31-8c9e-4d6b-8497-9534afeefb6e - 1b6e6e104f9341b08771a27fe789e9c1 - - -] Update DB for pool id: 1bf0c853-c194-44b0-b5fa-dcdb6b843fd6  execute /usr/lib/python3.6/site-packages/octavia/controller/worker/v1/tasks/database_tasks.py:1427
2022-02-10 01:38:29.151 29 WARNING octavia.controller.worker.v1.controller_worker [-] Task 'octavia.controller.worker.v1.tasks.database_tasks.UpdatePoolInDB' (89deb043-3e89-4988-9fd2-aefacf16a7f9) transitioned into state 'FAILURE' from state 'RUNNING'
4 predecessors (most recent first):
  Atom 'octavia.controller.worker.v1.tasks.amphora_driver_tasks.ListenersUpdate' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'loadbalancer': <octavia.common.data_models.LoadBalancer object at 0x7f19921932e8>}, 'provides': None}
  |__Atom 'octavia.controller.worker.v1.tasks.database_tasks.MarkPoolPendingUpdateInDB' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'pool': <octavia.common.data_models.Pool object at 0x7f19921a97f0>}, 'provides': None}
     |__Atom 'octavia.controller.worker.v1.tasks.lifecycle_tasks.PoolToErrorOnRevertTask' {'intention': 'EXECUTE', 'state': 'SUCCESS', 'requires': {'pool': <octavia.common.data_models.Pool object at 0x7f19921a97f0>, 'listeners': [<octavia.common.data_models.Listener object at 0x7f199218b6a0>], 'loadbalancer': <octavia.common.data_models.LoadBalancer object at 0x7f19921932e8>}, 'provides': None}
        |__Flow 'octavia-update-pool-flow': sqlalchemy.exc.InvalidRequestError: Entity '<class 'octavia.db.models.Pool'>' has no property 'crl_container_ref'
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker Traceback (most recent call last):
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 399, in _entity_descriptor
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     return getattr(entity, key)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker AttributeError: type object 'Pool' has no attribute 'crl_container_ref'
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker 
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker During handling of the above exception, another exception occurred:
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker 
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker Traceback (most recent call last):
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib/python3.6/site-packages/taskflow/engines/action_engine/executor.py", line 53, in _execute_task
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     result = task.execute(**arguments)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib/python3.6/site-packages/octavia/controller/worker/v1/tasks/database_tasks.py", line 1429, in execute
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     update_dict)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib/python3.6/site-packages/octavia/db/repositories.py", line 308, in update_pool_and_sp
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     self.pool.update(session, pool_id, **pool_dict)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib/python3.6/site-packages/octavia/db/repositories.py", line 114, in update
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     id=id).update(model_kwargs)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/query.py", line 3818, in update
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     update_op.exec_()
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1670, in exec_
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     self._do_pre_synchronize()
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1743, in _do_pre_synchronize
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     self._additional_evaluators(evaluator_compiler)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1912, in _additional_evaluators
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     values = self._resolved_values_keys_as_propnames
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1831, in _resolved_values_keys_as_propnames
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     for k, v in self._resolved_values:
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/persistence.py", line 1818, in _resolved_values
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     desc = _entity_descriptor(self.mapper, k)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker   File "/usr/lib64/python3.6/site-packages/sqlalchemy/orm/base.py", line 402, in _entity_descriptor
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker     "Entity '%s' has no property '%s'" % (description, key)
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker sqlalchemy.exc.InvalidRequestError: Entity '<class 'octavia.db.models.Pool'>' has no property 'crl_container_ref'
2022-02-10 01:38:29.151 29 ERROR octavia.controller.worker.v1.controller_worker 
2022-02-10 01:38:29.155 29 DEBUG octavia.controller.worker.v1.controller_worker [-] Task 'octavia.controller.worker.v1.tasks.database_tasks.UpdatePoolInDB' (89deb043-3e89-4988-9fd2-aefacf16a7f9) transitioned into state 'REVERTING' from state 'FAILURE' _task_receiver /usr/lib/python3.6/site-packages/taskflow/listeners/logging.py:194


Link for CI run:
https://rhos-ci-jenkins.lab.eng.tlv2.redhat.com/view/DFG/view/network/view/octavia/job/DFG-network-octavia-16.1_director-rhel-virthost-3cont_2comp-ipv4-geneve-tls-terminated/87/

Worker logs:
http://rhos-ci-logs.lab.eng.tlv2.redhat.com/logs/rcj/DFG-network-octavia-16.1_director-rhel-virthost-3cont_2comp-ipv4-geneve-tls-terminated/87/controller-0/var/log/containers/octavia/worker.log.gz


Version-Release number of selected component (if applicable):
16.1

How reproducible:
100%

Steps to Reproduce:
1. Run TLS-terminated job on OSP16.1
2.
3.

Actual results:
Pool_reencryption test fails with AttributeError: type object 'Pool' has no attribute 'crl_container_ref'

Expected results:
The test is supposed to pass

Comment 12 errata-xmlrpc 2022-12-07 20:25:48 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat OpenStack Platform 16.1.9 bug fix and enhancement advisory), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:8795


Note You need to log in before you can comment on or make changes to this bug.