Questions tagged [python-novaclient]
4 questions
1
vote
1 answer
How to add a security group to a VM via the nova-client
I'm trying to use the OpenStack Nova client and create a script in order to launch an instance. I was able to create a VM with a specific key but the problem is that i can't add an existing security group to that instance.
I know how to create a…

kikas
- 127
- 1
- 3
- 9
0
votes
2 answers
openstack python api script getting SSL error
I have build new openstack based on Queens release and now trying to learn python SDK api script and stuck here not sure what is wrong.
my script
from keystoneclient.auth.identity import v3
from keystoneclient import session
from keystoneclient.v3…

Satish
- 16,544
- 29
- 93
- 149
0
votes
1 answer
How to update metadata flavor openstack using python novaclient?
I can list and create flavor using this code:
flavors_list = nova_client.flavors.list()
print_flavors(flavors_list)
print(nova_client.servers.list())
nova_client.flavors.create(name = 'test2', ram = 512, vcpus = 1,
disk =…

xuananh
- 3
- 2
0
votes
1 answer
How can I authenticate a Nova session with python-novaclient?
I'm trying to set up a nova client and ensure that there are no authentication errors on client creation. My attempt is below:
from novaclient import client
from keystoneauth1 import session
from keystoneauth1.identity import v3
def…

erip
- 16,374
- 11
- 66
- 121