Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

can not create instance after update centos7

I installed Openstack kilo on Centos7.novncproxy always failed.i had to reboot it everyday.so i decided to update all software from repositories.after that,i could not create any instances. How can i fix it?

nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=d7c8d8bc-43af-454c-8ae2-6da078c1e244 --security-group default --key-name demo-key demo-cirros1

command output snippet:

DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-12b8ccb3-92e5-4c47-af71-a54cf89a0312) 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-12b8ccb3-92e5-4c47-af71-a54cf89a0312) ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-12b8ccb3-92e5-4c47-af71-a54cf89a0312)

Log snippet form nova-api.log:

2016-05-19 10:30:55.105 1898 ERROR nova.api.openstack [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] Caught error: id 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack Traceback (most recent call last): 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return req.get_response(self.application) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1317, in send 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack application, catch_exc_info=False) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/request.py", line 1281, in call_application 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack app_iter = application(self.environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return resp(environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return self._call_app(env, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return self._app(env, _fake_start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return resp(environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return resp(environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack response = self.app(environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return resp(environ, start_response) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack resp = self.call_func(req, args, *self.kwargs) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return self.func(req, args, *kwargs) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack content_type, body, accept) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack return method(req=request, **action_args) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 83, in show 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack image = self._image_api.get(context, id) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack show_deleted=show_deleted) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 309, in show 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack include_locations=include_locations) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 483, in _translate_from_glance 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack include_locations=include_locations) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 545, in _extract_attributes 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack queued = getattr(image, 'status') == 'queued' 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack self.get() 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack new = self.manager.get(self.id) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__ 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack raise AttributeError(k) 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack AttributeError: id 2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack 2016-05-19 10:30:55.107 1898 INFO nova.api.openstack [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] http://openstack-control.ni.ttt.co.th:8774/v2/f92966f02d284482b15f31b8709bc0c3/images/749de06c-a486-47c0-95f4-ac540a4bf109 returned with HTTP 500 2016-05-19 10:30:55.109 1898 INFO nova.osapi_compute.wsgi.server [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] 172.20.41.128 "GET /v2/f92966f02d284482b15f31b8709bc0c3/images/749de06c-a486-47c0-95f4-ac540a4bf109 HTTP/1.1" status: 500 len: 359 time: 0.0540740

can not create instance after update centos7

I installed Openstack kilo on Centos7.novncproxy always failed.i had to reboot it everyday.so i decided to update all software from repositories.after that,i could not create any instances. How can i fix it?

nova --debug boot --flavor m1.tiny --image cirros-0.3.4-x86_64 --nic net-id=d7c8d8bc-43af-454c-8ae2-6da078c1e244 --security-group default --key-name demo-key demo-cirros1

demo-cirros1

command output snippet:

DEBUG (shell:914) The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-12b8ccb3-92e5-4c47-af71-a54cf89a0312)
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)
manager.find(**kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 196, in find
    matches = self.findall(kwargs)
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-12b8ccb3-92e5-4c47-af71-a54cf89a0312)
ERROR (ClientException): The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-12b8ccb3-92e5-4c47-af71-a54cf89a0312)

req-12b8ccb3-92e5-4c47-af71-a54cf89a0312)

Log snippet form nova-api.log:

2016-05-19 10:30:55.105 1898 ERROR nova.api.openstack [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] Caught error: id
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack Traceback (most recent call last):
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/__init__.py", line 125, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return req.get_response(self.application)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1317, in send
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     application, catch_exc_info=False)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/request.py", line 1281, in call_application
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     app_iter = application(self.environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 634, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return self._call_app(env, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/keystonemiddleware/auth_token/__init__.py", line 554, in _call_app
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return self._app(env, _fake_start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 131, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     response = self.app(environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 144, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return resp(environ, start_response)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 130, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     resp = self.call_func(req, args, *self.kwargs)
*args, **self.kwargs)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/webob/dec.py", line 195, in call_func
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return self.func(req, args, *kwargs)
*args, **kwargs)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 756, in __call__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     content_type, body, accept)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 821, in _process_stack
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     action_result = self.dispatch(meth, request, action_args)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 911, in dispatch
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     return method(req=request, **action_args)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/api/openstack/compute/images.py", line 83, in show
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     image = self._image_api.get(context, id)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/api.py", line 93, in get
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     show_deleted=show_deleted)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 309, in show
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     include_locations=include_locations)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 483, in _translate_from_glance
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     include_locations=include_locations)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/nova/image/glance.py", line 545, in _extract_attributes
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     queued = getattr(image, 'status') == 'queued'
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 491, in __getattr__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     self.get()
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 509, in get
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     new = self.manager.get(self.id)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack   File "/usr/lib/python2.7/site-packages/glanceclient/openstack/common/apiclient/base.py", line 494, in __getattr__
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack     raise AttributeError(k)
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack AttributeError: id
2016-05-19 10:30:55.105 1898 TRACE nova.api.openstack
2016-05-19 10:30:55.107 1898 INFO nova.api.openstack [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] http://openstack-control.ni.ttt.co.th:8774/v2/f92966f02d284482b15f31b8709bc0c3/images/749de06c-a486-47c0-95f4-ac540a4bf109 returned with HTTP 500
2016-05-19 10:30:55.109 1898 INFO nova.osapi_compute.wsgi.server [req-12b8ccb3-92e5-4c47-af71-a54cf89a0312 83458dc2373945d09d7d7fd1e5366a08 f92966f02d284482b15f31b8709bc0c3 - - -] 172.20.41.128 "GET /v2/f92966f02d284482b15f31b8709bc0c3/images/749de06c-a486-47c0-95f4-ac540a4bf109 HTTP/1.1" status: 500 len: 359 time: 0.0540740

0.0540740