码迷,mamicode.com
首页 > 其他好文 > 详细

Centos7.3 安装devstack stein版本

时间:2019-06-05 19:40:18      阅读:306      评论:0      收藏:0      [点我收藏+]

标签:file   doc   处理   under   文件   rem   eof   war   force   

1. 系统准备

# 关闭防火墙

systemctl stop firewalld

systemctl disable firewalld

# 关闭selinux

setenforce 0

sed -i --follow-symlinks ‘s/SELINUX=enforcing/SELINUX=disabled/g‘ /etc/sysconfig/selinux

2. 创建stack用户,下载devstack

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

3. 安装rhel-epel、python-pip,git,配置中科大pip源, 如果使用豆瓣源的话,pbr-5.2.1版本下载不了。

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

4. 修改local.conf配置文件

复制/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

5. 手工下载etcd

原先的github下载地址不可用了,安装过程会报错,自己手工下载一个放到/opt/stack/devstack/files下,下载地址https://storage.googleapis.com/etcd/v3.2.17/etcd-v3.2.17-linux-amd64.tar.gz

6. 安装devstack

su - stack

/opt/stack/devstack/stack.sh

7. 报错处理

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



 

Centos7.3 安装devstack stein版本

标签:file   doc   处理   under   文件   rem   eof   war   force   

原文地址:https://www.cnblogs.com/longchang/p/10981248.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!