mitaka配置详解必赢娱乐网址,ocata配置详解

       在此以前写过一篇《openstack mitaka 配置详解》但是前段时间接纳开掘Ali不再提供m版本的源,所以近期又起来攻读ocata版本,并举办总计,写下如下文书档案

       在安插openstack项目时多几人觉着处处是坑,特别是新手,一旦进坑未有人教导,身体将会以为到叁次次被挖出,作为新手的自己也身当其境,因为已经被掏空n次了。

OpenStack ocata版本官方文书档案:

       以下也是自己将全体openstack配置进度举行汇总,并对困难进行深入分析,希望对你们有所扶助,若是在配备进程中有问号,也足以开始展览留言。

並且假使不想一步步安装,能够试行安装脚本:

       尝试本身配置前可观望《新手帮您跳过openstack配置进程中的坑》。

一:环境

       同时即便不想一步步设置,能够实行安装脚本:

1.1主机网络

  • 系统版本 CentOS7

  • 支配节点: 1 管理器, 4 GB 内部存款和储蓄器, 及5 GB 存款和储蓄

  • 算算节点: 1 管理器, 2 GB 内部存储器, 及10 GB 存款和储蓄

   说明:

  1:以CentOS7为镜像,安装两台机械(怎么样设置详见)并留神安排双网卡和垄断两台机械的内部存款和储蓄器。

  2:修改机器主机名分别为:controller和compute1

             #hostnamectl set-hostname hostname 

  3:编辑controller和compute1的 /etc/hosts 文件

             #vi /etc/hosts

            必赢娱乐网址 1

  4:验证

            选用互ping以及ping百度的方法

            必赢娱乐网址 2 必赢娱乐网址 3

一:环境

1.2网络时间切磋(NTP)

[决定节点安装NTP]   

NTP首要为共同一时候间所用,时间不一齐,大概导致你不可能创制云主机

#yum install chrony              (安装软件包)

#vi /etc/chrony.conf              增加

server NTP_SERVER iburst

allow ip地址网段(可以去掉,指代允许你的ip地址网段可以访问NTP)

 

 

 

 

 

#systemctl enable chronyd.service     (设置为系统自运行) 

#systemctl start chronyd.service       (启动NTP服务)

[总括节点安装NTP]

# yum install chrony             

#vi /etc/chrony.conf             `` 释除``server`` 值外的兼具剧情。修改它引用调控节点:

server controller iburst

# systemctl enable chronyd.service     (参加连串自运营)

# systemctl start chronyd.service       (启动ntp服务)

[验证NTP]

支配节点和计量节点分别施行#chronyc sources,出现如下

           [验证NTP]

    调整节点和测算节点分别实施#chronyc sources,出现如下

              必赢娱乐网址 4

              必赢娱乐网址 5

1.1主机网络

  • 系统版本 CentOS7

  • 支配节点: 1 管理器, 4 GB 内部存款和储蓄器, 及5 GB 存款和储蓄

  • 总结节点: 1 处理器, 2 GB 内存, 及10 GB 存款和储蓄

   说明:

  1:以CentOS7为镜像,安装两台机器(怎么样设置详见)并注意布署双网卡和决定两台机器的内部存款和储蓄器。

  2:修改机器主机名分别为:controller和compute1

             #hostnamectl set-hostname hostname 

  3:编辑controller和compute1的 /etc/hosts 文件

             #vi /etc/hosts

            必赢娱乐网址 6

  4:验证

            选用互ping以及ping百度的不二诀窍

            必赢娱乐网址 7 必赢娱乐网址 8

1.3Openstack包

[openstack packages安装在支配和计量节点]
  安装openstack最新的源:
  #yum install centos-release-openstack-ocata
  #yum install  

       #yum upgrade                          (在主机上涨级包)
  #yum install python-openstackclient         (安装opentack必须的插件)
  #yum install openstack-selinux               

1.2互联网时间切磋(NTP)

  [决定节点安装NTP]   

    NTP重要为共同一时间间所用,时间不一齐,恐怕变成你无法制造云主机

    #yum install chrony(安装软件包)

    #vi /etc/chrony.conf增加

      server NTP_SERVER iburst

      allow 你的ip地址网段                 (能够去掉,指代允许你的ip地址网段能够访问NTP)

    #systemctl enable chronyd.service    (设置为系统自运行)

    #systemctl start chronyd.service       (启动NTP服务)

          [计量节点安装NTP]

     # yum install chrony

     #vi /etc/chrony.conf`` 释除``server`` 值外的持有剧情。修改它援引调整节点:server controller iburst

     # systemctl enable chronyd.service     (参预体系自运维)

     # systemctl start chronyd.service        (启动ntp服务)

           [验证NTP]

    控制节点和计量节点分别实行#chronyc sources,出现如下

              必赢娱乐网址 9

              必赢娱乐网址 10

1.4SQL数据库

    安装在支配节点,指南中的步骤依附分化的发行版使用MariaDB或 MySQL。OpenStack 服务也补助其余 SQL 数据库。
    #yum install mariadb mariadb-server python2-PyMySQL

         #vi /etc/mysql/conf.d/mariadb_openstack.cnf       

    加入:
        [mysqld]
      bind-address = 192.168.1.73                         (安装mysql的机械的IP地址,这里为controller地址)
      default-storage-engine = innodb
      innodb_file_per_table
      collation-server = utf8_general_ci
      character-set-server = utf8
    
    #systemctl enable mariadb.service     (将数据库服务设置为自运转)
    #systemctl start mariadb.service          (将数据库服务设置为打开)
    设置mysql属性:
    #mysql_secure_installation  (此处参照,中坑一)

