stuck "running" on DataSourceNone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Undecided
|
Unassigned |
Bug Description
On a bare-metal machine with `None` datasource:
```
datasource_list:
- None
datasource:
None:
```
The 'config' module does not terminate:
```
$ sudo cloud-init modules
Cloud-init v. 20.2-45-
```
My cloud-init file seems valid:
```
$ cloud-init devel schema --config-file /etc/cloud/
Valid cloud-config file /etc/cloud/
```
Setting `cloud_
```
$ sudo cloud-init modules
Cloud-init v. 20.2-45-
No 'config' modules to run under section 'cloud_
```
Possibly related to https:/
This is my `status.json`:
```
{
"v1": {
"datasource": "DataSourceNone",
"init": {
"errors": [],
"finished": 1599134018.9847271,
"start": 1599134018.7709196
},
"init-local": {
"errors": [],
"finished": 1599133970.417612,
"start": 1599133970.1241682
},
"modules-config": {
"errors": [],
"finished": 1599134019.5227249,
"start": 1599134019.4342222
},
"modules-final": {
"errors": [],
"finished": null,
"start": null
},
"modules-init": {
"errors": [],
"finished": null,
"start": null
},
"stage": null
}
}
```
My apport is:
```
ProblemType: Bug
ApportVersion: 2.20.1-0ubuntu2.24
Architecture: amd64
Date: Thu Sep 3 14:09:34 2020
Dependencies:
adduser 3.113+nmu3ubuntu4
apt 1.2.32ubuntu0.1
apt-utils 1.2.32ubuntu0.1
ca-certificates 20190110~16.04.1
cloud-guest-utils 0.27-0ubuntu25.1
coreutils 8.25-2ubuntu3~16.04
cron 3.0pl1-128ubuntu2
dbus 1.10.6-1ubuntu3.6
debconf 1.5.58ubuntu2
debconf-i18n 1.5.58ubuntu2
debianutils 4.7
dh-python 2.20151103ubuntu1.2
distro-info-data 0.28ubuntu0.14
dpkg 1.18.4ubuntu1.6
e2fslibs 1.42.13-1ubuntu1.2
e2fsprogs 1.42.13-1ubuntu1.2
eatmydata 105-3
file 1:5.25-2ubuntu1.4
gcc-5-base 5.4.0-6ubuntu1~
gcc-6-base 6.0.1-0ubuntu1
gdisk 1.0.1-1build1
gir1.2-glib-2.0 1.46.0-3ubuntu1
gnupg 1.4.20-1ubuntu3.3
gpgv 1.4.20-1ubuntu3.3
groff-base 1.22.3-7
ifupdown 0.8.10ubuntu1.4
init-system-
initscripts 2.88dsf-59.3ubuntu2
insserv 1.14.0-5ubuntu3
iproute2 4.3.0-1ubuntu3.
isc-dhcp-client 4.3.3-5ubuntu12.10
isc-dhcp-common 4.3.3-5ubuntu12.10
iso-codes 3.65-1
krb5-locales 1.13.2+
libacl1 2.2.52-3
libapparmor1 2.10.95-0ubuntu2.11
libapt-inst2.0 1.2.32ubuntu0.1
libapt-pkg5.0 1.2.32ubuntu0.1
libasn1-8-heimdal 1.7~git20150920
libattr1 1:2.4.47-2
libaudit-common 1:2.4.5-1ubuntu2.1
libaudit1 1:2.4.5-1ubuntu2.1
libblkid1 2.27.1-6ubuntu3.10
libbz2-1.0 1.0.6-8ubuntu0.2
libc6 2.23-0ubuntu11.2
libcap-ng0 0.7.7-1
libcomerr2 1.42.13-1ubuntu1.2
libcurl3-gnutls 7.47.0-1ubuntu2.16
libdb5.3 5.3.28-11ubuntu0.2
libdbus-1-3 1.10.6-1ubuntu3.6
libdbus-glib-1-2 0.106-1
libdns-export162 1:9.10.
libeatmydata1 105-3
libexpat1 2.1.0-7ubuntu0.
libfdisk1 2.27.1-6ubuntu3.10
libffi6 3.2.1-4
libgcc1 1:6.0.1-0ubuntu1
libgcrypt20 1.6.5-2ubuntu0.6
libgirepositor
libglib2.0-0 2.48.2-0ubuntu4.6
libglib2.0-data 2.48.2-0ubuntu4.6
libgmp10 2:6.1.0+dfsg-2
libgnutls30 3.4.10-4ubuntu1.8
libgpg-error0 1.21-2ubuntu1
libgpm2 1.20.4-6.1
libgssapi-krb5-2 1.13.2+
libgssapi3-heimdal 1.7~git20150920
libhcrypto4-
libheimbase1-
libheimntlm0-
libhogweed4 3.2-1ubuntu0.
libhx509-5-heimdal 1.7~git20150920
libicu55 55.1-7ubuntu0.5
libidn11 1.32-3ubuntu1.2
libisc-export160 1:9.10.
libk5crypto3 1.13.2+
libkeyutils1 1.5.9-8ubuntu1
libkrb5-26-heimdal 1.7~git20150920
libkrb5-3 1.13.2+
libkrb5support0 1.13.2+
libldap-2.4-2 2.4.42+
liblocale-
liblz4-1 0.0~r131-2ubuntu2
liblzma5 5.1.1alpha+
libmagic1 1:5.25-2ubuntu1.4
libmnl0 1.0.3-5
libmount1 2.27.1-6ubuntu3.10
libmpdec2 2.4.2-1
libncurses5 6.0+20160213-
libncursesw5 6.0+20160213-
libnettle6 3.2-1ubuntu0.
libp11-kit0 0.23.2-
libpam-modules 1.1.8-3.2ubuntu2.1
libpam-modules-bin 1.1.8-3.2ubuntu2.1
libpam-runtime 1.1.8-3.2ubuntu2.1
libpam0g 1.1.8-3.2ubuntu2.1
libpcre3 2:8.38-3.1
libpopt0 1.16-10
libprocps4 2:3.3.10-4ubuntu2.5
libpython-stdlib 2.7.12-1~16.04
libpython2.
libpython2.
libpython3-stdlib 3.5.1-3
libpython3.
libpython3.
libreadline6 6.3-8ubuntu2
libroken18-heimdal 1.7~git20150920
librtmp1 2.4+20151223.
libsasl2-2 2.1.26.
libsasl2-modules 2.1.26.
libsasl2-
libselinux1 2.4-3build2
libsemanage-common 2.3-1build3
libsemanage1 2.3-1build3
libsepol1 2.4-2
libsmartcols1 2.27.1-6ubuntu3.10
libsqlite3-0 3.11.0-1ubuntu1.5
libss2 1.42.13-1ubuntu1.2
libssl1.0.0 1.0.2g-1ubuntu4.16
libstdc++6 5.4.0-6ubuntu1~
libsystemd0 229-4ubuntu21.28
libtasn1-6 4.7-3ubuntu0.
libtext-
libtext-iconv-perl 1.7-5build4
libtext-
libtinfo5 6.0+20160213-
libudev1 229-4ubuntu21.28
libusb-0.1-4 2:0.1.12-28
libustr-1.0-1 1.0.4-5
libuuid1 2.27.1-6ubuntu3.10
libwind0-heimdal 1.7~git20150920
libxml2 2.9.3+dfsg1-
libxtables11 1.6.0-2ubuntu3
libyaml-0-2 0.1.6-3
lsb-base 9.20160110ubuntu0.2
lsb-release 9.20160110ubuntu0.2
mime-support 3.59ubuntu1
mount 2.27.1-6ubuntu3.10
multiarch-support 2.23-0ubuntu11.2
openssl 1.0.2g-1ubuntu4.16
passwd 1:4.2-3.1ubuntu5.4
perl-base 5.22.1-9ubuntu0.6
powermgmt-base 1.31+nmu1
procps 2:3.3.10-4ubuntu2.5
psmisc 22.21-2.1ubuntu0.1
python 2.7.12-1~16.04
python-apt-common 1.1.0~beta1ubun
python-minimal 2.7.12-1~16.04
python2.7 2.7.12-
python2.7-minimal 2.7.12-
python3 3.5.1-3
python3-apt 1.1.0~beta1ubun
python3-blinker 1.3.dfsg2-1build1
python3-chardet 2.3.0-2
python3-configobj 5.0.6-2
python3-
python3-dbus 1.2.0-3
python3-gi 3.20.0-0ubuntu1
python3-idna 2.0-3
python3-jinja2 2.8-1ubuntu0.1
python3-
python3-jsonpatch 1.19-3
python3-jwt 1.3.0-1ubuntu0.1
python3-markupsafe 0.23-2build2
python3-minimal 3.5.1-3
python3-oauthlib 1.0.3-1
python3-
python3-pyasn1 0.1.9-1
python3-pycurl 7.43.0-1ubuntu1
python3-requests 2.9.1-3ubuntu0.1
python3-serial 3.0.1-1
python3-six 1.10.0-3
python3-
python3-urllib3 1.13.1-
python3-yaml 3.11-3build1
python3.5 3.5.2-2ubuntu0~
python3.5-minimal 3.5.2-2ubuntu0~
readline-common 6.3-8ubuntu2
sed 4.2.2-7
sensible-utils 0.0.9ubuntu0.
sgml-base 1.26+nmu4ubuntu1
shared-mime-info 1.5-2ubuntu0.2
software-
sysv-rc 2.88dsf-59.3ubuntu2
sysvinit-utils 2.88dsf-59.3ubuntu2
tar 1.28-2.1ubuntu0.1
ubuntu-keyring 2012.05.19.1
ucf 3.0036
unattended-
update-motd 3.6-0ubuntu1
util-linux 2.27.1-6ubuntu3.10
uuid-runtime 2.27.1-6ubuntu3.10
xdg-user-dirs 0.15-2ubuntu6.
xml-core 0.13+nmu2
xz-utils 5.1.1alpha+
zlib1g 1:1.2.8.
DistroRelease: Ubuntu 16.04
InstallationDate: Installed on 2016-04-11 (1606 days ago)
InstallationMedia: Ubuntu-Server 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
Package: cloud-init 20.2-45-
PackageArchitec
ProcCpuinfoMinimal:
processor : 11
vendor_id : GenuineIntel
cpu family : 6
model : 63
model name : Intel(R) Core(TM) i7-5820K CPU @ 3.30GHz
stepping : 2
microcode : 0x43
cpu MHz : 1933.980
cache size : 15360 KB
physical id : 0
siblings : 12
core id : 5
cpu cores : 6
apicid : 11
initial apicid : 11
fpu : yes
fpu_exception : yes
cpuid level : 15
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm epb invpcid_single ssbd ibrs ibpb stibp kaiser tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid cqm xsaveopt cqm_llc cqm_occup_llc dtherm ida arat pln pts md_clear flush_l1d
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit
bogomips : 6598.53
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: cloud-init
Tags: xenial uec-images
Uname: Linux 4.4.0-189-generic x86_64
UpgradeStatus: Upgraded to xenial on 2018-09-12 (721 days ago)
_MarkForUpload: True
logs.tgz: Error: [Errno 2] No such file or directory: '/tmp/cloud-
modified.
mtime.conffile.
```
Unfortunately I cannot attach cloud-init.tar because it contains sensitive infos (not my machines).
Any tips on how to further explore and/or fix this bug are much appreciated.
Hi Silvio and thanks for this bug report. When you run `cloud-init modules` you actually trigger the module execution, that's why you see that 'running'. The "Up 5526.72 seconds" part is just the uptime of your machine.
Running `cloud-init status` or `cloud-init status --long` should show you if cloud-init is done or not.
I'm setting the status of this report to Incomplete for the moment. If you agree with my analysis please set it to Invalid, otherwise comment back, set it to New, and we'll look at it again.