openstack 问题集锦 -- 持续更新中
2017-06-05 10:44
218 查看
openstack 在运行或者添加新模块时,会碰到各式各样的问题,记录一下吧(欢迎留言提问)–持续更新中
* 因为之前全部成功,之后全部失败,说明资源不足了
可以有三种修改方案
1. 修改controller节点的nova.conf
2. 修改每个compute节点的nova.conf(优先级高于1),两者修改如下:
使用命令修改(没试验过~)
MultipleSchedulerPolicies
+ 查看日志会发现Target WSGI script not found or unable to stat: /var/www/cgi-bin没有找到。解决方法:
Error: 云主机 “awithc” 执行所请求操作失败,云主机处于错误状态。: 请稍后再试 [错误: Build of instance 21130c1d-f525-4add-b3e9-3e69f472593f aborted: Block Device Mapping is Invalid.].
* 可能的原因:创建实例过程中创建卷,由于卷在创建时,需要挂载到实例上,此时卷没有找到对应的实例,所以就失败了。解决方法:
注:如果是这样的错误,那么在创建实例+卷时,会一直报错,及时是使用tiny测试的例子也会。
* 可能的原因:使用小的linux时没问题,但是使用大的windows镜像就会出错
具体描述
* 创建卷没有问题,已经创建成功
* 实例ip没问题
* 实例创建失败,状态显示错误
* 使用tiny实例,1G的volume会成功,不会失败
这是由于实例创建超时引起的。因为大的卷在创建时会耗费大量时间,实例创建好了,但是卷没有准备好,那么就会出错。因为这种创建是/dev/sda/,当做启动盘用的,必须得创建好才行。如果是实例创建好,再挂载volume是/dev/sdb/
再所有的计算节点(compute node) /etc/nova/nova.conf default
注:创建的卷最好要比默认的值大10G。。。。
参考链接如下:
https://ask.openstack.org/en/question/65282/instance-failed-to-create-due-to-block-device-setup-timeout/
https://ask.openstack.org/en/question/62636/instance-creation-fails-block-device-mapping/
至于什么原因,可以去微软上看微软解释
4核设置方法如下:
8核设置:
数值有以下搭配方案:
详情参考链接:VirtDriverGuestCPUTopology
============未完==============华丽分割线==============待续===========
nova
云主机建立一定数量后,会出【no valid host was found】这样的错误* 因为之前全部成功,之后全部失败,说明资源不足了
可以有三种修改方案
1. 修改controller节点的nova.conf
2. 修改每个compute节点的nova.conf(优先级高于1),两者修改如下:
[Default] ... cpu_allocation_ratio = 16.0 ram_allocation_ratio=2.0
使用命令修改(没试验过~)
nova aggregate-set-metadata 1 cpu_allocation_ratio=2.0
MultipleSchedulerPolicies
Ceilometer
按照官方安装Ceilometer,执行meter-list 出现 HTTPNotFound (HTTP 404)+ 查看日志会发现Target WSGI script not found or unable to stat: /var/www/cgi-bin没有找到。解决方法:
1.看看是不是没有cgi-bin # ls /var/www/ 2. 找一下文件ceilometer/api/app.wsgi # find / -name app.wsgi /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi 3. 复制 mkdir -p /var/www/cgi-bin/ceilometer cp /usr/lib/python2.7/dist-packages/ceilometer/api/app.wsgi /var/www/cgi-bin/ceilometer/app
Cinder
创建实例+创建卷【Block Device Mapping is Invalid】Error: 云主机 “awithc” 执行所请求操作失败,云主机处于错误状态。: 请稍后再试 [错误: Build of instance 21130c1d-f525-4add-b3e9-3e69f472593f aborted: Block Device Mapping is Invalid.].
* 可能的原因:创建实例过程中创建卷,由于卷在创建时,需要挂载到实例上,此时卷没有找到对应的实例,所以就失败了。解决方法:
vi /etc/cinder/cinder.conf [DEFAULT] ... # 镜像服务所在(一般是controller节点) glance_host=192.168.10.11 # 镜像服务端口 glance_port=9292
注:如果是这样的错误,那么在创建实例+卷时,会一直报错,及时是使用tiny测试的例子也会。
* 可能的原因:使用小的linux时没问题,但是使用大的windows镜像就会出错
具体描述
* 创建卷没有问题,已经创建成功
* 实例ip没问题
* 实例创建失败,状态显示错误
* 使用tiny实例,1G的volume会成功,不会失败
这是由于实例创建超时引起的。因为大的卷在创建时会耗费大量时间,实例创建好了,但是卷没有准备好,那么就会出错。因为这种创建是/dev/sda/,当做启动盘用的,必须得创建好才行。如果是实例创建好,再挂载volume是/dev/sdb/
再所有的计算节点(compute node) /etc/nova/nova.conf default
[Default] ... block_device_allocate_retries = 60 (default) to 300 block_device_allocate_retries_interval = 3(default) to 10 block_device_creation_timeout = 10(default) to 300
注:创建的卷最好要比默认的值大10G。。。。
参考链接如下:
https://ask.openstack.org/en/question/65282/instance-failed-to-create-due-to-block-device-setup-timeout/
https://ask.openstack.org/en/question/62636/instance-creation-fails-block-device-mapping/
glance
启动一个win7实例,设置了4核,查看任务管理器现实只有两块至于什么原因,可以去微软上看微软解释
Commercial servers, workstations, and other high-end PCs may have more than one physical processor. Windows 7 Professional, Enterprise, and Ultimate allow for two physical processors, providing the best performance on these computers. Windows 7 Starter, Home Basic, and Home Premium will recognize only one physical processor.
4核设置方法如下:
nova flavor-key win7 set hw:cpu_max_sockets=2 nova flavor-key win7 set hw:cpu_max_cores=1 nova flavor-key win7 set hw:cpu_max_threads=2
8核设置:
nova flavor-key win7 set hw:cpu_max_sockets=2 nova flavor-key win7 set hw:cpu_max_cores=4 nova flavor-key win7 set hw:cpu_max_threads=4
数值有以下搭配方案:
vcpus=4: sockets=4, cores=1, threads=1 sockets=2, cores=2, threads=1 sockets=2, cores=1, threads=2 sockets=1, cores=2, threads=2 sockets=1, cores=4, threads=1 sockets=1, cores=1, threads=4 vcpus=8: sockets=4, cores=2, threads=1 sockets=4, cores=1, threads=2 sockets=2, cores=4, threads=1 sockets=2, cores=4, threads=4 sockets=1, cores=4, threads=2 sockets=1, cores=2, threads=4 sockets=1, cores=8, threads=1 sockets=1, cores=1, threads=8
详情参考链接:VirtDriverGuestCPUTopology
============未完==============华丽分割线==============待续===========
相关文章推荐
- [置顶] OpenStack问题集锦(持续更新中...)
- ubuntu12.04 各种小问题及解决方案集锦【持续更新】
- W5500问题集锦(持续更新中)
- CentOs日常问题集锦(持续更新......)
- pip安装时遇到的问题集锦,持续更新!
- ubuntu12.04 各种小问题及解决方案集锦【持续更新】
- 我的关于PHP开发中遇到的小问题集锦(持续更新...)
- VS2013编写MFC程序问题集锦[持续更新]
- java2word 使用中问题集锦(持续更新中。。。)
- W5500问题集锦(持续更新中)
- linux编译问题集锦(持续更新中)
- W5500问题集锦(持续更新中)
- android相关问题、网摘集锦(持续更新中...)
- W5500问题集锦(持续更新中)
- SOPC & Nios II EDS常见问题集锦(持续更新)
- UI控件问题和XCode编译警告和错误解决方法集锦 (持续更新ing)
- Linux内核“问题门”——学习问题、经验集锦(持续更新中……)
- 在组建多节点openstack时可能遇到的问题的解决方案(持续更新)
- Linux内核“问题门”——学习问题、经验集锦(持续更新中……)
- linux 学习当中问题集锦(持续更新,如有大神可帮忙解决其中的为解决问题)