1.3Openstack包

        [openstack packages安装在调控和测算节点]
    安装openstack最新的源:
    #yum install centos-release-openstack-mitaka
    #yum install
    #yum upgrade                                               (在主机上涨级包)
    #yum install python-openstackclient            (安装opentack必须的插件)
    #yum install openstack-selinux                    (可选则设置这几个插件,作者从来关门了selinux,因为不熟,对一而再不会有影响)

1.5新闻队列

    音讯队列在openstack整个架构中扮演着至关心重视要(交通枢纽)的功能,正是因为openstack安顿的狡猾、模块的松耦合、架构的扁平化,反而使openstack特别注重于音信队列(不确定使用RabbitMQ,

    能够是别的的新闻队列产品),所以音讯队列收发消息的性情和音信队列的HA技术一贯影响openstack的属性。借使rabbitmq未有运转起来,你的整openstack平台将无法使用。rabbitmq使用5672端口。
    #yum install rabbitmq-server
    #systemctl enable rabbitmq-server.service(加入自运行)
    #systemctl start rabbitmq-server.service(启动)
    #rabbitmqctl add_user openstack RABBIT_PASS                       (扩张用户openstack,密码自个儿设置替换掉RABBIT_PASS)
    #rabbitmqctl set_permissions openstack ".*" ".*" ".*"                   (给新扩张的用户授权,未有授权的用户将无法经受和传递音讯)

1.4SQL数据库

    安装在支配节点,指南开中学的步骤根据不一样的发行版使用MariaDB或 MySQL。OpenStack 服务也支撑任何 SQL 数据库。
    #yum install mariadb mariadb-server MySQL-python
    #vi /etc/mysql/conf.d/mariadb_openstack.cnf
    加入:
        [mysqld]
      bind-address = 192.168.1.73                         (安装mysql的机器的IP地址,这里为controller地址)
      default-storage-engine = innodb
      innodb_file_per_table
      collation-server = utf8_general_ci
      character-set-server = utf8
    
    #systemctl enable mariadb.service     (将数据库服务设置为自运转)
    #systemctl start mariadb.service          (将数据库服务设置为打开)
    设置mysql属性:
    #mysql_secure_installation  (此处参照,中坑一)

1.6Memcached

memcache为挑选设置项目。使用端口11211

[垄断(monopoly)节点] 
  #yum install memcached python-memcached

修改/etc/sysconfig/memcached中的OPTIONS为。

OPTIONS="-l 127.0.0.1,::1,controller"

 

 

 

 

  #systemctl enable memcached.service     

 #systemctl start memcached.service       

1.5音讯队列

    信息队列在openstack整个架构中扮演着至关心注重要(交通枢纽)的效用,正是因为openstack铺排的灵活性、模块的松耦合、架构的扁平化,反而使openstack越发注重于信息队列(不必然使用RabbitMQ,

    能够是其他的音信队列产品),所以新闻队列收发新闻的品质和音讯队列的HA技艺一向影响openstack的性质。假诺rabbitmq未有运维起来,你的整openstack平台将无法使用。rabbitmq使用5672端口。
    #yum install rabbitmq-server
    #systemctl enable rabbitmq-server.service(参与自运转)
    #systemctl start rabbitmq-server.service(启动)
    #rabbitmqctl add_user openstack RABBIT_PASS                       (扩大用户openstack,密码本人设置替换掉RABBIT_PASS)
    #rabbitmqctl set_permissions openstack ".*" ".*" ".*"                   (给新添的用户授权,未有授权的用户将不能够接受和传递音信)

二:认证服务

1.6Memcached

    memcache为挑选设置项目。使用端口11211
    #yum install memcached python-memcached
    #systemctl enable memcached.service
    #systemctl start memcached.service

2.1装置和布局

签到数据库创建keystone数据库。

【只在调控节点安插】
  #mysql -u root -p
  #CREATE DATABASE keystone;
设置授权用户和密码:
  #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'
IDENTIFIED BY '自定义的密码';
  #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
IDENTIFIED BY '自定义的密码';
安然并配置组件:
#yum install openstack-keystone httpd mod_wsgi
#vi /etc/keystone/keystone.conf   

[database]

 connection = mysql pymysql://keystone:密码@controller/keystone
       provider = fernet

 

 

 

 

 

 

起头化居民身份注解服务的数据库

# su -s /bin/sh -c "keystone-manage db_sync" keystone(一点要查阅数据库是或不是生成表成功)
  初始化keys:
  #keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
  引导身份服务:

keystone-manage bootstrap --bootstrap-password ADMIN_PASS

  --bootstrap-admin-url http://controller:35357/v3/

  --bootstrap-internal-url http://controller:5000/v3/

  --bootstrap-public-url http://controller:5000/v3/

  --bootstrap-region-id RegionOne

 

 

 

配置apache:
  #vi  /etc/httpd/conf/httpd.conf 

ServerName controller(将ServerName 后面改成主机名,防止启动报错)

 

 

始建三个指向/usr/share/keystone/wsgi-keystone.conf文件的链接:

#ln -s /usr/share/keystone/wsgi-keystone.conf /etc/httpd/conf.d/

启动httpd:
  #systemctl enable httpd.service
  #systemctl start httpd.service  

布署管理账户

#vi admin加入

export OS_USERNAME=admin

export OS_PASSWORD=123456

export OS_PROJECT_NAME=admin

export OS_USER_DOMAIN_NAME=Default

export OS_PROJECT_DOMAIN_NAME=Default

export OS_AUTH_URL=

export OS_IDENTITY_API_VERSION=3    

二:认证服务

    [keystone认证服务]
    注意:在前面要求设置好hosts深入分析,调控节点和计量节点都要做。作者的为:
    192.168.1.73 controller
    192.168.1.74compute1

2.2创设域、项目、用户和剧中人物

创建Service Project:
  #penstack project create --domain default

--description "Service Project" service
  创建Demo Project:
  #openstack project create --domain default

--description "Demo Project" demo

创建 demo 用户:
  #openstack user create --domain default

  --password-prompt demo
  创建user角色:
  #openstack role create user
  将用户租户剧中人物连接起来:
  #openstack role add --project demo --user demo user

  2.1设置和布署     

    登陆数据库创立keystone数据库。
    #mysql -u root -p
    #CREATE DATABASE keystone;
    设置授权用户和密码:
    #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%'
         IDENTIFIED BY '密码';
       生成admin_token的随机值:
      # openssl rand -hex 10
      安全并布置组件
       #yum install openstack-keystone httpd mod_wsgi
          #vi /etc/keystone/keystone.conf
       使用刚刚生成的轻巧值替换掉[DEFAULT]中的
       #admin_token = 随机值                           (紧要为安全,也足以不用替换)
       配置数据库连接

               [database]

                connection = mysql pymysql://keystone:密码@controller/keystone
                provider = fernet
             伊始化身份验证服务的数据库

        # su -s /bin/sh -c "keystone-manage db_sync" keystone(一点要翻开数据库是或不是生成表成功)
    初始化keys:
    #keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
    配置apache:
    #vi  /etc/httpd/conf/httpd.conf
      将ServerName 前面改成主机名,防止运转报错
      ServerName controller
    生成wsgi配置文件:
    #vi /etc/httpd/conf.d/wsgi-keystone.conf加入:

Listen 5000
Listen 35357

<VirtualHost *:5000>
    WSGIDaemonProcess keystone-public processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-public
    WSGIScriptAlias / /usr/bin/keystone-wsgi-public
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    ErrorLogFormat "%{cu}t %M"
    ErrorLog /var/log/httpd/keystone-error.log
    CustomLog /var/log/httpd/keystone-access.log combined

    <Directory /usr/bin>
        Require all granted
    </Directory>
</VirtualHost>

<VirtualHost *:35357>
    WSGIDaemonProcess keystone-admin processes=5 threads=1 user=keystone group=keystone display-name=%{GROUP}
    WSGIProcessGroup keystone-admin
    WSGIScriptAlias / /usr/bin/keystone-wsgi-admin
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    ErrorLogFormat "%{cu}t %M"
    ErrorLog /var/log/httpd/keystone-error.log
    CustomLog /var/log/httpd/keystone-access.log combined

    <Directory /usr/bin>
        Require all granted
    </Directory>
</VirtualHost>

 

    启动httpd:
    #systemctl enable httpd.service
    #systemctl start httpd.service

2.3验证

vi /etc/keystone/keystone-paste.ini

从``[pipeline:public_api]``,[pipeline:admin_api]``和``[pipeline:api_v3]``一对删除``admin_token_auth 

重置``OS_TOKEN``和``OS_URL`` 情况变量:

unset OS_AUTH_URL OS_PASSWORD

作为 admin 用户,央浼认证令牌:
  #openstack --os-auth-url
--os-project-domain-name default --os-user-domain-name default
--os-project-name admin --os-username admin token issue

那边会蒙受错误:

必赢娱乐网址 11

鉴于是Http错误,所以回来Apache HTTP 服务配置的地方,重启Apache 服务,同等对待复设置管理账户:

  # systemctlrestart httpd.service

  $ export OS_USERNAME=admin

  $ export OS_PASSWORD=ADMIN_PASS

  $ export OS_PROJECT_NAME=admin

  $ export OS_USER_DOMAIN_NAME=Default

  $ export OS_PROJECT_DOMAIN_NAME=Default

  $ export OS_AUTH_URL=

  $ export OS_IDENTITY_API_VERSION=3

实行完后重新试行

#openstack --os-auth-url
--os-project-domain-name default --os-user-domain-name default
--os-project-name admin --os-username admin token issue

必赢娱乐网址 12

 输入密码然后,有不错的出口即为配置不错。

必赢娱乐网址 13

 

 

 

 

 

 

图2.4 admin认证服务验证 

作为``demo`` 用户,央求认证令牌: 

#openstack --os-auth-url   

--os-project-domain-name default --os-user-domain-name default  

--os-project-name demo --os-username demo token issue

必赢娱乐网址 14

 

  2.2创办服务实体和API端点

              #export OS_TOKEN=下不熟悉成的随机值
    #export OS_URL=
    #export OS_IDENTITY_API_VERSION=3
    创建keystone的service:
    #openstack service create --name keystone --description "OpenStack Identity" identity (identity那些评释项目一定不得以错)
    创建keystone的endpoint:
      #openstack endpoint create --region RegionOne
      identity public
    #openstack endpoint create --region RegionOne
      identity internel  
    #openstack endpoint create --region RegionOne
      identity admin  

2.4创造 OpenStack 客户端情况脚本

可将景况变量设置为脚本:
  #vi admin-openrc 加入:

export OS_PROJECT_DOMAIN_NAME=default
  export OS_USER_DOMAIN_NAME=default
  export OS_PROJECT_NAME=admin
  export OS_USERNAME=admin
  export OS_PASSWORD=123456(admin设置的密码)
  export OS_AUTH_URL=http://controller:35357/v3
  export OS_IDENTITY_API_VERSION=3
  export OS_IMAGE_API_VERSION=2

 

 

 

 

 

 

 

#vi demo-openrc 加入:

 export OS_PROJECT_DOMAIN_NAME=default
   export OS_USER_DOMAIN_NAME=default
   export OS_PROJECT_NAME=demo
   export OS_USERNAME=demo
   export OS_PASSWORD=123456(demo设置的密码)
   export OS_AUTH_URL=http://controller:35357/v3
   export OS_IDENTITY_API_VERSION=3
   export OS_IMAGE_API_VERSION=2 

             

 

 

 

 

 

 

