Actions
Issue #7511
closedPulp Squeezer status module caching API response and failing
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:
Description
When the squeezer modules instantiate OpenAPI(), the refresh_cache options defaults to 'False'. See https://github.com/pulp/squeezer/blob/develop/plugins/module_utils/openapi.py#L43. I believe This causes the cache to retain API responses, negatively affecting multiple calls to the status module.
For example, the following playbook task fails, if the Pulp API is not available during the first iteration:
- name: Ensure Pulp is up and healthy
pulp.squeezer.status:
pulp_url: "http://{{ pulp_api_host }}:{{ pulp_api_port }}"
username: "{{ pulp_admin_username }}"
password: "{{ pulp_default_admin_password }}"
register: result
until: >
result.status is defined and
result.status.database_connection.connected == true and
result.status.redis_connection.connected == true and
result.status.online_workers | map(attribute='name') | select('match', '^resource-manager$') | list | count > 0 and
result.status.online_workers | map(attribute='name') | select('match', '^[0-9]+@.*$') | list | count > 0
delay: 2
retries: 60
Actions