[remote rejected] HEAD -> refs/publish/master/bug/1475475 (missing Change-Id in

chenying@chenying-virtual-machine:~/stack/cinder$ sudo git review
remote: Resolving deltas: 100% (4/4)
remote: Processing changes: refs: 1, done???
remote: ERROR: missing Change-Id in commit message footer
remote: Suggestion for commit message:
remote: Publishing service capabilities after volume is sucessfully cteated
remote:
remote: Fixes this bug #1475475:
remote: There was only one backend.creating several thinly provisioned volumes in one minute ,if the size of Volume was larger than host‘s free_capacity_gb, the volume creating maybe failed.
remote:
remote:? Every one minute, host‘s capabilities was updated. One thinly provisioned volume scuessfully created, in the function consume_from_volume,
remote:?? hostsate‘s free_capacity_gb minus volume_gb,the free_capacity_gb was minus. If the host‘s capabilities had not been updated,the next volume creating maybe failed.
remote:?? Maybe the free_capacity_gb was minus,but the ratio of provisioned capacity over total capacity is not over the max_over_subscription_ratio,then the host choosing failed,
remote:?? the error message is ‘No valid host was found. No weighed hosts available‘
remote:
remote: Publishing service capabilities after volume is sucessfully cteated,this bug will be fixed.
remote:
remote: Fixes: bug #1475475
remote:
remote: Change-Id: Id3e195d414056c6baeb2afc263d52c7af6290749
remote:
remote: Hint: To automatically insert Change-Id, install the hook:
remote:?? gitdir=$(git rev-parse --git-dir); scp -p -P 29418 chenying@review.openstack.org:hooks/commit-msg ${gitdir}/hooks/
remote:
remote:
To https://chenying:kcXgyFIpCvMe@review.openstack.org/openstack/cinder.git
?! [remote rejected] HEAD -> refs/publish/master/bug/1475475 (missing Change-Id in commit message footer)
error: failed to push some refs to ‘https://chenying:kcXgyFIpCvMe@review.openstack.org/openstack/cinder.git‘

?

?

原因 29418端口被墙 无法通过scp的方式添加change-id

?

解决方法:

可以通过编辑git message文本,将上述命令提示的Change-Id: Id3e195d414056c6baeb2afc263d52c7af6290749 添加到messages最后一行,然后再次提交。

?

chenying@chenying-virtual-machine:~/stack/cinder$ sudo git commit --amend -a -F ../messages2
[sudo] password for chenying:
[Bug1475475 ae3e6e9] Publishing service capabilities after volume is sucessfully cteated
?1 file changed, 2 insertions(+)
chenying@chenying-virtual-machine:~/stack/cinder$ sudo git review
remote: Processing changes: updated: 1, refs: 1, done???
remote: (W) ae3e6e9: commit subject >65 characters; use shorter first paragraph
remote: (W) ae3e6e9: no files changed, message updated
To https://chenying:kcXgyFIpCvMe@review.openstack.org/openstack/cinder.git
?* [new branch]????? HEAD -> refs/publish/master/bug/1475475
chenying@chenying-virtual-machine:~/stack/cinder$ ^C

?

文章来自:http://chenyingkof.iteye.com/blog/2229108
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3