yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #92047
[Bug 1771167] Re: empty seed dir /var/lib/cloud/seed/config_drive causes WARNING
Tracked in Github Issues as https://github.com/canonical/cloud-
init/issues/3178
** Bug watch added: github.com/canonical/cloud-init/issues #3178
https://github.com/canonical/cloud-init/issues/3178
** Changed in: cloud-init
Status: Triaged => Expired
--
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/1771167
Title:
empty seed dir /var/lib/cloud/seed/config_drive causes WARNING
Status in cloud-init:
Expired
Bug description:
A completely empty /var/lib/cloud/seed/config_drive directory causes cloud-init to show a warning.
It would seem that a completely empty dir should not cause warning on invalid seed, but less-loudly just go on.
From a 16.04 image launched on IBM Cloud
(http://paste.ubuntu.com/p/dGGrPjBhrB/).
2018-05-14 16:21:56,350 - util.py[DEBUG]: Cloud-init v. 18.2 running 'init-local' at Mon, 14 May 2018 16:21:56 +0000. Up 101.66 seconds.
2018-05-14 16:21:56,350 - main.py[DEBUG]: No kernel command line url found.
2018-05-14 16:21:56,350 - main.py[DEBUG]: Closing stdin.
2018-05-14 16:21:56,358 - util.py[DEBUG]: Writing to /var/log/cloud-init.log - ab: [644] 0 bytes
2018-05-14 16:21:56,359 - util.py[DEBUG]: Changing the ownership of /var/log/cloud-init.log to 104:4
2018-05-14 16:21:56,359 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance/boot-finished
2018-05-14 16:21:56,359 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/data/no-net
2018-05-14 16:21:56,359 - handlers.py[DEBUG]: start: init-local/check-cache: attempting to read from cache [check]
2018-05-14 16:21:56,360 - util.py[DEBUG]: Reading from /var/lib/cloud/instance/obj.pkl (quiet=False)
2018-05-14 16:21:56,360 - stages.py[DEBUG]: no cache found
2018-05-14 16:21:56,360 - handlers.py[DEBUG]: finish: init-local/check-cache: SUCCESS: no cache found
2018-05-14 16:21:56,360 - util.py[DEBUG]: Attempting to remove /var/lib/cloud/instance
2018-05-14 16:21:56,365 - stages.py[DEBUG]: Using distro class <class 'cloudinit.distros.ubuntu.Distro'>
2018-05-14 16:21:56,366 - __init__.py[DEBUG]: Looking for data source in: ['ConfigDrive', 'NoCloud'], via packages ['', 'cloudinit.sources'] that matches dependencies ['FILESYSTEM']
2018-05-14 16:21:56,375 - __init__.py[DEBUG]: Searching for local data source in: ['DataSourceConfigDrive', 'DataSourceNoCloud']
2018-05-14 16:21:56,375 - handlers.py[DEBUG]: start: init-local/search-ConfigDrive: searching for local data from DataSourceConfigDrive
2018-05-14 16:21:56,375 - __init__.py[DEBUG]: Seeing if we can get any data from <class 'cloudinit.sources.DataSourceConfigDrive.DataSourceConfigDrive'>
2018-05-14 16:21:56,375 - openstack.py[DEBUG]: Unable to read openstack versions from /var/lib/cloud/seed/config_drive due to: [Errno 2] No such file or directory: '/var/lib/cloud/seed/config_drive/openstack'
2018-05-14 16:21:56,376 - openstack.py[DEBUG]: Selected version 'latest' from []
2018-05-14 16:21:56,376 - util.py[DEBUG]: Reading from /var/lib/cloud/seed/config_drive/openstack/latest/meta_data.json (quiet=False)
2018-05-14 16:21:56,376 - openstack.py[DEBUG]: Failed reading mandatory path /var/lib/cloud/seed/config_drive/openstack/latest/meta_data.json due to: [Errno 2] No such file or directory: '/var/lib/cloud/seed/config_drive/openstack/latest/meta_data.json'
2018-05-14 16:21:56,376 - util.py[WARNING]: Failed reading config drive from /var/lib/cloud/seed/config_drive
2018-05-14 16:21:56,380 - util.py[DEBUG]: Failed reading config drive from /var/lib/cloud/seed/config_drive
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 65, in _get_data
results = read_config_drive(sdir)
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 176, in read_config_drive
raise excps[-1]
File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceConfigDrive.py", line 173, in read_config_drive
return functor(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py", line 377, in read_v1
raise NonReadable("%s: no files found" % (self.base_path))
cloudinit.sources.helpers.openstack.NonReadable: /var/lib/cloud/seed/config_drive: no files found
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1771167/+subscriptions
References