yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #65591
[Bug 1702256] [NEW] [Hyper-V][Azure]cloudinit fail to get_source on Azure
Public bug reported:
cloud-init on Azure cannot work properly:
This is in fact a regression, caused by commit:
ebc9ecbc8a76bdf511a456fb72339a7eb4c20568
The issue happens in the following code:
cloudinit/source/DataSourceAzure.py.
The removal of "sources.DEP_NETWORK" makes sources.list_sources() return
[] for DataSourceAzure, which is the root cause.
+
# Used to match classes to dependencies
datasources = [
- (DataSourceAzureNet, (sources.DEP_FILESYSTEM, sources.DEP_NETWORK)),
+ (DataSourceAzure, (sources.DEP_FILESYSTEM, )),
]
The error log:
2017-07-04 08:28:49,555 - __init__.py[DEBUG]: Searching for network data source in: []
2017-07-04 08:28:49,555 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
2017-07-04 08:28:49,555 - util.py[DEBUG]: No instance datasource found! Likely bad things to come!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/cmd/main.py", line 331, in main_init
init.fetch(existing=existing)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/stages.py", line 349, in fetch
return self._get_data_source(existing=existing)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/stages.py", line 259, in _get_data_source
pkg_list, self.reporter)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/sources/__init__.py", line 334, in find_source
raise DataSourceNotFoundException(msg)
DataSourceNotFoundException: Did not find any data source, searched classes: ()
** 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/1702256
Title:
[Hyper-V][Azure]cloudinit fail to get_source on Azure
Status in cloud-init:
New
Bug description:
cloud-init on Azure cannot work properly:
This is in fact a regression, caused by commit:
ebc9ecbc8a76bdf511a456fb72339a7eb4c20568
The issue happens in the following code:
cloudinit/source/DataSourceAzure.py.
The removal of "sources.DEP_NETWORK" makes sources.list_sources()
return [] for DataSourceAzure, which is the root cause.
+
# Used to match classes to dependencies
datasources = [
- (DataSourceAzureNet, (sources.DEP_FILESYSTEM, sources.DEP_NETWORK)),
+ (DataSourceAzure, (sources.DEP_FILESYSTEM, )),
]
The error log:
2017-07-04 08:28:49,555 - __init__.py[DEBUG]: Searching for network data source in: []
2017-07-04 08:28:49,555 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
2017-07-04 08:28:49,555 - util.py[DEBUG]: No instance datasource found! Likely bad things to come!
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/cmd/main.py", line 331, in main_init
init.fetch(existing=existing)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/stages.py", line 349, in fetch
return self._get_data_source(existing=existing)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/stages.py", line 259, in _get_data_source
pkg_list, self.reporter)
File "/usr/local/lib/python2.7/site-packages/cloud_init-0.7.9-py2.7.egg/cloudinit/sources/__init__.py", line 334, in find_source
raise DataSourceNotFoundException(msg)
DataSourceNotFoundException: Did not find any data source, searched classes: ()
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1702256/+subscriptions
Follow ups