group.of.nepali.translators team mailing list archive
-
group.of.nepali.translators team
-
Mailing list archive
-
Message #11462
[Bug 1669675] Re: support strict cloud platform identification and warnings [ds-identify]
This bug was fixed in the package cloud-init -
0.7.9-47-gc81ea53-0ubuntu1
---------------
cloud-init (0.7.9-47-gc81ea53-0ubuntu1) zesty; urgency=medium
* debian/rules: install Z99-cloudinit-warnings.sh to /etc/profile.d
* New upstream snapshot.
- Support warning if the used datasource is not in ds-identify's list
(LP: #1669675)
- Z99-cloudinit-warnings: Add profile.d script for showing warnings on
login.
- Z99-cloud-locale-test.sh: convert tabs to spaces, remove unneccesary
execute bit in permissions.
- tools/ds-identify: look at cloud.cfg when looking for ec2 strict_id.
- tools/ds-identify: fix bug that would mistakingly enable vmware guest
customization.
-- Scott Moser <smoser@xxxxxxxxxx> Fri, 03 Mar 2017 01:56:19 -0500
** Changed in: cloud-init (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1669675
Title:
support strict cloud platform identification and warnings [ds-
identify]
Status in cloud-init package in Ubuntu:
Fix Released
Status in cloud-init source package in Xenial:
Confirmed
Status in cloud-init source package in Yakkety:
Confirmed
Bug description:
=== Begin SRU Template ===
[Impact]
Cloud-init searches through each of its datasources until it finds one.
This can be slow or error prone leading to timeouts or other problems
in boot. It also makes cloud-init not suitable to be installed in an
image as it is very much not 'inert' even when it is not necessary.
The changes covered in this bug add code that runs in a systemd generator
that quickly determines which datasource should be used. That code
(ds-identify) can be configured to disable cloud-init if no source is found.
By doing so, no cloud-init python code is even executed making for faster
boot.
The changes in behavior in this first phase are:
* 16.10 : Attempt a search. If a positive result is found, enable only
that datasource in cloud-init. If no result is found, keep cloud-init
enabled. cloud-init will search its normal list and issue warnings.
* 16.04 : report only mode.
Attempt a search, but in report only mode. Warnings are issued
by cloud-init if it uses a datasource not in the result list.
[Test Case]
a.) forced fail
1.) launch instance on KVM OpenStack. enable proposed, upgrade.
2.) rm -Rf /var/lib/cloud /var/log/cloud-init* ;
3.) modify /usr/lib/cloud-init/ds-identify to
return $DS_NOT_FOUND
in the first line of 'dscheck_OpenStack'
4.) reboot
5.) ssh in. You should see a warning on stderr on ssh connection.
b.) forced fail with warnings disabled.
follow 'a' above, but launch instance with user-data of
#cloud-config
warnings:
dsid_missing_source: off
Upon ssh in in step 5, no warnings should be seen.
c.) normal instance
1.) launch instance, enable proposed, upgrade
2.) rm -Rf /var/lib/cloud /var/log/cloud-init*
3.) reboot
4.) expect that same datasource is found.
[Other Information]
See also: https://lists.ubuntu.com/archives/ubuntu-devel/2017-February/039697.html
=== End SRU Template ===
Related bugs:
* bug 1660385: Alert user of Ec2 Datasource on lookalike cloud
ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: cloud-init 0.7.9-38-g83606ae-0ubuntu1
ProcVersionSignature: Ubuntu 4.9.0-15.16-generic 4.9.5
Uname: Linux 4.9.0-15-generic x86_64
ApportVersion: 2.20.4-0ubuntu2
Architecture: amd64
Date: Fri Mar 3 04:25:51 2017
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1669675/+subscriptions