“OpenStack部署(2023年版)”的版本间的差异

来自CloudWiki
跳转至: 导航搜索
模拟登陆验证
第708行: 第708行:
  
 
export -p
 
export -p
 +
 +
<nowiki>declare -x HISTCONTROL="ignoredups"
 +
declare -x HISTSIZE="1000"
 +
declare -x HOME="/root"
 +
declare -x HOSTNAME="controller"
 +
declare -x LANG="en_US.UTF-8"
 +
declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s"
 +
declare -x LOGNAME="root"
 +
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"
 +
declare -x MAIL="/var/spool/mail/root"
 +
declare -x OLDPWD="/etc/yum.repos.d"
 +
declare -x OS_AUTH_URL="http://controller:5000/v3"
 +
declare -x OS_IDENTITY_API_VERSION="3"
 +
declare -x OS_IMAGE_API_VERSION="2"
 +
declare -x OS_PASSWORD="000000"
 +
declare -x OS_PROJECT_DOMAIN_NAME="Default"
 +
declare -x OS_PROJECT_NAME="admin"
 +
declare -x OS_USERNAME="admin"
 +
declare -x OS_USER_DOMAIN_NAME="Default"
 +
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"
 +
declare -x PWD="/root"
 +
declare -x SHELL="/bin/bash"
 +
declare -x SHLVL="1"
 +
declare -x SSH_CLIENT="192.168.100.1 56815 22"
 +
declare -x SSH_CONNECTION="192.168.100.1 56815 192.168.100.10 22"
 +
declare -x SSH_TTY="/dev/pts/0"
 +
declare -x TERM="vt100"
 +
declare -x USER="root"
 +
declare -x XDG_RUNTIME_DIR="/run/user/0"
 +
declare -x XDG_SESSION_ID="33"</nowiki>
 +
 +
===检测Keystone服务===
 +
 +
openstack project create --domain default project
 +
 +
openstack project list

2023年11月23日 (四) 04:18的版本

基本信息

controller 192.168.100.10 192.168.200.10

compute 192.168.100.20 192.168.200.20

检查连通性

控制节点:

ping计算节点的内外网IP地址:

  ping 192.168.100.20
ping 192.168.200.20


计算节点:

ping 控制节点的内外网IP地址:

 
 ping 192.168.100.10
ping 192.168.200.10

能ping通 打上勾。

主机名管理与域名解析

主机名管理

控制节点:

查看主机名:

hostname

更改主机名:

hostnamectl set-hostname controller

exit 重新登陆之后生效

计算节点:

查看主机名:

hostname

更改主机名:

hostnamectl set-hostname compute

exit 重新登陆之后生效

本地域名解析

控制节点:

vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.10 controller
192.168.100.20 compute

计算节点:

vi /etc/hosts

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.100.10 controller
192.168.100.20 compute

防火墙管理

禁用SELinux

控制节点&计算节点

vi /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

setenforce 0

getenforce

Permissive

当输出Permissive的时候 说明操作成功。

停用Firewall防火墙

控制节点&计算节点:

systemctl status firewalld

● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2023-11-01 23:40:10 CST; 15h ago
     Docs: man:firewalld(1)
 Main PID: 709 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─709 /usr/bin/python2 -Es /usr/sbin/firewalld --nofork --...

Nov 01 23:40:10 controller systemd[1]: Starting firewalld - dynamic ....
Nov 01 23:40:10 controller systemd[1]: Started firewalld - dynamic f....
Nov 01 23:40:11 controller firewalld[709]: WARNING: AllowZoneDrifting...
Hint: Some lines were ellipsized, use -l to show in full.

[root@controller ~]# systemctl disable firewalld

[root@controller ~]# systemctl stop firewalld

测试连通性

控制节点&计算节点

在控制节点执行:

ping controller

ping compute

在计算节点执行:

ping controller

ping compute

搭建本地软件仓库

控制节点中配置yum源

上传镜像文件 openStack-train.iso至/opt目录下

挂载镜像文件

cd /opt

[root@controller opt]# mkdir openstack

[root@controller opt]# mount openStack-train.iso /opt/openstack/

ls /opt/openstack

  base extras  train  updates  virt

如果显示以上 表示挂载成功。

备份原有配置文件:

[root@controller ~]# cd /etc/yum.repos.d/

[root@controller yum.repos.d]# ls

