cloudinit.sources.DataSourceNotFoundException: Did not find any data source, searched classes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Incomplete
|
Undecided
|
Unassigned | ||
cloud-init |
Fix Released
|
Unknown
|
|||
simplestreams |
New
|
Undecided
|
Unassigned |
Bug Description
Not able to deploy baremetal (arm64 and amd64) on a
snap-based MAAS: 3.1.0 (maas 3.1.0-10901-
from MAAS event log:
```
Tue, 15 Feb. 2022 17:35:33 Node changed status - From 'Deploying' to 'Failed deployment'
Tue, 15 Feb. 2022 17:35:33 Marking node failed - Node operation 'Deploying' timed out after 30 minutes.
Tue, 15 Feb. 2022 17:07:44 Node installation - 'cloudinit' searching for network data from DataSourceMAAS
Tue, 15 Feb. 2022 17:06:44 Node installation - 'cloudinit' attempting to read from cache [trust]
Tue, 15 Feb. 2022 17:06:42 Node installation - 'cloudinit' attempting to read from cache [check]
Tue, 15 Feb. 2022 17:05:29 Performing PXE boot
Tue, 15 Feb. 2022 17:05:29 PXE Request - installation
Tue, 15 Feb. 2022 17:03:52 Node powered on
```
Server console log shows:
```
ubuntu login: Starting Message of the Day...
[ OK ] Listening on Socket unix for snap application lxd.daemon.
Starting Service for snap application lxd.activate...
[ OK ] Finished Service for snap application lxd.activate.
[ OK ] Started snap.lxd.
Starting Time & Date Service...
[ OK ] Started Time & Date Service.
[ OK ] Finished Wait until snapd is fully seeded.
Starting Apply the settings specified in cloud-config...
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Finished Update UTMP about System Runlevel Changes.
[ 322.036861] cloud-init[2034]: Can not apply stage config, no datasource found! Likely bad things to come!
[ 322.037477] cloud-init[2034]: -------
[ 322.037907] cloud-init[2034]: Traceback (most recent call last):
[ 322.038341] cloud-init[2034]: File "/usr/lib/
[ 322.038783] cloud-init[2034]: init.fetch(
[ 322.039181] cloud-init[2034]: File "/usr/lib/
[ 322.039584] cloud-init[2034]: return self._get_
[ 322.040031] cloud-init[2034]: File "/usr/lib/
[ 322.040381] cloud-init[2034]: (ds, dsname) = sources.
[ 322.040807] cloud-init[2034]: File "/usr/lib/
[ 322.041221] cloud-init[2034]: raise DataSourceNotFo
[ 322.041659] cloud-init[2034]: cloudinit.
[ 322.042076] cloud-init[2034]: -------
[FAILED] Failed to start Apply the …ngs specified in cloud-config.
See 'systemctl status cloud-config.
Starting Execute cloud user/final scripts...
[ 324.029369] cloud-init[2042]: Can not apply stage final, no datasource found! Likely bad things to come!
[ 324.029979] cloud-init[2042]: -------
[ 324.030420] cloud-init[2042]: Traceback (most recent call last):
[ 324.030835] cloud-init[2042]: File "/usr/lib/
[ 324.031258] cloud-init[2042]: init.fetch(
[ 324.031647] cloud-init[2042]: File "/usr/lib/
[ 324.032111] cloud-init[2042]: return self._get_
[ 324.032483] cloud-init[2042]: File "/usr/lib/
[ 324.032865] cloud-init[2042]: (ds, dsname) = sources.
[ 324.033292] cloud-init[2042]: File "/usr/lib/
[ 324.033690] cloud-init[2042]: raise DataSourceNotFo
[ 324.034112] cloud-init[2042]: cloudinit.
[ 324.034559] cloud-init[2042]: -------
[FAILED] Failed to start Execute cloud user/final scripts.
See 'systemctl status cloud-final.
[ OK ] Reached target Cloud-init target.
[ OK ] Finished Message of the Day.
```
Changed in simplestreams: | |
status: | New → Invalid |
Changed in maas: | |
status: | Incomplete → New |
status: | New → Incomplete |
Changed in maas: | |
status: | Incomplete → New |
status: | New → Incomplete |
Changed in cloud-init: | |
importance: | Undecided → Unknown |
status: | Invalid → Unknown |
Changed in cloud-init: | |
status: | Unknown → Fix Released |
This can occur when the machine in question can't reach the MAAS controller; are you able to confirm connectivity from this machine to the rack controller?