Questions tagged [openstack-shade]

shade is a simple client library for interacting with OpenStack clouds. It has a restricted set of features on purpose. It is not a full replacement to the openstack sdk; but it allows to perform common operation in simple, straight forward way. WARNING: shade has been superceded by openstacksdk and no longer takes new features.

shade is a pure Python module for interacting with clouds built on OpenStack infrastructure.

Some of its features are:

  • A rich (but normalized) data model allowing to make use of OpenStack object properties
  • The focus on never "breaking backwards compatibility"

Further reading:

  • Tutorial: How to launch and delete OpenStack instances using Python and Shade

    Warning

Note:

shade has been superceded by openstacksdk and no longer takes new features. The existing code will continue to be maintained indefinitely for bugfixes as necessary, but improvements will be deferred to openstacksdk. Please update your applications to use openstacksdk directly.

6 questions
11
votes
2 answers

Authentication only via config file?

I am looking into the python shade module in order to automate some tasks using our OpenStack installation. This page instructs: Create a configuration file to store your user name, password, project_name in ~/.config/openstack/clouds.yml. I had…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
2
votes
1 answer

How do I move from openstack shade to openstacksdk?

I have written a set of automation tools that interact with an openstack based service. The tools are relying on the openstack shade library. That client library says shade has been superceded by openstacksdk and no longer takes new…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
2
votes
1 answer

Connect to openstack is failing

I have written a bit of python code to interact with an Openstack instance; using the shade library. The call myinstance = shade.openstack_cloud(cloud='mycloud', **auth_data) works fine on my local Ubuntu installation; but fails on our "backend"…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
1
vote
1 answer

Idiomatic way to to match against list of munch.munch objects?

I am using the openstack shade library to manage our openstack stacks. One task is to list all stacks owned by a user (for example to then allow for deletion of them). The shade library call list_stacks() returns a list of munch.Munch objects, and…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
1
vote
1 answer

Disconnect from Openstack?

I am writing python code on top of the openstack shade library. Connecting to a stack is pretty straight forward: return shade.openstack_cloud(cloud='mycloud', **auth_data) Now I am simply wondering: is there a canonical way to disconnect when I am…
GhostCat
  • 137,827
  • 25
  • 176
  • 248
0
votes
1 answer

Why/how can certification fail on AUTH_URL/auth/tokens "No such file" error?

I am following these instructions; but when I run the given sample from shade import * simple_logging(debug=True) conn = openstack_cloud(cloud='myopenstack') images = conn.list_images() for image in images: print(image) I get:…
GhostCat
  • 137,827
  • 25
  • 176
  • 248