openstack kilo版的bug

现象:

环境centos7 openstack版本kilo

nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=f309e2cc-05cb-465d-baf4-6b3b446617e9 / --security-group default --key-name demo-key demo-instance1

出现500错误

 

对策:

必须修改/usr/lib/python2.7/site-packages/glanceclient/v1/images.py,在第76行增加一行:

key = key.lower() 然后重起openstack服务后再创建实例。

 

 

---------------------

现象:

centos镜像无法获取metadata信息,导致无法通过cloudinit设置用户名密码。

https://ask.openstack.org/en/question/68360/ssh-key-injection-intermittent-failure/

对策:

几乎无解

1 推荐使用旧版本的cloudinit。

2 下载http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud-20140929_01.qcow2

镜像解决了问题。

 

posted @ 2016-11-24 14:42  萧何9527  阅读(294)  评论(0编辑  收藏  举报