我正试图在我们的一个开发服务器中获得一个工作的openstack自由,这个服务器具有最小的配置并且具有ubuntu 14:04。
所有组件看起来都很好,我也能够创建实例并查看仪表板。
现在,我正在尝试创建一个卷,这是我遇到问题的地方。
我们的节点有一个磁盘' sda' 8GB,我们按照此处列出的步骤准备磁盘。 https://eatpeppershothot.blogspot.sg/2016/04/use-real-block-storage-backend-for.html
输出lsblk
名称FSTYPE LABEL MOUNTPOINT
sda xfs
└─sda1LVM2_member
然后我们遵循标准文档 http://docs.openstack.org/liberty/install-guide-ubuntu/cinder-storage-install.html
在Controller节点上
**root@dev-controller:~/scripts# cinder service-list**
+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
| Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
| cinder-scheduler | dev-controller | nova | enabled | up | 2016-08-04T12:03:55.000000 | - |
| cinder-volume | dev-osd1@lvm | osd1 | enabled | up | 2016-08-04T12:03:51.000000 | - |
| cinder-volume | dev-osd2@lvm | dev-osd2 | enabled | up | 2016-08-04T12:03:54.000000 | - |
| cinder-volume | dev-osd3@lvm | nova | enabled | up | 2016-08-04T12:03:55.000000 | - |
+------------------+----------------+----------+---------+-------+----------------------------+-----------------+
默认情况下,所有卷都列在" nova"区域,但我们在尝试时将其更改为不同的节点。
创建卷的命令 cinder create --volume_type lvm --display_name testvol 1 --availability-zone dev-osd2 cinder create --volume_type lvm --display_name testb 1
' cinder create'命令有效,但是“cinder list'命令显示卷处于错误状态。 这两个命令都以错误状态结束。
煤渣scheduler.log
2016-08-04 20:11:46.466 3461 INFO cinder.openstack.common.scheduler.base_filter [req-d1e3c63e-0d15-42cc-af3f-7867689cf4fe db30662c15f44a5e9b4cdd3fb5125762 0d1a9f632e4c4dd3a090c7c377fbcc77 - - -] Filter AvailabilityZoneFilter returned 0 host(s)
2016-08-04 20:11:46.469 3461 ERROR cinder.scheduler.flows.create_volume [req-d1e3c63e-0d15-42cc-af3f-7867689cf4fe db30662c15f44a5e9b4cdd3fb5125762 0d1a9f632e4c4dd3a090c7c377fbcc77 - - -] Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid host was found. No weighed hosts available
2016-08-04 20:11:46.471 3461 DEBUG cinder.volume.flows.common [req-d1e3c63e-0d15-42cc-af3f-7867689cf4fe db30662c15f44a5e9b4cdd3fb5125762 0d1a9f632e4c4dd3a090c7c377fbcc77 - - -] Updating volume: 89a42d39-f7a9-41ce-84b7-76160d444597 with {'status': 'error'} due to: No valid host was found. No weighed hosts available _update_object /usr/lib/python2.7/dist-packages/cinder/volume/flows/common.py:87
我已检查并确保所有数据库连接字符串都正确,并且主机能够连接到控制器。 RabbitMQ也很好。
来自pvdisplay的输出
root@dev-osd2:~# pvdisplay
--- Physical volume ---
PV Name /dev/vda5
VG Name dev-mon01-vg
PV Size 15.57 GiB / not usable 2.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 3986
Free PE 6
Allocated PE 3980
PV UUID gux2KI-5hbS-VSOf-RLaQ-dCk8-ZXCX-oBOocf
--- Physical volume ---
PV Name /dev/sda1
VG Name cinder-volumes
PV Size 8.00 GiB / not usable 2.98 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2047
Free PE 2047
Allocated PE 0
PV UUID AfjDlL-vSjm-stE4-4jPJ-ze7G-dH1f-GmWLSv
从vgdisplay输出
--- Volume group ---
VG Name cinder-volumes
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 8.00 GiB
PE Size 4.00 MiB
Total PE 2047
Alloc PE / Size 0 / 0
Free PE / Size 2047 / 8.00 GiB
VG UUID P6t7E7-TQqq-zhEW-HAX8-CFl6-kkH3-q3Aova
请帮我解决这个问题:)
此致
答案 0 :(得分:0)
我们已经将cinder与ceph集成在一起,我们必须将ceph密钥添加到我们以前没有做过的所有计算节点。一旦我们这样做了,它运作良好