Questions tagged [novaclient]

26 questions
5
votes
4 answers

Set SSH Host IP Address on Rackspace for Ansible

The Question When using the rax module to spin up servers and get inventory, how do I tell Ansible to connect to the IP address on an isolated network rather than the server's public IP? Note: Ansible is being run from a server on the same isolated…
jchamberlain
  • 1,038
  • 8
  • 26
3
votes
1 answer

How to get fixed IP address of openstack instance using novaclient

I spin-up openstack instances using noveclient python api server = nova.servers.create(name ="xxx",password="xxx",image="xxx",flavor= flavor.id ,key_name = "adikarikey",nics = [{'net-id': 'xxx','v4-fixed-ip': ''}]) I want to get the IP address of…
Malintha
  • 4,512
  • 9
  • 48
  • 82
2
votes
0 answers

keystoneauth1.exceptions.http.NotFound: The resource could not be found. (HTTP 404)

I am trying to list nova flavors list. from keystoneclient.auth.identity import v3 from keystoneclient import session from keystoneclient.v3 import client from novaclient import client auth = v3.Password(auth_url="https://api-soltes2:5000/v3.0", …
Vikram Ranabhatt
  • 7,268
  • 15
  • 70
  • 133
2
votes
3 answers

openstack: novaclient Python API not working

Trying to follow a simple tutorial for the openstack python API I found at http://docs.openstack.org/developer/python-novaclient/api.html but doesn't seem to be working. When I try to run nova.servers.list() or nova.flavors.list() from the…
Vini.g.fer
  • 11,639
  • 16
  • 61
  • 90
2
votes
1 answer

Create an instance from volume in openstach with python-novaclient

I am trying to create an instance from a bootable volume in openstack using python-novaclient. The steps I am taking are following: Step1: create a volume with an Image "Centos" with 100GB. Step2: create an instance with the volume that I created in…
Murtaza Pitalwala
  • 839
  • 1
  • 8
  • 14
2
votes
1 answer

NovaClient - create cloud server using "boot" - ERROR (BadRequest): Multiple possible networks found

I'm a fresher to OpenStack and NovaClient API. NovaClient version: 2.20.0 I have successfully logged in to my OpenStack account and have NovaClient API privileges. I was trying to create a cloud server on OpenStack using nova client with "boot"…
2
votes
1 answer

How do I set tags using rackspace-novaclient?

How do you set tags for Rackspace servers using novaclient? I see how to add it in the GUI: However, I don't see a way when launched with nova. How do I set tags? If not via nova, is there API access to the tags?
Kyle Kelley
  • 13,804
  • 8
  • 49
  • 78
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
1
vote
0 answers

vmware integrated openstack giving instance resize issue

we have deployed vmware integrated openstack in our environment. Now we face some issue in resizing instance from console as well as CLI. when we try to resize the instance its showing the task is succesfully completed, but its not reflecting on the…
1
vote
1 answer

Openstack NovaClient : Error while launching an instance using servers.create()

I tried to spawn a cirros instance using nova python client with below api call, server = nova.servers.create(name = "cirros_vm", image = image.id, flavor = flavor.id ) I am getting the…
anoop.babu
  • 405
  • 2
  • 6
  • 13
1
vote
2 answers

Specify post-installation script when creating an instance in OpenStack [python-novaclient]

I have a working python program which is able to create instances on OpenStack thanks to the python-novaclient library. Now I'd like to give a post-installation script at the creation time. I looked at the documentation of the Servers.create()…
David Guyon
  • 2,759
  • 1
  • 28
  • 40
1
vote
2 answers

Getting a list of block storage volumes at Rackspace using novaclient Python API

I'm trying to get a list of the block storage volumes that I have on my Rackspace account using the novaclient Python API. Here's the code that I'm using: from rackspace_auth_openstack.plugin import RackspaceAuthPlugin from…
jcollie
  • 648
  • 1
  • 5
  • 15
0
votes
1 answer

Get all the action log of an instance and the flavor attached to it

I was wondering if anyone can tell me how to get the action log of the instance using openstacksdk, novaclient. And while getting the action log, I also want to get the flavor attached to it. See the attached picture please. I actually got the…
blizzy
  • 55
  • 6
0
votes
1 answer

Openstack Python API novaclient - SecurityGroup Rule list with description

i have been familiar with the python API for a while and there is an annoying thing i can't solve. in short, I want to get all the security rules in my environment. it works, which bothers me that I can't get the "description" associated with them…
0
votes
1 answer

SQL Select Query with Join: How to Count a Certain Number of Occurences on non-primary Attribute without a Foreign Key

Using the following Tables: CREATE TABLE CUSTOMERS (customerID INT PRIMARY KEY, customerFullName VARCHAR(20) NOT NULL, customerStreet VARCHAR(40) NOT NULL, customerState VARCHAR(15) NOT NULL, customerCity VARCHAR(20)…
StevenC
  • 109
  • 1
  • 20
1
2