#. admin-openrc (加载``admin-openrc``文件来地位认证服务的情况变量地方和``admin``品类和用户证书)
   #openstack token issue(恳求认证令牌)

必赢娱乐网址 15

                                  图2.6 伏乞认证令牌

  2.3创建域、项目、用户和角色

    创立默许域default:
    openstack domain create --description "Default Domain" default
    创建admin的租户:
    #openstack project create --domain default
      --description "Admin Project" admin

    创建admin用户:
    #openstack user create --domain default
     --password-prompt admin(会提醒输入密码为报到dashboard的密码)
    创建admin角色:
    #openstack role create admin
    将用户租户剧中人物连接起来:
    #openstack role add --project admin --user admin admin
    创设服务目录:
    #openstack project create --domain default
      --description "Service Project" service
    创设demo消息类似admin:
    #openstack project create --domain default
      --description "Demo Project" demo
    #openstack user create --domain default
      --password-prompt demo
    #openstack role create user
    #openstack role add --project demo --user demo user

三:镜像服务

  2.4验证

    作为 admin 用户,央浼认证令牌:
    #openstack --os-auth-url
      --os-project-domain-name default --os-user-domain-name default
      --os-project-name admin --os-username admin token issue
    输入密码然后,有不易的出口即为配置不错。

              必赢娱乐网址 16

 

             作为``demo`` 用户,央求认证令牌:

    #openstack --os-auth-url

               --os-project-domain-name default --os-user-domain-name default

    --os-project-name demo --os-username demo token issue

             必赢娱乐网址 17

 

3.1装置配置

建立glance数据
  登录mysql
  #mysql -u root -p (用数据库连接客户端以 root 用户连接到数据库服务器)
  #CREATE DATABASE glance;(创建 glance 数据库)
  授权
   GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost'
IDENTIFIED BY '密码'; (对``glance``数据库授予妥善的权柄)
   GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'
IDENTIFIED BY '密码';(对``glance``数据库授予稳妥的权位)
  运转意况变量:
  #. admin-openrc
  创造glance用户音信:
  #openstack user create --domain default --password-prompt glance

添加 admin 角色到 glance 用户和 service 项目上
    #openstack role add --project service --user glance admin
  创建``glance``劳务实体:
  #openstack service create --name glance
 --description "OpenStack Image" image

必赢娱乐网址 18

                          图3.1 成立glance服务实体

 

创建镜像服务的 API 端点:
  #penstack endpoint create --region RegionOne
         image public http://controller:9292

必赢娱乐网址 19

                        图3.2 创建镜像服务API端点

 

#penstack endpoint create --region RegionOne
image internal 

必赢娱乐网址 20

                     图3.3 创制镜像服务API端点

  #penstack endpoint create --region RegionOne
image admin http://controller:9292

必赢娱乐网址 21

                                      图3.4 创立镜像服务API端点

  安装:
  #yum install openstack-glance
  #vi  /etc/glance/glance-api.conf 配置   

[database]  

