[openstack-dev] [ironic] AttributeError: 'GitReviewException' object has no attribute 'EXIT_CODE'

Malhar Vora mlvora.2010 at gmail.com
Sat Jul 25 12:14:32 UTC 2015


Hi Lucas,

I have followed steps you mentioned. I am getting following issue now.

malhar at ubuntu:~/Documents/contribution/temp/ironic$ git review -s
Using global/system git-review config files
(/etc/git-review/git-review.conf) is deprecated
Problem running 'git remote update gerrit'
Fetching gerrit
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Could not fetch gerrit
Problems encountered installing commit-msg hook
The following command failed with exit code 1
    "scp -P29418 malhar_vor at review.openstack.org:hooks/commit-msg
.git/hooks/commit-msg"
-----------------------
Permission denied (publickey).
-----------------------


I have generated ssh key and added same to gerrit twice but still facing
this issue.

Thanks,

Malhar

Regds,
*Malhar Vora*
http://about.me/malhar.vora


On Sat, Jul 25, 2015 at 3:22 AM, Lucas Alvares Gomes <lucasagomes at gmail.com>
wrote:

> Hi,
>
> > malhar at ubuntu:~/Documents/contribution/temp/ironic$ git review -s
> > Using global/system git-review config files
> > (/etc/git-review/git-review.conf) is deprecated
> > Could not connect to gerrit.
> > Enter your gerrit username: myusername
> > Trying again with
> > ssh://malhar_vora@review.openstack.org:29418/openstack/ironic.git
> > <traceback object at 0x7f337522e3f8>
> > We don't know where your gerrit is. Please manually create a remote
> > named "gerrit" and try again.
> > Could not connect to gerrit at
> > ssh://malhar_vora@review.openstack.org:29418/openstack/ironic.git
> > Traceback (most recent call last):
> >   File "/usr/local/bin/git-review", line 11, in <module>
> >     sys.exit(main())
> >   File "/usr/local/lib/python2.7/dist-packages/git_review/cmd.py", line
> > 1534, in main
> >     sys.exit(e.EXIT_CODE)
> > AttributeError: 'GitReviewException' object has no attribute 'EXIT_CODE'
> >
>
> Apparently you don't have the git remote map to review.openstack.org,
> you can add it by running the following:
>
> $ git remote add gerrit
> ssh://malhar_vor@review.openstack.org:29418/openstack/ironic.git
>
> Cheers,
> Lucas
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150725/8f3cd14c/attachment.html>


More information about the OpenStack-dev mailing list