CentOS-Base.repo            CentOS-OpenStack-train.repo
CentOS-Ceph-Nautilus.repo   CentOS-QEMU-EV.repo
CentOS-CR.repo              CentOS-Sources.repo
CentOS-Debuginfo.repo       CentOS-Storage-common.repo
CentOS-fasttrack.repo       CentOS-Vault.repo
CentOS-Media.repo           CentOS-x86_64-kernel.repo
CentOS-NFS-Ganesha-28.repo

mkdir bak

mv *.repo bak

编辑YUM源:

vi OpenStack.repo:

[base]
name=base
baseurl=file:///opt/openstack/base/
enable=1
gpgcheck=0
[extras]
name=extras
baseurl=file:///opt/openstack/extras/
enable=1
gpgcheck=0
[updates]
name=updates
baseurl=file:///opt/openstack/updates/
enable=1
gpgcheck=0
[train]
name=train
baseurl=file:///opt/openstack/train/
enable=1
gpgcheck=0
[virt]
name=virt
baseurl=file:///opt/openstack/virt/
enable=1
gpgcheck=0

清除并重建缓存:

yum clean all

yum makecache

yum repolist

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
repo id                                             repo name                                         status
base                                                base                                              10,039
extras                                              base                                                 500
train                                               base                                               3,168
updates                                             base                                               3,182
virt                                                base                                                  63
repolist: 16,952

在控制节点中配置FTP

yum -y install vsftpd

vi /etc/vsftpd/vsftpd.conf

anon_root=/opt

配置FTP时,把anon_root项 放在 anonymous_enable=YES 下面一行

[root@controller ~]# systemctl start vsftpd

[root@controller ~]# systemctl enable vsftpd

计算节点配置上配置YUM源

[root@compute ~]# cd /etc/yum.repos.d

[root@compute yum.repos.d]# mkdir bak

[root@compute yum.repos.d]# mv *.repo bak

[root@compute yum.repos.d]#vi OpenStack.repo

[base]
name=base
baseurl=ftp://controller/openstack/base/
enable=1
gpgcheck=0
[extras]
name=extras
baseurl=ftp://controller/openstack/extras/
enable=1
gpgcheck=0
[updates]
name=updates
baseurl=ftp://controller/openstack/updates/
enable=1
gpgcheck=0
[train]
name=train
baseurl=ftp://controller//openstack/train/
enable=1
gpgcheck=0
[virt]
name=virt
baseurl=ftp://controller//openstack/virt/
enable=1
gpgcheck=0

yum clean all

yum makecache

yum repolist

安装Chrony时间控制服务

控制节点安装Chrony

yum -y update

yum -y install chrony


配置文件:

vi /etc/chrony.conf

把原先server的4行都删除,

server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

增加:

server ntp.aliyun.com iburst
local stratum 1
allow 192.168.100.0/24

重启服务:

systemctl restart chronyd

设置开机启动:

systemctl enable chronyd


查看当前客户端与NTP连接情况:

chronyc sources

210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* 203.107.6.88                  2   6    17    14   -688us[-2639us] +/-   25ms

计算节点安装Chrony

yum -y update

yum -y install chrony


配置文件:

vi /etc/chrony.conf

把原先server的4行都删除,

server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

增加:

server controller iburst

[root@compute yum.repos.d]# systemctl restart chronyd

[root@compute yum.repos.d]# chronyc sources

210 Number of sources = 1
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^* controller                    3   6    17     7    +64us[  +67us] +/-   24ms


安装OpenStack云计算平台基础框架

云计算平台基础架构的作用:OpenStack提供了一个云平台框架,它包含很多独立的组件。在组件安装前需要先将这个软件框架安装起来,以后组件才能像搭积木一样一个一个往里面放。


控制节点&计算节点

yum -y install centos-release-openstack-train

rm -rf /etc/yum.repos.d/C*.repo

ls /etc/yum.repos.d

yum -y upgrade

yum clean all

yum makecache

rm -rf /etc/yum.repos.d/C*.repo

框架安装完成以后还需要安装它的一个客户端用于管理OpenStack云平台。该客户端主要提供了“openstack”这个命令,它集成了几乎所有对OpenStack云平台的管理功能。如下安装该客户端:

yum -y install python-openstackclient

yum -y install openstack-selinux

openstack --version

 openstack 4.0.2

安装MariaDB数据库

