OpenStack stable/juno live migrate BUG! J版!迁移有Bug!愤怒的填坑。

背景:


今天愤怒的把迁移的坑都填上了,现在有空了记录下来,并且整理一下思路吧,还有一些不清晰的地方。


 kvm是compute默认的hypervisor, 我的环境里也用的是kvm。


问题:

bug:https://bugs.launchpad.net/nova/+bug/1392773


这帮人review我的代码的时候总要test,这里怎么就会没有test就。。还是stable release--


参照patch把代码改好后,重启服务。。又是个坑:

说是cpu feature的问题,幸好以前研究过,记得这个坑,不过应该已经修复了(大概意思是Windows对cpu的topology(sockets/cores/threads)要求比较严格,经常会出现分给它4个cpu只显示1个这种情况)。然后重新来研究了一下。

0.在两个compute节点: cat /proc/cpuinfo 

发现我擦!真的不一样,虽然都是Intel的。。然后还和装环境的同学确认了一下。。

1.然后在分别:cat /usr/share/libvirt/cpu_map.xml

这里面是libvirt KVM driver 定义的一些 model,找出来一个两边都支持的,比如“haswell”(。。。。当然那个旧的服务器应该不支持它,我忘了我用的那个的名字了,就用它代替了)

2.edit /etc/nova/nova.conf

加入关于libvirt的配置:

[libvirt]
cpu_mode = custom
cpu_model = Nehalem
这里的配置有四个值:none, host-passthrough, host-model, and custom

原文直接拿过来吧:

 Host model (default for KVM & QEMU)

If your nova.conf file contains cpu_mode=host-model, libvirt identifies the CPU model in /usr/share/libvirt/cpu_map.xml file that most closely matches the host, and requests additional CPU flags to complete the match. This configuration provides the maximum functionality and performance and maintains good reliability and compatibility if the guest is migrated to another host with slightly different host CPUs.

 Host pass through

If your nova.conf

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值