New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datasource.sys_cfg gets different values in local stage and after. #3222
Comments
Launchpad user Scott Moser(smoser) wrote on 2018-08-16T18:16:50.791283+00:00 Launchpad attachments: NonfreeKernelModules.txt,Dependencies.txt,ProcCpuinfoMinimal.txt,cloud-init-output.log.txt.txt,logs.tgz.gz,lshw.txt.txt |
Launchpad user Server Team CI bot(server-team-bot) wrote on 2018-09-20T12:45:04.640006+00:00 This bug is fixed with commit f0ff194 to cloud-init on branch master. |
Launchpad user Scott Moser(smoser) wrote on 2018-10-02T21:13:01.777397+00:00 This bug is believed to be fixed in cloud-init in version 18.4. If this is still a problem for you, please make a comment and set the state back to New Thank you. |
Launchpad user Scott Moser(smoser) wrote on 2018-10-03T13:59:14.349799+00:00 This bug was fixed in the package cloud-init - 18.4-0ubuntu1cloud-init (18.4-0ubuntu1) cosmic; urgency=medium
-- Chad Smith chad.smith@canonical.com Tue, 02 Oct 2018 19:55:23 -0600 |
This bug was originally filed in Launchpad as LP: #1787459
Launchpad details
Launchpad user Scott Moser(smoser) wrote on 2018-08-16T18:16:50.791283+00:00
When a datasource is instantiated it is passed in Init.cfg as the 'sys_cfg'.
But then when 'distro' property is referenced, it has the side effect
of:
system_config = self._extract_cfg('system')
Here we see the problem demonstrated.
root@c1:~# cat show-syscfg-keys
#!/usr/bin/python3
from cloudinit.stages import _pkl_load;
print(_pkl_load("/var/lib/cloud/instance/obj.pkl").sys_cfg.keys())
root@c1:
# cloud-init clean --logs# cloud-init init --localroot@c1:
Cloud-init v. 18.3-18-g3cee0bf8-0ubuntu1 running 'init-local' at Thu, 16 Aug 2018 18:08:00 +0000. Up 574.00 seconds.
root@c1:~# python3 show-syscfg-keys
dict_keys(['datasource_list', '_log', 'log_cfgs', 'output', 'users', 'disable_root', 'preserve_hostname', 'cloud_init_modules', 'cloud_config_modules', 'cloud_final_modules', 'def_log_file', 'syslog_fix_perms', 'vendor_data'])
root@c1:
##root@c1:
root@c1:~# cloud-init init >/dev/null 2>&1
Cloud-init v. 18.3-18-g3cee0bf8-0ubuntu1 running 'init' at Thu, 16 Aug 2018 18:08:11 +0000. Up 585.00 seconds.
...
root@c1:~# python3 show-syscfg-keys
dict_keys(['default_user', 'ntp_client', 'paths', 'package_mirrors', 'ssh_svcname', 'network'])
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: cloud-init 18.3-18-g3cee0bf8-0ubuntu1
ProcVersionSignature: Ubuntu 4.17.0-6.7-generic 4.17.9
Uname: Linux 4.17.0-6-generic x86_64
ApportVersion: 2.20.10-0ubuntu7
Architecture: amd64
CloudName: LXD
Date: Thu Aug 16 18:02:03 2018
PackageArchitecture: all
ProcEnviron:
TERM=xterm-256color
PATH=(custom, no user)
LANG=C.UTF-8
SourcePackage: cloud-init
UpgradeStatus: No upgrade log present (probably fresh install)
The text was updated successfully, but these errors were encountered: