yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #64071
[Bug 1691551] [NEW] warnings are still printed after user touches file
Public bug reported:
When cloud-init shows a warning with Z99-cloudinit-warnings.sh (such as
on login after a ds-identify error), it suggests that you can:
Disable the warnings above by:
touch /home/ubuntu/.cloud-warnings.skip
or
touch /var/lib/cloud/instance/warnings/.skip
The second file (/var/lib/cloud/....) is not honored.
The easiest recreate is:
$ name="x1"
$ lxc launch ubuntu-daily:xenial $name
$ sleep 10
$ lxc exec $name -- sh -c 'd=/var/lib/cloud/instance/warnings/; mkdir -p $d; echo "WARNING WARNING FOO" > "$d/warn-foo"'
## see the warning is there.
$ lxc exec $name -- bash --login </dev/null
WARNING WARNING FOO
Disable the warnings above by:
touch /root/.cloud-warnings.skip
or
touch /var/lib/cloud/instance/warnings/.skip
mesg: ttyname failed: Inappropriate ioctl for device
$ lxc exec $name -- touch /var/lib/cloud/instance/warnings/.skip
## This time you should not see it, but you will.
$ lxc exec $name -- bash --login </dev/null
WARNING WARNING FOO
...
** Affects: cloud-init
Importance: Medium
Assignee: Chris Brinker (chris-brinker)
Status: Fix Committed
** Affects: cloud-init (Ubuntu)
Importance: Medium
Status: Confirmed
** Affects: cloud-init (Ubuntu Xenial)
Importance: Medium
Status: Confirmed
** Affects: cloud-init (Ubuntu Yakkety)
Importance: Medium
Status: Confirmed
** Affects: cloud-init (Ubuntu Zesty)
Importance: Medium
Status: Confirmed
** Affects: cloud-init (Ubuntu Artful)
Importance: Medium
Status: Confirmed
** Changed in: cloud-init
Status: New => In Progress
** Changed in: cloud-init
Importance: Undecided => Medium
** Changed in: cloud-init
Assignee: (unassigned) => Chris Brinker (chris-brinker)
** Merge proposal linked:
https://code.launchpad.net/~chris-brinker/cloud-init/+git/cloud-init/+merge/323406
** Also affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Xenial)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Zesty)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Artful)
Importance: Undecided
Status: New
** Also affects: cloud-init (Ubuntu Yakkety)
Importance: Undecided
Status: New
** Changed in: cloud-init (Ubuntu Xenial)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu Yakkety)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu Zesty)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu Artful)
Status: New => Confirmed
** Changed in: cloud-init (Ubuntu Xenial)
Importance: Undecided => Medium
** Changed in: cloud-init (Ubuntu Yakkety)
Importance: Undecided => Medium
** Changed in: cloud-init (Ubuntu Zesty)
Importance: Undecided => Medium
** Changed in: cloud-init (Ubuntu Artful)
Importance: Undecided => Medium
** Changed in: cloud-init
Status: In Progress => Fix Committed
--
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/1691551
Title:
warnings are still printed after user touches file
Status in cloud-init:
Fix Committed
Status in cloud-init package in Ubuntu:
Confirmed
Status in cloud-init source package in Xenial:
Confirmed
Status in cloud-init source package in Yakkety:
Confirmed
Status in cloud-init source package in Zesty:
Confirmed
Status in cloud-init source package in Artful:
Confirmed
Bug description:
When cloud-init shows a warning with Z99-cloudinit-warnings.sh (such
as on login after a ds-identify error), it suggests that you can:
Disable the warnings above by:
touch /home/ubuntu/.cloud-warnings.skip
or
touch /var/lib/cloud/instance/warnings/.skip
The second file (/var/lib/cloud/....) is not honored.
The easiest recreate is:
$ name="x1"
$ lxc launch ubuntu-daily:xenial $name
$ sleep 10
$ lxc exec $name -- sh -c 'd=/var/lib/cloud/instance/warnings/; mkdir -p $d; echo "WARNING WARNING FOO" > "$d/warn-foo"'
## see the warning is there.
$ lxc exec $name -- bash --login </dev/null
WARNING WARNING FOO
Disable the warnings above by:
touch /root/.cloud-warnings.skip
or
touch /var/lib/cloud/instance/warnings/.skip
mesg: ttyname failed: Inappropriate ioctl for device
$ lxc exec $name -- touch /var/lib/cloud/instance/warnings/.skip
## This time you should not see it, but you will.
$ lxc exec $name -- bash --login </dev/null
WARNING WARNING FOO
...
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1691551/+subscriptions
Follow ups