Openstack把计算节点的内存加到控制节点上

Openstack把计算节点的内存加到控制节点上(controller操作)


版权声明:

本文为博主学习整理原创文章,如有不正之处请多多指教。

未经博主允许不得转载。 https://blog.csdn.net/qq_42595261/article/details/83186154


平台必须起来哦

安装服务

yum install -y openstack-nova-compute lvm2

修改配置文件(红色为添加)

vi /etc/nova/nova.conf

[DEFAULT]

enabled_apis = osapi_compute,metadata

transport_url = rabbit://openstack:[email protected]

my_ip = 10.32.24.244

use_neutron = True

// 修改标红的三个服务的配置文件 (nova 、 rabbit 、 keystone)

firewall_driver = nova.virt.firewall.NoopFirewallDriver

rpc_backeend = rabbit

auth_strategy = keystone

[oslo_messaging_rabbit]

rabbit_host = controller

rabbit_userid = openstack

rabbit_password = 000000

[keystone_authtoken]

auth_uri = http://controller:5000

auth_url = http://controller:35357

memcached_servers = controller:11211

auth_type = password

project_domain_name = default

user_domain_name = default

project_name = service

username = nova

password = 000000

[vnc]

enabled = true

server_listen = $my_ip

server_proxyclient_address = $my_ip

novncproxy_base_url = http://10.32.24.244:6080/vnc_auto.html

#virt_type=kvm

virt_type=qemu

//重新启动 、 开机自启

[[email protected] ~]# source admin-openrc.sh     /  / 生效环境变量

/  /   重启nove服务  设置开机自启

[[email protected] ~]#systemctl start libvirtd.service openstack-nova-compute.service

[[email protected] ~]# systemctl enable libvirtd.service openstack-nova-compute.service

Created symlink from /etc/systemd/system/multi-user.target.wants/openstack-nova-compute.service to /usr/lib/systemd/system/openstack-nova-compute.service.

[[email protected] ~]# openstack compute service list --service nova-compute   / /  查看有两个

+----+--------------+------------+------+---------+-------+----------------------------+

| ID | Binary       | Host       | Zone | Status  | State | Updated At                 |

+----+--------------+------------+------+---------+-------+----------------------------+

|  6 | nova-compute | compute    | nova | enabled | up    | 2018-10-19T11:58:00.000000 |

|  7 | nova-compute | controller | nova | enabled | up    | 2018-10-19T11:57:59.000000 |

+----+--------------+------------+------+---------+-------+----------------------------+

登陆平台查看,原来是4 个G,现在已经成6个G了,ok

Openstack把计算节点的内存加到控制节点上