← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1940235] [NEW] cloud-init collect-logs fails in impish

 

Public bug reported:

New impish instance fails like this:

cloud-init collect-logs
Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 33, in <module>
    sys.exit(load_entry_point('cloud-init==21.2', 'console_scripts', 'cloud-init')())
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 920, in main
    retval = util.log_time(
  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2454, in log_time
    ret = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 141, in handle_collect_logs_args
    return collect_logs(args.tarfile, args.userdata, args.verbosity)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 126, in collect_logs
    shutil.copytree(CLOUDINIT_RUN_DIR,
  File "/usr/lib/python3.9/shutil.py", line 557, in copytree
    return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
  File "/usr/lib/python3.9/shutil.py", line 513, in _copytree
    raise Error(errors)
shutil.Error: [('/run/cloud-init/hook-hotplug-cmd', '/tmp/tmpxk4wjlsb/cloud-init-logs-2021-08-17/run/cloud-init/hook-hotplug-cmd', '`/run/cloud-init/hook-hotplug-cmd` is a named pipe')]


$ dpkg -l cloud-init
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version                    Architecture Description
+++-==============-==========================-============-=========================================================
ii  cloud-init     21.2-69-g65607405-0ubuntu1 all          initialization and customization tool for cloud instances

** 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/1940235

Title:
  cloud-init collect-logs fails in impish

Status in cloud-init:
  New

Bug description:
  New impish instance fails like this:

  cloud-init collect-logs
  Traceback (most recent call last):
    File "/usr/bin/cloud-init", line 33, in <module>
      sys.exit(load_entry_point('cloud-init==21.2', 'console_scripts', 'cloud-init')())
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 920, in main
      retval = util.log_time(
    File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2454, in log_time
      ret = func(*args, **kwargs)
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 141, in handle_collect_logs_args
      return collect_logs(args.tarfile, args.userdata, args.verbosity)
    File "/usr/lib/python3/dist-packages/cloudinit/cmd/devel/logs.py", line 126, in collect_logs
      shutil.copytree(CLOUDINIT_RUN_DIR,
    File "/usr/lib/python3.9/shutil.py", line 557, in copytree
      return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
    File "/usr/lib/python3.9/shutil.py", line 513, in _copytree
      raise Error(errors)
  shutil.Error: [('/run/cloud-init/hook-hotplug-cmd', '/tmp/tmpxk4wjlsb/cloud-init-logs-2021-08-17/run/cloud-init/hook-hotplug-cmd', '`/run/cloud-init/hook-hotplug-cmd` is a named pipe')]

  
  $ dpkg -l cloud-init
  Desired=Unknown/Install/Remove/Purge/Hold
  | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
  |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
  ||/ Name           Version                    Architecture Description
  +++-==============-==========================-============-=========================================================
  ii  cloud-init     21.2-69-g65607405-0ubuntu1 all          initialization and customization tool for cloud instances

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



Follow ups