Questions tagged [openstacksdk]

openstacksdk is a client library for for building applications to work with OpenStack clouds using Python. The project aims to provide a consistent and complete set of interactions with OpenStack's many services, along with complete documentation, examples, and tools.

openstacksdk is a client library for for building applications to work with OpenStack clouds using Python.

openstacksdk started its life as three different libraries: shade, os-client-config and python-openstacksdk.

It also contains a simple interface layer. Clouds can do many things, but there are probably only about 10 of them that most people care about with any regularity.

If you want to do complicated things, the per-service oriented portions of the SDK are for you. However, if what you want is to be able to write an application that talks to clouds no matter what crazy choices the deployer has made in an attempt to be more hipster than their self-entitled narcissist peers, then the openstack.cloud layer is for you.

Links

Issue Tracker
Code Review
Documentation
PyPI
Mailing list

30 questions
2
votes
1 answer

How To Fetch Projec quotas using OpenstackSDK?

I am looking for a small code to fetch all my projects quotas limits. From openstacksdk dev repository i can see there is connection called compute.v2.limits, but using that i m getting blank output like below. import openstack import…
2
votes
2 answers

openstacksdk is not found in ansible 2.9

My environment: python --version Python 3.5.2 pip --version pip 19.3.1 from /home/chinmaya/.local/lib/python3.5/site-packages/pip (python 3.5) ansible --version ansible 2.9.2 config file = None configured module search path =…
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
1
vote
0 answers

Weird behavior of Openstack SDK for java: PATCH calls with incorrect headers

Environment Java 17 + Spring com.github.openstack4j.core openstack4j 3.10 Call String imageId =
1
vote
0 answers

Openstack database create instance BadRequestException

I used openstack sdk for create new database instance, but it raise error BadRequestException: BadRequestException: 400: Client Error for url: [URL]:8779/v1.0/ab77ed8ae3f744f4baf4fb7bc97848cc/instances, Resource None cannot be found. My…
ITN
  • 53
  • 5
1
vote
1 answer

Does OpenstackSDK have support for usage metrics?

So...I'm facing a problem which I need the available amount of resources (and how are they being used) in the DCs (focusing on each project/server/network consume) of my Openstack (Stein) through python code (cause the other functionalities are in…
Ailson Forte
  • 57
  • 11
1
vote
2 answers

OpenStackSDK create instance under specific project

I'm trying to create instances using openstacksdk python api everything is ok but even when i use: conn2 = conn.connect_as_project(proj.name) server = conn2.create_server(......) the server is being created under property of admin project, not the…
Aref Riant
  • 582
  • 3
  • 14
1
vote
1 answer

How can I get access to an objects attribute when it is part of a list of objects

I am using the python-keystoneclient module within a Django project basically to learn. The environment: python 3.6.3 django 1.10.8 python-keystoneclient 3.14.0 I have a query to the api that returns a list of objects projects =…
Lance Haig
  • 332
  • 4
  • 13
1
vote
1 answer

Use openstacksdk created user, can not login

My openstack version is ocata. In my computer I installed the openstacksdk (0.9.18), when I use it to create a openstack user like bellow: # create openstack user user_args = { "default_project_id":new_project.id, # the project is created…
aircraft
  • 25,146
  • 28
  • 91
  • 166
0
votes
1 answer

how to create instance with multiple Ephemeral Disks in Openstack client or openstacksdk

This website show nova tool could create instance with multiple ephemeral disks, but how could I achieve that through openstack command or openstacksdk? And I could find any clue through the openstack flavor create -h, it shows that only support one…
Victor Lee
  • 2,467
  • 3
  • 19
  • 37
0
votes
1 answer

how openstacksdk get_port just through ip_address

How to get the special port information which only dependent on the ip-address field by openstacksdk API, like the result as the openstack-client tool show: # openstack port list --fixed-ip…
Victor Lee
  • 2,467
  • 3
  • 19
  • 37
0
votes
2 answers

Trouble installing python openstacksdk on Windows machine

I am trying to install the python openstacksdk package via PyCharm (using pip in terminal), but I keep getting the following error message. I only posted a partial error message, I can add the whole message if needed. Any thoughts? I am using a…
zadroga
  • 3
  • 3
0
votes
1 answer

how openstacksdk change current user password

I found the CLI or API request methods and they work for me, like this: # source /etc/kolla/admin-openrc.sh # openstack user password set --password newpsw --original-password oripsw Or # source /etc/kolla/admin-openrc.sh # curl -v -s -X POST…
Victor Lee
  • 2,467
  • 3
  • 19
  • 37
0
votes
1 answer

python openstack SDK show file upload via progress bar

With the python openstack SDK, you can download an image, chunk by chunk, which allowed me to show a progress bar. You can't seem to do the same when uploading a file. What I want is to be able to show a progress bar of the file being uploaded (in…
Thermatix
  • 2,757
  • 21
  • 51
0
votes
1 answer

Create a flavour with openstack SDK

I have a heat template yaml file for creating a flavor named "flavor_one" on compute node placed at specific path /opt/config/template.yml How can I create a flavor with the template file with openstack SDK in python. I tried with the below. But…
1
2