【openstack报错】【metadata问题】‘http://169.254.169.254/2009-04-04/meta-data/instance-id’ failed : url error [[Errno 111] Connection refused]
2014-02-25 10:55
525 查看
【时间】2014年2月25日
【平台】ubuntu 12.04.3
openstack havana with nova-network in multi-host
【日志】实例启动时输出的日志内容如下:
【情景】multi-host模式下,由nova-network提供网络服务。当使用官方提供的ubuntu12.04镜像启用新的实例时,无法获得实例的用户名,也无法注入ssh秘钥。
最后发现实例启动时输出的日志有多行WARNING信息,提示获取metadata数据失败。
【分析】因为本人的nova相关模块部署的时间较早,版本较低,且官方安装文档提到:
On Debian systems, it is included in the
所以根据早期版本的官方安装文档,compute节点没有安装nova-api-metadata模块。然而,根据新的官方安装文档:
So that the
在multi-host模式下,metadata服务请求由nova-network来转发,故每个compute节点上都需要安装nova-api-metadata模块。
【解决】
在compute节点上:
在controller节点上:
注意:如果很久前部署的openstack平台,那么安装nova-api-metadata模块之后,可能出现版本兼容问题。详见另一博文。
【参考】
http://docs.openstack.org/havana/install-guide/install/apt/content/compute-service.html http://docs.openstack.org/havana/install-guide/install/apt/content/nova-network.html http://openstack.redhat.com/forum/discussion/282/how-to-fix-sshping-to-vms-metadata-api-issue/p1 http://www.vpsee.com/2011/11/how-to-solve-datasourceec2-pywarning-http169-254-169-254-failed-url-error-problem/ https://answers.launchpad.net/nova/+question/159317 http://docs.openstack.org/admin-guide-cloud/content/section_metadata-service.html http://www.chenshake.com/http169-254-169-2542009-04-04meta-datainstance-id-failed-url-error-errno-111-connection-refused/ http://blog.csdn.net/lynn_kong/article/details/9115033 http://blog.csdn.net/lynn_kong/article/details/9146397 http://blog.csdn.net/gtt116/article/details/17997053 https://bugs.launchpad.net/neutron/+bug/1174657
【平台】ubuntu 12.04.3
openstack havana with nova-network in multi-host
【日志】实例启动时输出的日志内容如下:
... ...- util.py[WARNING]: 'http://169.254.169.254/2009-04-04/meta-data/instance-id' failed [114/120s]: url error [[Errno 111] Connection refused] ... - DataSourceEc2.py[CRITICAL]: giving up on md after 121 seconds ...
【情景】multi-host模式下,由nova-network提供网络服务。当使用官方提供的ubuntu12.04镜像启用新的实例时,无法获得实例的用户名,也无法注入ssh秘钥。
最后发现实例启动时输出的日志有多行WARNING信息,提示获取metadata数据失败。
【分析】因为本人的nova相关模块部署的时间较早,版本较低,且官方安装文档提到:
nova-api-metadataservice. Accepts metadata requests from instances. The
nova-api-metadataservice is generally only used when you run in multi-host mode with
nova-networkinstallations.
On Debian systems, it is included in the
nova-apipackage, and can be selected through debconf.
所以根据早期版本的官方安装文档,compute节点没有安装nova-api-metadata模块。然而,根据新的官方安装文档:
So that the
nova-networkservice can forward metadata requests on each compute node, each compute node must install the
nova-api-metadataservice, as follows:
# apt-get install nova-network nova-api-metadata
在multi-host模式下,metadata服务请求由nova-network来转发,故每个compute节点上都需要安装nova-api-metadata模块。
【解决】
在compute节点上:
#apt-get install nova-api-metadata #service nova-compute restart;service nova-network restart;service nova-api-metadata restart
在controller节点上:
#service nova-scheduler restart;service nova-api restart;service nova-cert restart;service nova-conductor restart;service nova-novncproxy restart;service nova-consoleauth restart
注意:如果很久前部署的openstack平台,那么安装nova-api-metadata模块之后,可能出现版本兼容问题。详见另一博文。
【参考】
http://docs.openstack.org/havana/install-guide/install/apt/content/compute-service.html http://docs.openstack.org/havana/install-guide/install/apt/content/nova-network.html http://openstack.redhat.com/forum/discussion/282/how-to-fix-sshping-to-vms-metadata-api-issue/p1 http://www.vpsee.com/2011/11/how-to-solve-datasourceec2-pywarning-http169-254-169-254-failed-url-error-problem/ https://answers.launchpad.net/nova/+question/159317 http://docs.openstack.org/admin-guide-cloud/content/section_metadata-service.html http://www.chenshake.com/http169-254-169-2542009-04-04meta-datainstance-id-failed-url-error-errno-111-connection-refused/ http://blog.csdn.net/lynn_kong/article/details/9115033 http://blog.csdn.net/lynn_kong/article/details/9146397 http://blog.csdn.net/gtt116/article/details/17997053 https://bugs.launchpad.net/neutron/+bug/1174657
相关文章推荐
- 『奇葩问题集锦』Ruby 切换淘宝源报错WARNING: Error fetching data: SSL_connect returned=1 errno=0 state=SSLv3 read s erver certificate B: certificate verify failed
- GWT—DynamicForm 在saveData 时Transport error 400 for http url x/xx/...问题解决办法
- NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
- 本机调试AMFPHP遇到的Channel.Connect.Failed error NetConnection.Call.BadVersion: : url: 'http://localhost/amfphp/gateway.php解决方法
- ORA-29786: SIHA attribute GET failed with Error If 11gR2 ASM instance is created manually [ID 976075
- OpenStack常见错误:无法开启http服务 Job for httpd.service failed because the control process exited with error
- git push错误:RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 The remote end hung up
- 解决NGINX+PHP-FPM failed to ptrace(PEEKDATA) Input/output error出错问题
- iOS UIWebView 载入https 网站出现NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL,
- html5 canvas 加载图片错误 SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement'
- -canOpenURL: failed for URL: "" - error: "(null)" , iOS9 App传输安全 支持http 解决方案
- iOS UIWebView 载入https 网站出现NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL,
- FAILED: Error in metadata: MetaException(message:Got exception: java.net.ConnectException Call to ha
- xcode7 解决NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9843)
- j2ee的web项目怎么防止,重复提交的问题?(即点击了提交,后台新增了两条数据,也就是说,其实是点了多次提交,发起了多次http url,这样就插入了多条相同数据,但是主键id是不同的)
- UIWebView 使用中遇到的问题(NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802))
- FAILED: Error in metadata: javax.jdo.JDOFatalDataStoreException
- git 错误:error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
- scrapy [boto] ERROR: Caught exception reading instance data URLError: <urlopen error [Errno 10051] >
- error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required