Skip to content
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

Move LXD to end ds-identify DSLIST #1228

Merged
merged 1 commit into from
Jan 31, 2022

Conversation

TheRealFalcon
Copy link
Member

Proposed Commit Message

Move LXD to end ds-identify DSLIST

LP: #1959118

Additional Context

See LP: #1959118

Copy link
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-ordering all good here.
On a LXD container with this changeset applied to ds-identify and your debia,cloud-init.templates changes, ds-identify is able to properly detect order of LXD at the end of the DS list.

root@jammy-test:~# sudo DI_LOG=stderr /usr/lib/cloud-init/ds-identify --force
[up 601.31s] ds-identify --force
policy loaded: mode=search report=false found=all maybe=all notfound=disabled
/etc/cloud/cloud.cfg.d/90_dpkg.cfg set datasource_list: [ NoCloud, ConfigDrive, OpenNebula, DigitalOcean, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Bigstep, Scaleway, AliYun, Ec2, CloudStack, Hetzner, IBMCloud, Oracle, Exoscale, RbxCloud, UpCloud, VMware, Vultr, LXD, None ]
DMI_PRODUCT_NAME=IdeaCentre K430
DMI_SYS_VENDOR=LENOVO
DMI_PRODUCT_SERIAL=unavailable
DMI_PRODUCT_UUID=unavailable
PID_1_PRODUCT_NAME=unavailable
DMI_CHASSIS_ASSET_TAG=
FS_LABELS=unavailable:container
ISO9660_DEVS=unavailable:container
KERNEL_CMDLINE=/sbin/init 
VIRT=lxc
UNAME_KERNEL_NAME=Linux
UNAME_KERNEL_RELEASE=5.11.0-46-generic
UNAME_KERNEL_VERSION=#51-Ubuntu SMP Thu Jan 6 22:14:29 UTC 2022
UNAME_MACHINE=x86_64
UNAME_NODENAME=publishing-j
UNAME_OPERATING_SYSTEM=GNU/Linux
DSNAME=
DSLIST=NoCloud ConfigDrive OpenNebula DigitalOcean Azure AltCloud OVF MAAS GCE OpenStack CloudSigma SmartOS Bigstep Scaleway AliYun Ec2 CloudStack Hetzner IBMCloud Oracle Exoscale RbxCloud UpCloud VMware Vultr LXD None
MODE=search
ON_FOUND=all
ON_MAYBE=all
ON_NOTFOUND=disabled
pid=2344 ppid=2343
is_container=true
check for 'NoCloud' returned found
is_ds_enabled(IBMCloud) = true.
is_ds_enabled(IBMCloud) = true.
check for 'LXD' returned found
Found 2 datasources found=all: NoCloud LXD
[up 601.33s] returning 0

@blackboxsw blackboxsw merged commit 46a0126 into canonical:main Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants