openstack下,重启 compute,实例不会自动恢复的问题

在 openstack 下,重新启动compute,实例不会自动恢复,解决办法:

修改 /etc/nova.conf,添加两个选项:

start_guests_on_host_boot = True

resume_guests_state_on_host_boot =True

 

注意的是,如果使用了nova-volume,则自动启动还是有问题的。这时,需要自己写脚本,进行启动。

 

这两个选项在文档中没有说明,大家可以参见代码:

nova/compute/manager.py:
if ((expect_running and FLAGS.resume_guests_state_on_host_boot) or
FLAGS.start_guests_on_host_boot):
LOG.info(_(‘Rebooting instance after nova-compute restart.’),
locals(), instance=instance)
self.reboot_instance(context, instance[‘uuid’])
elif drv_state == power_state.RUNNING:
# Hyper-V and VMWareAPI drivers will raise an exception
try:
net_info = self._get_instance_nw_info(context, instance)
self.driver.ensure_filtering_rules_for_instance(instance,
self._legacy_nw_info(net_info))
except NotImplementedError:
LOG.warning(_(‘Hypervisor driver does not support ‘
‘firewall rules’))

此条目发表在OpenStack分类目录,贴了, 标签。将固定链接加入收藏夹。

openstack下,重启 compute,实例不会自动恢复的问题》有 16 条评论

  1. Pingback引用通告: canada free dating sites

  2. Pingback引用通告: free dating sites usa only

  3. Pingback引用通告: 100 free sex dating

  4. Pingback引用通告: free online dating sex

  5. Pingback引用通告: chemistry dating site free

  6. Pingback引用通告: free mfm bisexual dating site

  7. Pingback引用通告: free lesbian website dating

  8. Pingback引用通告: free online dating websites for military

  9. Pingback引用通告: free sex movies n dating sites crossdressers

  10. Pingback引用通告: gluten free dating site

  11. Pingback引用通告: free dating sites for singles over 40

  12. Pingback引用通告: free local dating com

  13. Pingback引用通告: new zealand free dating site

  14. Pingback引用通告: keto muffins

  15. Pingback引用通告: keto wings

  16. Pingback引用通告: keto flu

发表评论

邮箱地址不会被公开。 必填项已用*标注