- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用这个玩具代码来启动 python-novaclient 库
#!/usr/bin/python
from novaclient.client import Client
nova = Client(2, "####", "####", "####" , "####:8774/v2.0")
_test = nova.images.list()
print _test
但我总是收到此错误:
有谁知道这可能是什么类型的问题吗?
最佳答案
您正在使用 python-novaclient 作为库,但它从未被设计为以这种方式使用。不幸的是,人们将它用作库。
尝试一下官方的 Python OpenStack SDK。
pip install openstacksdk
列出图像的代码。
import sys
from openstack import connection
from openstack import profile
from openstack import utils
utils.enable_logging(True, stream=sys.stdout)
prof = profile.Profile()
prof.set_region(prof.ALL, "RegionOne")
conn = connection.Connection(
auth_url='https://my.identity.endpoint/v2.0/',
profile=prof,
username="my_username",
password="my_password")
for image in conn.compute.images():
print(image)
更多可能有用的信息:
关于python - Openstack python-novaclient,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33053927/
我正在尝试使用这个玩具代码来启动 python-novaclient 库 #!/usr/bin/python from novaclient.client import Client nova
我在 RHEL6 上使用来自 GridDynamics 的包的 OpenStack Diablo。 一切似乎都适用于 EC2 api,但是当使用 python-novaclient 时,系统只允许访问
我有一个正在运行的 python 程序,由于python-novaclient,它能够在 OpenStack 上创建实例。图书馆。 现在我想在创建时提供一个安装后脚本。我查看了Servers的文档.c
尝试遵循我在 http://docs.openstack.org/developer/python-novaclient/api.html 找到的 openstack python API 的简单教程
我正在尝试使用 python-novaclient 从 openstack 中的可引导卷创建一个实例。 我正在采取的步骤如下: 第 1 步:使用 100GB 的镜像“Centos”创建一个卷。第 2
我尝试使用 nova python 客户端通过以下 api 调用生成一个 cirros 实例, server = nova.servers.create(name = "cirros_vm",
我正在尝试使用 novaclient Python API 获取我的 Rackspace 帐户上的 block 存储卷列表。这是我正在使用的代码: from rackspace_auth_openst
我正在尝试使用 pip install python-novaclient 安装 OpenStack python novaclient此任务失败:netifaces.c:185:6 #error Y
我是一名优秀的程序员,十分优秀!