Unable to identify datasource in IBM Bluemix

Bug #1689890 reported by Travis Johnson on 2017-05-10
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Medium
Unassigned

Bug Description

**************************************************************************
# A new feature in cloud-init identified possible datasources for #
# this system as: #
# ['NoCloud', 'None'] #
# However, the datasource used was: ConfigDrive #
# #
# In the future, cloud-init will only attempt to use datasources that #
# are identified or specifically configured. #
# For more information see #
# https://bugs.launchpad.net/bugs/1669675 #
# #
# If you are seeing this message, please file a bug against #
# cloud-init at #
# https://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid #
# Make sure to include the cloud provider your instance is #
# running on. #
# #
# After you have filed a bug, you can disable this warning by launching #
# your instance with the cloud-config below, or putting that content #
# into /etc/cloud/cloud.cfg.d/99-warnings.cfg #
# #
# #cloud-config #
# warnings: #
# dsid_missing_source: off #
**************************************************************************

Disable the warnings above by:
  touch /root/.cloud-warnings.skip
or
  touch /var/lib/cloud/instance/warnings/.skip

This is in IBM Bluemix, I believe they use openstack (as hinted below)

I don't know anything about cloud-init data sources, but here's how I retrieve user_data manually from within these instances:

root@:~# mkdir -p /tmp/meta
root@:~# mount /dev/xvdh1 /tmp/meta
root@:~# tree /tmp/meta
/tmp/meta
├── meta.js
└── openstack
    ├── content
    │   └── interfaces
    └── latest
        ├── meta_data.json
        └── user_data

3 directories, 4 files
root@:~#

Related bugs:
 * bug 1673637: cloud-init - Hosts in softlayer receiving warning

Travis Johnson (conslo) on 2017-05-10
summary: - Unable to identify CloudStack platform in IBM Bluemix
+ Unable to identify datasource in IBM Bluemix
Scott Moser (smoser) wrote :

This is going to take some work.
The cloud-images built to run on IBM Bluemix are *very* odd.
To my understanding, they actually have data in /var/lib/cloud/nocloud and then sometimes also have a config drive attached. I'm not sure if the config drive has a valid label or not (config-v2).

I'm going to need some help from CPC team here.

Changed in cloud-init:
status: New → Confirmed
importance: Undecided → Medium
Scott Moser (smoser) wrote :

I've just confirmed this, launched a vm in bluemix/softlayer and ssh'd in.

root@smfoo:~# cat /etc/cloud/build.info
build_name: server
serial: 20170330
root@smfoo:~# dpkg-query --show cloud-init
cloud-init 0.7.9-48-g1c795b9-0ubuntu1~16.04.1

Scott Moser (smoser) wrote :

After seeing the warning, I did:
$ sudo umount /var/lib/cloud/seed/config_drive
$ sudo rm -Rf /var/lib/cloud/seed/config_drive/ /var/lib/cloud/{data,handlers,instance,instances,scripts,sem}

$ sudo apt-get update && sudo apt-get install cloud-init
...
Setting up cloud-init (0.7.9-113-g513e99e0-0ubuntu1~16.04.1) ...

$ sudo reboot

I still see the warnings.
# cat /run/cloud-init/ds-identify.log
[up 3.82s] ds-identify
policy loaded: mode=report report=false found=all maybe=all notfound=enabled
/etc/cloud/cloud.cfg.d/99_networklayer_common.cfg set datasource_list: [ ConfigDrive, NoCloud ]
DMI_PRODUCT_NAME=unavailable
DMI_SYS_VENDOR=unavailable
DMI_PRODUCT_SERIAL=unavailable
DMI_PRODUCT_UUID=unavailable
PID_1_PRODUCT_NAME=unavailable
FS_LABELS=SWAP-xvdb1,cloudimg-bootfs,cloudimg-rootfs,METADATA
KERNEL_CMDLINE=root=UUID=52c6959b-79b0-4bdd-8ed6-71e0ba782fb4 ro console=hvc0 elevator=noop
VIRT=xen
UNAME_KERNEL_NAME=Linux
UNAME_KERNEL_RELEASE=4.4.0-71-generic
UNAME_KERNEL_VERSION=#92-Ubuntu SMP Fri Mar 24 12:59:01 UTC 2017
UNAME_MACHINE=x86_64
UNAME_NODENAME=smfoo
UNAME_OPERATING_SYSTEM=GNU/Linux
DSNAME=
DSLIST=ConfigDrive NoCloud
MODE=report
ON_FOUND=all
ON_MAYBE=all
ON_NOTFOUND=enabled
pid=318 ppid=309
is_container=false
check for 'NoCloud' returned found
Found single datasource: NoCloud
[up 3.95s] returning 0

Scott Moser (smoser) on 2017-05-25
description: updated
Scott Moser (smoser) wrote :

Daniel grabbed some more info from a node that i had neglected.
not necessarily helpful, but
$ sudo sh -c 'cd /sys/hypervisor && grep -r . *'
compilation/compiled_by:mockbuild
compilation/compile_date:Mon Apr 24 15:29:46 UTC 2017
compilation/compiler:gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-4)
properties/pagesize:1000
properties/changeset:86f912c86501, pq 5f429748345d
properties/virtual_start:ffff800000000000
properties/features:000020f0
properties/capabilities:xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
type:xen
uuid:367fb048-191c-7ca9-1f86-79ee7f227a5e
version/extra:.1-1.3
version/major:4
version/minor:7

more of that conversation at https://irclogs.ubuntu.com/2017/05/31/%23cloud-init.html#t15:17

Scott Moser (smoser) wrote :
Scott Moser (smoser) on 2017-07-13
tags: added: dsid-block-xenial
tags: added: id-591ce7b554857f22b9aa2dd7
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers