[Openstack] Git/Gerrit workflow changes for Glance/Keystone

James E. Blair corvus at inaugust.com
Fri Aug 26 18:26:25 UTC 2011


Johannes Erdfelt <johannes at erdfelt.com> writes:

> I reviewed the updated documentation and made all of the changes to my
> local config. However, when I run 'git review', I get this error:
>
> johannes at compute1:~/openstack/glance/johannes$ git review
> Successfully rebased and updated refs/heads/protection.
> fatal: '/jerdfelt/glance.git': not a Gerrit project
> fatal: The remote end hung up unexpectedly

I worked with Johannes off-list to debug the problem.  Here's a summary
for anyone else who runs into this:

This can happen if you clone a repository other than
github.com/opestack/PROJECT.  For instance, if you clone a private
github fork instead of the one in the openstack GitHub organization.  If
you run "git config -l", you should see (using glance as an example):

remote.origin.url=https://github.com/openstack/glance.git
remote.gerrit.url=ssh://USERNAME@review.openstack.org:29418/openstack/glance.git

The instructions in the wiki[1] assume that you're cloning the main
public repository, as to do the tools we recommend, and the simplest
solution is to clone a new copy of the main repo.

I agree there should be a better error message in this case.  I've filed
a bug about that[2].

[1] http://wiki.openstack.org/GerritWorkflow
[2] https://bugs.launchpad.net/openstack-ci/+bug/834950

-Jim




More information about the Openstack mailing list