Not able to bootstrap ansible

Bug #2038315 reported by Adivya Singh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Damian Dąbrowski

Bug Description

while running boot strap ansible during upgrade

https://docs.openstack.org/openstack-ansible/xena/admin/upgrades/major-upgrades.html

TASK [Install collection requirements with ansible galaxy] **************************************************************************************************
FAILED - RETRYING: Install collection requirements with ansible galaxy (5 retries left).
FAILED - RETRYING: Install collection requirements with ansible galaxy (4 retries left).
FAILED - RETRYING: Install collection requirements with ansible galaxy (3 retries left).
FAILED - RETRYING: Install collection requirements with ansible galaxy (2 retries left).
FAILED - RETRYING: Install collection requirements with ansible galaxy (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, "cmd": ["/opt/ansible-runtime/bin/ansible-galaxy", "collection", "install", "--force", "-r", "/tmp/ansible._iayzidf", "-p", "/etc/ansible/"], "delta": "0:00:23.748827", "end": "2023-10-03 12:04:42.555685", "msg": "non-zero return code", "rc": 250, "start": "2023-10-03 12:04:18.806858", "stderr": "[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to \nnew standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be \nremoved from ansible-core in version 2.15. Deprecation warnings can be disabled\n by setting deprecation_warnings=False in ansible.cfg.\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible-collections-openstackogo3u1m3'...\nNote: switching to '1.5.3'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at 15f73aa Merge \"Release 1.5.3 version with bugfixes\"\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible-config_templateipsd_l7y'...\nNote: switching to '1.2.1'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at 7422a09 Move config_template to plugins/action\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.generalg198dvnb'...\nNote: switching to '4.0.1'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at ac3e803a3 Release 4.0.1.\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.rabbitmqmci_h8xh'...\nNote: switching to '1.1.0'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at 90b1384 Release 1.1.0 commit (#91)\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.mysqlsh92ryb_'...\nNote: switching to '2.3.1'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at 1cb39cc Release 2.3.1 commit (#236)\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.cryptowc4lbqbt'...\nNote: switching to '1.9.5'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at fbadcbe Release 1.9.5.\nCloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible.posixy7q5nr9c'...\nNote: switching to '1.3.0'.\n\nYou are in 'detached HEAD' state. You can look around, make experimental\nchanges and commit them, and you can discard any commits you make in this\nstate without impacting any branches by switching back to a branch.\n\nIf you want to create a new branch to retain commits you create, you may\ndo so (now or later) by using -c with the switch command. Example:\n\n git switch -c <new-branch-name>\n\nOr undo this operation with:\n\n git switch -\n\nTurn off this advice by setting config variable advice.detachedHead to false\n\nHEAD is now at ab9eaf2 Merge pull request #245 from saito-hideki/release_1.3.0\n[WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got an\nunexpected error when getting available versions of collection\nansible.netcommon: '/api/v3/plugin/ansible/content/published/collections/index/\nansible/netcommon/versions/'\nERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'", "stderr_lines": ["[DEPRECATION WARNING]: ANSIBLE_CALLBACK_WHITELIST option, normalizing names to ", "new standard, use ANSIBLE_CALLBACKS_ENABLED instead. This feature will be ", "removed from ansible-core in version 2.15. Deprecation warnings can be disabled", " by setting deprecation_warnings=False in ansible.cfg.", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible-collections-openstackogo3u1m3'...", "Note: switching to '1.5.3'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at 15f73aa Merge \"Release 1.5.3 version with bugfixes\"", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible-config_templateipsd_l7y'...", "Note: switching to '1.2.1'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at 7422a09 Move config_template to plugins/action", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.generalg198dvnb'...", "Note: switching to '4.0.1'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at ac3e803a3 Release 4.0.1.", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.rabbitmqmci_h8xh'...", "Note: switching to '1.1.0'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at 90b1384 Release 1.1.0 commit (#91)", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.mysqlsh92ryb_'...", "Note: switching to '2.3.1'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at 1cb39cc Release 2.3.1 commit (#236)", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/community.cryptowc4lbqbt'...", "Note: switching to '1.9.5'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at fbadcbe Release 1.9.5.", "Cloning into '/root/.ansible/tmp/ansible-local-338998lwmtwmc/tmpa9033xca/ansible.posixy7q5nr9c'...", "Note: switching to '1.3.0'.", "", "You are in 'detached HEAD' state. You can look around, make experimental", "changes and commit them, and you can discard any commits you make in this", "state without impacting any branches by switching back to a branch.", "", "If you want to create a new branch to retain commits you create, you may", "do so (now or later) by using -c with the switch command. Example:", "", " git switch -c <new-branch-name>", "", "Or undo this operation with:", "", " git switch -", "", "Turn off this advice by setting config variable advice.detachedHead to false", "", "HEAD is now at ab9eaf2 Merge pull request #245 from saito-hideki/release_1.3.0", "[WARNING]: Skipping Galaxy server https://galaxy.ansible.com/api/. Got an", "unexpected error when getting available versions of collection", "ansible.netcommon: '/api/v3/plugin/ansible/content/published/collections/index/", "ansible/netcommon/versions/'", "ERROR! Unexpected Exception, this is probably a bug: '/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'"], "stdout": "Starting galaxy collection install process\nProcess install dependency map\nto see the full traceback, use -vvv", "stdout_lines": ["Starting galaxy collection install process", "Process install dependency map", "to see the full traceback, use -vvv"]}

affects: osops → openstack-ansible
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/yoga)

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897351

Changed in openstack-ansible:
assignee: nobody → Damian Dąbrowski (damiandabrowski)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: stable/yoga
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897355

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (stable/yoga)

Change abandoned by "Damian Dąbrowski <email address hidden>" on branch: stable/yoga
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897355
Reason: pushed by a mistake

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-ansible (stable/xena)

Related fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897356

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-ansible (stable/wallaby)

Related fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897357

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/yoga)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible/+/897351
Committed: https://opendev.org/openstack/openstack-ansible/commit/0ddc7abc2624c50396ffa1b8ad574ac6bb63dda8
Submitter: "Zuul (22348)"
Branch: stable/yoga

commit 0ddc7abc2624c50396ffa1b8ad574ac6bb63dda8
Author: Damian Dabrowski <email address hidden>
Date: Wed Oct 4 18:26:58 2023 +0200

    Bump ansible-core to 2.12.8

    On 30.09.2023, "old" ansible galaxy(galaxy.ansible.com) was replaced
    with "galaxy ng"[1].
    There was a bug [2][3][4] that was fixed only in a supported
    ansible-core versions, so:
    - v2.12.8
    - v2.13.3
    - v2.14.0 (and all newer versions)

    All openstack-ansible versions up to Yoga are using older ansible-core
    versions.
    As a result, bootstrap-ansible.sh script fails with an error:

    ```
    Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
    unexpected error when getting available versions of collection
    ansible.netcommon:
    '/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'
    ```

    This patch bumps ansible-core version to 2.12.8 that includes required
    fix.

    [1] https://www.ansible.com/blog/new-ansible-galaxy
    [2] https://github.com/ansible/ansible/issues/81830
    [3] https://github.com/ansible/ansible/issues/77911
    [4] https://github.com/ansible/ansible/pull/78325

    Closes-Bug: #2038315
    Change-Id: Ic381b98f92c12899da4cd64873989522151cb7eb

tags: added: in-stable-yoga
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-ansible (stable/xena)

Reviewed: https://review.opendev.org/c/openstack/openstack-ansible/+/897356
Committed: https://opendev.org/openstack/openstack-ansible/commit/e40beef76b22854a57a3fc7e5e291c0f83d3e1c9
Submitter: "Zuul (22348)"
Branch: stable/xena

commit e40beef76b22854a57a3fc7e5e291c0f83d3e1c9
Author: Damian Dabrowski <email address hidden>
Date: Wed Oct 4 19:58:00 2023 +0200

    Use github to fetch ansible collections

    On 30.09.2023, "old" ansible galaxy(galaxy.ansible.com) was replaced
    with "galaxy ng"[1].
    There was a bug [2][3][4] that was fixed only in a supported
    ansible-core versions, so:
    - v2.12.8
    - v2.13.3
    - v2.14.0 (and all newer versions)

    All openstack-ansible versions up to Yoga are using older ansible-core
    versions.
    As a result, bootstrap-ansible.sh script fails with an error:

    ```
    Skipping Galaxy server https://galaxy.ansible.com/api/. Got an
    unexpected error when getting available versions of collection
    ansible.netcommon:
    '/api/v3/plugin/ansible/content/published/collections/index/ansible/netcommon/versions/'
    ```

    This patch changes source for community collections from galaxy to github.

    [1] https://www.ansible.com/blog/new-ansible-galaxy
    [2] https://github.com/ansible/ansible/issues/81830
    [3] https://github.com/ansible/ansible/issues/77911
    [4] https://github.com/ansible/ansible/pull/78325

    Related-Bug: #2038315
    Depends-On: https://review.opendev.org/c/openstack/openstack-ansible-os_rally/+/897447
    Change-Id: Iadbc89076a33517efb1d2ec64e2dbd996f862c8c

tags: added: in-stable-xena
Changed in openstack-ansible:
status: New → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 25.5.0

This issue was fixed in the openstack/openstack-ansible 25.5.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (stable/wallaby)

Change abandoned by "Dr. Jens Harbott <email address hidden>" on branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/openstack-ansible/+/897357
Reason: stable/wallaby branch of openstack/openstack-ansible is about to be deleted. To be able to do that, all open patches need to be abandoned. Please cherry pick the patch to unmaintained/wallaby if you want to further work on this patch.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.