Git problem: "Failed to resolve 'HEAD' as a valid ref."
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Core Infrastructure |
Fix Released
|
Undecided
|
James E. Blair |
Bug Description
The problem:
2014-02-19 15:01:38.954 | + git clone file://
2014-02-19 15:01:38.964 | Cloning into '.'...
2014-02-19 15:01:39.112 | warning: remote HEAD refers to nonexistent ref, unable to checkout.
2014-02-19 15:01:39.472 | + git reset --hard
2014-02-19 15:01:39.509 | fatal: Failed to resolve 'HEAD' as a valid ref.
2014-02-19 15:01:39.751 | Build step 'Execute shell' marked build as failure
Review: https:/
Failed merge: http://
As a matter of comparison, the commit from which the above review was cherry-picked merged successfully:
Review: https:/
Successful merge: http://
After talking to #openstack-infra, this seems to be something wrong with the git repos that are cached on the slave images.
Changed in openstack-ci: | |
assignee: | nobody → James E. Blair (corvus) |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/74780 /git.openstack. org/cgit/ openstack- infra/config/ commit/ ?id=cbd64b61751 bf22d2955ffb7f5 31a02947a97edb
Committed: https:/
Submitter: Jenkins
Branch: master
commit cbd64b61751bf22 d2955ffb7f531a0 2947a97edb
Author: James E. Blair <email address hidden>
Date: Wed Feb 19 09:03:19 2014 -0800
Add sync calls to all prepare scripts
Strictly speaking, we only need sync calls at the end of the
script that is directly invoked by nodepool. But just so we
don't have to think about it too much, add them to all prepare
scripts.
Without it, clouds will happily snapshot a system without all
the data written to disk!
Closes-Bug: 1282136
Change-Id: Id7dcf6667d6e48 eb5ae95fd42b09f 0651eeb38f9