• 处理隐藏僵尸卷


    刷新dashboard 卷内容的时候会提示错误(dashboard中刷新页面存在隐藏状态的卷):
    截取 HTTP日志错误
    [Fri Mar 09 02:29:56.342056 2018] [:error] [pid 2369] Not Found: Instance 9c2d7692-db55-4338-a527-3c1a7cdf8f1a could not be found. (HTTP 404) (Request-ID: req-a27d8332-6b86-496f-9741-32a1bc6b2a8c)
    [Fri Mar 09 02:29:56.342120 2018] [:error] [pid 2369] Traceback (most recent call last):
    [Fri Mar 09 02:29:56.342128 2018] [:error] [pid 2369] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 340, in get_attachment_name
    [Fri Mar 09 02:29:56.342133 2018] [:error] [pid 2369] server = api.nova.server_get(request, server_id)
    [Fri Mar 09 02:29:56.342137 2018] [:error] [pid 2369] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/nova.py", line 666, in server_get
    [Fri Mar 09 02:29:56.342141 2018] [:error] [pid 2369] return Server(novaclient(request).servers.get(instance_id), request)
    [Fri Mar 09 02:29:56.342145 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/v2/servers.py", line 678, in get
    [Fri Mar 09 02:29:56.342152 2018] [:error] [pid 2369] return self._get("/servers/%s" % base.getid(server), "server")
    [Fri Mar 09 02:29:56.342156 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 339, in _get
    [Fri Mar 09 02:29:56.342160 2018] [:error] [pid 2369] resp, body = self.api.client.get(url)
    [Fri Mar 09 02:29:56.342164 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 452, in get
    [Fri Mar 09 02:29:56.342167 2018] [:error] [pid 2369] return self._cs_request(url, 'GET', **kwargs)
    [Fri Mar 09 02:29:56.342171 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 430, in _cs_request
    [Fri Mar 09 02:29:56.342175 2018] [:error] [pid 2369] resp, body = self._time_request(url, method, **kwargs)
    [Fri Mar 09 02:29:56.342235 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 403, in _time_request
    [Fri Mar 09 02:29:56.342240 2018] [:error] [pid 2369] resp, body = self.request(url, method, **kwargs)
    [Fri Mar 09 02:29:56.342243 2018] [:error] [pid 2369] File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 397, in request
    [Fri Mar 09 02:29:56.342258 2018] [:error] [pid 2369] raise exceptions.from_response(resp, body, url, method)
    [Fri Mar 09 02:29:56.342263 2018] [:error] [pid 2369] NotFound: Instance 9c2d7692-db55-4338-a527-3c1a7cdf8f1a could not be found. (HTTP 404) (Request-ID: req-a27d8332-6b86-496f-9741-32a1bc6b2a8c)


    #先删除这个,然后在dashboard的页面中的卷就会看到一个异常的卷,此时卷的状态是不对的,继续修改卷状态
    DELETE FROM volume_attachment WHERE instance_uuid = '9c2d7692-db55-4338-a527-3c1a7cdf8f1a';

    #查询9c2d7692-db55-4338-a527-3c1a7cdf8f1a的名字,
    select * FROM volumes WHERE display_name = 'volume8060';
    #将status状态改成available,attach_status改成detached

  • 相关阅读:
    解释一下什么是servlet?
    HTTP请求的GET与POST方式的区别
    金额转换,阿拉伯数字的金额转换成中国传统的形式如:(¥1011)->(一千零一拾一元整)输出?
    Java中的异常处理机制的简单原理和应用。
    error和exception有什么区别?
    运行时异常与一般异常有何异同?
    jsp有哪些动作?作用分别是什么?
    jsp有哪些内置对象?作用分别是什么? 分别有什么方法?
    一个纸杯的测试用例
    白盒测试黑盒测试区别
  • 原文地址:https://www.cnblogs.com/menkeyi/p/8533524.html
Copyright © 2020-2023  润新知