`
cloudtech
  • 浏览: 4577979 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
文章分类
社区版块
存档分类
最新评论

resize实例不成功的解决办法

 
阅读更多

这是在邮件列表里面看到的,没有亲试,就是在resize实例的时候没有反应。解决办法:配置文件/etc/nova/nova.conf添加一项allow_resize_to_same_host=True,重启nova-compute和nova-api服务。

邮件原文如下:

Yes, good job!
Reminder: you should always restart the related service when you changed the configuration or the source code, otherwise the changes will NOT take effect.
you can look up the source code where use the configuration you have changed to find the related service which should be restarted.
 
2012-11-05
Wangpan
发件人:蒋平
发送时间:2012-11-04 15:59
主题:Fw:Re: [Openstack] Resize Server problem from jovaunn.com, hangzhou,China!!!
收件人:"hzwangpan"<hzwangpan@corp.netease.com>
抄送:
 
Hi,wangpan
       I have successfully fixed the bug,you should not only add 'allow_resize_to_same_host=True',but also input "service nova-compute restart" and "service nova-api restart" too,that's wonderful!!!
 
 
------------------ Original ------------------
From:  "蒋平"<jiangping@jovaunn.com>;
Date:  Sun, Nov 4, 2012 01:27 PM
To:  "Wangpan"<hzwangpan@corp.netease.com>;
Subject:  Re: [Openstack] Resize Server problem from jovaunn.com, hangzhou,China!!!
 
Hi wangpan,
    I really appreciate your help for the bug,I have added  'allow_resize_to_same_host=True' to '/etc/nova/nova.conf' for having only one compute node.moreover,I have changed the default value 'allow_resize_to_same_host' to 'True' in 'flags.py',unfortunately,there have been no effect at all.
    I have checked the log file,such as nova-api.log,nova-scheduler,nova-compute.log carefully by your suggestion,do you think there have been other reasons such as uncorrect operations not only for the code.Do you have any other good ideas because I am a freshman in openstack actually. thank you!!
                                                                                                                 jiangping
                                                                                                                  2012-11-4
------------------ Original ------------------
From:  "Wangpan"<hzwangpan@corp.netease.com>;
Date:  Fri, Nov 2, 2012 05:09 PM
To:  "蒋平"<jiangping@jovaunn.com>;
Cc:  "openstack"<openstack@lists.launchpad.net>;
Subject:  Re: [Openstack] Resize Server problem from jovaunn.com, hangzhou,China!!!
 
Hi jiangping,
 
How many compute nodes you have? if just one, you should add 'allow_resize_to_same_host=True' to /etc/nova/nova.conf, and retry.
if you have more than one compute nodes, it more troublesome, you should be able to ssh to each other between compute nodes WITHOUT inputting password.
 
and I suggest you check the nova-api.log, nova-scheduler.log and nova-compute.log if there have some ERROR messages.
 
 
2012-11-02
Wangpan
发件人:蒋平
发送时间:2012-11-02 16:55
主题:[Openstack] Resize Server problem from jovaunn.com, hangzhou, China!!!
收件人:"openstack"<openstack@lists.launchpad.net>,"xiongdaijun"<xiongdaijun@jovaunn.com>
抄送:
 
Hi sir,
       I am very glad to write the Email to you,My name is jiangping who is an engineer majors in openstack from jovaunn.com,hangzhou,China!!!I have established the environment of openstack successfully by inputing "tools/with_venv.sh ./manage.py runserver 0.0.0.0:8080" in terminal and address http://192.168.0.15/horizon/ in network column.
        Then I make an instance successfully,for example:aaa-192.168.0.3-m1.tiny|512MB memory|
1 VCPU|0 disk,but when I input "nova resize aaa m1.small" in terminal,there have been no effection,
and the state of aaa is still "Active",not "Verifying" actually,I am very confused and anxious for the problem,please help me,thank you!
                                                                                                        Yours sincerely
                                                                                                         jiangping
                                                                                                         2012-11-2



分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics