openstack实例创建失败

2015-04-23 23:20:10.316 1200 ERROR nova.compute.manager [req-d44d7988-d149-420f-a593-cc4a7d44a27e 6bdd4e3dc8ee43c390043691964e0a5a 6cadfd283253409d8cdbad8c80469a4e] [in
stance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] Instance failed block device setup
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] Traceback (most recent call last):
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.p
y", line 1705, in _prep_block_device
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     self.driver, self._await_block_device_map_created))
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/virt/block_device
.py", line 378, in attach_block_devices
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     map(_log_and_attach, block_device_mapping)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/virt/block_device
.py", line 376, in _log_and_attach
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     bdm.attach(*attach_args, **attach_kwargs)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/virt/block_device
.py", line 328, in attach
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     wait_func(context, vol['id'])
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.p
y", line 1147, in _await_block_device_map_created
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     volume = self.volume_api.get(context, vol_id)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/volume/cinder.py"
, line 173, in wrapper
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     res = method(self, ctx, volume_id, *args, **kwargs)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/volume/cinder.py"
, line 206, in get
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     item = cinderclient(context).volumes.get(volume_id)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/v1/volume
s.py", line 196, in get
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     return self._get("/volumes/%s" % volume_id, "volume")
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/base.py",
line 145, in _get
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     resp, body = self.api.client.get(url)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/client.py
", line 220, in get
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     return self._cs_request(url, 'GET', **kwargs)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/client.py
", line 181, in _cs_request
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     self.authenticate()
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/client.py
", line 327, in authenticate
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     auth_url = self._v1_auth(auth_url)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/client.py
", line 345, in _v1_auth
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     resp, body = self.request(url, 'GET', headers=headers)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/cinderclient/client.py
", line 170, in request
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     raise exceptions.from_response(resp, body)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] Unauthorized: Unauthorized (HTTP 401)
2015-04-23 23:20:10.316 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]
2015-04-23 23:20:10.399 1200 ERROR nova.compute.manager [req-d44d7988-d149-420f-a593-cc4a7d44a27e 6bdd4e3dc8ee43c390043691964e0a5a 6cadfd283253409d8cdbad8c80469a4e] [in
stance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] Failed to dealloc network for failed instance
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] Traceback (most recent call last):
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.p
y", line 1358, in _build_instance
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     self._deallocate_network(context, instance)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/compute/manager.p
y", line 1792, in _deallocate_network
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     context, instance, requested_networks=requested_networks)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/nova/network/neutronv2
/api.py", line 411, in deallocate_for_instance
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     data = neutron.list_ports(**search_opts)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 111, in with_params
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     ret = self.function(instance, *args, **kwargs)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 306, in list_ports
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     **_params)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 1250, in list
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     for r in self._pagination(collection, path, **params):
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 1263, in _pagination
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     res = self.get(path, params=params)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 1236, in get
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     headers=headers, params=params)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 1221, in retry_request
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     headers=headers, params=params)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/v2_0/cli
ent.py", line 1156, in do_request
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     resp, replybody = self.httpclient.do_request(action, method
, body=body)
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/client.p
y", line 195, in do_request
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     self.authenticate()
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]   File "/usr/lib/python2.6/site-packages/neutronclient/client.p
y", line 231, in authenticate
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]     token_url = self.auth_url + "/tokens"
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1] TypeError: unsupported operand type(s) for +: 'NoneType' and 's
tr'
2015-04-23 23:20:10.399 1200 TRACE nova.compute.manager [instance: 69a46ed7-d49c-4b84-a874-87af082a0ff1]
2015-04-23 23:20:10.746 1200 ERROR oslo.messaging.rpc.dispatcher [-] Exception during message handling: Block Device Mapping is Invalid.
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_
reply
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/server.py", line 139, in inner
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return func(*args, **kwargs)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrapped
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     payload)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/exception.py", line 71, in wrapped
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return f(self, context, *args, **kw)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 274, in decorated_function
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     pass
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 260, in decorated_function
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 327, in decorated_function
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     function(self, context, *args, **kwargs)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_function
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     e, sys.exc_info())
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 290, in decorated_function
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return function(self, context, *args, **kwargs)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2111, in run_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     do_run_instance()
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in inner
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     return f(*args, **kwargs)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2110, in do_run_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     legacy_bdm_in_spec)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1224, in _run_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     notify("error", fault=e)  # notify that build failed
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1208, in _run_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     instance, image_meta, legacy_bdm_in_spec)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1362, in _build_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     LOG.exception(msg, instance=instance)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1319, in _build_instance
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     context, instance, bdms)
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1722, in _prep_block_device
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher     raise exception.InvalidBDM()
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher InvalidBDM: Block Device Mapping is Invalid.
2015-04-23 23:20:10.746 1200 TRACE oslo.messaging.rpc.dispatcher
2015-04-23 23:20:10.748 1200 ERROR oslo.messaging._drivers.common [-] Returning exception Block Device Mapping is Invalid. to caller
2015-04-23 23:20:10.749 1200 ERROR oslo.messaging._drivers.common [-] ['Traceback (most recent call last):n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/
rpc/dispatcher.py", line 133, in _dispatch_and_replyn    incoming.message))n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176,
in _dispatchn    return self._do_dispatch(endpoint, method, ctxt, args)n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _
do_dispatchn    result = getattr(endpoint, method)(ctxt, **new_args)n', '  File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/server.py", line 139, in innern
   return func(*args, **kwargs)n', '  File "/usr/lib/python2.6/site-packages/nova/exception.py", line 88, in wrappedn    payload)n', '  File "/usr/lib/python2.6/site
