yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70790
[Bug 1746605] [NEW] stack trace when sdc:* not defined
Public bug reported:
I'm seeing the following while trying to read meta-data from SmartOS.
2018-01-31 21:36:03,554 - DataSourceSmartOS.py[DEBUG]: Writing "V2 29 459961e2 d133c055 GET c2RjOnJvdXRlcw==
" to metadata transport.
2018-01-31 21:36:03,995 - DataSourceSmartOS.py[DEBUG]: Read "aV2 21 0e6e7ec8 d133c055 SUCCESS W10=" from metadata transport.
2018-01-31 21:36:03,996 - handlers.py[DEBUG]: finish: init-local/search-SmartOS: FAIL: no local data found from DataSourceSmartOS
2018-01-31 21:36:03,996 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
2018-01-31 21:36:03,996 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 434, in find_source
if s.get_data():
File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 121, in get_data
return_value = self._get_data()
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 237, in _get_data
md[ci_noun] = self.md_client.get_json(smartos_noun)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 406, in get_json
result = self.get(key, default=default)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 559, in get
val = self._get(key, strip=False, default=mdefault)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 544, in _get
get(key, default=default, strip=strip))
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 398, in get
result = self.request(rtype='GET', param=key)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 394, in request
value = self._get_value_from_frame(request_id, response)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 342, in _get_value_from_frame
frame_data = self.line_regex.match(frame).groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'
2018-01-31 21:36:04,004 - main.py[DEBUG]: No local datasource found
[root@7180e700-3cba-cb89-eb82-ff14a51a62b2 ~]# echo c2RjOnJvdXRlcw== | base64 -d; echo
sdc:routes
[root@7180e700-3cba-cb89-eb82-ff14a51a62b2 ~]# mdata-get sdc:routes
[]
This seems to cause DataSourceSmartOS to fail completely, then it goes
on to time out on EC2 and CloudStack.
This is using my own build with this changeset at HEAD.
$ git log -n 1
commit f7deaf15acf382d62554e2b1d70daa9a9109d542
** 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/1746605
Title:
stack trace when sdc:* not defined
Status in cloud-init:
New
Bug description:
I'm seeing the following while trying to read meta-data from SmartOS.
2018-01-31 21:36:03,554 - DataSourceSmartOS.py[DEBUG]: Writing "V2 29 459961e2 d133c055 GET c2RjOnJvdXRlcw==
" to metadata transport.
2018-01-31 21:36:03,995 - DataSourceSmartOS.py[DEBUG]: Read "aV2 21 0e6e7ec8 d133c055 SUCCESS W10=" from metadata transport.
2018-01-31 21:36:03,996 - handlers.py[DEBUG]: finish: init-local/search-SmartOS: FAIL: no local data found from DataSourceSmartOS
2018-01-31 21:36:03,996 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
2018-01-31 21:36:03,996 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceSmartOS.DataSourceSmartOS'> failed
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 434, in find_source
if s.get_data():
File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 121, in get_data
return_value = self._get_data()
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 237, in _get_data
md[ci_noun] = self.md_client.get_json(smartos_noun)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 406, in get_json
result = self.get(key, default=default)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 559, in get
val = self._get(key, strip=False, default=mdefault)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 544, in _get
get(key, default=default, strip=strip))
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 398, in get
result = self.request(rtype='GET', param=key)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 394, in request
value = self._get_value_from_frame(request_id, response)
File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceSmartOS.py", line 342, in _get_value_from_frame
frame_data = self.line_regex.match(frame).groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'
2018-01-31 21:36:04,004 - main.py[DEBUG]: No local datasource found
[root@7180e700-3cba-cb89-eb82-ff14a51a62b2 ~]# echo c2RjOnJvdXRlcw== | base64 -d; echo
sdc:routes
[root@7180e700-3cba-cb89-eb82-ff14a51a62b2 ~]# mdata-get sdc:routes
[]
This seems to cause DataSourceSmartOS to fail completely, then it goes
on to time out on EC2 and CloudStack.
This is using my own build with this changeset at HEAD.
$ git log -n 1
commit f7deaf15acf382d62554e2b1d70daa9a9109d542
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1746605/+subscriptions
Follow ups