Package: cloud-init Version: 18.3-6 Environment: OpenTelekomCloud (OpenStack) KVM VM Debian 10 buster DataSource: OpenStack
Dear Maintainer, Boot a new installed VM in OpenTelekomCloud on KVM or manual run 'cloud-init -d init' results in error message in /var/log/cloud-init-output.log that network interface can not be detected right. Error msg: ValueError: Unknown network_data link type: cascading # cloud-init clean -l; cloud-init -d init (...) 2019-08-29 07:23:35,025 - util.py[WARNING]: failed stage init failed run of stage init ------------------------------------------------------------ Traceback (most recent call last): File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 655, in status_wrapper ret = functor(name, args) File "/usr/lib/python3/dist-packages/cloudinit/cmd/main.py", line 361, in main_init init.apply_network_config(bring_up=bool(mode != sources.DSMODE_LOCAL)) File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 640, in apply_network_config netcfg, src = self._find_networking_config() File "/usr/lib/python3/dist-packages/cloudinit/stages.py", line 627, in _find_networking_config if self.datasource and hasattr(self.datasource, 'network_config'): File "/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceOpenStack.py", line 114, in network_config self.network_json, known_macs=None) File "/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py", line 628, in convert_net_json 'Unknown network_data link type: %s' % link['type']) ValueError: Unknown network_data link type: cascading ------------------------------------------------------------ Scanning network_data.json get from dataSource OpenStack is not successfully. Additional I'm wondering if it is even necessary to scan network_data.jso when network configuration set to disabled for cloud-init # cat /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg network: {config: disabled} More information about running VM: =============================== # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 Codename: buster # cloud-init --version /usr/bin/cloud-init 18.3 # dpkg -l | grep cloud-init ii cloud-init 18.3-6 all initialization system for infrastructure cloud instances ii cloud-initramfs-growroot 0.18.debian7 all automatically resize the root partition on first boot # systemd-detect-virt kvm # cat ds-identify.log [up 3.04s] ds-identify 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, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Ec2, CloudStack, None ] DMI_PRODUCT_NAME=OpenStack Nova DMI_SYS_VENDOR=OpenStack Foundation DMI_PRODUCT_SERIAL=65a965de-870a-4b0f-b3cd-698cca8ded47 DMI_PRODUCT_UUID=43ee03d1-7e16-409d-9e19-f65afb7f09da PID_1_PRODUCT_NAME=unavailable DMI_CHASSIS_ASSET_TAG= FS_LABELS=cloudimg-rootfs ISO9660_DEVS= KERNEL_CMDLINE=BOOT_IMAGE=/boot/vmlinuz-4.19.0-5-amd64 root=LABEL=cloudimg-rootfs ro console=tty0 console=ttyS0,115200 no_timer_check console=ttyS0,115200n8 console=tty0 VIRT=kvm UNAME_KERNEL_NAME=Linux UNAME_KERNEL_RELEASE=4.19.0-5-amd64 UNAME_KERNEL_VERSION=#1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08) UNAME_MACHINE=x86_64 UNAME_NODENAME=test-debian-10-x86-64-20190828-1143-jenkins-143 UNAME_OPERATING_SYSTEM=GNU/Linux DSNAME= DSLIST=NoCloud ConfigDrive OpenNebula Azure AltCloud OVF MAAS GCE OpenStack CloudSigma SmartOS Ec2 CloudStack None MODE=search ON_FOUND=all ON_MAYBE=all ON_NOTFOUND=disabled pid=216 ppid=198 is_container=false is_ds_enabled(IBMCloud) = false. is_ds_enabled(IBMCloud) = false. check for 'OpenStack' returned found ec2 platform is 'Unknown'. Found single datasource: OpenStack [up 3.09s] returning 0 # w3m -dump http://169.254.169.254/openstack/latest/network_data.json | jq '' { "services": [ { "type": "dns", "address": "100.125.4.25" }, { "type": "dns", "address": "8.8.8.8" }, { "type": "dns", "address": "4.2.2.2" } ], "networks": [ { "network_id": "16795ad2-e09f-4512-b8a7-8abeb6ff068f", "type": "ipv4_dhcp", "link": "tap81eb42ef-23", "id": "network0" } ], "links": [ { "type": "cascading", "vif_id": "81eb42ef-23d6-4fa8-b9ec-98b7409b0878", "ethernet_mac_address": "fa:16:3e:81:37:ea", "id": "tap81eb42ef-23", "mtu": null } ] } # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether fa:16:3e:81:37:ea brd ff:ff:ff:ff:ff:ff inet 172.24.9.149/24 brd 172.24.9.255 scope global dynamic ens3 valid_lft 58916sec preferred_lft 58916sec inet6 fe80::f816:3eff:fe81:37ea/64 scope link valid_lft forever preferred_lft forever More information from reportbug -- System Information: Debian Release: 10.0 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-5-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages cloud-init depends on: ii cloud-guest-utils 0.29-1 ii fdisk 2.33.1-0.1 ii gdisk 1.0.3-1.1 ii ifupdown 0.8.35 ii locales 2.28-10 ii lsb-base 10.2019051400 ii lsb-release 10.2019051400 ii net-tools 1.60+git20180626.aebd88e-1 ii procps 2:3.3.15-2 ii python3 3.7.3-1 ii python3-configobj 5.0.6-3 ii python3-jinja2 2.10-2 ii python3-jsonpatch 1.21-1 ii python3-jsonschema 2.6.0-4 ii python3-oauthlib 2.1.0-1 ii python3-requests 2.21.0-1 ii python3-six 1.12.0-1 ii python3-yaml 3.13-2 ii util-linux 2.33.1-0.1 Versions of packages cloud-init recommends: pn eatmydata <none> ii sudo 1.8.27-1 Versions of packages cloud-init suggests: pn btrfs-progs <none> ii e2fsprogs 1.44.5-1 pn xfsprogs <none> -- Configuration Files: /etc/cloud/cloud.cfg changed [not included] /etc/cloud/templates/sources.list.debian.tmpl changed [not included] -- debconf information: cloud-init/datasources: NoCloud, ConfigDrive, OpenNebula, Azure, AltCloud, OVF, MAAS, GCE, OpenStack, CloudSigma, SmartOS, Ec2, CloudStack, None