[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

 

当你在提交时遇到 "[remote rejected] HEAD -> refs/for/dev (no changes made)" 的错误提示时,这通常意味着你尝试将一个没有更改的提交推送到远程仓库。 这个错误的原因可能是以下几种情况之一: 1. 没有进行任何更改:你可能没有对你的代码进行任何修改,或者没有添加新的文件。Git 不允许推送没有更改的提交,因为它没有任何新的内容需要上传到远程仓库。 2. 提交已经被推送过:如果你之前已经将相同的提交推送到了远程仓库,那么再次尝试推送时,Git 将拒绝该提交,因为它已经存在于远程仓库中。 3. 分支或远程仓库状态不同步:如果你的本地分支与远程仓库的分支状态不同步,例如其他人已经在远程仓库中进行了更新,或者你所在的团队使用了类似 Gerrit 这样的代码审查工具,可能需要先同步远程仓库的变更再进行提交。 解决这个问题的方法可以是: 1. 确保你对代码进行了修改或添加了新文件。在提交之前,使用 `git status` 命令检查你的工作区和暂存区的状态,并确保有更改需要提交。 2. 如果之前已经推送了相同的提交,你可以尝试使用 `git commit --amend` 命令来修改之前的提交,并重新提交。 3. 使用 `git pull` 命令来拉取远程仓库的最新更改,然后再尝试推送你的提交。 请记住,如果你不确定在特定的代码仓库中应该如何操作,最好与你的团队成员或该仓库的管理员进行沟通,以确保你的操作是正确的。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值