本帖最后由 stolen 于 2017-6-24 18:20 编辑
[mw_shl_code=python,true]import keystoneclient.v2_0.client as ksclient
# Replace the method arguments with the ones from your local config
keystone = ksclient.Client(auth_url="http://192.168.27.100:35357/v2.0",
username="admin",
password="devstack",
tenant_name="demo")
glance_service = keystone.services.create(name="glance",
service_type="image",
description="OpenStack Image Service")[/mw_shl_code]
我想二次开发写一个一键部署工具 但是 对openstack和python不熟 我学PHP 和JAVA的 所以来请教下版主 |
|