问题标签 [openstack-cinder]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
1672 浏览

openstack - Instance OS cannot find attached volume

I have been trying to figure this out since 2 days without success. Let me know if you have faced similar issue and how to fix it. Or any pointers will be of help.

Here is what we do.

  1. Create virtual instance.
  2. Create blank volume.
  3. Create volume from snapshot.
  4. Attach blank volume to instance.
  5. Attach volume from snapshot to instance.
  6. Other IP address, security group stuff.

All these are done in separate threads but with dependencies added. Ex. 4 depends on 2 (4->2). 2->1. 5->3->1.

The problem is that sometimes:

  1. One of the devices don’t appear in the device list. Openstack shows both attached.
  2. Both device don’t appear in the device list. Openstack shows both attached.
  3. Both appear but, disks at specified devices get switched! Ex. We attached 1GB disk on /dev/vdb and 10GB disk on /dev/vdc. But when we do fdisk –l /dev/vdc we get 1G and /dev/vdb shows 10G.
  4. Works!!!

I have checked the code and all components are doing what they are supposed to do. That is leading me to suspect openstack itself! (I know… that’s kind of strange.)

I am using allinone with icehouse and RDO packstack setup.

[Update 1]

I am using JClouds APIs to attach the volumes. Also, I am specifying the device names (/dev/xvdb, /dev/xvdc). Yet, I am checking for device names in the response after the call and using them instead.

[Update 2] I created a sample program to isolate the issue. This sample program does the following:

Basically the main thread creates the instance and launches two threads. One thread creates blank volume (10GB) and attaches it. While the other creates a volume from snapshot (1GB) and attaches it. The main thread then creates IP and attaches it and waits for the two threads to complete.

The observation is rather strange. Every single time, the attach volume response says the blank volume got attached to /dev/vdc, and the volume from snapshot attached to /dev/vdb.

But when I checked on the instance

returns 10GB and

returns 1GB

What could I be missing?? Any pointers/suggestions would be helpful.

0 投票
2 回答
3888 浏览

openstack - cinder 没有创建体积

我正在探索 devstack,但遇到了一个奇怪的错误。到目前为止,我只有 2 个实例(有卷)。目前两者的大小均为 5GB。当我尝试使用卷创建更多实例时,我得到“错误”。我检查了卷数的限制,它是 10,到目前为止只有 2 卷。

我尝试了 devstack UI 和命令行,但都失败了。

以下是失败的命令行:

我忘记在初始设置中添加 cinder 的日志。但是,我已经打开了详细信息,并在 /etc/cinder/cinder.conf 中进行了调试

我能否在确定无法创建更多卷的原因以及如何获取 cinder 日志方面获得帮助?

我从 cinder-scheduler 收到以下错误

我更仔细地观察了这一点。lvm-driver 卷限制为 10GB。当我这样做时: sudo vgdisplay 我看到了这个限制。我猜这是在我运行 stack.sh 时一开始就配置的。我的问题是如何增加这个尺寸?

0 投票
1 回答
3662 浏览

python - 使用 python-novaclient 从 openstach 中的卷创建一个实例

我正在尝试使用 python-novaclient 从 openstack 中的可启动卷创建一个实例。

我正在采取的步骤如下:

Step1:创建一个带有100GB Image“Centos”的卷。Step2:使用我在 step1 中创建的卷创建一个实例。

但是,我一定是做错了什么或遗漏了一些无法完成任务的信息。

这是我在 python shell 中的命令。

我试图找到任何文档,以便我可以自己解决这个问题,但是,我无法做到。

如果有人以前尝试过,我将不胜感激。

谢谢,穆尔塔萨

0 投票
1 回答
1293 浏览

openstack - 重新启动时从 ISO 启动再次从 Icehouse 中的 ISO 安装它

以下是我遵循的步骤。

启动 VM 后,如果我们触摸一个文件并重新启动,则更改不存在。那些都丢了。

0 投票
1 回答
210 浏览

openstack - OpenStack“网络/存储”节点的价值/好处是什么?

OpenStack 有 3 种类型的核心节点:

  • 计算(新星)
  • 存储(煤渣)
  • 网络(中子)

但对我来说,所有 Compute/Nova 实例都是虚拟机。带有文件系统的虚拟机。需要联网并最终从某处实际数据中心中的物理交换机接收网络连接的虚拟机。

因此,乍一看,似乎没有必要拥有提供文件系统存储和网络连接的“存储”和“网络”节点。不是所有节点都是 Compute/Nova 节点吗?

  • 为什么文件系统空间需要 Cinder/Storage 节点?每个 Nova 节点都有自己的文件系统,是吗?
  • 为什么我需要 Neutron/Network 节点来进行网络连接?我的 Nova 节点不会从我们数据中心的物理交换机接收网络连接吗?

显然我在这里错过了一个主要的难题,所以我问:我错过了什么?

0 投票
1 回答
259 浏览