connection = mysql pymysql://glance:密码@controller/glance
  [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 = glance
   password = xxxx
   [paste_deploy]
   flavor = keystone
  [glance_store] 
   stores = file,http
   default_store = file
   filesystem_store_datadir = /var/lib/glance
 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#vi /etc/glance/glance-registry.conf

   

 

 

[database]
   connection = mysql pymysql://glance:密码@controller/glance
   [keystone_authtoken](配置认证)
   加入:
      auth_uri = http://controller:5000
      auth_url = http://controller:35357
      memcached_servers = control:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = glance
      password = xxxx
  [paste_deploy]
      flavor = keystone

 

   

 

 

 

 

 

 

 

 

 

 

 同步数据库:
      #su -s /bin/sh -c "glance-manage db_sync" glance
    启动glance:
      #systemctl enable openstack-glance-api.service
openstack-glance-registry.service
      # systemctl start openstack-glance-api.service
openstack-glance-registry.service

2.5成立 OpenStack 客户端景况脚本

            
    可将情状变量设置为脚本:
    #vi admin-openrc 加入:

    export OS_PROJECT_DOMAIN_NAME=default
    export OS_USER_DOMAIN_NAME=default
    export OS_PROJECT_NAME=admin
    export OS_USERNAME=admin
    export OS_PASSWORD=123456
    export OS_AUTH_URL=
    export OS_IDENTITY_API_VERSION=3
    export OS_IMAGE_API_VERSION=2

              #vi demo-openrc 加入:
    export OS_PROJECT_DOMAIN_NAME=default
    export OS_USER_DOMAIN_NAME=default
    export OS_PROJECT_NAME=demo
    export OS_USERNAME=demo
    export OS_PASSWORD=123456
    export OS_AUTH_URL=
    export OS_IDENTITY_API_VERSION=3
    export OS_IMAGE_API_VERSION=2           
    运营使用 #. admin-openrc可能利用#source admin-openrc
    验证输入指令:
    openstack token issue
    有不错的输出即为配置不错。

3.2验证

运转意况变量:
  #. admin-openrc
  下载一个非常的小的镜像:
  #wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img

 

 

解决办法:

yum -y install wget

   再执行

wget http://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x86_64-disk.img

 

 

 

 

 

 

 

 

 

上传镜像:
  #openstack image create "cirros"

--file cirros-0.3.5-x86_64-disk.img

--disk-format qcow2 --container-format bare

--public

必赢娱乐网址 22

 

 

 

 

 

 

 

 

 

 

 

 

 

                                       

   图3.5 上传镜像

  查看:
   #openstack image list

必赢娱乐网址 23

 

 

 

 

                                       

                               图3.6 确认镜像上传

有出口注脚glance配置不错

三:镜像服务

四:总计服务

3.1安装配置

    建立glance数据
    登录mysql
    #mysql -u root -p
    #CREATE DATABASE glance;
    授权
    #GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON glance.* TO 'glance'@'%'
      IDENTIFIED BY '密码';
    运营蒙受变量:
    #. admin-openrc
    创造glance用户音讯:
    openstack user create --domain default --password-prompt glance
    openstack role add --project service --user glance admin
    成立镜像服务目录:
    #openstack service create --name glance
      --description "OpenStack Image" image
    创造镜像endpoint:
    #penstack endpoint create --region RegionOne
      image public
    #penstack endpoint create --region RegionOne
      image internal
    #penstack endpoint create --region RegionOne
      image admin
    安装:
    #yum install openstack-glance
    #vi  /etc/glance/glance-api.conf
    配置数据库连接:
      connection = mysql pymysql://glance:密码@controller/glance
    找到[keystone_authtoken](配置认证)
    加入:
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = glance
      password = xxxx
    找到[paste_deploy]
      flavor = keystone
    找到[glance_store]
      stores = file,http
      default_store = file
      filesystem_store_datadir = /var/lib/glance
    #vi /etc/glance/glance-registry.conf
    找到[database]
      connection = mysql pymysql://glance:密码@controller/glance
    找到[keystone_authtoken](配置认证)
    加入:
      auth_uri =
      auth_url =
      memcached_servers = control:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = glance
      password = xxxx
    找到:[paste_deploy]
      flavor = keystone
    同步数据库:
      #su -s /bin/sh -c "glance-manage db_sync" glance
    启动glance:
      #systemctl enable openstack-glance-api.service
        openstack-glance-registry.service
        systemctl start openstack-glance-api.service
                       openstack-glance-registry.service

4.1安装并配备调节节点

确立nova的数据库:
  #mysql -u root -p (用数据库连接客户端以 root 用户连接到数据库服务器)
  #CREATE DATABASE nova_api;
  #CREATE DATABASE nova; (创建 nova_api 和 nova 数据库:)

#CREATE DATABASE nova_cell0;

  对数据库举办不易的授权:
  #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost'
IDENTIFIED BY '密码';
  #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%'
IDENTIFIED BY '密码';
  #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost'
IDENTIFIED BY '密码';
  #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%'
IDENTIFIED BY '密码';

#GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'localhost'

IDENTIFIED BY '密码';

#GRANT ALL PRIVILEGES ON nova_cell0.* TO 'nova'@'%'

IDENTIFIED BY '密码';

运行意况变量:
  #. admin-openrc
  创建nova用户:
  #openstack user create --domain default
 --password-prompt nova
  #openstack role add --project service --user nova admin
  创设 nova 服务实体:
  #openstack service create --name nova
--description "OpenStack Compute" compute
  创建 Compute 服务 API 端点:
  #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-prompt placement

必赢娱乐网址 24

#openstack role add --project service --user placement admin

#openstack service create --name placement --description "Placement API" placement

必赢娱乐网址 25

#openstack endpoint create --region RegionOne placement public

必赢娱乐网址 26

# openstack endpoint create --region RegionOne placement internal

必赢娱乐网址 27

#openstack endpoint create --region RegionOne placement admin

必赢娱乐网址 28

安装:
  # yum install openstack-nova-api openstack-nova-conductor

openstack-nova-console openstack-nova-novncproxy

openstack-nova-scheduler openstack-nova-placement-api
  #vi /etc/nova/nova.conf 

 

 

[DEFAULT].

enabled_apis = osapi_compute,metadata

[api_database]

# connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova_api

[database]

# connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova

[DEFAULT]

#transport_url = rabbit://openstack:RABBIT_PASS@controller

 

[api]

#auth_strategy = keystone

[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 = 密码

[DEFAULT]

#my_ip = 10.0.0.11

[DEFAULT]

# use_neutron = True

firewall_driver = nova.virt.firewall.NoopFirewallDriver

[vnc]

enabled = true

vncserver_listen = $my_ip

vncserver_proxyclient_address = $my_ip

[glance]

#api_servers = http://controller:9292

[oslo_concurrency]

#lock_path = /var/lib/nova/tmp

[placement]

#os_region_name = RegionOne

project_domain_name = Default

project_name = service

auth_type = password

user_domain_name = Default

auth_url = http://controller:35357/v3

username = placement

password = PLACEMENT_PASS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#vi  /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>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

重启httpd 服务:

#systemctl restart httpd

填充nova-api数据库:

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

注册cell0数据库:

 #su -s /bin/sh -c "nova-manage cell_v2 map_cell0" nova

创建cell1单元格

#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 cell0和cell1是不是科学注册:

nova-manage cell_v2 list_cells

必赢娱乐网址 29

#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

3.2验证

    运转景况变量:
      #. admin-openrc
    下载三个一点都不大的镜像:
      #wget
    上传镜像:
      #openstack image create "cirros"
        --file cirros-0.3.4-x86_64-disk.img
        --disk-format qcow2 --container-format bare
        --public
    查看:
        #openstack image list
    有出口 注脚glance配置不错

4.2安装并陈设总计节点

#yum install openstack-nova-compute

编辑

#vi /etc/nova/nova.conf 

 

 

[DEFAULT]

enabled_apis = osapi_compute,metadata

transport_url = rabbit://openstack:RABBIT_PASS@controller

my_ip = MANAGEMENT_INTERFACE_IP_ADDRESS(计算节点ip地址)

use_neutron = True

firewall_driver = nova.virt.firewall.NoopFirewallDriver

[api]

auth_strategy = keystone

[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 = NOVA_PASS

[vnc]

enabled = True

vncserver_listen = 0.0.0.0

vncserver_proxyclient_address = $my_ip

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

[glance]

api_servers = http://controller:9292

 

[oslo_concurrency]

lock_path = /var/lib/nova/tmp

[placement]

os_region_name = RegionOne

project_domain_name = Default

project_name = service

auth_type = password

user_domain_name = Default

auth_url = http://controller:35357/v3

username = placement

password = PLACEMENT_PASS

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

#egrep -c '(vmx|svm)' /proc/cpuinfo (鲜明你的估计节点是不是协理虚构机的硬件加速)

  假使为0则必要修改#vi /etc/nova/nova.conf

[libvirt]
  virt_type = qemu

 

 

 

 

 

启航总结服务及其信赖,并将其布署为随系统自动运营:
启动:
 #systemctl enable libvirtd.service openstack-nova-compute.service
 #systemctl start libvirtd.service openstack-nova-compute.service
将总结节点增添到单元数据库

本条在支配节点上实施

#. admin-openrc

# openstack hypervisor list

#su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

vi /etc/nova/nova.conf

  [scheduler]

  discover_hosts_in_cells_interval = 300

四:总括服务

4.3验证

在决定节点验证:
  运转景况变量:
#. admin-openrc
#openstack compute service list
 输出平时即为配置不错

#openstack catalog list

#openstack image list

#nova-status upgrade check

4.1安装并安顿调节节点

    创立nova的数据库:
    #mysql -u root -p
    #CREATE DATABASE nova_api;
    #CREATE DATABASE nova;
    授权:
    #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova_api.* TO 'nova'@'%'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost'
      IDENTIFIED BY '密码';
    #GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'%'
      IDENTIFIED BY '密码';
     运维蒙受变量:
    #. admin-openrc
    创建nova用户:
      #openstack user create --domain default
        --password-prompt nova
        #openstack role add --project service --user nova admin
    创立总结服务:
      #openstack service create --name nova
        --description "OpenStack Compute" compute
    创建endpoint:
      #openstack endpoint create --region RegionOne
        compute public
      #openstack endpoint create --region RegionOne
        compute internal
      #openstack endpoint create --region RegionOne
        compute admin
    安装:
      #yum install openstack-nova-api openstack-nova-conductor
        openstack-nova-console openstack-nova-novncproxy
        openstack-nova-scheduler
      #vi /etc/nova/nova.conf
    找到:[DEFAULT]
      enabled_apis = osapi_compute,metadata
    找到[api_database]
      connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova_api
      [database]
      connection = mysql pymysql://nova:NOVA_DBPASS@controller/nova
      [DEFAULT]
      rpc_backend = rabbit
      [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
      [DEFAULT]
      auth_strategy = keystone
      [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = nova
      password = xxx
      [DEFAULT]
      my_ip = ip地址
      [DEFAULT]
      use_neutron = True
      firewall_driver = nova.virt.firewall.NoopFirewallDriver
      [vnc]
      vncserver_listen = $my_ip
      vncserver_proxyclient_address = $my_ip
      [glance]
      api_servers =
      [oslo_concurrency]
      lock_path = /var/lib/nova/tmp
    同步数据库:
      #nova-manage api_db sync
      #nova-manage db sync
    运营服务:
      #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

五:Networking服务

4.2安装并陈设计算节点

      #yum install openstack-nova-compute
      #vi /etc/nova/nova.conf
    [DEFAULT]
      rpc_backend = rabbit
    [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = xxx
    [DEFAULT]
      auth_strategy = keystone
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = nova
      password = xxx
    [DEFAULT]
      my_ip =总结节点ip地址
    [DEFAULT]
      use_neutron = True
      firewall_driver = nova.virt.firewall.NoopFirewallDriver
    [vnc]
      enabled = True
      vncserver_listen = 0.0.0.0
      vncserver_proxyclient_address = $my_ip
      novncproxy_base_url =
      [glance]
      api_servers =
    [oslo_concurrency]
      lock_path = /var/lib/nova/tmp
    注意:
      egrep -c '(vmx|svm)' /proc/cpuinfo
      若是为0则供给修改/etc/nova/nova.conf
    [libvirt]
      virt_type = qemu
      为大于0则无需
    启动:
      systemctl enable libvirtd.service openstack-nova-compute.service
      systemctl start libvirtd.service openstack-nova-compute.service     

5.1装置并布控节点

创建neutron数据库
  #mysql -u root -p
  #CREATE DATABASE neutron;

对``neutron`` 数据库授予合适的走访权限,使用合适的密码替换``NEUTRON_DBPASS``:
  #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost'
 IDENTIFIED BY 'NEUTRON_DBPASS';
  #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%'
IDENTIFIED BY 'NEUTRON_DBPASS';
  运维景况变量:
  #. admin-openrc
  创建``neutron``用户:
  #openstack user create --domain default --password-prompt neutron
  #openstack role add --project service --user neutron admin
  添加``admin`` 角色到``neutron`` 用户:
  #openstack service create --name neutron
--description "OpenStack Networking" network
  成立互连网服务API端点

#openstack endpoint create --region RegionOne
network public
  #openstack endpoint create --region RegionOne
 network internal
  #openstack endpoint create --region RegionOne
network admin
  创建vxlan网络:
  #yum install openstack-neutron openstack-neutron-ml2
openstack-neutron-linuxbridge ebtables
  #vi /etc/neutron/neutron.conf 

 

 

[DEFAULT]

core_plugin = ml2

service_plugins = router

allow_overlapping_ips = true

transport_url = rabbit://openstack:密码@controller

auth_strategy = keystone

notify_nova_on_port_status_changes = true

notify_nova_on_port_data_changes = true

 

[database]

connection = mysql pymysql://neutron:密码@controller/neutron

 

[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 = neutron

password =密码

 

[nova]

auth_url = http://controller:35357

auth_type = password

project_domain_name = default

user_domain_name = default

region_name = RegionOne

project_name = service

username = nova

password = 密码

 

[oslo_concurrency]

lock_path = /var/lib/neutron/tmp

     

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

配置ml2扩展:
  #vi /etc/neutron/plugins/ml2/ml2_conf.ini

[ml2]

type_drivers = flat,vlan,vxlan

tenant_network_types = vxlan

mechanism_drivers = linuxbridge,l2population

extension_drivers = port_security

 

[ml2_type_flat]

flat_networks = provider

 

[ml2_type_vxlan]

vni_ranges = 1:1000

 

[securitygroup]

enable_ipset = true

  

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

安顿网桥:

*  #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini*

[DEFAULT]

[agent]

[linux_bridge]

physical_interface_mappings = provider:“第二张网卡名称”

[securitygroup]

enable_security_group = true

firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

[vxlan]

enable_vxlan = true

local_ip = 192.168.1.146(本地网络ip)

l2_population = true

 

 

 

 

 

 

 

 

 

 

 

 

 

 

配置3层网络:
  #vi /etc/neutron/l3_agent.ini 

[DEFAULT]
  interface_driver = linuxbridge

 

 

 

 

配置dhcp:
  #vi /etc/neutron/dhcp_agent.ini 

[DEFAULT]

interface_driver = linuxbridge

dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq

enable_isolated_metadata = true

 

 

 

 

 

 

配置metadata agent
 #vi /etc/neutron/metadata_agent.ini 

[DEFAULT]
  nova_metadata_ip = controller
  metadata_proxy_shared_secret = METADATA_SECRET

 

 

 

 

 

为计算机节点配置互联网服务

#vi /etc/nova/nova.conf

[neutron]
      url = http://controller:9696
      auth_url = http://controller:35357
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx
      service_metadata_proxy = True
      metadata_proxy_shared_secret = METADATA_SECRET

 

 

 

 

 

 

 

 

 

创造扩大连接:
   #ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
    同步数据库

# su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf

--config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron 

重启总括API 服务:
   #systemctl restart openstack-nova-api.service
   #systemctl enable neutron-server.service

neutron-linuxbridge-agent.service neutron-dhcp-agent.service
 neutron-metadata-agent.service
   #systemctl start neutron-server.service
neutron-linuxbridge-agent.service neutron-dhcp-agent.service
neutron-metadata-agent.service

启用layer-3服务并安装其随系统自运行
    # systemctl enable neutron-l3-agent.service
   #systemctl start neutron-l3-agent.service

4.3验证

     在支配节点验证:
     运转景况变量:
      #. admin-openrc
      #openstack compute service list
    输出寻常即为配置不错

5.2安装并配置总计节点

#yum install openstack-neutron-linuxbridge ebtables ipset
   #vi  /etc/neutron/neutron.conf 

[DEFAULT]

transport_url = rabbit://openstack:密码@controller

auth_strategy = keystone

 

[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 = neutron

password = 密码

 

[oslo_concurrency]

lock_path = /var/lib/neutron/tmp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

配置vxlan
  #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini

[linux_bridge]
  physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME(第二个网卡名称)
  [vxlan]
  enable_vxlan = True
  local_ip = OVERLAY_INTERFACE_IP_ADDRESS(本地网络地址)
  l2_population = True
  [securitygroup]
  enable_security_group = True
  firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver

 

 

 

 

 

 

 

 

#vi /etc/nova/nova.conf

[neutron]
      url = http://controller:9696
      auth_url = http://controller:35357
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx

 

 

 

 

 

 

 

 

重启总结服务
  #systemctl restart openstack-nova-compute.service
  #systemctl enable neutron-linuxbridge-agent.service
  #systemctl enable neutron-linuxbridge-agent.service

五:Networking服务

5.3验证

运转境况变量:
  #. admin-openrc

#openstack extension list --network

 必赢娱乐网址 30

#openstack network agent list

 必赢娱乐网址 31

5.1安装并配备调整节点

    创建neutron数据库
      #mysql -u root -p
      #CREATE DATABASE neutron;
      #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost'
        IDENTIFIED BY 'NEUTRON_DBPASS';
      #GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%'
        IDENTIFIED BY 'NEUTRON_DBPASS';
    运营遇到变量:
      #. admin-openrc
    创设用户:
      #openstack user create --domain default --password-prompt neutron
      #openstack role add --project service --user neutron admin
    创立网络服务:
      #openstack service create --name neutron
        --description "OpenStack Networking" network
    创建neutron endpoint
      #openstack endpoint create --region RegionOne
        network public
      #openstack endpoint create --region RegionOne
        network internal
      #openstack endpoint create --region RegionOne
        network admin
    创建vxlan网络:
      #yum install openstack-neutron openstack-neutron-ml2
        openstack-neutron-linuxbridge ebtables
      #vi /etc/neutron/neutron.conf
    [database]
      connection = mysql pymysql://neutron:密码@controller/neutron
    [DEFAULT]
      core_plugin = ml2
      service_plugins = router
      allow_overlapping_ips = True
    [DEFAULT]
      rpc_backend = rabbit
              [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
    [DEFAULT]
      auth_strategy = keystone
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = neutron
      password = xxxx
    [DEFAULT]
      notify_nova_on_port_status_changes = True
      notify_nova_on_port_data_changes = True
    [nova]
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = nova
      password = xxxx
    [oslo_concurrency]
      lock_path = /var/lib/neutron/tmp
    配置ml2扩展:
      #vi /etc/neutron/plugins/ml2/ml2_conf.ini
    [ml2]
      type_drivers = flat,vlan,vxlan
      tenant_network_types = vxlan
      mechanism_drivers = linuxbridge,l2population
      extension_drivers = port_security
    [ml2_type_flat]
      flat_networks = provider
    [ml2_type_vxlan]
      vni_ranges = 1:1000
    [securitygroup]
      enable_ipset = True
    配置网桥:
      #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [linux_bridge]
      physical_interface_mappings = provider:使用的网卡名称
    [vxlan]
      enable_vxlan = True
      local_ip = OVERLAY_INTERFACE_IP_ADDRESS
      l2_population = True
    [securitygroup]
      enable_security_group = True
      firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    配置3层网络:
      #vi /etc/neutron/l3_agent.ini
    [DEFAULT]
      interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
    配置dhcp:
      #vi /etc/neutron/dhcp_agent.ini
    [DEFAULT]
      interface_driver = neutron.agent.linux.interface.BridgeInterfaceDriver
      dhcp_driver = neutron.agent.linux.dhcp.Dnsmasq
      enable_isolated_metadata = True
    配置metadata agent
      #vi /etc/neutron/metadata_agent.ini
    [DEFAULT]
      nova_metadata_ip = controller
      metadata_proxy_shared_secret = METADATA_SECRET
    #vi /etc/nova/nova.conf
    [neutron]
      url =
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx
      service_metadata_proxy = True
      metadata_proxy_shared_secret = METADATA_SECRET
    创制扩张连接:
      ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini
    启动:
      #systemctl restart openstack-nova-api.service
      #systemctl enable neutron-server.service
        neutron-linuxbridge-agent.service neutron-dhcp-agent.service
        neutron-metadata-agent.service
      #systemctl start neutron-server.service
        neutron-linuxbridge-agent.service neutron-dhcp-agent.service
        neutron-metadata-agent.service
         # systemctl enable neutron-l3-agent.service
      #systemctl start neutron-l3-agent.service  

六:Dashboard

5.2装置并配置计算节点

      #yum install openstack-neutron-linuxbridge ebtables ipset
      #vi  /etc/neutron/neutron.conf
    [DEFAULT]
      rpc_backend = rabbit
      auth_strategy = keystone
    [oslo_messaging_rabbit]
      rabbit_host = controller
      rabbit_userid = openstack
      rabbit_password = RABBIT_PASS
    [keystone_authtoken]
      auth_uri =
      auth_url =
      memcached_servers = controller:11211
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      project_name = service
      username = neutron
      password = xxxx
    [oslo_concurrency]
      lock_path = /var/lib/neutron/tmp
    配置vxlan
      #vi /etc/neutron/plugins/ml2/linuxbridge_agent.ini
    [linux_bridge]
      physical_interface_mappings = provider:PROVIDER_INTERFACE_NAME
    [vxlan]
      enable_vxlan = True
      local_ip = OVERLAY_INTERFACE_IP_ADDRESS
      l2_population = True
    [securitygroup]
      enable_security_group = True
      firewall_driver = neutron.agent.linux.iptables_firewall.IptablesFirewallDriver
    #vi /etc/nova/nova.conf
    [neutron]
      url =
      auth_url =
      auth_type = password
      project_domain_name = default
      user_domain_name = default
      region_name = RegionOne
      project_name = service
      username = neutron
      password = xxxx
    启动:
      #systemctl restart openstack-nova-compute.service
      #systemctl enable neutron-linuxbridge-agent.service
      #systemctl enable neutron-linuxbridge-agent.service

6.1配置

#yum install openstack-dashboard
  #vi /etc/openstack-dashboard/local_settings

 OPENSTACK_HOST = "controller"
     ALLOWED_HOSTS = ['one.example.com', 'two.example.com']

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
    'default': {
   'BACKEND':  'django.core.cache.backends.memcached.MemcachedCache',
      'LOCATION': 'controller:11211',
    }
   }
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
      OPENSTACK_API_VERSIONS = {
        "identity": 3,
        "image": 2,
        "volume": 2,
        }
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "Default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
OPENSTACK_NEUTRON_NETWORK = {

    'enable_router': False,

    'enable_quotas': False,

    'enable_distributed_router': False,

    'enable_ha_router': False,

    'enable_lb': False,

    'enable_firewall': False,

    'enable_vpn': False,

    'enable_fip_topology_check': False,

}

TIME_ZONE = "TIME_ZONE"

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

启动:
  #systemctl restart httpd.service memcached.service

5.3验证

     运维情形变量:
      #. admin-openrc
      #neutron ext-list
      输出平时就可以

6.2登录

在网页上输入网站

域:default

用户名:admin或者demo

密码:本身安装的

必赢娱乐网址 32

 

                                              图6.1 登入页面

      

 

六:Dashboard

6.1配置

    #yum install openstack-dashboard
    #vi /etc/openstack-dashboard/local_settings
        OPENSTACK_HOST = "controller"
        ALLOWED_HOSTS = ['*', ]
       SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
      CACHES = {
        'default': {
      'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
      'LOCATION': 'controller:11211',
      }
      }
      OPENSTACK_KEYSTONE_URL = "" % OPENSTACK_HOST
      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
      OPENSTACK_API_VERSIONS = {
        "identity": 3,
        "image": 2,
        "volume": 2,
        }
      OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
      OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
    启动:
    #systemctl restart httpd.service memcached.service

 

6.2登录

             在网页上输入网站

             域:default

             用户名:admin或者demo

             密码:自个儿安装的

         必赢娱乐网址 33

    登入后会开掘并发转手页面:此处可看中的坑四。

           必赢娱乐网址 34

          依照坑四消除后会出现转手页面,就能够玩了,但如如若台式机会运转相当的慢,等有了服务器继续玩吧!!

        必赢娱乐网址 35

 

 

           本文网站:

           配置完后可尝试已经写好的台本一键安装情势:

 

本文由亚洲必赢娱乐游戏发布于必赢娱乐网址,转载请注明出处:mitaka配置详解必赢娱乐网址,ocata配置详解

TAG标签: 必赢娱乐网址
Ctrl+D 将本页面保存为书签,全面了解最新资讯,方便快捷。