Public bug reported:

1. root@b2:~# lsb_release -rd
Description:    Ubuntu Bionic Beaver (development branch)
Release:        18.04

2. root@b2:~# apt-cache policy cloud-init
cloud-init:
  Installed: 17.2-13-g6299e8d0-0ubuntu1
  Candidate: 17.2-13-g6299e8d0-0ubuntu1
  Version table:
 *** 17.2-13-g6299e8d0-0ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status

3. cloud-init status should give me status on if it's running or
finished, etc

4. cloud-init stack traces
(neipa) ~ % lxc launch ubuntu-daily:bionic b2 
Creating b2
Starting b2
(neipa) ~ % lxc exec b2 /bin/bash
root@b2:~# systemctl status
● b2
    State: initializing
     Jobs: 62 queued
   Failed: 0 units
    Since: Tue 2018-02-06 00:58:41 UTC; 9s ago
   CGroup: /
           ├─123 /bin/bash
           ├─133 systemctl status
           ├─134 pager
           ├─init.scope
           │ └─1 /sbin/init
           └─system.slice
             ├─systemd-networkd-wait-online.service
             │ └─120 /lib/systemd/systemd-networkd-wait-online
             ├─systemd-resolved.service
             │ └─121 /lib/systemd/systemd-resolved
             ├─systemd-udevd.service
             │ └─52 /lib/systemd/systemd-udevd
             ├─systemd-journald.service
             │ └─51 /lib/systemd/systemd-journald
             └─systemd-networkd.service
               └─119 /lib/systemd/systemd-networkd
root@b2:~# set -o vi
root@b2:~# ^Cstemctl status
root@b2:~# cloud-init status
Traceback (most recent call last):
  File "/usr/bin/cloud-init", line 11, in <module>
    load_entry_point('cloud-init==17.2', 'console_scripts', 'cloud-init')()
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 859, in main
    get_uptime=True, func=functor, args=(name, args))
  File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 2279, in 
log_time
    ret = func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/status.py", line 55, in 
handle_status_args
    status, status_detail, time = _get_status_details(init.paths)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/status.py", line 114, in 
_get_status_details
    CLOUDINIT_DISABLED_FILE, paths)
  File "/usr/lib/python3/dist-packages/cloudinit/cmd/status.py", line 96, in 
_is_cloudinit_disabled
    return (is_disabled, reason)
UnboundLocalError: local variable 'reason' referenced before assignment
root@b2:~# cloud-init status

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  cloud-init status in bionic stack traces

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to