简体   繁体   English

openstack cinder:volume:create:找不到有效的主机。 没有可用的主机

[英]openstack cinder : volume:create: No valid host was found. No weighed hosts available

I am trying to get a working openstack liberty in one of our dev servers that has minimal configuration and has ubuntu 14:04. 我正在尝试在我们的其中一台开发服务器中工作openstack自由,该开发服务器配置最少且具有Ubuntu 14:04。

All the components looks good and I was able to create instance and view the dashboard too. 所有组件看起来都不错,我也能够创建实例并查看仪表板。

Now, I am trying to create a volume and this is where I am facing an issue. 现在,我正在尝试创建一个卷,而这正是我面临的一个问题。

We have a node that has a disk 'sda' with 8GB and we followed the steps listed here to prepare the disk. 我们有一个节点,该节点的磁盘“ sda”为8GB,并按照此处列出的步骤准备磁盘。 https://eatpeppershothot.blogspot.sg/2016/04/use-real-block-storage-backend-for.html https://eatpeppershothot.blogspot.sg/2016/04/use-real-block-storage-backend-for.html

​output of lsblk​ lsblk的输出

NAME FSTYPE LABEL MOUNTPOINT 名称FSTYPE标签MOUNTPOINT

sda xfs sda xfs

└─sda1 LVM2_member └─sda1LVM2_member

Then we followed the standard documentation http://docs.openstack.org/liberty/install-guide-ubuntu/cinder-storage-install.html 然后,我们遵循标准文档http://docs.openstack.org/liberty/install-guide-ubuntu/cinder-storage-install.html

On Controller node 在控制器节点上

**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 |        -        |
+------------------+----------------+----------+---------+-------+----------------------------+-----------------+

​By default all the volumes were listed under "nova" zone but we changed it to different node while trying things out. 默认情况下,所有卷都列在``nova''区域下,但是在尝试时我们将其更改为其他节点。

Command to create volume cinder create --volume_type lvm --display_name testvol 1 --availability-zone dev-osd2 cinder create --volume_type lvm --display_name testb 1 创建卷cinder的命令create --volume_type lvm --display_name testvol 1-可用区dev-osd2 cinder create --volume_type lvm --display_name testb 1

The 'cinder create' command works but 'cinder list' command shows that the volume is in error state. “ cinder create”命令有效,但“ cinder list”命令显示该卷处于错误状态。 Both of these commands end up in error state. 这两个命令最终都处于错误状态。

cinder-scheduler.log cinder-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

I have checked and made sure that all the database connect string are correct and that the host are able to connect to the controller. 我已经检查并确保所有数据库连接字符串正确,并且主机能够连接到控制器。 RabbitMQ is fine too. RabbitMQ也很好。

OUTPUT from pvdisplay 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

OUTPUT from vgdisplay 从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

Please help me figure this out :) 请帮我解决这个问题:)

Regards 问候

We had integrated cinder with ceph , we had to add the ceph secret key to all our compute nodes which we did not do before. 我们已经将cinder与ceph集成在一起,我们必须将ceph密钥添加到我们之前没有做过的所有计算节点中。 Once we did that, it worked fine 一旦做到这一点,它就可以正常工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Openstack Glance 图像创建“找不到资源。(HTTP 404)” - Openstack Glance image create "The resource could not be found. (HTTP 404)" gpg: 没有找到有效的 OpenPGP 数据。 在 Ubuntu 18.04 中安装 SQL 服务器时 - gpg: no valid OpenPGP data found. while installing SQL Server in Ubuntu 18.04 为 spring 引导应用程序创建具有命名/主机卷的 docker 映像 - Create docker image with named/host volume for spring boot application 在 Linux 中将主机名添加到 /etc/hosts - Adding host name to /etc/hosts in Linux Openstack创建Ubuntu的新实例 - Openstack create new instance of Ubuntu 找不到pdflatex。 pdflatex需要pdf输出 - pdflatex not found. pdflatex is needed for pdf output Openstack(devstack)Heat模板可在其上创建VM和应用程序 - Openstack (devstack) Heat template to create vm and app on it 未找到 JDK。 请验证 STUDIO_JDK、JDK_HOME 或 JAVA_HOME 环境变量是否指向有效的 JDK 安装 - No JDK found. Please validate either STUDIO_JDK, JDK_HOME or JAVA_HOME environment variable points to valid JDK installation 挂载后Docker主机卷为空 - Docker host volume is empty after mounted Docker容器在主机上看不到大量文件 - Docker container not seeing files in volume on the host
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM