[Bug 1495688] Re: system-image-cli tool fails on dangling symlink

Barry Warsaw 1495688 at bugs.launchpad.net
Tue Sep 15 18:17:53 UTC 2015


If config.d/00_default.ini -- or probably any ini file -- is a dangling
symlink, this bug is probably triggered.

** Summary changed:

- system-image-cli tool fails on rolling/edge; missing file '/etc/system-image/config.d/00_default.ini
+ system-image-cli tool fails on dangling symlink

** Also affects: ubuntu-system-image
   Importance: Undecided
       Status: New

** Tags added: client

** Changed in: system-image (Ubuntu)
   Importance: Undecided => High

** Changed in: ubuntu-system-image
       Status: New => Triaged

** Changed in: ubuntu-system-image
   Importance: Undecided => High

** Changed in: ubuntu-system-image
     Assignee: (unassigned) => Barry Warsaw (barry)

** Changed in: ubuntu-system-image
    Milestone: None => 3.1

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1495688

Title:
  system-image-cli tool fails on dangling symlink

Status in Snappy:
  Fix Committed
Status in Ubuntu system image:
  Triaged
Status in livecd-rootfs package in Ubuntu:
  Fix Committed
Status in system-image package in Ubuntu:
  New

Bug description:
  
  (amd64)ubuntu at localhost:~$ system-image-cli -i
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 253, in last_update_date
      timestamp = datetime.fromtimestamp(os.stat(LAST_UPDATE_FILE).st_mtime)
  FileNotFoundError: [Errno 2] No such file or directory: '/userdata/.last_update'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/bin/system-image-cli", line 9, in <module>
      load_entry_point('system-image==3.0.1', 'console_scripts', 'system-image-cli')()
    File "/usr/lib/python3/dist-packages/systemimage/main.py", line 289, in main
      last_update=last_update_date(),
    File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 258, in last_update_date
      for path in config.ini_files)
    File "/usr/lib/python3/dist-packages/systemimage/helpers.py", line 258, in <genexpr>
      for path in config.ini_files)
    File "/usr/lib/python3.4/pathlib.py", line 1048, in stat
      return self._accessor.stat(self)
    File "/usr/lib/python3.4/pathlib.py", line 326, in wrapped
      return strfunc(str(pathobj), *args)
  FileNotFoundError: [Errno 2] No such file or directory: '/etc/system-image/config.d/00_default.ini'

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1495688/+subscriptions



More information about the foundations-bugs mailing list