recent import of stevedore to stackforge failed to import the git repo

Bug #1257931 reported by Doug Hellmann
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
High
Jeremy Stanley

Bug Description

First, sorry if this is a known issue -- I'm traveling and don't have good IRC access.

Stevedore was recently imported to stackforge, except there's no code in the new git repository at https://git.openstack.org/cgit/stackforge/stevedore/

Revision history for this message
Doug Hellmann (doug-hellmann) wrote :

The tooz repository looks like it is in the same state.

Jeremy Stanley (fungi)
Changed in openstack-ci:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Jeremy Stanley (fungi)
Revision history for this message
Jeremy Stanley (fungi) wrote :

On review.openstack.org, git branch -a returns empty in both copies (~gerrit2/review_site/git and /var/lib/git) of stackforge/climate-nova and stackforge/stevedore. The repositories on zuul.openstack.org also show this behavior for just those two projects as well. On the git.openstack.org server farm, in addition to the two aforementioned projects, three of the four pool members also have stackforge/tooz in the same state.

Revision history for this message
Jeremy Stanley (fungi) wrote :

Aha!

    fungi@review:~$ sudo rm -rf /{var/lib,home/gerrit2/review_site}/git/stackforge/stevedore.git
    fungi@review:~$ sudo manage-projects stackforge/stevedore
    ERROR:manage_projects:Problems creating stackforge/stevedore, moving on.
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/jeepyb/cmd/manage_projects.py", line 604, in main
        gerrit.replicate(project)
      File "/usr/local/lib/python2.7/dist-packages/gerritlib/gerrit.py", line 146, in replicate
        out, err = self._ssh(cmd)
      File "/usr/local/lib/python2.7/dist-packages/gerritlib/gerrit.py", line 228, in _ssh
        raise Exception("Gerrit error executing %s" % command)
    Exception: Gerrit error executing gerrit replicate stackforge/stevedore
    fungi@review:~$ ls /{var/lib,home/gerrit2/review_site}/git/stackforge/stevedore.git/refs/heads/
    /home/gerrit2/review_site/git/stackforge/stevedore.git/refs/heads/:

    /var/lib/git/stackforge/stevedore.git/refs/heads/:

Revision history for this message
Jeremy Stanley (fungi) wrote :

    DEBUG:manage_projects:Command said: Initialized empty Git repository in /var/lib/git/stackforge/stevedore.git/
    DEBUG:manage_projects:Executing command: chown -R gerrit2:gerrit2 /var/lib/git/stackforge/stevedore.git
    DEBUG:manage_projects:Return code: 0
    DEBUG:manage_projects:Command said:
    DEBUG:manage_projects:Executing command: git clone git://github.com/dreamhost/stevedore.git /var/lib/jeepyb/stackforge/stevedore
    DEBUG:manage_projects:Return code: 128
    DEBUG:manage_projects:Command said: fatal: destination path '/var/lib/jeepyb/stackforge/stevedore' already exists and is not an empty directory.

Revision history for this message
Jeremy Stanley (fungi) wrote :

Red herring. Just realized the latter was /var/lib/jeepyb/stackforge/stevedore so I needed to clear that too. Worth noting though that if that directory exists in a broken state, it will not self-mend so we may want to trap for it if we see this pattern repeat in the future.

Revision history for this message
Jeremy Stanley (fungi) wrote :

Okay, the affected projects have been cleared and reinitialized/reimported successfully via manage-projects. Git repositories on review, zuul and the git.openstack.org server farm all appear operable now.

Changed in openstack-ci:
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.