CentOS Linux 7 (Core)
Kernel 3.10.0-229.7.2.el7.x86_64 on an x86_64
centos-1 login: cloud-init[742]: 2017-03-21 08:51:04,446 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [50/120s]: unexpected error ['Timeout' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:51:55,499 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [101/120s]: unexpected error ['Timeout' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:13,523 - url_helper.py[WARNING]: Calling 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [119/120s]: unexpected error ['Timeout' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:14,524 - DataSourceEc2.py[CRITICAL]: Giving up on md from ['http://169.254.169.254/2009-04-04/meta-data/instance-id'] after 120 seconds
cloud-init[742]: 2017-03-21 08:52:14,532 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [0/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:15,537 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [1/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:16,542 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [2/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:17,752 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [3/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:18,756 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [4/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:19,761 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [5/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:21,766 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [7/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:23,772 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [9/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:25,777 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [11/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:27,783 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [13/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:29,789 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [15/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:32,795 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [18/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:35,801 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [21/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:38,808 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [24/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:41,815 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [27/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:44,821 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [30/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:48,829 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [34/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:52,836 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [38/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:52:56,844 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [42/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:00,852 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [46/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:04,861 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [50/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:09,870 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [55/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:14,880 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [60/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:19,888 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [65/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:24,897 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [70/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:29,906 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [75/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:35,916 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [81/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:41,926 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [87/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:47,936 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [93/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:53,946 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [99/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:53:59,956 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [105/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:54:06,967 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [112/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:54:13,977 - url_helper.py[WARNING]: Calling 'http://10.0.0.127//latest/meta-data/instance-id' failed [119/120s]: unexpected error ['ConnectionError' object has no attribute 'response']
cloud-init[742]: 2017-03-21 08:54:20,984 - DataSourceCloudStack.py[CRITICAL]: Giving up on waiting for the metadata from ['http://10.0.0.127//latest/meta-data/instance-id'] after 126 seconds
在如下路径查看log
vi /var/log/neutron/metadata-agent.log
2016-08-15 04:53:31.797 5322 ERROR neutron.agent.metadata.agent MessagingTimeout: Timed out waiting for a reply to message ID 8a7907428b3342eabd7686574ab0aa80
systemctl restart neutron-metadata-agent.service
[[32m OK [0m] Started Login Service.
[ 6.266029] [drm] Initialized qxl 0.1.0 20120117 for 0000:00:02.0 on minor 0
[[32m OK [0m] Started Dynamic System Tuning Daemon.
cloud-init[452]: Cloud-init v. 0.7.5 running 'init-local' at Wed, 22 Mar 2017 06:13:46 +0000. Up 7.60 seconds.
[[32m OK [0m] Started Initial cloud-init job (pre-networking).
[[32m OK [0m] Started LSB: Bring up/down networking.
[[32m OK [0m] Reached target Network.
Starting Initial cloud-init job (metadata service crawler)...
Starting Postfix Mail Transport Agent...
Starting OpenSSH server daemon...
[[32m OK [0m] Started OpenSSH server daemon.
Starting Crash recovery kernel arming...
cloud-init[737]: Cloud-init v. 0.7.5 running 'init' at Wed, 22 Mar 2017 06:13:49 +0000. Up 9.82 seconds.