openstack-nova

Error: No sql_connection parameter is established when creating instances on openstack pike devstack

让人想犯罪 __ 提交于 2021-02-10 06:23:43
问题 I've successfully installed Openstack Devstack pike on my Ubuntu 16.04 by following this link: https://www.mirantis.com/blog/how-to-install-openstack-on-your-local-machine-using-devstack/. when i tried to create an instance i got No sql_connection parameter is established as an error. I've checked /etc/nova/nova.conf and database configuration was as following: [database] connection = mysql+pymysql://root:mypassword@127.0.0.1/nova_cell0?charset=utf8 [api_database] connection = mysql+pymysql:/

Notifications to external systems from openstack

对着背影说爱祢 提交于 2021-01-28 19:19:30
问题 We want to develop an application which will monitor the host(s) and VM(s), managed via openstack. We use the openstack REST APIs to get the inventory of hosts and servers. Next step is to listen for any notifications/events from openstack environment such as Vm down, VM suspended,etc. We don't want to rely on the ceilometer, since this may not be a mandatory component in our deployments. One way is latching into rabbitmq messaging from nova. If this is the ideal way, is there any Java client

AttributeError: 'str' object has no attribute 'isoformat' [closed]

点点圈 提交于 2020-12-05 07:23:12
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . Improve this question I have code, and I don't know how to solve problem. Code: import dateutil.parser import datetime from novaclient.v2 import client as nova_client from keystoneclient.auth.identity import v2 from keystoneclient import session auth=v2.Password(auth_url="http:/

NoValidHost: No valid host was found. There are not enough hosts available

谁说我不能喝 提交于 2020-01-13 19:27:31
问题 When I create the instance in the dashboard, I get error: No valid host was found. There are not enough hosts available. In the /var/log/nova/nova-conductor.log file, there is the log: 2017-08-05 00:22:29.046 3834 WARNING nova.scheduler.utils [req-89c159c7-b40a-43eb-8f0d-9306eb73e83a 2a5fa182fb1b459980db09cd1572850e 0d5998f2f7ec4c4892a32e06bafb19df - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last):

NoValidHost: No valid host was found. There are not enough hosts available

淺唱寂寞╮ 提交于 2020-01-13 19:27:07
问题 When I create the instance in the dashboard, I get error: No valid host was found. There are not enough hosts available. In the /var/log/nova/nova-conductor.log file, there is the log: 2017-08-05 00:22:29.046 3834 WARNING nova.scheduler.utils [req-89c159c7-b40a-43eb-8f0d-9306eb73e83a 2a5fa182fb1b459980db09cd1572850e 0d5998f2f7ec4c4892a32e06bafb19df - - -] Failed to compute_task_build_instances: No valid host was found. There are not enough hosts available. Traceback (most recent call last):

how to extract values from <bound method Server.diagnostics of <Server: ubuntu12_6>>?

泄露秘密 提交于 2020-01-03 05:41:27
问题 I'm using novaclient.v1_1 to get list of instances and trying to extract diagnostics of each server instance. code i've written instances = nova.servers.list() for i in instances: val_list = i.diagnostics print val_list so here i got output like this <bound method Server.diagnostics of <Server: ubuntu12_6>> <bound method Server.diagnostics of <Server: ubuntu12_4>> <bound method Server.diagnostics of <Server: ubuntu12_3>> <bound method Server.diagnostics of <Server: ubuntu12_1>> so how can i

Error in devstack script. nova-api did not start?

风流意气都作罢 提交于 2019-12-25 05:32:21
问题 I have installed openstack on Ubuntu 12.04 single node using devstack. Now, it was running smoothly till yesterday. When i ran ./stack.sh today, it showed an error ./stack.sh:672 nova-api did not start I have python-paste and python-pastedeploy installed. How to fix this error? 回答1: check out for errors in nova api screen run this command to open screens screen -x stack open n-api screen ususally ( Ctrl + A + 5 ). Check for errors and then restart Nova API with this command. cd /opt/stack

No rejoin-stack.sh script in my setup

寵の児 提交于 2019-12-17 19:29:19
问题 I've installed the "all-in-one" setup of DevStack. But when I rebooted my system nothings works, and I lose all my already-created instances, images, configs, ... I've found that I need to use the script rejoin-stack.sh but in my setup doesn't exists. Please, any suggestions could help me, I'm blocked by the same problem since 1 week ! 回答1: As mentioned elsewhere here, rejoin-stack.sh was recently removed. It was barely maintained and did not work for a lot of use cases, plus it encouraged an

How can I get VM instance running time in openstack via python API?

北战南征 提交于 2019-12-14 02:33:34
问题 I need a small billing report for the usage of the VMs inside openstack after it is stopped, so far I already find the way to get flavor information (vCPU, disk, memory) from instance name. And I want to know the VM's startup time to calculate now. Are there any good ways to fetch it from openstack python API ? It will be nice if you can paste the code as well. 回答1: (I got the answer from china-openstack community, and shared here) In the novaclient usage module, all the instance (active or

error (403): 403 Forbidden on using euca2ools against openstack

╄→гoц情女王★ 提交于 2019-12-13 21:15:49
问题 I want to use ecua2ools against openstack nova service and AWS EC2. I have managed to get it working for AWS. I am trying to do the same for openstack. I installed devstack from here. But, I couldn't see EC2 API on horizon. So, I installed back using this. Now, I could see the EC2 API option. I downloaded the EC2 credentials . Then, I created /etc/euca2ools/euca2ools.ini file and I had the following contents inside. [user mv2-dev] key-id = df20573bf4554a369f61641b21e6c659 secret-key =