发起问题

CanVietANh 的档案 - activity

2020-06-23 20:45:42 -0500 获得奖牌  受欢迎的问题 (source)
2020-06-23 20:45:42 -0500 获得奖牌  热门的问题 (source)
2017-01-03 01:40:42 -0500 获得奖牌  受欢迎的问题 (source)
2016-05-05 09:06:47 -0500 问了问题 can't get information abount vm on compute node

In Nova Openstack Service, I can use command nova hypervisor-servers and nova-manage vm list to know which vm is on which node compute. However, when using novaclient for Python, I have not found a similar function. Could you please help me learn if there is such a function, or there is another way to get such information in Python?

2015-12-03 18:41:56 -0500 问了问题 Error: launch VM with 2 regions and 1 Keystone

Hello, i have a question I created an openstack system with 2 regions (3 nodes each). 2 regions use the same keystone on region1. region1 worked just fine. but i couldnt launch an VM on region2 controller. here is an output i get when i tried to launch an VM:

DEBUG (session:195) REQ: curl -g -i -X POST http://10.145.40.160:8774/v2/11af54a847164d75b8b6ddad0e82c079/servers (http://10.145.40.160:8774/v2/11af54a8...) -H "User-Agent: python-novac lient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}84ca27fefa055905c5a6fab0f42a01cf23d54fcc" -d '{"server": {"name": "abc", "imageRef": "575f2212-7a9d-4f0a-afaf-f80f4cc9bb80", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "25ee226a-a7f5-4709-9303-722c3734c8da"}]}}' DEBUG (connectionpool:362) "POST /v2/11af54a847164d75b8b6ddad0e82c079/servers HTTP/1.1" 500 128 DEBUG (session:223) RESP: DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-5ef5ae28-e9e0 -4fbd-aefc-fee482a331b0) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 911, in main OpenStackComputeShell().main(argv) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 838, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v2/shell.py", line 500, in do_boot server = cs.servers.create(boot_args, *boot_kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 929, in create *boot_kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/v2/servers.py", line 557, in _boot return_raw=return_raw, *kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 152, in _create _resp, body = self.api.client.post(url, body=body) File "/usr/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 170, in post return self.request(url, 'POST', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 96, in request raise exceptions.from_response(resp, body, url, method) ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-5ef5ae28-e9e0-4fbd-aefc-fee482a331b0)

the output of nova service-list and neutron agent-list returned all up. i can created networks and routers properly with no error returned.