素材巴巴 > 程序开发 >

centos7下安装openstack(newton版)

程序开发 2023-09-03 11:57:12

一直想学习下openstakc的源代码,期间用packstack安装成功过,但是devstack一直安装失败,终于在试验了很多次之后,终于成功了!踩坑无数。。。

环境准备:
centos7.3.1611最小化安装(16G内存、60G硬盘、因为直接在服务器上开虚拟机测试的,内存调到比较大,目测4G以上应该都没问题)
devstack版本:newton
openstack版本:newton

安装过程
一、准备工作
1.selinux、firewalld关闭

systemctl stop firewalld.service #停止firewall
 systemctl disable firewalld.service #禁止firewall开机启动

2.使用豆瓣pip源

mkdir -p ~/.pip
 vi ~/.pip/pip.conf
 [global]
 index-url = http://pypi.douban.com/simple/
 [install]
 trusted-host = pypi.douban.com

3.下载并安装EPEL

wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
 rpm -ivh epel-release-latest-7.noarch.rpm
 yum repolist      ##检查是否已添加至源列表

4.安装工具包

yum install -y Python-pip
 pip install --upgrade pip
 pip install -U os-testr 
 yum -y install bridge-utils  
 yum -y install net-tools  
 yum install -y git yum-utils

5.更新系统

yum update

二、开始安装
1.下载devstack

git clone https://github.com/openstack-dev/devstack.git -b stable/newton

此处有大坑!注意一定要使用 -b stable/newton 指定devstack版本(与要安装的openstack版本一致),否则基本上不会安装成功!
ps:我一开始下载devstack的时候,没有使用该选项,导致安装到keystone时,调用了未知的参数,一直失败。
2.创建stack用户,并切换至stack用户(devstack默认必须使用stack用户安装)

cd /home/devstack/tools/
 ./create-stack-user.sh
 chown -R stack:stack /home/devstack
 chmod 777 /opt/stack -R
 su stack

3.创建local.conf文件,这里参考了陈沙克老师博客中的配置。

[[local|localrc]]
 DEST=/opt/stack/newton
 # 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#OFFLINE=True
 #RECLONE=True
 RECLONE=no# Define images to be automatically downloaded during the DevStack built process.
 DOWNLOAD_DEFAULT_IMAGES=False
 IMAGE_URLS="http://images.trystack.cn/cirros/cirros-0.3.4-x86_64-disk.img"HOST_IP=192.168.129.120# Credentials
 DATABASE_PASSWORD=yourpass
 ADMIN_PASSWORD=yourpass
 SERVICE_PASSWORD=yourpass
 SERVICE_TOKEN=yourpass
 RABBIT_PASSWORD=yourpassHORIZON_BRANCH=stable/newton
 KEYSTONE_BRANCH=stable/newton
 NOVA_BRANCH=stable/newton
 NEUTRON_BRANCH=stable/newton
 GLANCE_BRANCH=stable/newton
 CINDER_BRANCH=stable/newton#keystone
 KEYSTONE_TOKEN_FORMAT=UUID##Heat
 HEAT_BRANCH=stable/newton
 enable_service h-eng h-api h-api-cfn h-api-cw## Swift
 SWIFT_BRANCH=stable/newton
 ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
 SWIFT_REPLICAS=1
 SWIFT_HASH=011688b44136573e209e# Enabling Neutron (network) Service
 disable_service n-net
 enable_service q-svc
 enable_service q-agt
 enable_service q-dhcp
 enable_service q-l3
 enable_service q-meta
 enable_service q-metering
 enable_service neutron## Neutron options
 Q_USE_SECGROUP=True
 FLOATING_RANGE="192.168.129.0/24"
 FIXED_RANGE="10.0.0.0/24"
 Q_FLOATING_ALLOCATION_POOL=start=192.168.129.200,end=192.168.129.249
 PUBLIC_NETWORK_GATEWAY="192.168.129.1"
 Q_L3_ENABLED=True
 PUBLIC_INTERFACE=eth0
 Q_USE_PROVIDERNET_FOR_PUBLIC=True
 OVS_PHYSICAL_BRIDGE=br-ex
 PUBLIC_BRIDGE=br-ex
 OVS_BRIDGE_MAPPINGS=public:br-ex# #VLAN configuration.
 Q_PLUGIN=ml2
 ENABLE_TENANT_VLANS=True# Logging
 LOGFILE=/opt/stack/logs/stack.sh.log
 VERBOSE=True
 LOG_COLOR=True
 SCREEN_LOGDIR=/opt/stack/logs

