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?

** Also affects: cloud-init
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1960944

Title:
  cloudinit.sources.DataSourceNotFoundException: Did not find any data
  source, searched classes

Status in cloud-init:
  New
Status in MAAS:
  New

Bug description:
  Not able to deploy baremetal (arm64 and amd64) on a 
  snap-based MAAS: 3.1.0 (maas      3.1.0-10901-g.f1f8f1505  18199  3.1/stable) 

  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.hook.conf…-4400-96a8-0c5c9e438c51.scope.
           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/python3/dist-packages/cloudinit/cmd/main.py", line 521, in 
main_modules
  [  322.038783] cloud-init[2034]:     init.fetch(existing="trust")
  [  322.039181] cloud-init[2034]:   File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 411, in fetch
  [  322.039584] cloud-init[2034]:     return 
self._get_data_source(existing=existing)
  [  322.040031] cloud-init[2034]:   File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 311, in 
_get_data_source
  [  322.040381] cloud-init[2034]:     (ds, dsname) = 
sources.find_source(self.cfg,
  [  322.040807] cloud-init[2034]:   File 
"/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 854, in 
find_source
  [  322.041221] cloud-init[2034]:     raise DataSourceNotFoundException(msg)
  [  322.041659] cloud-init[2034]: 
cloudinit.sources.DataSourceNotFoundException: Did not find any data source, 
searched classes: ()
  [  322.042076] cloud-init[2034]: 
------------------------------------------------------------
  [FAILED] Failed to start Apply the …ngs specified in cloud-config.
  See 'systemctl status cloud-config.service' for details.
           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/python3/dist-packages/cloudinit/cmd/main.py", line 521, in 
main_modules
  [  324.031258] cloud-init[2042]:     init.fetch(existing="trust")
  [  324.031647] cloud-init[2042]:   File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 411, in fetch
  [  324.032111] cloud-init[2042]:     return 
self._get_data_source(existing=existing)
  [  324.032483] cloud-init[2042]:   File 
"/usr/lib/python3/dist-packages/cloudinit/stages.py", line 311, in 
_get_data_source
  [  324.032865] cloud-init[2042]:     (ds, dsname) = 
sources.find_source(self.cfg,
  [  324.033292] cloud-init[2042]:   File 
"/usr/lib/python3/dist-packages/cloudinit/sources/__init__.py", line 854, in 
find_source
  [  324.033690] cloud-init[2042]:     raise DataSourceNotFoundException(msg)
  [  324.034112] cloud-init[2042]: 
cloudinit.sources.DataSourceNotFoundException: Did not find any data source, 
searched classes: ()
  [  324.034559] cloud-init[2042]: 
------------------------------------------------------------
  [FAILED] Failed to start Execute cloud user/final scripts.
  See 'systemctl status cloud-final.service' for details.
  [  OK  ] Reached target Cloud-init target.
  [  OK  ] Finished Message of the Day.
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1960944/+subscriptions


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to