Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump min Ansible version for collection #15662

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

AlanCoding
Copy link
Member

SUMMARY

We haven't updated this in a long time, and this came up.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • Collection

@github-actions github-actions bot added the component:awx_collection issues related to the collection for controlling AWX label Nov 25, 2024
Copy link

sonarcloud bot commented Nov 25, 2024

@AlanCoding
Copy link
Member Author

I think this failure is a general problem.

________________ TestInstanceGroupInstanceMapping.test_mapping _________________
Traceback (most recent call last):
  File "/usr/lib64/python3.11/unittest/case.py", line 57, in testPartExecutor
    yield
  File "/usr/lib64/python3.11/unittest/case.py", line 623, in run
    self._callTestMethod(testMethod)
  File "/usr/lib64/python3.11/unittest/case.py", line 579, in _callTestMethod
    if method() is not None:
       ^^^^^^^^
  File "/awx_devel/awx/main/tests/functional/task_management/test_capacity.py", line 25, in test_mapping
    with self.assertNumQueries(3):
  File "/var/lib/awx/venv/awx/lib64/python3.11/site-packages/django/test/testcases.py", line 99, in __exit__
    self.test_case.assertEqual(
  File "/usr/lib64/python3.11/unittest/case.py", line 873, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib64/python3.11/unittest/case.py", line 866, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 4 != 3 : 4 queries executed, 3 expected
Captured queries were:
1. SELECT "main_instance"."id", "main_instance"."hostname", "main_instance"."capacity", "main_instance"."enabled", "main_instance"."node_type", "main_instance"."node_state" FROM "main_instance" WHERE ("main_instance"."enabled" AND "main_instance"."hostname" IS NOT NULL AND "main_instance"."node_state" = 'ready' AND NOT ("main_instance"."node_type" = 'hop')) ORDER BY "main_instance"."hostname" ASC
2. SELECT "conf_setting"."id", "conf_setting"."created", "conf_setting"."modified", "conf_setting"."key", "conf_setting"."value", "conf_setting"."user_id" FROM "conf_setting" WHERE ("conf_setting"."key" IN ('ACTIVITY_STREAM_ENABLED', 'ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC', 'ORG_ADMINS_CAN_SEE_ALL_USERS', 'MANAGE_ORGANIZATION_AUTH', 'TOWER_URL_BASE', 'REMOTE_HOST_HEADERS', 'PROXY_IP_ALLOWED_LIST', 'CSRF_TRUSTED_ORIGINS', 'LICENSE', 'REDHAT_USERNAME', 'REDHAT_PASSWORD', 'SUBSCRIPTIONS_USERNAME', 'SUBSCRIPTIONS_PASSWORD', 'AUTOMATION_ANALYTICS_URL', 'INSTALL_UUID', 'DEFAULT_EXECUTION_ENVIRONMENT', 'CUSTOM_VENV_PATHS', 'AD_HOC_COMMANDS', 'ALLOW_JINJA_IN_EXTRA_VARS', 'AWX_ISOLATION_BASE_PATH', 'AWX_ISOLATION_SHOW_PATHS', 'AWX_TASK_ENV', 'AWX_RUNNER_KEEPALIVE_SECONDS', 'GALAXY_TASK_ENV', 'INSIGHTS_TRACKING_STATE', 'PROJECT_UPDATE_VVV', 'AWX_ROLES_ENABLED', 'AWX_COLLECTIONS_ENABLED', 'AWX_SHOW_PLAYBOOK_LINKS', 'AWX_MOUNT_ISOLATED_PATHS_ON_K8S', 'GALAXY_IGNORE_CERTS', 'STDOUT_MAX_BYTES_DISPLAY', 'EVENT_STDOUT_MAX_BYTES_DISPLAY', 'MAX_WEBSOCKET_EVENT_RATE', 'SCHEDULE_MAX_JOBS', 'AWX_ANSIBLE_CALLBACK_PLUGINS', 'DEFAULT_JOB_TIMEOUT', 'DEFAULT_JOB_IDLE_TIMEOUT', 'DEFAULT_INVENTORY_UPDATE_TIMEOUT', 'DEFAULT_PROJECT_UPDATE_TIMEOUT', 'ANSIBLE_FACT_CACHE_TIMEOUT', 'MAX_FORKS', 'LOG_AGGREGATOR_HOST', 'LOG_AGGREGATOR_PORT', 'LOG_AGGREGATOR_TYPE', 'LOG_AGGREGATOR_USERNAME', 'LOG_AGGREGATOR_PASSWORD', 'LOG_AGGREGATOR_LOGGERS', 'LOG_AGGREGATOR_INDIVIDUAL_FACTS', 'LOG_AGGREGATOR_ENABLED', 'LOG_AGGREGATOR_TOWER_UUID', 'LOG_AGGREGATOR_PROTOCOL', 'LOG_AGGREGATOR_TCP_TIMEOUT', 'LOG_AGGREGATOR_VERIFY_CERT', 'LOG_AGGREGATOR_LEVEL', 'LOG_AGGREGATOR_ACTION_QUEUE_SIZE', 'LOG_AGGREGATOR_ACTION_MAX_DISK_USAGE_GB', 'LOG_AGGREGATOR_MAX_DISK_USAGE_PATH', 'LOG_AGGREGATOR_RSYSLOGD_DEBUG', 'API_400_ERROR_LOG_FORMAT', 'AUTOMATION_ANALYTICS_LAST_GATHER', 'AUTOMATION_ANALYTICS_LAST_ENTRIES', 'AUTOMATION_ANALYTICS_GATHER_INTERVAL', 'BULK_JOB_MAX_LAUNCH', 'BULK_HOST_MAX_CREATE', 'BULK_HOST_MAX_DELETE', 'SUBSCRIPTION_USAGE_MODEL', 'CLEANUP_HOST_METRICS_LAST_TS', 'HOST_METRIC_SUMMARY_TASK_LAST_TS', 'AWX_CLEANUP_PATHS', 'AWX_REQUEST_PROFILE', 'DEFAULT_CONTAINER_RUN_OPTIONS', 'RECEPTOR_RELEASE_WORK', 'RECEPTOR_KEEP_WORK_ON_ERROR', 'SESSION_COOKIE_AGE', 'SESSIONS_PER_USER', 'DISABLE_LOCAL_AUTH', 'AUTH_BASIC_ENABLED', 'OAUTH2_PROVIDER', 'LOGIN_REDIRECT_OVERRIDE', 'ALLOW_METRICS_FOR_ANONYMOUS_USERS', 'PENDO_TRACKING_STATE', 'CUSTOM_LOGIN_INFO', 'CUSTOM_LOGO', 'MAX_UI_JOB_EVENTS', 'UI_LIVE_UPDATES_ENABLED') AND "conf_setting"."user_id" IS NULL) ORDER BY "conf_setting"."id" ASC
3. SELECT "main_instancegroup"."id", "main_instancegroup"."name", "main_instancegroup"."is_container_group", "main_instancegroup"."max_concurrent_jobs", "main_instancegroup"."max_forks" FROM "main_instancegroup"
4. SELECT ("main_instancegroup_instances"."instancegroup_id") AS "_prefetch_related_val_instancegroup_id", "main_instance"."id", "main_instance"."uuid", "main_instance"."hostname", "main_instance"."ip_address", "main_instance"."created", "main_instance"."modified", "main_instance"."version", "main_instance"."cpu", "main_instance"."memory", "main_instance"."errors", "main_instance"."last_seen", "main_instance"."health_check_started", "main_instance"."last_health_check", "main_instance"."capacity", "main_instance"."capacity_adjustment", "main_instance"."enabled", "main_instance"."managed_by_policy", "main_instance"."cpu_capacity", "main_instance"."mem_capacity", "main_instance"."node_type", "main_instance"."node_state", "main_instance"."managed" FROM "main_instance" INNER JOIN "main_instancegroup_instances" ON ("main_instance"."id" = "main_instancegroup_instances"."instance_id") WHERE "main_instancegroup_instances"."instancegroup_id" IN (1, 2, 3) ORDER BY "main_instance"."hostname" ASC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant