18 questions
0
votes
0
answers
29
views
openstack sdk unable to get the running vms on specific compute
I'm trying to get list of vms that are running on some specific hypervisor from openstack api, so here python request.
import openstack
openstack.enable_logging(debug=True)
conn = openstack.connect(...
0
votes
1
answer
316
views
API call to IBM MaaS360 in python not working
I'm building a React app that uses a Python backend to handle the API calls. I just keep getting errors when I try to access the API data. The credentials (hardcoded but removed) are double-checked ...
2
votes
1
answer
220
views
Python-openstackclient: Available_floating_ip no longer works; what replacement?
In the past I used available_floating_ip to create a new floating ip and attach it to an instance or use an existing non-attached floating ip and attach it to an instance.
For some reason the latter ...
0
votes
1
answer
1k
views
Openstack python api: How create a connection using Application Credentials?
Currently I am using (of course with more elaborate variables):
conn = openstack.connect(
load_yaml_config=False,
load_envvars=False,
auth_url=AL,
...
0
votes
1
answer
257
views
whenever i try to import models.py in my main.py file it shows me sqlalchemy.exc.ArgumentError
from xmlrpc.client import Boolean
from sqlalchemy import TIMESTAMP, Column, Integer, String
from sqlalchemy.sql.expression import text
from .database import Base
class Post(Base):
__tablename__ = ...
0
votes
1
answer
662
views
OpenStack, How to create nova filter scheduler?
I am new to OpenStack.
I have gone through the document as https://docs.openstack.org/nova/wallaby/user/filter-scheduler.html suggests.
But I am not getting how and where to put the code.
Do I need to ...
1
vote
0
answers
42
views
Is it possible to style my style my non-gui python code and give it a good look?
So I've this python program, non-GUI, just runs in the terminal, and I was wondering if I could style it, say with html and/or css, to make it look like a gui, well, just to add graphics and stuff ...
0
votes
1
answer
1k
views
Showing Volume Details using python openstacksdk, python novaclient, python cinderclient
Hello guys and I hope you're having a great day. I have a question about using Openstack API in Python.
I'm using python-novaclient for getting server details and flavor details. And I want to get the ...
0
votes
1
answer
148
views
Failure to add params to endpoint
Hello guys while trying to make a simple script i have encountered an error and i've scratched google's head and mine but didn't find a solution . So the problem is anytime i run this code i get a
...
0
votes
0
answers
139
views
Django Rest Api Annotate group by Filter showing Error?
This error I am getting while entering http://127.0.0.1:8000/api/student/ this URL
My Database :
posts/models.py
from django.db import models
class Student(models.Model):
lname = models.CharField(...
-3
votes
1
answer
476
views
Accessing data from API Using Python ( Doubts ) [duplicate]
I'm a newbie in using API. I just want to get the data from API and store it in a database. I know there are many libraries/packages in python to extract the data from specific API (for example Google ...
0
votes
1
answer
323
views
How to automate the tenant creation in openstack using python
I want to first source the admin rc file and then need to automate the tenant create using python(openstack) amd new to this..please help me out
0
votes
1
answer
2k
views
How to send the output of Curl directly to a postgres databse
I want to send the output to a postgres database directly! is that possible of i have to convert it first to another format! any idea!!
curl -sG https://peeringdb.com/api/netixlan --data-urlencode ...
0
votes
1
answer
430
views
Updating data in postgres using python API
I have a python API that hits a URL and receives a JSON. There is a table that contains order data
Order_id ZipCode delivery_date total
The json returned by the API contains the city and state ...
0
votes
1
answer
714
views
OpenStack SDK - How to create image with Kernel id and Ramdisk parameters?
I've been trying to create an OpenStack image informing the Kernel Id and Ramdisk Id, using the OpenStack Unified SDK (https://github.com/openstack/python-openstacksdk), but without success. I know ...
0
votes
1
answer
135
views
I want to know how we can control the simulated temperature sensor in ibm bluemix using python
I want to know how I can get logs from simulated temperature and humidity sensor in ibmbluemix quickstart device. I can only see that it is done using java script. I couldnt find a place to write my ...
1
vote
1
answer
10k
views
extracting tweet from Twitter API using Python
I want to get every tweet of the HousingWire on Twitter (https://twitter.com/HousingWire). I understood how to authenticate into the twitter account but how I can get the tweet of HousingWire?
I ...
0
votes
1
answer
323
views
How to sync / update local (volume) data with OpenStack server?
I want to create a server within OpenStack nova.
The first step is to create a volume from an image:
volume = cinder.volumes.create(5, name="test", imageRef=some_id, ...)
The volume will then for ...