本帖最后由 luoyupeng 于 2016-6-4 14:44 编辑
[root@controller ~]# nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=02d38662-1ce8-41d0-a723-be8adb1adc33 --security-group default --key-name admin-key test
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:35357/v3 -H "Accept: application/json" -H "User-Agent: python-keystoneclient"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v3 HTTP/1.1" 200 250
DEBUG (session:224) RESP: [200] Content-Length: 250 Vary: X-Auth-Token Keep-Alive: timeout=5, max=100 Server: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 Connection: Keep-Alive Date: Sat, 04 Jun 2016 01:04:02 GMT Content-Type: application/json x-openstack-request-id: req-59e60f03-1a33-45e9-8637-a1698e5bf41b
RESP BODY: {"version": {"status": "stable", "updated": "2015-03-30T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.4", "links": [{"href": "http://controller:35357/v3/", "rel": "self"}]}}
DEBUG (base:171) Making authentication request to http://controller:35357/v3/auth/tokens
DEBUG (connectionpool:393) "POST /v3/auth/tokens HTTP/1.1" 201 5326
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}321ba3d74e12d75debcf810502b04f370908242b"
INFO (connectionpool:213) Starting new HTTP connection (1): controller
DEBUG (connectionpool:393) "GET /v2/d6735e2ae3ac49a5ae9ad75012781283/images HTTP/1.1" 200 508
DEBUG (session:224) RESP: [200] Date: Sat, 04 Jun 2016 01:04:03 GMT Connection: keep-alive Content-Type: application/json Content-Length: 508 X-Compute-Request-Id: req-fe3e5c5d-d216-4371-8b1b-ab8f972c11c6
RESP BODY: {"images": [{"id": "1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "links": [{"href": "http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "rel": "self"}, {"href": "http://controller:8774/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "rel": "bookmark"}, {"href": "http://controller:9292/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0", "type": "application/vnd.openstack.image", "rel": "alternate"}], "name": "cirros-0.3.4-x86_64"}]}
DEBUG (session:195) REQ: curl -g -i -X GET http://controller:8774/v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}321ba3d74e12d75debcf810502b04f370908242b"
DEBUG (connectionpool:393) "GET /v2/d6735e2ae3ac49a5ae9ad75012781283/images/1b26f68d-096d-4fc7-8ab5-bb6fd52f0ca0 HTTP/1.1" 500 128
DEBUG (session:224) RESP:
DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 911, in main
OpenStackComputeShell().main(argv)
File "/usr/lib/python2.7/site-packages/novaclient/shell.py", line 838, in main
args.func(self.cs, args)
File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 495, in do_boot
boot_args, boot_kwargs = _boot(cs, args)
File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 142, in _boot
image = _find_image(cs, args.image)
File "/usr/lib/python2.7/site-packages/novaclient/v2/shell.py", line 1894, in _find_image
return utils.find_resource(cs.images, image)
File "/usr/lib/python2.7/site-packages/novaclient/utils.py", line 216, in find_resource
return manager.find(**kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 196, in find
matches = self.findall(**kwargs)
File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 258, in findall
found.append(self.get(obj.id))
File "/usr/lib/python2.7/site-packages/novaclient/v2/images.py", line 53, in get
return self._get("/images/%s" % base.getid(image), "image")
File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 156, in _get
_resp, body = self.api.client.get(url)
File "/usr/lib/python2.7/site-packages/keystoneclient/adapter.py", line 170, in get
return self.request(url, 'GET', **kwargs)
File "/usr/lib/python2.7/site-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-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-c2f6d17d-2e8b-4d04-8c46-ecf7e2e779dc)
nova.conf
[DEFAULT]
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 192.168.0.2
vncserver_listen = 192.168.0.2
vncserver_proxyclient_address = 192.168.0.2
verbose = True
state_path = /home/nova
scheduler_default_filters = AllHostsFilter
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[database]
connection = mysql://nova:123456@controller/nova
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = 123456
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = 123456
[glance]
host = controller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[neutron]
url = http://controller:9696
auth_strategy = keystone
admin_auth_url = http://controller:35357/v2.0
admin_tenant_name = service
admin_username = neutron
admin_password = 123456
service_metadata_proxy = True
metadata_proxy_shared_secret = 123456
glance-api.conf
[DEFAULT]
notification_driver = noop
verbose = True
[database]
connection = mysql://glance:123456@controller/glance
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = 123456
[paste_deploy]
flavor = keystone
[glance_store]
default_store = file
filesystem_store_datadir = /var/lib/glance/images/
glance-registry.conf
[DEFAULT]
notification_driver = noop
verbose = True
[database]
connection = mysql://glance:123456@controller/glance
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = glance
password = 123456
[paste_deploy]
flavor = keystone
服务之类的都是正常的,,根据官方的kilo文档安装的。各位大侠帮分析一下看看。。跪谢了。。。
|