需要替换的内容是
1)换成你自己的ip地址

    HOST_IP=192.168.129.120

2)换成你自己ip地址的网段。

##你ip地址的网段
 FLOATING_RANGE="192.168.129.0/24" 
 ##该网段内的一个ip池,自己定一个开始地址和结束地址
 Q_FLOATING_ALLOCATION_POOL=start=192.168.129.200,end=192.168.129.249
 ##你ip地址的网关
 PUBLIC_NETWORK_GATEWAY="192.168.129.1"

需要注意的是:
配置文件中需指定,你要安装的openstack版本,并且与你的devstack版本一致。

HORIZON_BRANCH=stable/newton
 KEYSTONE_BRANCH=stable/newton
 NOVA_BRANCH=stable/newton
 NEUTRON_BRANCH=stable/newton
 GLANCE_BRANCH=stable/newton
 CINDER_BRANCH=stable/newton

4.开始安装

./stack

5.安装成功后,如果打不开dashboard,记得关闭下防火墙。

service iptables stop

6.查看安装记录

[root@localhost tools]# ./tools/info.sh 
 os|distro=rhel7
 os|vendor=CentOS
 os|release=7.3.1611
 git|cinder|stable/newton[908def6]
 git|glance|stable/newton[6d2a086]
 git|heat|stable/newton[0b87f3c]
 git|heat-cfntools|master[407f8a5]
 git|heat-templates|master[8dbb1e7]
 git|horizon|stable/newton[9dda5ad]
 git|keystone|stable/newton[5eba745]
 git|neutron|stable/newton[6b11276]
 git|nova|stable/newton[52a75c7]
 fatal: ref HEAD is not a symbolic ref
 git|noVNC|[0613d18]
 git|os-apply-config|master[89b0ba7]
 git|os-collect-config|master[7b8d598]
 git|os-refresh-config|master[03c34b5]
 git|requirements|stable/newton[e61e123]
 git|swift|stable/newton[80f550f]
 git|tempest|master[ec67196]
 pkg|memcached|1.4.33-2.el7
 pkg|mod_ssl|2.4.6-45.el7.centos.4
 pkg|MySQL-python|1.2.5-1.el7
 pkg|sqlite|3.7.17-8.el7
 pkg|fping|3.10-4.el7
 pkg|conntrack-tools|1.4.3-1.el7
 pkg|curl|7.29.0-35.el7.centos
 pkg|dnsmasq|2.66-21.el7
 pkg|dnsmasq-utils|2.66-21.el7
 pkg|ebtables|2.0.10-15.el7
 pkg|gawk|4.0.2-4.el7
 pkg|genisoimage|1.1.11-23.el7
 pkg|iptables|1.4.21-17.el7
 pkg|iputils|20160308-8.el7
 pkg|kpartx|0.4.9-99.el7_3.1
 pkg|libxml2-python|2.9.1-6.el7_2.3
 pkg|m2crypto|0.21.1-17.el7
 pkg|mysql-devel|package mysql-devel is not installed
 pkg|MySQL-python|1.2.5-1.el7
 pkg|numpy|package numpy is not installed
 pkg|parted|3.1-28.el7
 pkg|polkit|0.112-11.el7_3
 pkg|sqlite|3.7.17-8.el7
 pkg|sudo|1.8.6p7-21.el7_3
 pkg|cryptsetup|1.7.2-1.el7
 pkg|genisoimage|1.1.11-23.el7
 pkg|iscsi-initiator-utils|6.2.0.873-35.el7
 pkg|libosinfo|0.3.0-3.el7
 pkg|lvm2|2.02.166-1.el7_3.4
 pkg|sg3_utils|1.37-9.el7
 pkg|sysfsutils|2.1.0-16.el7
 pkg|numpy|package numpy is not installed
 pkg|iscsi-initiator-utils|6.2.0.873-35.el7
 pkg|lvm2|2.02.166-1.el7_3.4
 pkg|qemu-img|package qemu-img is not installed
 pkg|acl|2.2.51-12.el7
 pkg|dnsmasq|2.66-21.el7
 pkg|dnsmasq-utils|2.66-21.el7
 pkg|ebtables|2.0.10-15.el7
 pkg|iptables|1.4.21-17.el7
 pkg|iputils|20160308-8.el7
 pkg|mysql-devel|package mysql-devel is not installed
 pkg|MySQL-python|1.2.5-1.el7
 pkg|sqlite|3.7.17-8.el7
 pkg|sudo|1.8.6p7-21.el7_3
 pkg|ipset|6.19-6.el7
 pkg|conntrack-tools|1.4.3-1.el7
 pkg|keepalived|1.2.13-8.el7
 pkg|Django|package Django is not installed
 pkg|pcre-devel|8.32-15.el7_2.1
 pkg|pyxattr|0.5.1-5.el7
 pkg|dstat|0.7.2-12.el7
 pkg|curl|7.29.0-35.el7.centos
 pkg|liberasurecode-devel|1.4.0-1.el7
 pkg|memcached|1.4.33-2.el7
 pkg|pyxattr|0.5.1-5.el7
 pkg|sqlite|3.7.17-8.el7
 pkg|xfsprogs|4.5.0-9.el7_3
 pkg|xinetd|2.3.15-13.el7
 pip|alembic|0.8.7
 pip|amqp|1.4.9
 pip|anyjson|0.3.3
 pip|aodhclient|0.7.0
 pip|appdirs|1.4.0
 pip|astroid|1.3.8
 pip|automaton|1.4.0
 pip|Babel|2.3.4
 pip|backports.ssl-match-hostname|3.4.0.2
 pip|bandit|1.1.0
 pip|bashate|0.5.1
 pip|beautifulsoup4|4.5.1
 pip|blivet|0.61.15.59
 pip|boto|2.42.0
 pip|Brlapi|0.6.0
 pip|cachetools|1.1.6
 pip|castellan|0.4.0
 pip|cffi|1.7.0
 pip|chardet|2.2.1
 pip|http://git.trystack.cn/openstack/cinder.git|908def6bb993798146cccc1621a9cee18950629d
 pip|cliff|2.2.0
 pip|cmd2|0.6.8
 pip|colorama|0.3.7
 pip|configobj|4.7.2
 pip|configshell-fb|1.1.18
 pip|contextlib2|0.5.4
 pip|coverage|4.2
 pip|croniter|0.3.12
 pip|cryptography|1.5
 pip|cupshelpers|1.0
 pip|cursive|0.1.1
 pip|custodia|0.1.0
 pip|ddt|1.1.0
 pip|debtcollector|1.8.0
 pip|decorator|4.0.10
 pip|di|0.3
 pip|Django|1.8.14
 pip|django-appconf|1.0.2
 pip|django-babel|0.5.1
 pip|django-compressor|2.1
 pip|django-nose|1.4.4
 pip|django-openstack-auth|2.4.2
 pip|django-pyscss|2.0.2
 pip|dnspython|1.14.0
 pip|docutils|0.12
 pip|dogpile.cache|0.6.2
 pip|enum34|1.1.6
 pip|ethtool|0.8
 pip|eventlet|0.19.0
 pip|extras|1.0.0
 pip|fasteners|0.14.1
 pip|firstboot|19.5
 pip|fixtures|3.0.0
 pip|flake8|2.2.4
 pip|flake8-docstrings|0.2.1.post1
 pip|freezegun|0.3.7
 pip|fros|1.0
 pip|funcsigs|1.0.2
 pip|functools32|3.2.3.post2
 pip|futures|3.0.5
 pip|futurist|0.18.0
 pip|gabbi|1.24.0
 pip|gitdb|0.6.4
 pip|GitPython|2.0.8
 pip|http://git.trystack.cn/openstack/glance.git|6d2a08635f7c1b1bd7eb6050320e7128240b6a2d
 pip|glance-store|0.18.0
 pip|google-api-python-client|1.5.3
 pip|greenlet|0.4.10
 pip|gssapi|1.2.0
 pip|hacking|0.10.3
 pip|http://git.trystack.cn/openstack/heat.git|0b87f3c287d3954ea9ace85721b8eff18687fbcf
 pip|http://git.trystack.cn/openstack/horizon.git|9dda5ad25e2b31a834637f51ff6da6661755a34a
 pip|httplib2|0.9.2
 pip|idna|2.1
 pip|iniparse|0.4
 pip|initial-setup|0.3.9.36
 pip|ipaclient|4.4.0
 pip|ipaddress|1.0.16
 pip|ipalib|4.4.0
 pip|ipaplatform|4.4.0
 pip|ipapython|4.4.0
 pip|IPy|0.75
 pip|iso8601|0.1.11
 pip|javapackages|1.0.0
 pip|Jinja2|2.8
 pip|jsonpatch|1.14
 pip|jsonpath-rw|1.4.0
 pip|jsonpath-rw-ext|1.0.0
 pip|jsonpointer|1.10
 pip|jsonschema|2.5.1
 pip|jwcrypto|0.2.1
 pip|http://git.trystack.cn/openstack/keystone.git|5eba745d962412d0589da78a7e2c87d2cb0626d6
 pip|keystoneauth1|2.12.3
 pip|keystonemiddleware|4.9.1
 pip|kitchen|1.1.1
 pip|kmod|0.1
 pip|kombu|3.0.35
 pip|langtable|0.0.31
 pip|libvirt-python|2.1.0
 pip|linecache2|1.0.0
 pip|logilab-common|1.2.2
 pip|logutils|0.3.3
 pip|lxml|3.6.4
 pip|M2Crypto|0.21.1
 pip|Mako|1.0.4
 pip|MarkupSafe|0.23
 pip|mccabe|0.2.1
 pip|microversion-parse|0.1.4
 pip|mock|2.0.0
 pip|monotonic|1.2
 pip|mox3|0.18.0
 pip|msgpack-python|0.4.8
 pip|MySQL-python|1.2.5
 pip|netaddr|0.7.18
 pip|netifaces|0.10.5
 pip|networkx|1.11
 pip|http://git.trystack.cn/openstack/neutron.git|6b11276f58431a05bf099232a133cfdef1e8ce5f
 pip|neutron-lib|0.4.0
 pip|nodeenv|0.13.6
 pip|nose|1.3.7
 pip|nose-exclude|0.4.1
 pip|nosehtmloutput|0.0.5
 pip|nosexcover|1.0.10
 pip|http://git.trystack.cn/openstack/nova.git|52a75c7826a8b3e44e6e37d3bb17f68dcd73c82d
 pip|ntplib|0.3.2
 pip|numpy|1.11.1
 pip|oauth2client|3.0.0
 pip|oauthlib|1.1.2
 pip|openstack.nose-plugin|0.11
 pip|openstackdocstheme|1.5.0
 pip|openstacksdk|0.9.5
 pip|os-api-ref|1.0.0
 pip|os-brick|1.6.2
 pip|os-client-config|1.21.1
 pip|os-collect-config|5.1.0
 pip|os-testr|0.8.0
 pip|os-vif|1.2.1
 pip|os-win|1.2.1
 pip|osc-lib|1.1.0
 pip|oslo.cache|1.14.0
 pip|oslo.concurrency|3.14.0
 pip|oslo.config|3.17.1
 pip|oslo.context|2.9.0
 pip|oslo.db|4.13.5
 pip|oslo.i18n|3.9.0
 pip|oslo.log|3.16.0
 pip|oslo.messaging|5.10.1
 pip|oslo.middleware|3.19.0
 pip|oslo.policy|1.14.0
 pip|oslo.privsep|1.13.2
 pip|oslo.reports|1.14.0
 pip|oslo.rootwrap|5.1.1
 pip|oslo.serialization|2.13.0
 pip|oslo.service|1.16.0
 pip|oslo.utils|3.16.0
 pip|oslo.versionedobjects|1.17.0
 pip|oslo.vmware|2.14.0
 pip|oslosphinx|4.7.0
 pip|oslotest|2.10.0
 pip|osprofiler|1.4.0
 pip|ovs|2.5.0
 pip|packaging|16.8
 pip|paramiko|2.0.2
 pip|passlib|1.6.5
 pip|Paste|2.0.3
 pip|PasteDeploy|1.5.2
 pip|pathlib|1.0.1
 pip|pbr|1.10.0
 pip|pecan|1.1.2
 pip|pep257|0.7.0
 pip|pep8|1.5.7
 pip|perf|0.1
 pip|pika|0.10.0
 pip|pika-pool|0.1.3
 pip|Pint|0.7.2
 pip|pluggy|0.4.0
 pip|ply|3.9
 pip|policycoreutils-default-encoding|0.1
 pip|positional|1.1.1
 pip|prettytable|0.7.2
 pip|psutil|1.2.1
 pip|psycopg2|2.6.2
 pip|py|1.4.31
 pip|pyasn1|0.1.9
 pip|pyasn1-modules|0.0.8
 pip|pycadf|2.4.0
 pip|pycparser|2.14
 pip|pycrypto|2.6.1
 pip|pycups|1.9.63
 pip|pycurl|7.19.0
 pip|PyECLib|1.2.0
 pip|pyflakes|0.8.1
 pip|Pygments|2.1.3
 pip|pygobject|3.14.0
 pip|pygpgme|0.3
 pip|pyinotify|0.9.6
 pip|pykickstart|1.99.66.10
 pip|pyliblzma|0.5.3
 pip|pylint|1.4.5
 pip|PyMySQL|0.7.6
 pip|pyOpenSSL|16.1.0
 pip|pyparsing|2.1.10
 pip|pyparted|3.9
 pip|pysaml2|4.0.2
 pip|pyScss|1.3.4
 pip|pysendfile|2.0.1
 pip|pysmbc|1.0.13
 pip|PySocks|1.5.7
 pip|pytest|3.0.1
 pip|python-augeas|0.5.0
 pip|python-barbicanclient|4.0.1
 pip|python-ceilometerclient|2.6.2
 pip|python-cinderclient|1.9.0
 pip|python-dateutil|2.5.3
 pip|python-designateclient|2.3.0
 pip|python-dmidecode|3.10.13
 pip|python-editor|1.0.1
 pip|python-glanceclient|2.5.0
 pip|python-heatclient|1.5.0
 pip|python-ironicclient|1.7.1
 pip|python-keystoneclient|3.5.1
 pip|python-ldap|2.4.15
 pip|python-magnumclient|2.3.1
 pip|python-manilaclient|1.11.0
 pip|python-meh|0.25.2
 pip|python-memcached|1.58
 pip|python-mimeparse|1.5.2
 pip|python-mistralclient|2.1.2
 pip|python-monascaclient|1.2.0
 pip|python-neutronclient|6.0.0
 pip|python-novaclient|6.0.0
 pip|python-nss|0.16.0
 pip|python-openstackclient|3.2.1
 pip|python-saharaclient|0.18.0
 pip|python-senlinclient|1.0.0
 pip|python-subunit|1.2.0
 pip|python-swiftclient|3.1.0
 pip|python-troveclient|2.5.0
 pip|python-yubico|1.2.3
 pip|python-zaqarclient|1.2.0
 pip|pytz|2016.6.1
 pip|pyudev|0.15
 pip|pyusb|1.0.0b1
 pip|pyxattr|0.5.1
 pip|PyYAML|3.12
 pip|qpid-python|0.32.1
 pip|qrcode|5.0.1
 pip|rcssmin|1.0.6
 pip|reno|1.9.0
 pip|repoze.lru|0.6
 pip|repoze.who|2.3
 pip|requests|2.11.1
 pip|requests-mock|1.0.0
 pip|requestsexceptions|1.1.3
 pip|retrying|1.3.3
 pip|rfc3986|0.4.1
 pip|rjsmin|1.0.12
 pip|Routes|2.3.1
 pip|rsa|3.4.2
 pip|rtslib-fb|2.1.58
 pip|ryu|4.5
 pip|selenium|2.53.6
 pip|semantic-version|2.5.0
 pip|seobject|0.1
 pip|sepolicy|1.1
 pip|setroubleshoot|1.1
 pip|simplegeneric|0.8.1
 pip|simplejson|3.8.2
 pip|singledispatch|3.4.0.3
 pip|six|1.10.0
 pip|slip|0.4.0
 pip|slip.dbus|0.4.0
 pip|smmap|0.9.0
 pip|Sphinx|1.2.3
 pip|SQLAlchemy|1.0.14
 pip|sqlalchemy-migrate|0.10.0
 pip|sqlparse|0.2.1
 pip|SSSDConfig|1.14.0
 pip|stevedore|1.17.1
 pip|suds-jurko|0.6
 pip|http://git.trystack.cn/openstack/swift.git|80f550f80e3ff7e3ebd266dafe34c154c9caf861
 pip|targetcli-fb=|2.1.fb41
 pip|taskflow|2.6.0
 pip|tempest|12.1.0
 pip|tempest-lib|1.0.0
 pip|Tempita|0.5.2
 pip|termcolor|1.1.0
 pip|testrepository|0.0.20
 pip|testresources|2.0.1
 pip|testscenarios|0.5.0
 pip|testtools|2.2.0
 pip|tooz|1.43.0
 pip|tox|2.7.0
 pip|traceback2|1.4.0
 pip|unicodecsv|0.14.1
 pip|unittest2|1.1.0
 pip|uritemplate|0.6
 pip|urlgrabber|3.10
 pip|urllib3|1.16
 pip|urwid|1.1.1
 pip|virtualenv|15.0.3
 pip|voluptuous|0.9.3
 pip|waitress|1.0.0
 pip|warlock|1.2.0
 pip|WebOb|1.6.1
 pip|websockify|0.8.0
 pip|WebTest|2.0.23
 pip|wrapt|1.10.8
 pip|wsgi-intercept|1.3.1
 pip|WSME|0.8.0
 pip|xattr|0.8.0
 pip|XStatic|1.0.1
 pip|XStatic-Angular|1.4.10.1
 pip|XStatic-Angular-Bootstrap|0.11.0.8
 pip|XStatic-Angular-FileUpload|12.0.4.0
 pip|XStatic-Angular-Gettext|2.1.0.2
 pip|XStatic-Angular-lrdragndrop|1.0.2.2
 pip|XStatic-Angular-Schema-Form|0.8.13.0
 pip|XStatic-Bootstrap-Datepicker|1.3.1.0
 pip|XStatic-Bootstrap-SCSS|3.3.7.1
 pip|XStatic-bootswatch|3.3.6.0
 pip|XStatic-D3|3.1.6.2
 pip|XStatic-Font-Awesome|4.5.0.0
 pip|XStatic-Hogan|2.0.0.2
 pip|XStatic-Jasmine|2.4.1.1
 pip|XStatic-jQuery|1.10.2.1
 pip|XStatic-JQuery-Migrate|1.2.1.1
 pip|XStatic-jquery-ui|1.11.0.1
 pip|XStatic-JQuery.quicksearch|2.0.3.1
 pip|XStatic-JQuery.TableSorter|2.14.5.1
 pip|XStatic-JSEncrypt|2.0.0.2
 pip|XStatic-mdi|1.4.57.0
 pip|XStatic-objectpath|1.2.1.0
 pip|XStatic-Rickshaw|1.5.0.0
 pip|XStatic-roboto-fontface|0.4.3.2
 pip|XStatic-smart-table|1.4.13.2
 pip|XStatic-Spin|1.2.5.2
 pip|XStatic-term.js|0.0.7.0
 pip|XStatic-tv4|1.2.7.0
 pip|xvfbwrapper|0.2.8
 pip|yaql|1.1.2
 pip|yum-langpacks|0.4.2
 pip|yum-metadata-parser|1.1.4
 pip|zope.interface|4.3.1
 localrc|DEST=/opt/stack/newton
 localrc|GIT_BASE=http://git.trystack.cn
 localrc|NOVNC_REPO=http://git.trystack.cn/kanaka/noVNC.git
 localrc|SPICE_REPO=http://git.trystack.cn/git/spice/spice-html5.git
 localrc|RECLONE=no
 localrc|DOWNLOAD_DEFAULT_IMAGES=False
 localrc|IMAGE_URLS="http://images.trystack.cn/cirros/cirros-0.3.4-x86_64-disk.img"
 localrc|HOST_IP=192.168.129.125
 localrc|DATABASE_PASSWORD=
 localrc|ADMIN_PASSWORD=
 localrc|SERVICE_PASSWORD=
 localrc|SERVICE_TOKEN=wmct1234
 localrc|RABBIT_PASSWORD=
 localrc|HORIZON_BRANCH=stable/newton
 localrc|KEYSTONE_BRANCH=stable/newton
 localrc|NOVA_BRANCH=stable/newton
 localrc|NEUTRON_BRANCH=stable/newton
 localrc|GLANCE_BRANCH=stable/newton
 localrc|CINDER_BRANCH=stable/newton
 localrc|KEYSTONE_TOKEN_FORMAT=UUID
 localrc|HEAT_BRANCH=stable/newton
 localrc|enable_service h-eng h-api h-api-cfn h-api-cw
 localrc|SWIFT_BRANCH=stable/newton
 localrc|ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
 localrc|SWIFT_REPLICAS=1
 localrc|SWIFT_HASH=011688b44136573e209e
 localrc|disable_service n-net
 localrc|enable_service q-svc
 localrc|enable_service q-agt
 localrc|enable_service q-dhcp
 localrc|enable_service q-l3
 localrc|enable_service q-meta
 localrc|enable_service q-metering
 localrc|enable_service neutron
 localrc|Q_USE_SECGROUP=True
 localrc|FLOATING_RANGE="192.168.129.0/24"
 localrc|FIXED_RANGE="10.0.0.0/24"
 localrc|Q_FLOATING_ALLOCATION_POOL=start=192.168.129.200,end=192.168.129.249
 localrc|PUBLIC_NETWORK_GATEWAY="192.168.129.1"
 localrc|Q_L3_ENABLED=True
 localrc|PUBLIC_INTERFACE=eth0
 localrc|Q_USE_PROVIDERNET_FOR_PUBLIC=True
 localrc|OVS_PHYSICAL_BRIDGE=br-ex
 localrc|PUBLIC_BRIDGE=br-ex
 localrc|OVS_BRIDGE_MAPPINGS=public:br-ex
 localrc|Q_PLUGIN=ml2
 localrc|ENABLE_TENANT_VLANS=True
 localrc|LOGFILE=/opt/stack/logs/stack.sh.log
 localrc|VERBOSE=True
 localrc|LOG_COLOR=True
 localrc|SCREEN_LOGDIR=/opt/stack/logs
 [root@localhost tools]# 
 

三、踩坑记录

1.一定注意devstack和openstack版本一致!!!
一定注意devstack和openstack版本一致!!!
一定注意devstack和openstack版本一致!!!
2.如果发生eception

./unstack
 ./stack

3.git clone源代码时,如果连续好长时间卡住不动,应该时网速的问题。
好像默认git clone不能断点续传,所以一定要挑个网速好的时候进行。
4.其他包依赖关系,百度谷歌一下,基本上都能解决。

四、总结
其实devstack安装并不难,只要local.conf配置好,版本选对,网速好,多运行几次都能安装成功!奉上安装成功的图片,希望大家安装的一帆风顺!
最后欢迎大家私聊,互相学习,互相进步!
这里写图片描述
这里写图片描述


标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。