Libvirsh 问题:GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported

简介:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
openstack VM 启动失败:
     2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [req-209e1032-1594-4a12-9314-2d61497ddc00 77a941e7a6f34efcaa0cd1460702fb56 29c0d49d61d4428a978317f9da6d7663 - - -] [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00] Instance failed to spawn
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00] Traceback (most recent call last):
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 2218,  in  _build_resources
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     yield resources
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/compute/manager.py" , line 2064,  in  _build_and_run_instance
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     block_device_info=block_device_info)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 2791,  in  spawn
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     block_device_info=block_device_info)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 4936,  in  _create_domain_and_network
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     xml, pause=pause, power_on=power_on)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 4867,  in  _create_domain
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     guest.launch(pause=pause)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py" , line 142,  in  launch
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     self._encoded_xml, errors= 'ignore' )
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 220,  in  __exit__
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     self.force_reraise()
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 196,  in  force_reraise
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     six.reraise(self.type_, self.value, self.tb)
17-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     xml, pause=pause, power_on=power_on)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py" , line 4867,  in  _create_domain
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     guest.launch(pause=pause)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py" , line 142,  in  launch
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     self._encoded_xml, errors= 'ignore' )
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 220,  in  __exit__
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     self.force_reraise()
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py" , line 196,  in  force_reraise
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     six.reraise(self.type_, self.value, self.tb)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/nova/virt/libvirt/guest.py" , line 137,  in  launch
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]      return  self._domain.createWithFlags(flags)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/eventlet/tpool.py" , line 186,  in  doit
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     result = proxy_call(self._autowrap, f, *args, **kwargs)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/eventlet/tpool.py" , line 144,  in  proxy_call
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     rv = execute(f, *args, **kwargs)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/eventlet/tpool.py" , line 125,  in  execute
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     six.reraise(c, e, tb)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib/python2.7/site-packages/eventlet/tpool.py" , line 83,  in  tworker
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]     rv = meth(*args, **kwargs)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]   File  "/usr/lib64/python2.7/site-packages/libvirt.py" , line 1069,  in  createWithFlags
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]      if  ret == -1: raise libvirtError ( 'virDomainCreateWithFlags() failed' , dom=self)
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00] libvirtError: internal error: qemu unexpectedly closed the monitor:
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00] (process:13831): GLib-WARNING **: gmem.c:483: custom memory allocation vtable not supported
Unknown protocol
2017-10-12 16:09:45.552 9650 ERROR nova.compute.manager [instance: 424e4c01-7f39-40d4-acb5-11664ce47b00]

解决办法:

    

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
安装库文件:
     yum -y  install   gperftools-libs
     
重启系统
     [root@l23-4-22 154363a6-13e0-4570-a1ef-53f2becacfbd] # rpm -ql
     gperftools-libs
     /usr/lib64/libprofiler .so.0
     /usr/lib64/libprofiler .so.0.4.5
     /usr/lib64/libtcmalloc .so.4
     /usr/lib64/libtcmalloc .so.4.2.6
     /usr/lib64/libtcmalloc_and_profiler .so.4
     /usr/lib64/libtcmalloc_and_profiler .so.4.2.6
     /usr/lib64/libtcmalloc_debug .so.4
     /usr/lib64/libtcmalloc_debug .so.4.2.6
     /usr/lib64/libtcmalloc_minimal .so.4
     /usr/lib64/libtcmalloc_minimal .so.4.2.6
     /usr/lib64/libtcmalloc_minimal_debug .so.4
     /usr/lib64/libtcmalloc_minimal_debug .so.4.2.6


验证通过


本文转自 swq499809608 51CTO博客,原文链接:http://blog.51cto.com/swq499809608/1973164


相关文章
|
6月前
|
Oracle 关系型数据库
Customer RecommendedORA-27090 - Unable to Reserve Kernel Resources for Asynchronous Disk I/O
Customer RecommendedORA-27090 - Unable to Reserve Kernel Resources for Asynchronous Disk I/O
49 4
|
5月前
|
Python
【已解决】WARNING: Ignoring invalid distribution xxx
【已解决】WARNING: Ignoring invalid distribution xxx
|
开发工具
WARNING: library configuration mismatch
WARNING: library configuration mismatch
301 0
|
数据安全/隐私保护
Development cannot be enabled while your device is locked.
有时候我们真机调试的时候,会遇到这样的报错: Development cannot be enabled while your device is locked. 但是!我TM手机明明解锁了啊,指纹解的锁不是?密码解的锁不是?没感应到?换个姿势再来一次?还是不行?? 哈哈,有同样经历的点个赞吧。
1882 0