内容简介:Ubuntu16.04.5安装详见:本文openstack的控制节点和计算节点都是esxi上新建的虚机,具体配置如下:控制节点配置:
Ubuntu16.04.5安装详见: http://blog.51cto.com/3241766/2323927
本文openstack的控制节点和计算节点都是esxi上新建的虚机,具体配置如下:
控制节点配置:
计算节点配置:
控制节点和计算节点安装步骤相同,只是第6步中的配置不同,实际安装过程中应先装控制节点再装计算节点,本文以计算节点安装为例记录搭建过程。
1.pip安装
root@openstack-computer:~# pip The program 'pip' is currently not installed. You can install it by typing: apt install python-pip root@openstack-computer:~# apt install -y python-pip
2.代码下载
root@openstack-computer:~# git clone https://git.openstack.org/openstack-dev/devstack -b stable/pike
3.创建用户stack
root@openstack-computer:~# ll total 36 drwx------ 4 root root 4096 Nov 29 17:02 ./ drwxr-xr-x 23 root root 4096 Nov 29 16:32 ../ -rw------- 1 root root 49 Nov 29 16:47 .bash_history -rw-r--r-- 1 root root 3106 Oct 23 2015 .bashrc drwx------ 2 root root 4096 Nov 29 16:47 .cache/ drwxr-xr-x 17 root root 4096 Nov 29 17:02 devstack/ -rw-r--r-- 1 root root 148 Aug 17 2015 .profile -rw------- 1 root root 3413 Nov 29 16:51 .viminfo -rw------- 1 root root 128 Nov 29 16:47 .Xauthority root@openstack-computer:~# devstack/tools/create-stack-user.sh Creating a group called stack Creating a user called stack Giving stack user passwordless sudo privileges
4.修改pip源
root用户修改pip源
root@openstack-computer:~# mkdir ~/.pip root@openstack-computer:~# view ~/.pip/pip.conf [global] trusted-host=mirrors.aliyun.com index-url=https://mirrors.aliyun.com/pypi/simple/
stack用户修改pip源
root@openstack-computer:~# su - stack stack@openstack-computer:~$ mkdir ~/.pip stack@openstack-computer:~$ view ~/.pip/pip.conf [global] trusted-host=mirrors.aliyun.com index-url=https://mirrors.aliyun.com/pypi/simple/
5.移动devstack目录
将devstack目录由root的家目录移至/opt/stack
root@openstack-computer:~# mv devstack /opt/stack root@openstack-computer:~# chown -R stack:stack /opt/stack/devstack
6.新建配置文件
控制节点:
[[local|localrc]] MULTI_HOST=true # management & api network HOST_IP=172.27.34.37 LOGFILE=/opt/stack/logs/stack.sh.log # Credentials ADMIN_PASSWORD=admin MYSQL_PASSWORD=secret RABBIT_PASSWORD=secret SERVICE_PASSWORD=secret SERVICE_TOKEN=abcdefghijklmnopqrstuvwxyz # enable neutron-ml2-vlan disable_service n-net enable_service q-svc,q-agt,q-dhcp,q-l3,q-meta,neutron,q-lbaas,q-fwaas Q_AGENT=linuxbridge ENABLE_TENANT_VLANS=True TENANT_VLAN_RANGE=3001:4000 PHYSICAL_NETWORK=default LOG_COLOR=True LOGDIR=$DEST/logs SCREEN_LOGDIR=$LOGDIR/screen # 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
控制节点ip为:172.27.34.37,admin密码为admin,后面web登陆会用到
计算节点:
stack@openstack-computer:~$ view /opt/stack/devstack/local.conf [[local|localrc]] MULTI_HOST=true # management & api network HOST_IP=172.27.34.38 # Credentials ADMIN_PASSWORD=admin MYSQL_PASSWORD=secret RABBIT_PASSWORD=secret SERVICE_PASSWORD=secret SERVICE_TOKEN=abcdefghijklmnopqrstuvwxyz # Service information SERVICE_HOST=192.168.104.10 MYSQL_HOST=$SERVICE_HOST RABBIT_HOST=$SERVICE_HOST GLANCE_HOSTPORT=$SERVICE_HOST:9292 Q_HOST=$SERVICE_HOST KEYSTONE_AUTH_HOST=$SERVICE_HOST KEYSTONE_SERVICE_HOST=$SERVICE_HOST ENABLED_SERVICES=n-cpu,q-agt,neutron Q_AGENT=linuxbridge ENABLE_TENANT_VLANS=True TENANT_VLAN_RANGE=3001:4000 PHYSICAL_NETWORK=default # vnc config NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=$HOST_IP VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN LOG_COLOR=True LOGDIR=$DEST/logs SCREEN_LOGDIR=$LOGDIR/screen # 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 enable_service placement-api
HOST_IP=172.27.34.38为计算节点ip
7.部署openstack
stack@openstack-computer:~/devstack$ ./stack.sh
控制节点安装完成:
计算节点安装完成:
登陆web
地址为:http://172.27.34.37,用户名密码为配置文件中的admin/admin
至此完成openstack安装。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- SpringBoot介绍及常用的搭建方式
- 微前端的方式搭建类单页应用
- 用微前端的方式搭建类单页应用
- windows下三种web服务器搭建方式
- BootDo 1.4.0 发布,sql 注解方式更改成 xml 方式
- 正则表达式创建方式的区别及编写简单的正则方式(js学习总结)
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Introduction to Algorithms, 3rd Edition
Thomas H. Cormen、Charles E. Leiserson、Ronald L. Rivest、Clifford Stein / The MIT Press / 2009-7-31 / USD 94.00
Some books on algorithms are rigorous but incomplete; others cover masses of material but lack rigor. Introduction to Algorithms uniquely combines rigor and comprehensiveness. The book covers a broad ......一起来看看 《Introduction to Algorithms, 3rd Edition》 这本书的介绍吧!
RGB HSV 转换
RGB HSV 互转工具
HSV CMYK 转换工具
HSV CMYK互换工具