# 建立数据库用户及权限
create database nova;
grant all privileges on nova.* to nova@'localhost' identified by 'Abc@123';
grant all privileges on nova.* to nova@'%' identified by 'Abc@123'; create database nova_api;
grant all privileges on nova_api.* to nova@'localhost' identified by 'Abc@123';
grant all privileges on nova_api.* to nova@'%' identified by 'Abc@123'; create database nova_cell0;
grant all privileges on nova_cell0.* to nova@'localhost' identified by 'Abc@123';
grant all privileges on nova_cell0.* to nova@'%' identified by 'Abc@123'; flush privileges;
# 建立用户、角色、服务、项目、域、端点
source ~/.openstack_admin
openstack user create --domain default --project service --password Abc@123 nova
openstack role add --project service --user nova admin
openstack service create --name nova --description "OpenStack Compute Service" compute openstack endpoint create --region RegionOne compute public http://controller:8774/v2.1
openstack endpoint create --region RegionOne compute internal http://controller:8774/v2.1
openstack endpoint create --region RegionOne compute admin http://controller:8774/v2.1
# 安装程序包
yum install -y openstack-nova-api openstack-nova-conductor openstack-nova-novncproxy openstack-nova-scheduler openstack-nova-console
# 变更配置文件
cd /etc/nova
mv nova.conf nova.conf.org cat > /etc/nova/nova.conf << EOF
[DEFAULT]
my_ip = 192.168.10.218
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:Abc@123@controller
user_neutron = true
firewall_driver = nova.virt.firewall.NoopFirewallDriver [api_database]
connection = mysql+pymysql://nova:Abc@123@controller/nova_api [database]
connection = mysql+pymysql://nova:Abc@123@controller/nova [api]
auth_strategy = keystone [keystone_authtoken]
auth_url = http://controller:5000/v3
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project _name = service
username = nova
password = Abc@123 [vnc]
enabled = true
server_listen = \$my_ip
server_proxyclient_address = \$my_ip [glance]
api_servers = http://controller:9292 [oslo_concurrency]
lock_path = /var/lib/nova/tmp [placement]
auth_url = http://controller:5000/v3
region_name = RegionOne
project_domain_name = default
user_domain_name = default
project _name = service
auth_type = password
username = placement
password = Abc@123 [scheduler]
discover_hosts_in_cells_interval = 300
EOF chmod 640 /etc/nova/nova.conf
chown root:nova /etc/nova/nova.conf
# 同步数据库
su -s /bin/bash -c "nova-manage api_db sync" nova
su -s /bin/bash -c "nova-manage cell_v2 map_cell0" nova
su -s /bin/bash -c "nova-manage cell_v2 create_cell --name cell1 --verbose" nova
su -s /bin/bash -c "nova-manage db sync" nova su -s /bin/bash -c "nova-manage cell_v2 list_cells" nova
su -s /bin/bash -c "nova-manage cell_v2 discover_hosts --verbose" nova
# 开启服务
systemctl restart openstack-nova-api && systemctl enable openstack-nova-api
systemctl restart openstack-nova-scheduler && systemctl enable openstack-nova-scheduler
systemctl restart openstack-nova-conductor && systemctl enable openstack-nova-conductor
systemctl restart openstack-nova-novncproxy && systemctl enable openstack-nova-novncproxy
systemctl restart openstack-nova-consoleauth && systemctl enable openstack-nova-consoleauth
# 验证
openstack compute service list

openstack stein部署手册 6. nova-api的更多相关文章

  1. openstack stein部署手册 7. nova-compute

    # 安装程序包 yum install -y openstack-nova-compute # 变更配置文件 cd /etc/nova mv nova.conf nova.conf.org cat & ...

  2. openstack stein部署手册 10. 创建实例

    # 建立网络(provider)与子网 openstack network create --share --external --provider-physical-network provider ...

  3. openstack stein部署手册 9. neutron

    # 安装程序包 yum -y install openstack-neutron-linuxbridge ebtables ipset # 变更配置文件 mv /etc/neutron/neutron ...

  4. openstack stein部署手册 8. neutron-api

    # 建立数据库用户及权限 create database neutron; grant all privileges on neutron.* to neutron@'localhost' ident ...

  5. openstack stein部署手册 5. placement

    # 建立数据库用户及权限 create database placement; grant all privileges on placement.* to placement@'localhost' ...

  6. openstack stein部署手册 4. glance

    # 建立数据库用户及权限 create database glance; grant all privileges on glance.* to glance@'localhost' identifi ...

  7. openstack stein部署手册 3. keystone

    # 建立数据库用户及权限 create database keystone; grant all privileges on keystone.* to keystone@'localhost' id ...

  8. openstack stein部署手册 2. 基础应用

    1. chrony # 安装程序包 yum install -y chrony # 变更配置文件 /etc/chrony.conf 增加 server 192.168.123.200 iburst # ...

  9. openstack stein部署手册 10. horzion

    # 安装程序包 yum install -y openstack-dashboard # 变更配置文件 /etc/openstack-dashboard/local_settings 变更以下 OPE ...

随机推荐

  1. go语言实战 摘抄

    append 函数append会智能地处理底层数组的容量增长.在切片的容量小于1000个元素时,总是会成倍地增加容量.一旦元素个数超过1000,容量的增长因子就会设为1.25, 也就是每次增加25%的 ...

  2. AC自动机再加强版

    AC自动机 拓扑排序优化,注意拓扑排序前要把所有入度为零的点都加进去 #include<bits/stdc++.h> using namespace std; #define maxn 1 ...

  3. css内容过长显示省略号的几种解决方法

    单行文本(方法一): 语法: text-overflow : clip | ellipsis 参数: clip : 不显示省略标记(...),而是简单的裁切 (clip这个参数是不常用的!) elli ...

  4. 续上文,Unity3D面试ABC

    http://www.unitymanual.com/blog-3573-685.html 最先执行的方法是: 1.(激活时的初始化代码)Awake,2.Start.3.Update[FixUpdat ...

  5. React-Native 之 GD (十二)海淘半小时热门 及 获取最新数据个数功能 (角标)

    1.海淘半小时热门   基本功能和首页相似 GDHt.js /** * 海淘折扣 */ import React, { Component } from 'react'; import { Style ...

  6. java valueOf

    valueOf 方法可以将原生数值类型转化为对应的Number类型,java.lang.Number 基类包括ouble.Float.Byte.Short.Integer 以及 Long派生类, 也可 ...

  7. 阶段1 语言基础+高级_1-3-Java语言高级_06-File类与IO流_02 递归_1_递归概念&分类&注意事项

    a方法里面调用自己,但是没有停止的条件 方法没有停止的条件. 栈内存溢出的异常. 只有栈,没有堆内存 先执行main方法压栈执行 main方法里面调用a方法.a方法就会压栈 改成20000

  8. object数据类型

    1 object数据类型是dataframe中特殊的数据类型,当某一列出现数字.字符串.特殊字符和时间格式两种及以上时,就会出现object类型,即便把不同类型的拆分开,仍然是object类型. 如下 ...

  9. 你还没有真正理解的innodb_flush_log_at_trx_commit

    关于innodb_flush_log_at_trx_commit的描述,看了mysql手册中的解释,感觉都不够清晰明了,下面试图以最简单直白的方式解释一下innodb_flush_log_at_trx ...

  10. Fiddler代理抓取的接口的服务器返回出现"Response body is encoded. Click to decode. "

    参考与:https://blog.csdn.net/wsbl52006/article/details/53256705 解决办法: Rules > Remove All Encodings 勾 ...