← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1886531] Re: cloud-init status broken in groovy lxd containers

 

** Also affects: cloud-init
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1886531

Title:
  cloud-init status broken in  groovy lxd containers

Status in cloud-init:
  New
Status in cloud-init package in Ubuntu:
  Confirmed
Status in cloud-init source package in Groovy:
  Confirmed

Bug description:
  [Impact]

  cloud-init status returns error, in groovy lxd containers.
  This is probably happening because it expects /etc/fstab to exist, but it doesn't.

  [Test Case]

  $ lxc launch ubuntu-daily:groovy g
  $ lxc exec g -- /bin/bash
  root@g:~# cloud-init status
  status: error

  From /var/log/cloud-init.log :

  2020-07-06 14:51:47,011 - util.py[DEBUG]: Running module mounts (<module 'cloudinit.config.cc_mounts' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_mounts.py'>) failed
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 848, in _run_modules
      ran, _r = cc.run(run_name, mod.handle, func_args,
    File "/usr/lib/python3/dist-packages/cloudinit/cloud.py", line 54, in run
      return self._runners.run(name, functor, args, freq, clear_on_fail)
    File "/usr/lib/python3/dist-packages/cloudinit/helpers.py", line 185, in run
      results = functor(*args)
    File "/usr/lib/python3/dist-packages/cloudinit/config/cc_mounts.py", line 381, in handle
      for line in util.load_file(FSTAB_PATH).splitlines():
    File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 1422, in load_file
      with open(fname, 'rb') as ifh:
  FileNotFoundError: [Errno 2] No such file or directory: '/etc/fstab'

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1886531/+subscriptions