数据库服务在OpenStack中是非常重要的基础服务,OpenStack云计算平台的每个核心组件都会使用到它来存储相关数据并实现快速检索等功能 MariaDB是一个采用Maria存储引擎的MySQL数据库的分支版本。在OpenStack中MariaDB被用于存储用户、角色、网络等信息.


只在控制节点进行:

yum -y install mariadb-server python2-PyMySQL

配置数据库

[root@controller ~]# vi /etc/my.cnf.d/openstack.cnf

[mysqld]
bind-address = 192.168.100.10
default-storage-engine = innodb
innodb_file_per_table = on
max_connections =4096
collation-server = utf8_general_ci
character-set-server = utf8

[root@controller ~]# systemctl enable mariadb

Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/mysqld.service to /usr/lib/systemd/system/mariadb.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

[root@controller ~]# systemctl start mariadb


初始化数据库

[root@controller ~]# mysql_secure_installation



NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.

Enter current password for root (enter for none): 
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.

Set root password? [Y/n] Y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.

Remove anonymous users? [Y/n] y^H
Remove anonymous users? [Y/n] Y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] Y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.

Remove test database and access to it? [Y/n] Y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.

Reload privilege tables now? [Y/n] Y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!

登陆数据库验证

[root@controller ~]# mysql -uroot -p000000

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.3.20-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

输入quit回车退出。

安装RabbitMQ消息队列服务

OpenStack各个组件之间就是通过消息队列进行相互通信的。市面上存在多种消息队列应用,其中RabbitMQ是一个开源的、应用广泛的消息服务系统,通常使用它来为OpenStack提供消息队列服务。


只在控制节点上进行安装与设置:

yum -y install rabbitmq-server

[root@controller opt]# systemctl enable rabbitmq-server

[root@controller opt]# systemctl start rabbitmq-server

添加用户并设置用户权限:

rabbitmqctl add_user rabbitmq 000000

rabbitmqctl set_permissions rabbitmq ".*" ".*" ".*"

netstat -tnlup|grep 5672
tcp        0      0 0.0.0.0:25672           0.0.0.0:*               LISTEN      959/beam.smp        
tcp6       0      0 :::5672                 :::*                    LISTEN      959/beam.smp

如果netstat命令使用不了,可以执行 yum -y install net-tools 进行安装

rabbitmqctl list_users

Listing users
rabbitmq        []
guest   [administrator]

安装Memcached缓存服务

经常用到的数据先存放到内存缓存中,使用时可以直接从内存缓存中读取,由于内存缓存比硬盘的读取速度快很多,因此可以大大提高读取速度。


只在控制节点上进行安装与设置:

yum -y install memcached python-memcached

将配置文件内容“OPTIONS"参数的值改为以下内容:

vi /etc/sysconfig/memcached

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

[root@controller opt]# systemctl enable memcached

[root@controller opt]# systemctl start memcached

netstat -tnlup|grep 11211

tcp        0      0 192.168.100.10:11211    0.0.0.0:*               LISTEN      956/memcached       
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN      956/memcached       
tcp6       0      0 ::1:11211               :::*                    LISTEN      956/memcached


[root@controller ~]# telnet 192.168.100.10 11211

Trying 192.168.100.10...
Connected to 192.168.100.10.
Escape character is '^]'.
stats
STAT pid 956
STAT uptime 30284
STAT time 1700176112
STAT version 1.5.6
STAT libevent 2.0.21-stable
STAT pointer_size 64
STAT rusage_user 5.050548
STAT rusage_system 3.509942
STAT max_connections 1024

安装etcd分布式键值对存储系统

ETCD服务:为了快速实现服务发现,需要一个服务发现组件用于存储服务提供者的相关配置及注册信息,使用服务的消费者将从该服务发现组件中获得相关信息后再去服务提供者处使用服务。etcd是一个开源项目,它的目标是构建一个高可用的分布式键-值(Key-Value)数据库用于配置共享和服务发现

只在控制节点上进行安装与设置:

yum -y install etcd

vi /etc/etcd/etcd.conf


ETCD_DATA_DIR="/var/lib/etcd/default.etcd"
ETCD_LISTEN_PEER_URLS="http://192.168.100.10:2380"
ETCD_LISTEN_CLIENT_URLS="http://192.168.100.10:2379,http://127.0.0.1:2379"
ETCD_NAME="controller"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://192.168.100.10:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://192.168.100.10:2379"
ETCD_INITIAL_CLUSTER="controller=http://192.168.100.10:2380"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster-01"
ETCD_INITIAL_CLUSTER_STATE="new"

grep -v '^#' /etc/etcd/etcd.conf检查

systemctl enable etcd

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

systemctl start etcd

netstat -tnlup|grep etcd

tcp        0      0 192.168.100.10:2379     0.0.0.0:*               LISTEN      3275/etcd           
tcp        0      0 127.0.0.1:2379          0.0.0.0:*               LISTEN      3275/etcd           
tcp        0      0 192.168.100.10:2380     0.0.0.0:*               LISTEN      3275/etcd

安装KeyStone

安装KeyStone软件包

yum -y install openstack-keystone httpd mod_wsgi

cat /etc/passwd|grep keystone

keystone:x:163:163:OpenStack Keystone Daemons:/var/lib/keystone:/sbin/nologin

cat /etc/group|grep keystone

keystone:x:163:

创建Keystone的数据库并授权

mysql -uroot -p000000

CREATE DATABASE keystone;

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'localhost' IDENTIFIED BY '000000';

Query OK, 0 rows affected (0.001 sec)

MariaDB [(none)]> GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'%' IDENTIFIED BY '000000';

Query OK, 0 rows affected (0.001 sec)

输入quit退出。

修改keystone配置文件

vi /etc/keystone/keystone.conf

修改这两行代码,如果前面有注释,取消注释

connection = mysql+pymysql://keystone:000000@controller/keystone
provider = fernet

初始化KeyStone数据库

同步数据库:

su keystone -s /bin/sh -c "keystone-manage db_sync"

mysql -uroot -p000000

MariaDB [(none)]> use keystone;

Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed

MariaDB [keystone]> show tables;

 +------------------------------------+
| Tables_in_keystone                 |
+------------------------------------+
| access_rule                        |
| access_token                       |
| application_credential             |
| application_credential_access_rule |
| application_credential_role        |
| assignment  

KeyStone组件初始化

初始化Fernet密钥库:

keystone-manage fernet_setup --keystone-user keystone --keystone-group keystone
keystone-manage credential_setup --keystone-user keystone --keystone-group keystone

初始化用户身份认证信息:

keystone-manage bootstrap --bootstrap-password 000000 --bootstrap-admin-url http://controller:5000/v3 --bootstrap-internal-url http://controller:5000/v3 --bootstrap-public-url http://controller:5000/v3 --bootstrap-region-id RegionOne

配置Web服务之增加WSGI支持:

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

配置Web服务之配置启动Apache服务:

vi /etc/httpd/conf/httpd.conf

增加:

ServerName controller

systemctl enable httpd

systemctl start httpd

模拟登陆验证

cd

vi admin-login

export OS_USERNAME=admin
export OS_PASSWORD=000000
export OS_PROJECT_NAME=admin
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_DOMAIN_NAME=Default
export OS_AUTH_URL=http://controller:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

source admin-login

export -p

declare -x HISTCONTROL="ignoredups"
declare -x HISTSIZE="1000"
declare -x HOME="/root"
declare -x HOSTNAME="controller"
declare -x LANG="en_US.UTF-8"
declare -x LESSOPEN="||/usr/bin/lesspipe.sh %s"
declare -x LOGNAME="root"
declare -x LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:"
declare -x MAIL="/var/spool/mail/root"
declare -x OLDPWD="/etc/yum.repos.d"
declare -x OS_AUTH_URL="http://controller:5000/v3"
declare -x OS_IDENTITY_API_VERSION="3"
declare -x OS_IMAGE_API_VERSION="2"
declare -x OS_PASSWORD="000000"
declare -x OS_PROJECT_DOMAIN_NAME="Default"
declare -x OS_PROJECT_NAME="admin"
declare -x OS_USERNAME="admin"
declare -x OS_USER_DOMAIN_NAME="Default"
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin"
declare -x PWD="/root"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x SSH_CLIENT="192.168.100.1 56815 22"
declare -x SSH_CONNECTION="192.168.100.1 56815 192.168.100.10 22"
declare -x SSH_TTY="/dev/pts/0"
declare -x TERM="vt100"
declare -x USER="root"
declare -x XDG_RUNTIME_DIR="/run/user/0"
declare -x XDG_SESSION_ID="33"

检测Keystone服务

openstack project create --domain default project

openstack project list