#302 ostree repos clash
Closed: Fixed None Opened 8 years ago by ausil.

With two different ostree repos using dfferent git repos to define them we are hitting a namespacing issue in pungi


2016-05-17 08:21:58 [INFO ] [BEGIN] ---------- PHASE: OSTREE ----------
2016-05-17 08:21:58 [DEBUG ] Notification: '/usr/bin/pungi-fedmsg-notification' 'phase-start', {'phase_name': 'ostree', 'location': 'http://kojipkgs.fedoraproject.org/compose//rawhide/Fedora-Rawhide-20160517.n.0/compose', 'compose_id': u'Fedora-Rawhide-20160517.n.0'}
2016-05-17 08:22:00 [INFO ] [BEGIN] OSTree phase for variant Atomic, arch x86_64
2016-05-17 08:22:00 [INFO ] [BEGIN] OSTree phase for variant ostree, arch x86_64
2016-05-17 08:22:00 [DEBUG ] Exporting directory . from git https://pagure.io/workstation-ostree-config.git (branch master)...
2016-05-17 08:22:00 [DEBUG ] Retrying execution 1/5 of '/usr/bin/git clone --depth 1 --branch=master https://pagure.io/workstation-ostree-config.git /tmp/cvswrapper_kUWFgP'
2016-05-17 08:22:00 [DEBUG ] Exporting directory . from git https://pagure.io/fedora-atomic.git (branch master)...
2016-05-17 08:22:00 [DEBUG ] Retrying execution 1/5 of '/usr/bin/git clone --depth 1 --branch=master https://pagure.io/fedora-atomic.git /tmp/cvswrapper_OUH9nL'
2016-05-17 08:22:01 [DEBUG ] Removing /tmp/cvswrapper_OUH9nL
2016-05-17 08:22:01 [DEBUG ] Removing /tmp/cvswrapper_kUWFgP
2016-05-17 08:22:01 [INFO ] [FAIL] Ostree (variant ostree, arch x86_64) failed, but going on anyway.
2016-05-17 08:22:01 [INFO ] [Errno 17] File exists: '/mnt/koji/compose/rawhide/Fedora-Rawhide-20160517.n.0/work/ostree/config_repo/.git'
2016-05-17 08:22:01 [DEBUG ] Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pungi/util.py", line 475, in failable
yield
File "/usr/lib/python2.7/site-packages/pungi/phases/ostree.py", line 43, in process
self.worker(compose, variant, arch, config)
File "/usr/lib/python2.7/site-packages/pungi/phases/ostree.py", line 56, in worker
self._clone_repo(repodir, config['config_url'], config.get('config_branch', 'master'))
File "/usr/lib/python2.7/site-packages/pungi/phases/ostree.py", line 93, in _clone_repo
repodir, logger=self.pool._logger)
File "/usr/lib/python2.7/site-packages/pungi/wrappers/scm.py", line 247, in get_dir_from_scm
_copy_all(tmp_dir, target_path)
File "/usr/lib/python2.7/site-packages/pungi/wrappers/scm.py", line 261, in _copy_all
shutil.copytree(source, destination)
File "/usr/lib64/python2.7/shutil.py", line 177, in copytree
os.makedirs(dst)
File "/usr/lib64/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 17] File exists: '/mnt/koji/compose/rawhide/Fedora-Rawhide-20160517.n.0/work/ostree/config_repo/.git'

2016-05-17 08:48:23 [INFO ] [DONE ] OSTree phase for variant Atomic, arch x86_64
2016-05-17 08:48:23 [INFO ] [DONE ] ---------- PHASE: OSTREE ----------


Log in to comment on this ticket.

Metadata