yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #70524
[Bug 1744952] [NEW] 'DataSourceEc2' object has no attribute 'identity'
Public bug reported:
Running version 17.2 on a CentOS 7.4 64bits AWS EC2 instance, no issues
on 17.1:
```
Jan 22 21:17:09 ip-10-38-68-92 systemd: Stopping Initial cloud-init job (metadata service crawler)...
Jan 22 21:17:09 ip-10-38-68-92 systemd: Starting Initial cloud-init job (metadata service crawler)...
Jan 22 21:17:09 ip-10-38-68-92 cloud-init: Cloud-init v. 17.2 running 'init' at Mon, 22 Jan 2018 21:17:09 +0000. Up 7320.65 seconds.
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | ens5: | True | 10.9.84.61 | 255.255.224.0 | . | 0a:a5:8a:f8:42:84 |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | ens5: | True | . | . | d | 0a:a5:8a:f8:42:84 |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . | . |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | lo: | True | . | . | d | . |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: ++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 0 | 0.0.0.0 | 10.9.64.1 | 0.0.0.0 | ens5 | UG |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 1 | 10.9.64.0 | 0.0.0.0 | 255.255.224.0 | ens5 | U |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +++++++++++++++++++++++++++++++++Route IPv6 info+++++++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Route | Proto | Recv-Q | Send-Q | Local Address | Foreign Address | State |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 0 | tcp6 | 0 | 0 | ::1:39566 | ::1:80 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 1 | tcp6 | 0 | 0 | ::1:80 | ::1:39574 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 2 | tcp6 | 0 | 0 | ::1:39576 | ::1:80 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: 2018-01-22 21:17:10,170 - util.py[WARNING]: failed stage init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: failed run of stage init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ------------------------------------------------------------
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: Traceback (most recent call last):
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 638, in status_wrapper
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ret = functor(name, args)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 324, in main_init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: init.fetch(existing=existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 349, in fetch
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: return self._get_data_source(existing=existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 244, in _get_data_source
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ds, desc = self._restore_from_checked_cache(existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 224, in _restore_from_checked_cache
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: if run_iid == ds.get_instance_id():
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceEc2.py", line 159, in get_instance_id
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: return self.identity.get(
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: AttributeError: 'DataSourceEc2' object has no attribute 'identity'
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ------------------------------------------------------------
Jan 22 21:17:10 ip-10-38-68-92 systemd: cloud-init.service: main process exited, code=exited, status=1/FAILURE
Jan 22 21:17:10 ip-10-38-68-92 systemd: Failed to start Initial cloud-init job (metadata service crawler).
Jan 22 21:17:10 ip-10-38-68-92 systemd: Unit cloud-init.service entered failed state.
```
** 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/1744952
Title:
'DataSourceEc2' object has no attribute 'identity'
Status in cloud-init:
New
Bug description:
Running version 17.2 on a CentOS 7.4 64bits AWS EC2 instance, no
issues on 17.1:
```
Jan 22 21:17:09 ip-10-38-68-92 systemd: Stopping Initial cloud-init job (metadata service crawler)...
Jan 22 21:17:09 ip-10-38-68-92 systemd: Starting Initial cloud-init job (metadata service crawler)...
Jan 22 21:17:09 ip-10-38-68-92 cloud-init: Cloud-init v. 17.2 running 'init' at Mon, 22 Jan 2018 21:17:09 +0000. Up 7320.65 seconds.
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +++++++++++++++++++++++++++++Net device info++++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Device | Up | Address | Mask | Scope | Hw-Address |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | ens5: | True | 10.9.84.61 | 255.255.224.0 | . | 0a:a5:8a:f8:42:84 |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | ens5: | True | . | . | d | 0a:a5:8a:f8:42:84 |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | lo: | True | 127.0.0.1 | 255.0.0.0 | . | . |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | lo: | True | . | . | d | . |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +--------+------+------------+---------------+-------+-------------------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: ++++++++++++++++++++++++++++Route IPv4 info++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Route | Destination | Gateway | Genmask | Interface | Flags |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 0 | 0.0.0.0 | 10.9.64.1 | 0.0.0.0 | ens5 | UG |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 1 | 10.9.64.0 | 0.0.0.0 | 255.255.224.0 | ens5 | U |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------------+-----------+---------------+-----------+-------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +++++++++++++++++++++++++++++++++Route IPv6 info+++++++++++++++++++++++++++++++++
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | Route | Proto | Recv-Q | Send-Q | Local Address | Foreign Address | State |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 0 | tcp6 | 0 | 0 | ::1:39566 | ::1:80 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 1 | tcp6 | 0 | 0 | ::1:80 | ::1:39574 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: | 2 | tcp6 | 0 | 0 | ::1:39576 | ::1:80 | TIME_WAIT |
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ci-info: +-------+-------+--------+--------+---------------+-----------------+-----------+
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: 2018-01-22 21:17:10,170 - util.py[WARNING]: failed stage init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: failed run of stage init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ------------------------------------------------------------
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: Traceback (most recent call last):
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 638, in status_wrapper
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ret = functor(name, args)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 324, in main_init
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: init.fetch(existing=existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 349, in fetch
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: return self._get_data_source(existing=existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 244, in _get_data_source
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ds, desc = self._restore_from_checked_cache(existing)
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 224, in _restore_from_checked_cache
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: if run_iid == ds.get_instance_id():
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceEc2.py", line 159, in get_instance_id
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: return self.identity.get(
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: AttributeError: 'DataSourceEc2' object has no attribute 'identity'
Jan 22 21:17:10 ip-10-38-68-92 cloud-init: ------------------------------------------------------------
Jan 22 21:17:10 ip-10-38-68-92 systemd: cloud-init.service: main process exited, code=exited, status=1/FAILURE
Jan 22 21:17:10 ip-10-38-68-92 systemd: Failed to start Initial cloud-init job (metadata service crawler).
Jan 22 21:17:10 ip-10-38-68-92 systemd: Unit cloud-init.service entered failed state.
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1744952/+subscriptions
Follow ups