-
Notifications
You must be signed in to change notification settings - Fork 855
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
ds-identify - stuck in uninterruptible sleep state #3520
Comments
Launchpad user Dan Watkins(oddbloke) wrote on 2019-12-16T15:19:06.869930+00:00 Hi Nicklas, Thanks for the bug report, this is a bit of a strange one! What happens if you run (Once you've attached this requested info, please move the bug status back to New.) Thanks! Dan |
Launchpad user Nicklas(nicklaswallgren) wrote on 2019-12-16T16:27:37.495674+00:00 Hey, Thanks for the response. If we run the The strange thing is, this only happens once in a while. If we restart the instance, and run the command again it runs successfully. Launchpad attachments: cloud-init.tar.gz |
Launchpad user Nicklas(nicklaswallgren) wrote on 2019-12-17T06:34:16.931260+00:00 Here is the output of the /proc//stack cat /proc/3844/stack |
Launchpad user Dan Watkins(oddbloke) wrote on 2019-12-17T15:24:32.930412+00:00 Hi Nicklas, Thanks for the extra info! This sounds like an issue with blkid (and/or your system), rather than a cloud-init bug. I've added a util-linux bug task (which is the package that ships blkid), and I'm going to mark the cloud-init bug task Invalid as I don't believe that there's anything we can do to help you from our perspective. If you think this is incorrect, please do let us know! Thanks! Dan |
Launchpad user Dimitri John Ledkov(xnox) wrote on 2019-12-17T16:25:16.504155+00:00 ls -latr /proc//fd would be nice too, to see what it has open/holding/reading. |
Launchpad user Dimitri John Ledkov(xnox) wrote on 2019-12-19T16:24:08.645123+00:00 [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.0.0-32-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro maybe-ubiquity [ 0.000000] DMI: VMware, Inc. VMware Virtual Platform/440BX Desktop Reference Platform, BIOS 6.00 09/21/2015 Could you please expalin what are you doing? Because everything about this is odd. You are booting of LVM volume? Running ubiquity desktop installer? And using cloud-init? It would be interesting for you to describe your setup and suggest how to reproduce your instance type. Also you appear to run without a cloud hence nocloud seed. If you are modifying cloud.config anyway, can you specify that ds-identify should just use NoCloud? journal.txt seems to be incomplete, it's not a full journal of boot with this issue. |
Launchpad user Nicklas(nicklaswallgren) wrote on 2019-12-19T16:58:49.077459+00:00 Hey, We have restarted the affect nodes/servers. I will retrieve the output of I haven't setup our Ubuntu environments. Our IT/devops team (with no experience of linux) has installed the Ubuntu-nodes on our VMware environment. I don't believe we have made any changes to "cloud.config". It's just a clean install of 18.04.3, with 5.0.0-36-generic. Can I provide any other information? |
Launchpad user Dimitri John Ledkov(xnox) wrote on 2020-01-09T16:25:49.160918+00:00 cloud-init is used to perform first time configuration of cloud-images using a cloud metadata source. I.e. a generic image is launched by openstack and provisions per-user keys / packages / etc. If someone manually installs Ubuntu Desktop / Server using an installer, one should not be installing or using cloud-init as clearly, it will never complete without a correct metadata source present. And when it fails to complete, it re-attempts to reprovision the machine on every boot. If you don't know whether or not there is a cloud metadata source, and whether or not cloud-init should be provisioning the instances on first boot, or whether a desktop/server installers were used - you need to sort that out first. Please escalate to your IT/devops team to understand whether or not it is intentional that cloud-init is installed and attempted on every boot, and where the metadata for it is suppoed to come from. Then fix cloud-init/metadata such that it completes, or remove/disable/uninstall cloud-init. This is not a bug, but effectively a support issue at this point. The logs are inconsistent with normal cloud-init usage, and there is no reproducer. |
Launchpad user Scott Moser(smoser) wrote on 2020-01-09T19:11:26.585158+00:00
I'd just like to clarify something. The above statement is neither true cloud-init (since 18.04) does not run unless it is on a cloud or has cloud In order to accomplish this, cloud-init is only enabled via a generator. |
Launchpad user Dan Watkins(oddbloke) wrote on 2020-01-09T21:02:15.782129+00:00 Moved back to New, because this is happening in normal cloud-init operation. |
Launchpad user Nicklas(nicklaswallgren) wrote on 2020-01-14T11:34:38.679840+00:00 Affected process
Output of total 0 Should we disable |
Launchpad user Nicklas(nicklaswallgren) wrote on 2020-01-14T11:39:28.398416+00:00 Never mind my last message... |
Launchpad user Nicklas(nicklaswallgren) wrote on 2020-01-30T14:23:48.393767+00:00 Here is the output of root 3377 0.0 0.0 11980 3352 ? D Jan24 0:00 blkid -c /dev/null -o export dr-xr-xr-x 9 root root 0 Jan 30 06:29 .. root@ubuntuapp02:/# ls -latr /proc/23795/fd |
This bug was originally filed in Launchpad as LP: #1856560
Launchpad details
Launchpad user Nicklas(nicklaswallgren) wrote on 2019-12-16T13:13:02.107707+00:00
We got recurring issues with the cloud-init/ds-identify process. It spawns sub-processes "blkid -c /dev/null -o export" which gets stuck in the "D" uninterruptible sleep state.
The processes cannot be killed, so the only solution is to reboot the affected server.
root 3839 0.0 0.0 4760 1840 ? S Dec05 0:00 /bin/sh /usr/lib/cloud-init/ds-identify
root 3844 0.0 0.0 11212 2836 ? D Dec05 0:00 _ blkid -c /dev/null -o export
root 6943 0.0 0.0 4760 1880 ? S Dec05 0:00 /bin/sh /usr/lib/cloud-init/ds-identify
root 6948 0.0 0.0 11212 2844 ? D Dec05 0:00 _ blkid -c /dev/null -o export
root 6111 0.0 0.0 4760 1916 ? S Dec12 0:00 /bin/sh /usr/lib/cloud-init/ds-identify
root 6149 0.0 0.0 11212 2940 ? D Dec12 0:00 _ blkid -c /dev/null -o export
root 8765 0.0 0.3 926528 24968 ? Ssl Dec12 0:12 /usr/lib/snapd/snapd
root 9179 0.0 0.0 4760 1892 ? S Dec12 0:00 /bin/sh /usr/lib/cloud-init/ds-identify
root 9185 0.0 0.0 11980 3552 ? D Dec12 0:00 _ blkid -c /dev/null -o export
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
5.0.0-36-generic #39~18.04.1-Ubuntu SMP Tue Nov 12 11:09:50 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: