标签:file doc 处理 under 文件 rem eof war force
# 关闭防火墙
systemctl stop firewalld
systemctl disable firewalld
# 关闭selinux
setenforce 0
sed -i --follow-symlinks ‘s/SELINUX=enforcing/SELINUX=disabled/g‘ /etc/sysconfig/selinux
sudo useradd -s /bin/bash -d /opt/stack -m stack
echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
git clone https://git.openstack.org/openstack-dev/devstack
yum install epel-release
yum install -y python-pip
yum install -y git
mkdir /opt/stack/.pip cat > /opt/stack/.pip/pip.conf << EOF
[global]
index-url = https://pypi.mirrors.ustc.edu.cn/simple/
EOF
复制/opt/stack/devstack/samples里面的local.conf到/opt/stack/devstack/,
修改第一段设置统一的密码,
添加第二段设置devstack的下载源为国内的trystack.cn
ADMIN_PASSWORD=yourpassword
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
HOST_IP=192.168.122.10
# use TryStack git mirror
GIT_BASE=http://git.trystack.cn
NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git
原先的github下载地址不可用了,安装过程会报错,自己手工下载一个放到/opt/stack/devstack/files下,下载地址https://storage.googleapis.com/etcd/v3.2.17/etcd-v3.2.17-linux-amd64.tar.gz
su - stack
/opt/stack/devstack/stack.sh
a. Command "python setup.py egg_info" failed with error code 1 in /opt/stack/cinder/
方法: sudo pip install -U setuptools
8. 安装完成
cd /opt/stack/devstack
source openrc admin
openstack user list
-bash-4.2$ source openrc admin
WARNING: setting legacy OS_TENANT_NAME to support cli tools.
-bash-4.2$ openstack user list
+----------------------------------+-----------+
| ID | Name |
+----------------------------------+-----------+
| a4e9e837c0e544f698ff61cc1093bba6 | admin |
| 3f9b6b23fe564890ba5f834e9faa7d3d | demo |
| 42216eb1406140c88bc0d7b487cc5fa2 | alt_demo |
| 5be3f22962254e41acb1991280607be3 | nova |
| 74cd9120c4e8419a9292ea90726fcc84 | glance |
| 24bd859952944d0694f487d97b388f85 | cinder |
| d77079fd93214e50a01f77263cc6aad2 | neutron |
| aa0cc9ee469c444097608b22f8074ce8 | placement |
+----------------------------------+-----------+
9. 安装成功的信息
=========================
DevStack Component Timing
(times are in seconds)
=========================
run_process 52
test_with_retry 7
pip_install 605
osc 437
wait_for_service 30
yum_install 84
dbsync 54
-------------------------
Unaccounted time 984
=========================
Total runtime 2253
This is your host IP address: 10.0.3.144
This is your host IPv6 address: ::1
Horizon is now available at http://10.0.3.144/dashboard
Keystone is serving at http://10.0.3.144/identity/
The default users are: admin and demo
The password: 312
WARNING:
Using lib/neutron-legacy is deprecated, and it will be removed in the future
Services are running under systemd unit files.
For more information see:
https://docs.openstack.org/devstack/latest/systemd.html
DevStack Version: train
Change: 5ffdd616e782441fc6463f85045a681106e6f8d1 Merge "End support for changing cinder periodic_interval" 2019-06-04 22:08:27 +0000
OS Version: CentOS 7.3.1611 Core
标签:file doc 处理 under 文件 rem eof war force
原文地址:https://www.cnblogs.com/longchang/p/10981248.html