Rocky repo build fails when upgrading from queens

Bug #1794599 reported by Ionuț Bîru
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
High
Jesse Pretorius

Bug Description

While running the playbook repo-install.yml it failed the task because there is a left over role of molteniron.

FAILED - RETRYING: Clone git repositories (10 retries left).
FAILED - RETRYING: Clone git repositories (9 retries left).
FAILED - RETRYING: Clone git repositories (8 retries left).
FAILED - RETRYING: Clone git repositories (7 retries left).
FAILED - RETRYING: Clone git repositories (6 retries left).
FAILED - RETRYING: Clone git repositories (5 retries left).
FAILED - RETRYING: Clone git repositories (4 retries left).
FAILED - RETRYING: Clone git repositories (3 retries left).
FAILED - RETRYING: Clone git repositories (2 retries left).
FAILED - RETRYING: Clone git repositories (1 retries left).
failed: [ctrl1_repo_container-50bd0483] (item={'name': u'molteniron', 'project_group': u'all', 'fragment': None, 'url': u'https://git.openstack.org/openstack/molteniron', 'version': u'stable/queens', 'original': u'git+https://git.openstack.org/openstack/molteniron@stable/queens#egg=molteniron&gitname=molteniron&projectgroup=all', 'egg_name': u'molteniron'}) => {"attempts": 10, "changed": false, "cmd": "/usr/bin/git checkout --force stable/queens", "item": {"egg_name": "molteniron", "fragment": null, "name": "molteniron", "original": "git+https://git.openstack.org/openstack/molteniron@stable/queens#egg=molteniron&gitname=molteniron&projectgroup=all", "project_group": "all", "url": "https://git.openstack.org/openstack/molteniron", "version": "stable/queens"}, "msg": "Failed to checkout stable/queens", "rc": 1, "stderr": "error: pathspec 'stable/queens' did not match any file(s) known to git.\n", "stderr_lines": ["error: pathspec 'stable/queens' did not match any file(s) known to git."], "stdout": "", "stdout_lines": []}

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

In https://review.openstack.org/587586 we removed molteniron from the integrated build, but we didn't add anything to remove /etc/ansible/roles/os_molteniron when doing a major upgrade. We should add something to do that, otherwise the py_pkgs lookup will try to build the wheel from git, but the git repo won't be there and repo_build will fail.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → High
Changed in openstack-ansible:
assignee: nobody → Jesse Pretorius (jesse-pretorius)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.openstack.org/605522

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible (stable/rocky)

Reviewed: https://review.openstack.org/605522
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible/commit/?id=e94c56ebe56559a2b2940cd2ef5378378905ac5e
Submitter: Zuul
Branch: stable/rocky

commit e94c56ebe56559a2b2940cd2ef5378378905ac5e
Author: Jesse Pretorius <email address hidden>
Date: Wed Sep 26 21:20:43 2018 +0100

    Automate the removal of the molteniron role

    In an upgrade from Queens to Rocky, the molteniron role is still
    there, causing the repo build process to pick it up and try to
    build wheels - but it fails.

    Here we ensure that the upgrade process cleans it up, preventing
    this from happening.

    Closes-Bug: 1794599
    Change-Id: I641fc0deb8292af0cb19887837d4de8d618cd18f

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible 18.0.0.0rc4

This issue was fixed in the openstack/openstack-ansible 18.0.0.0rc4 release candidate.

Revision history for this message
Gilles Mocellin (gilles-mocellin) wrote :

Hello,

Don't know if I must open a new bug, but I had a similar problem with the gnocchi repository :
- the git clone failed, version not found on the commit ID specified
As I can(t find a way to retry, susscessive launch always skipped repo clone, even if I deleted the whole directory /var/www/repo/openstackgit/gnocchi.

So I made a manual git clone, then a git checkout with the version number which failed at first.
And it worked...

Revision history for this message
Carlos Augusto da Silva Martins (carlos.martins) wrote :

Hello,
I have the same issue but in a different process.
I am building from the begin a cloud using the OpenStack Ansible "Rocky version" and this issue appears on my first clean installation, I need to run the phase "openstack-ansible setup-infrastructure.yml" twice to works.

My branch is latest from Rocky.

There is some variable to set on user_variables.yml to bypass this bug?

Thanks.

Revision history for this message
Carlos Augusto da Silva Martins (carlos.martins) wrote :

https://bugs.launchpad.net/openstack-ansible/+bug/1794599/comments/6

My issue is with molteniron:

FAILED - RETRYING: Clone git repositories (10 retries left).
FAILED - RETRYING: Clone git repositories (9 retries left).
FAILED - RETRYING: Clone git repositories (8 retries left).
FAILED - RETRYING: Clone git repositories (7 retries left).
FAILED - RETRYING: Clone git repositories (6 retries left).
FAILED - RETRYING: Clone git repositories (5 retries left).
FAILED - RETRYING: Clone git repositories (4 retries left).
FAILED - RETRYING: Clone git repositories (3 retries left).
FAILED - RETRYING: Clone git repositories (2 retries left).
FAILED - RETRYING: Clone git repositories (1 retries left).
failed: [ctrl1_repo_container-50bd0483] (item={'name': u'molteniron', 'project_group': u'all', 'fragment': None, 'url': u'https://git.openstack.org/openstack/molteniron', 'version': u'stable/queens', 'original': u'git+https://git.openstack.org/openstack/molteniron@stable/queens#egg=molteniron&gitname=molteniron&projectgroup=all', 'egg_name': u'molteniron'}) => {"attempts": 10, "changed": false, "cmd": "/usr/bin/git checkout --force stable/queens", "item": {"egg_name": "molteniron", "fragment": null, "name": "molteniron", "original": "git+https://git.openstack.org/openstack/molteniron@stable/queens#egg=molteniron&gitname=molteniron&projectgroup=all", "project_group": "all", "url": "https://git.openstack.org/openstack/molteniron", "version": "stable/queens"}, "msg": "Failed to checkout stable/queens", "rc": 1, "stderr": "error: pathspec 'stable/queens' did not match any file(s) known to git.\n", "stderr_lines": ["error: pathspec 'stable/queens' did not match any file(s) known to git."], "stdout": "", "stdout_lines": []}

Revision history for this message
Georgina Shippey (gshippey) wrote :

Please resubmit your bugs separately if you are still facing issues. It is unlikely we will produce any patches for releases in Extended Maintenance / EOL.

Fixed released for the original bug submitted.
https://review.openstack.org/605522

Changed in openstack-ansible:
status: In Progress → Fix Released
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.