-packages/nova/openstack/common/excutils.py", line 68, in __exit__n    six.reraise(self.type_, self.value, self.tb)n', '  File "/usr/lib/python2.6/site-packages/nova/
exception.py", line 71, in wrappedn    return f(self, context, *args, **kw)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 274, in decora
ted_functionn    passn', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__n    six.reraise(self.type_, self.value, s
elf.tb)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 260, in decorated_functionn    return function(self, context, *args, **kwargs)n',
'  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 327, in decorated_functionn    function(self, context, *args, **kwargs)n', '  File "/usr/lib
/python2.6/site-packages/nova/compute/manager.py", line 303, in decorated_functionn    e, sys.exc_info())n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/
common/excutils.py", line 68, in __exit__n    six.reraise(self.type_, self.value, self.tb)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line
290, in decorated_functionn    return function(self, context, *args, **kwargs)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2111, in r
un_instancen    do_run_instance()n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/lockutils.py", line 249, in innern    return f(*args, **kwargs)
n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 2110, in do_run_instancen    legacy_bdm_in_spec)n', '  File "/usr/lib/python2.6/site-pack
ages/nova/compute/manager.py", line 1224, in _run_instancen    notify("error", fault=e)  # notify that build failedn', '  File "/usr/lib/python2.6/site-packages/nova/
openstack/common/excutils.py", line 68, in __exit__n    six.reraise(self.type_, self.value, self.tb)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager
.py", line 1208, in _run_instancen    instance, image_meta, legacy_bdm_in_spec)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1362, in _
build_instancen    LOG.exception(msg, instance=instance)n', '  File "/usr/lib/python2.6/site-packages/nova/openstack/common/excutils.py", line 68, in __exit__n    si
x.reraise(self.type_, self.value, self.tb)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1319, in _build_instancen    context, instance,
bdms)n', '  File "/usr/lib/python2.6/site-packages/nova/compute/manager.py", line 1722, in _prep_block_devicen    raise exception.InvalidBDM()n', 'InvalidBDM: Block
Device Mapping is Invalid.n']

5回答

hailwindhailwind  系统架构师 , 犀思云计算科技有限公司
请查看cinder相关的日志信息,上面nova日志说了,块设备映射出错。显示全部
请查看cinder相关的日志信息,上面nova日志说了,块设备映射出错。收起
 2015-04-27
浏览5791
TidehunterTidehunter  数据库管理员 , BONC
请查看cinder相关的日志信息,上面nova日志说了,块设备映射出错。hailwind 发表于 2015-4-27 10:06 您好,这是cinder里的日志,麻烦帮忙看下。这里的云硬盘确实已经创建出来了015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call l...显示全部
请查看cinder相关的日志信息,上面nova日志说了,块设备映射出错。
hailwind 发表于 2015-4-27 10:06


您好,这是cinder里的日志,麻烦帮忙看下。
这里的云硬盘确实已经创建出来了




015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher Traceback (most recent call last):
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 133, in _dispatch_and_reply
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     incoming.message))
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 176, in _dispatch
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/oslo/messaging/rpc/dispatcher.py", line 122, in _do_dispatch
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     result = getattr(endpoint, method)(ctxt, **new_args)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 790, in initialize_connection
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     volume)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 525, in create_export
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     return self._create_export(context, volume)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 534, in _create_export
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     data = self.target_helper.create_export(context, volume, volume_path)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/cinder/volume/iscsi.py", line 53, in create_export
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     chap_auth)
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher   File "/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 549, in create_iscsi_target
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher     raise exception.NotFound()
2015-04-27 13:00:43.637 2940 TRACE oslo.messaging.rpc.dispatcher NotFound: Resource could not be found.收起
 2015-04-27
浏览6303
hailwindhailwind  系统架构师 , 犀思云计算科技有限公司
从日志来看还是iscsi没有正常的工作,你最好想办法确认一下iscsi的服务器端和cinder等是不是完全配置好了。我没太用过iscsi协议做为kvm的存储,无法给你具体帮助。显示全部
从日志来看还是iscsi没有正常的工作,你最好想办法确认一下iscsi的服务器端和cinder等是不是完全配置好了。
我没太用过iscsi协议做为kvm的存储,无法给你具体帮助。收起
 2015-04-28
浏览5809
jjqiu92jjqiu92  系统工程师 , jjqiu
回复 3# Tidehunter     创建过程贴出来看看。可能有哪个步骤出问题了。显示全部
回复 3# Tidehunter


    创建过程贴出来看看。可能有哪个步骤出问题了。收起
 2015-04-29
浏览5845
TidehunterTidehunter  数据库管理员 , BONC
问题已经解决,dashboard上通过“从镜像启动(创建一个新卷)”方式创建实例时,在/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 549, in create_iscsi_target中要寻找glance提供的镜像。所以在必须告知cinder服务glance所在的位置。即在cinder.conf中...显示全部
问题已经解决,dashboard上通过“从镜像启动(创建一个新卷)”方式创建实例时,在/usr/lib/python2.6/site-packages/cinder/brick/iscsi/iscsi.py", line 549, in create_iscsi_target中要寻找glance提供的镜像。所以在必须告知cinder服务glance所在的位置。即在cinder.conf中必须添加glance的参数。如
    # default glance hostname or ip (string value)
    #glance_host=$my_ip
    glance_host=192.168.8.231
    # default glance port (integer value)
    #glance_port=9292
    glance_port=9292
收起
 2015-04-29
浏览5836

提问者

Tidehunter数据库管理员, BONC

问题状态

  • 发布时间:2015-04-24
  • 关注会员:1 人
  • 问题浏览:14137
  • 最近回答:2015-04-29
  • 关于TWT  使用指南  社区专家合作  厂商入驻社区  企业招聘  投诉建议  版权与免责声明  联系我们
    © 2019  talkwithtrend — talk with trend,talk with technologist 京ICP备09031017号-30