Project

General

Profile

Actions

Bug #16615

closed

Failed to download remote objects and refs: fatal: shallow file was changed during fetch

Added by David Galloway almost 8 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Infrastructure Service
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Description

Jobs are sporadically failing due to $subject.

See http://pulpito.ceph.com/cbodley-2016-07-07_11:21:33-rgw-wip-rgw-tenant-sync---basic-mira/300937/

{'mira068.front.sepia.ceph.com': {'failed': True, 'cmd': ['/usr/bin/git', 'fetch', '--depth', '1', 'origin', 'master'], '_ansible_no_log': False, '_ansible_delegated_vars': {'ansible_host': 'localhost'}, 'invocation': {'module_name': 'git', 'module_args': {'force': True, 'track_submodules': False, 'reference': None, 'dest': '/var/lib/teuthworker/.cache/src/keys', 'verify_commit': False, 'clone': True, 'update': True, 'ssh_opts': None, 'repo': 'https://github.com/ceph/keys', 'bare': False, 'refspec': None, 'executable': None, 'remote': 'origin', 'recursive': True, 'accept_hostkey': False, 'depth': 1, 'version': 'master', 'key_file': None}}, 'changed': False, 'msg': 'Failed to download remote objects and refs: fatal: shallow file was changed during fetch\n'}
Actions #1

Updated by Zack Cerza almost 8 years ago

The only thing I can think of doing about this is not to use a shallow clone. Looks like it might not make much of a performance difference:

12:38:10 zack@zwork.local /tmp time git clone --depth 1 git@github.com:ceph/keys.git shallow
Cloning into 'shallow'...
remote: Counting objects: 108, done.
remote: Compressing objects: 100% (108/108), done.
remote: Total 108 (delta 0), reused 106 (delta 0), pack-reused 0
Receiving objects: 100% (108/108), 52.57 KiB | 0 bytes/s, done.
Checking connectivity... done.
git clone --depth 1 git@github.com:ceph/keys.git shallow  0.03s user 0.04s system 5% cpu 1.321 total
12:38:14 zack@zwork.local /tmp du -hs shallow
576K    shallow
12:38:19 zack@zwork.local /tmp time git clone git@github.com:ceph/keys.git full
Cloning into 'full'...
remote: Counting objects: 813, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 813 (delta 3), reused 0 (delta 0), pack-reused 800
Receiving objects: 100% (813/813), 216.91 KiB | 0 bytes/s, done.
Resolving deltas: 100% (399/399), done.
Checking connectivity... done.
git clone git@github.com:ceph/keys.git full  0.05s user 0.06s system 8% cpu 1.338 total
12:38:31 zack@zwork.local /tmp du -hs full
756K    full

Actions #2

Updated by Zack Cerza almost 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Zack Cerza
Actions #3

Updated by Zack Cerza almost 8 years ago

  • Status changed from In Progress to Fix Under Review
Actions #4

Updated by Zack Cerza almost 8 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF