原因是 29418这个端口已经被墙,解决方法有2种
1 设置代理可以解决
2 通过设置https方法的方式决绝
首先,需要登录review.openstack.org,然后在Settings -> HTTP Password里,生成一个HTTP密码,应该是一个大小写加数字的随机字符串。
然后通过git remote set-url gerrit https://username:[email protected]/openstack/nova.git命令把ssh修改成https方式,当然也可以用http
新增 gerrit git remote add gerrit https://username:[email protected]/openstack/cinder.git
把上面字符串中的用户名username/密码http-password改成你的gerrit用户名和上一步生成的HTTP密码。
username 在Settings ->profile->Username 这查看。
参考:
http://kiwik.github.io/openstack/2014/08/26/git-review提交代码失败的解决方法/
扫描二维码关注公众号,回复:
479722 查看本文章