首页 > 代码库 > Nova controller节点安装
Nova controller节点安装
[root@controller openstack]# source admin-openrc
[root@controller openstack]# mysql -uroot -pzoomtech -e "CREATE DATABASE nova"
[root@controller openstack]# mysql -uroot -pzoomtech -e "CREATE DATABASE nova_api"
[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘openstack‘"
[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘openstack‘"
[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘%‘ IDENTIFIED BY ‘openstack‘"
[root@controller openstack]# mysql -uroot -pzoomtech -e "GRANT ALL PRIVILEGES ON nova_api.* TO ‘nova‘@‘localhost‘ IDENTIFIED BY ‘openstack‘"
[root@controller openstack]# openstack user create --domain default --password-prompt nova
[root@controller openstack]# openstack role add --project service --user nova admin
[root@controller openstack]# openstack service create --name nova --description "OpenStack Compute" compute
[root@controller openstack]# openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1/%\(tenant_id\)s
[root@controller openstack]# openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1/%\(tenant_id\)s
[root@controller openstack]# openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1/%\(tenant_id\)s
[root@controller openstack]# yum install openstack-nova-api openstack-nova-conductor openstack-nova-console openstack-nova-novncproxy openstack-nova-scheduler -y >> /dev/null
[root@controller openstack]# vim /etc/nova/nova.conf
[DEFAULT]
enabled_apis = osapi_compute,metadata
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.1.1.129
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api_database]
connection = mysql+pymysql://nova:@controller/nova_api
[database]
connection = mysql+pymysql://nova:@controller/nova
[oslo_messaging_rabbit]
rabbit_host = controller
rabbit_userid = openstack
rabbit_password = openstack
[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 = openstack
[vnc]
vncserver_listen = 10.1.1.129
vncserver_proxyclient_address = 10.1.1.129
[glance]
api_servers = http://controller:9292
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[root@controller openstack]# su -s /bin/sh -c "nova-manage api_db sync" nova
[root@controller openstack]# su -s /bin/sh -c "nova-manage db sync" nova
[root@controller openstack]# systemctl enable openstack-nova-api.service
[root@controller openstack]# systemctl enable openstack-nova-consoleauth.service
[root@controller openstack]# systemctl enable openstack-nova-scheduler.service
[root@controller openstack]# systemctl enable openstack-nova-conductor.service
[root@controller openstack]# systemctl enable openstack-nova-novncproxy.service
[root@controller openstack]# systemctl start openstack-nova-api.service
[root@controller openstack]# systemctl start openstack-nova-consoleauth.service
[root@controller openstack]# systemctl start openstack-nova-scheduler.service
[root@controller openstack]# systemctl start openstack-nova-conductor.service
[root@controller openstack]# systemctl start openstack-nova-novncproxy.service
[root@controller openstack]# ps aux | grep nova
[root@controller openstack]# openstack service list
+----------------------------------+----------+----------+
| ID | Name | Type |
+----------------------------------+----------+----------+
| 58230d612d0d4acc862d4ab76c46ceb8 | keystone | identity |
| b160109f223d476198f2267894ef0403 | nova | compute |
+----------------------------------+----------+----------+
本文出自 “技术成就梦想” 博客,请务必保留此出处http://andyliu.blog.51cto.com/518879/1846412
Nova controller节点安装