Openstack 宿主机电源管理
2014-04-16 20:15
162 查看
novaclient 有相关宿主机的管理接口,
回到控制结点上用命令行来操作:
还没配置openstack的宿主机电源管理相关服务,所以用不了这个接口。
相关BUG和FIX,
Reviewed: https://review.openstack.org/17565
Committed: http://github.com/openstack/nova/commit/1dc6c806b32044420bf17d3076dd712185b7ac07
另外,可以考虑用IPMITOOL的命令行来进行宿主机电源管理了。
hosts=nova.hosts.list() for i in hosts: print(i._info) 输出: {u'service': u'consoleauth', u'host_name': u'control-4811', u'zone': u'internal'} {u'service': u'scheduler', u'host_name': u'control-4811', u'zone': u'internal'} {u'service': u'conductor', u'host_name': u'control-4811', u'zone': u'internal'} {u'service': u'cert', u'host_name': u'control-4811', u'zone': u'internal'} {u'service': u'compute', u'host_name': u'compute-4812', u'zone': u'nova'}
print(nova.hosts.host_action("compute-4812","reboot")) 输出:Traceback (most recent call last): File "nova_client.py", line 34, in <module> print(nova.hosts.host_action("compute-4812","reboot")) File "/usr/lib/python2.6/site-packages/novaclient/v1_1/hosts.py", line 62, in host_action return self.api.client.get(url) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 254, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 231, in _cs_request **kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 213, in _time_request resp, body = self.request(url, method, **kwargs) File "/usr/lib/python2.6/site-packages/novaclient/client.py", line 207, in request raise exceptions.from_response(resp, body, url, method) novaclient.exceptions.HTTPNotImplemented: Virt driver does not implement host power management. (HTTP 501) (Request-ID: req-31bcc149-5ba0-4740-831d-956aa061e6f3)
回到控制结点上用命令行来操作:
[root@control-4811 openstack(keystone_admin)]# nova host-action --action reboot compute-4812 ERROR: Virt driver does not implement host power management. (HTTP 501) (Request-ID: req-8b31874d-6115-4754-bb54-8e2851fa5a44)
还没配置openstack的宿主机电源管理相关服务,所以用不了这个接口。
相关BUG和FIX,
Reviewed: https://review.openstack.org/17565
Committed: http://github.com/openstack/nova/commit/1dc6c806b32044420bf17d3076dd712185b7ac07
另外,可以考虑用IPMITOOL的命令行来进行宿主机电源管理了。
相关文章推荐
- Openstack-Ceilometer-获取主机内存 的使用
- 怎样使用SSH连接OpenStack上的云主机
- <转>Openstack ceilometer 宿主机监控模块扩展
- Openstack Windows server2008R2镜像制作流程(自动注入密码,修改主机名,获取元数据)
- <转>Openstack ceilometer 宿主机监控模块扩展
- openstack中redhat镜像的主机名配置
- openstack(kilo) 使非admin用户看到虚拟机所在的宿主机
- 《转》openstack中删除虚拟主机,状态一直deleting
- openstack多主机部署(ubuntu14.04)J版
- OpenStack入门修炼之云主机创建(14)
- openstack 云服务上创建的虚拟机,主机名修改
- openstack宿主机宕机迁移
- 在openstack宿主机里删除一个虚拟机关联的网卡、端口及桥
- 云计算Openstack-Liberty版 - 使用技巧 -调整主机大小,官方镜像调整
- 玩转linux主机--Openstack部署
- openstack主机内存ram超额分配
- 如何使用SSH连接OpenStack上的云主机
- Openstack : 2、devstack创建虚拟主机
- openstack i版 损坏云主机系统修复