博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Centos0S7手动安装OpenStack Pike版--(nova)
阅读量:5929 次
发布时间:2019-06-19

本文共 5256 字,大约阅读时间需要 17 分钟。

OpenStack安装指南_Mitaka

Openstack管理手册-Newton版-CentOS7.2

#Configure Nova

mysql -uroot -ppasswd123 -e "CREATE DATABASE nova_api"
mysql -uroot -ppasswd123 -e "CREATE DATABASE nova"
mysql -uroot -ppasswd123 -e "CREATE DATABASE nova_cell0"

mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova_api. TO 'nova'@'localhost' IDENTIFIED BY 'passwd123'"

mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova_api. TO 'nova'@'%' IDENTIFIED BY 'passwd123'"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova. TO 'nova'@'localhost' IDENTIFIED BY 'passwd123'"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova.
TO 'nova'@'%' IDENTIFIED BY 'passwd123'"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova_cell0. TO 'nova'@'localhost' IDENTIFIED BY 'passwd123'"
mysql -uroot -ppasswd123 -e "GRANT ALL PRIVILEGES ON nova_cell0.
TO 'nova'@'%' IDENTIFIED BY 'passwd123'"

source admin-openrc

openstack user create --domain default --password passwd123 nova
openstack role add --project service --user nova admin
openstack service create --name nova --description "OpenStack Compute" compute

openstack endpoint create --region RegionOne compute public

openstack endpoint create --region RegionOne compute internal
openstack endpoint create --region RegionOne compute admin

openstack user create --domain default --password paswd123 placement

openstack role add --project service --user placement admin
openstack service create --name placement --description "Placement API" placement

openstack endpoint create --region RegionOne placement public

openstack endpoint create --region RegionOne placement internal
openstack endpoint create --region RegionOne placement admin

Edit the /etc/nova/nova.conf

openstack-config --set /etc/nova/nova.conf DEFAULT enabled_apis osapi_compute,metadata

openstack-config --set /etc/nova/nova.conf api_database connection mysql+pymysql://nova:passwd123@controller/nova_api

openstack-config --set /etc/nova/nova.conf database connection mysql+pymysql://nova:passwd123@controller/nova

openstack-config --set /etc/nova/nova.conf DEFAULT transport_url rabbit://openstack:passwd123@controller

openstack-config --set /etc/nova/nova.conf api auth_strategy keystone
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_uri
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_url
openstack-config --set /etc/nova/nova.conf keystone_authtoken memcached_servers controller:11211
openstack-config --set /etc/nova/nova.conf keystone_authtoken auth_type password
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken user_domain_name default
openstack-config --set /etc/nova/nova.conf keystone_authtoken project_name service
openstack-config --set /etc/nova/nova.conf keystone_authtoken username nova
openstack-config --set /etc/nova/nova.conf keystone_authtoken password passwd123

openstack-config --set /etc/nova/nova.conf DEFAULT my_ip 192.168.137.145

openstack-config --set /etc/nova/nova.conf DEFAULT use_neutron True
openstack-config --set /etc/nova/nova.conf DEFAULT firewall_driver nova.virt.firewall.NoopFirewallDriver

openstack-config --set /etc/nova/nova.conf vnc enabled true

openstack-config --set /etc/nova/nova.conf vnc vncserver_listen 192.168.137.145
openstack-config --set /etc/nova/nova.conf vnc vncserver_proxyclient_address 192.168.137.145

openstack-config --set /etc/nova/nova.conf glance api_servers

openstack-config --set /etc/nova/nova.conf oslo_concurrency lock_path /var/lib/nova/tmp

openstack-config --set /etc/nova/nova.conf placement os_region_name RegionOne

openstack-config --set /etc/nova/nova.conf placement project_domain_name Default
openstack-config --set /etc/nova/nova.conf placement project_name service
openstack-config --set /etc/nova/nova.conf placement auth_type password
openstack-config --set /etc/nova/nova.conf placement user_domain_name Default
openstack-config --set /etc/nova/nova.conf placement auth_url
openstack-config --set /etc/nova/nova.conf placement username placement
openstack-config --set /etc/nova/nova.conf placement password passwd123

vim /etc/httpd/conf.d/00-nova-placement-api.conf

<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>

systemctl restart httpd

systemctl status httpd

su -s /bin/sh -c "nova-manage api_db sync" nova

su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova
su -s /bin/sh -c "nova-manage cell_v2 create_cell --name=cell1 --verbose" nova
su -s /bin/sh -c "nova-manage db sync" nova
nova-manage cell_v2 list_cells

systemctl enable openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service \

openstack-nova-conductor.service openstack-nova-novncproxy.service
systemctl start openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service \
openstack-nova-conductor.service openstack-nova-novncproxy.service
systemctl status openstack-nova-api.service openstack-nova-consoleauth.service openstack-nova-scheduler.service \
openstack-nova-conductor.service openstack-nova-novncproxy.service

openstack service list

转载于:https://blog.51cto.com/andyliu/2069165

你可能感兴趣的文章
Android IOS WebRTC 音视频开发总结(六八)-- Google: What's next for WebRTC
查看>>
Memcached查看和清理
查看>>
C#非泛型集合类-使用HashTable元素操作
查看>>
JFinal 入门
查看>>
2013-01-09 13:31 IE不支持textarea的maxlength属性,Firefox支持
查看>>
hdu 1081(最大子矩阵)
查看>>
.Net 学习链接
查看>>
C++学习笔记 -- 函数指针与指针函数
查看>>
mongodb常用命令(转)
查看>>
java 多态,和方法覆盖分析(转)
查看>>
关于数理统计基础知识的一点补漏
查看>>
Sublime Text 快捷键及插件安装
查看>>
权限变量 --转载
查看>>
eclipse juno的svn的安装
查看>>
Linux 嵌入式启动以及优化
查看>>
安卓第五夜 维纳斯的诞生
查看>>
UltraEdit加入到右键菜单中
查看>>
html5与css3学习实践--基础的内容划分标签
查看>>
div 点击展开
查看>>
實現多个checkbox單選功能(转)
查看>>