首页 > 代码库 > GitReviewException object has no attribute 'EXIT_CODE'

GitReviewException object has no attribute 'EXIT_CODE'

 1.环境
ubuntu16.04 Launchpad Gerrit OpenStack ID
 
2.问题
学习OpenStack workflow时,需要注册Launchpad账号,然后在Gerrit签署ICLA协议,
最后在sandbox提交代码,在执行 "git review -s"时出现
“AttributeError: ‘GitReviewException‘ object has no attribute ‘EXIT_CODE‘”错误.
 
3.解决方法
    3.1  可能是SSH KEY问题
         1) Gerrit中的SSH KEY 和本地~/.ssh/id_rsa.pub的SSH KEY 不一致, 将
             本地SSH KEY添加到Gerrit中。
    3.2  Contact information NOT UPDATED
         1) In Gerrit, look up the setting -> Contact information, YOU MUST UPDATE THE MAILING ADDRESS(
             other information is optional). after updated, it will give notification like this:
            "The following offline contact information is stored encrypted."
             ...
            "Contact information last updated on Jun 16, 2017 at 11:25 AM."
 
            THIS UPDATE MAY TURN UP "SERVER ERROR" WITHOUT AN OPENSTACK ID  ACCOUNT REGISGERED.
                                             技术分享
 
             Here is detailed solution to the server error problem:
             https://ask.openstack.org/en/question/56720/cannot-store-contact-information-when-updating-info-in-openstack-gerrit/
             
             In case of the link fails soon, I copy its main solution as following:
                      1) register an OpenStack ID in "www.openstack.org"
                      2) make sure your are an Individual Member of the Foundation. 
                          技术分享
                       3)   If you see the button, hit it. Now while you‘re on your profile page make sure that your affiliation
                             history is correct and that youre primary email is the same you‘re using on gerrit.
              Head back to gerrit and update your contact information(mailing address is mandatory).
    
    3.3 port 29418 in gerrit is blocked.
          Use VPN to solve the "Could not connect to gerrit" issue, try different VPN(different ip) to
          run "git review -s" command.

GitReviewException object has no attribute 'EXIT_CODE'