[Bug 1183164] [NEW] maas-import-ephemerals failed with File Exists

Scott Moser smoser at ubuntu.com
Thu May 23 01:35:24 UTC 2013


*** This bug is a duplicate of bug 1182646 ***
    https://bugs.launchpad.net/bugs/1182646

Public bug reported:

I added the 'daily' stream, and to /etc/maas/import_ephemerals, by appending:
STREAM=daily
ARCHES="amd64 i386"
RELEASES="precise quantal raring saucy"

Then, ran maas-import-ephemerals, and it died like:

Wed, 22 May 2013 21:54:59 +0100: finished. wrote to /var/lib/maas/ephemeral/.working/maas-import-ephemerals.mnccmE/precise/amd64/dist-root.tar.gz
cmd failed: maas-provision install-pxe-image --arch=amd64 --subarch=generic --release=precise --purpose=commissioning --image=/tmp/tmp.KQXnCcCqmc --symlink=xinstall
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/lib/python2.7/dist-packages/provisioningserver/__main__.py", line 39, in <module>
    main()
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils.py", line 400, in __call__
    self.execute(argv)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/utils.py", line 395, in execute
    args.handler.run(args)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/pxe/install_image.py", line 165, in run
    install_dir(args.image, destination, args.symlink)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/pxe/install_image.py", line 127, in install_dir
    os.symlink(old, sdest)
OSError: [Errno 17] File exists
failed to install tftp image [rel: precise, arch: amd64: name: maas-precise-daily-amd64-ephemeral-20130520]


This system was upgraded from a trunk ppa to raring, and then purged and re-installed, so it is quite possible something was just out of whack from that.  But the first time, import-pxe-files worked fine, it was only after adding daily that it failed.

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: maas-cluster-controller 1.3+bzr1461+dfsg-0ubuntu2
ProcVersionSignature: Ubuntu 3.8.0-21.32-generic 3.8.8
Uname: Linux 3.8.0-21-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Thu May 23 02:24:59 2013
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=screen-bce
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: maas
UpgradeStatus: Upgraded to raring on 2013-05-22 (0 days ago)
modified.conffile..etc.maas.maas.local.celeryconfig.cluster.py: [inaccessible: [Errno 13] Permission denied: '/etc/maas/maas_local_celeryconfig_cluster.py']
modified.conffile..etc.sudoers.d.99.maas.sudoers: [inaccessible: [Errno 13] Permission denied: '/etc/sudoers.d/99-maas-sudoers']

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug raring

** Attachment added: "full log of maas-import-pxe-files"
   https://bugs.launchpad.net/bugs/1183164/+attachment/3684387/+files/bug.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1183164

Title:
  maas-import-ephemerals failed with File Exists

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1183164/+subscriptions



More information about the Ubuntu-server-bugs mailing list