virtual-machine - OpenStack中组件之间的交互

我对 OpenStack 组件和角色非常陌生,而且我无法理解每个组件是如何工作的以及它们何时运行;假设我的 openStack 存储中有某个图像并且客户端使用它并完成一些操作(如保存文件);执行此操作的组件之间的交互如何?(我想知道从创建卷到保存更改的工作方式和哪些组件;非常感谢。

0 投票
2 回答
236 浏览

openstack - Openstack 中 Cinder 和 Swift 的目标

我是 Openstack 的新手,我非常了解存储部分,因为我必须将 Ceph 集成为 Cinder 和 Swift 的后端以用于教育目的(我们必须修改粉碎算法以强调可靠性,而另一种算法则强调性能)。我已经阅读了所有的教程,教程展示了什么是对象存储以及什么是块存储。我了解块存储(Cinder)是卷的存储,并且卷在启动时附加到虚拟机;而且我知道对象存储(swift)存储用于启动虚拟机的图像的图像(如cow2)。但是,我需要块存储和对象存储吗?卷中包含的文件存储在 Cinder 或 Swift 中?我不太了解文件和其他东西的存储位置。

0 投票
0 回答
612 浏览

openstack - Devstack 安装在 python update.py /opt/stack//cinder 失败

我是openstack的新手。在虚拟机 uisng ubuntu 上安装 devstack 时,出现以下错误。谁能帮我解决这个问题。错误提示如下。

  • cd /opt/stack/requirements
  • python update.py /opt/stack/cinder

回溯(最近一次通话最后):

文件“update.py”,第 505 行,在 main()

文件“update.py”,第 488 行,在 main

_do_main 中的文件“update.py”,第 500 行

_process_project 中的文件“update.py”,第 371 行

_copy_requires non_std_reqs 中的文件“update.py”,第 284 行)

_sync_requirements_file 中的文件“update.py”,第 255 行

例外:存在非标准要求。+ exit_trap + 本地 r=1 ++ 工作 -p + 工作= + [[ -n '' ]]

  • kill_spinner

  • '[''!' -z''']'

  • [[ 1 -ne 0 ]]
  • echo '退出时出错'

退出时出错 + [[ -z /opt/stack/logs ]] + /home/faraz/devstack/tools/worlddump.py -d /opt/stack/logs World dumping... 见 /opt/stack/logs/ worlddump-2015-06-21-174507.txt 了解详情 + 出口 1

0 投票
0 回答
2204 浏览

ubuntu - Devstack:提交表单时出错。请再试一次。(启动实例时)

当我尝试从 Horizo​​n 仪表板在我的 devstack (kilo) 上启动一个实例时,我收到一条消息“提交表单时出错。请重试。”

仅当我尝试从管理员用户启动实例(从演示用户运行良好)时才存在该问题。我也可以毫无错误地制作音量。我在 ubuntu 14.04 工作。
我认为问题出在煤渣中,因为日志中有这个错误:

煤渣

ERROR cinder.api.middleware.fault [req-6eb7575e-aaf5-4884-ac3d-bfefb31f833d 28ad1bada6134e23b2b7ade80c745771 54b3a044c5824f269938c8d3c3d5e6b0] Caught error: Entity '(<)class 'cinder.db.sqlalchemy.models.Snapshot'> has no property 'tenant_id'

地平线

2015-06-29 08:14:12.535521 文件“/usr/local/lib/python2.7/dist-packages/cinderclient/client.py”,第 272 行,在请求 2015-06-29 08:14:12.535525 中提出exceptions.from_response(resp, body) 2015-06-29 08:14:12.535530 ClientException:服务器出错或无法执行请求的操作。(HTTP 500)(请求 ID:req-f98235a2-f894-4a07-9aa2-ef3c5aa7e9ef)

上周一切都很顺利。我尝试重新安装 devstac,重新安装 ubuntu ......所以也许有人知道问题出在哪里???:-/

0 投票
1 回答
323 浏览

openstack - 无法创建快照,如何从 Swift 回退到 Cinder

我正在管理使用两个节点、一个控制器和一个计算的 OpenStack Juno 安装(使用 Mirantis 6.0 部署)。我们正在进行一些测试,但由于某种原因(我们的 IT 团队认为与 HAproxy 相关),Swift 停止了工作。

目前,几乎一切正常,但无法从实例创建图像或快照。我可以从卷创建快照,反之亦然。我认为不同之处在于图像的上传,Glance 无法使用 Cinder 上传新创建的图像。

我一直在修复 Swift,或者回退到使用 Cinder 作为存储系统。第一个将是最好的解决方案,但我不知道如何开始。

我对这一切都很陌生,很抱歉我不能提供更多细节,我几周前就开始使用 OpenStack,但仍然没有足够的经验来自己解决这个问题。

我在日志上能找到的只是对“上传失败...”的引用,就像 /var/log/glance/api.log 中的这个

谢谢!