在redhat6.5上建立個centos7的虛拟機,使用centos7安裝帶magnum的devstack
systemctl stop firewalld
systemctl disable firewalld
iptables -F
關閉selinux
其中zhycentos.xml
内容為:
安裝系統後
進入系統
dhclient擷取ip
selinux,iptables關閉
cd /home/devstack
cp /home/devstack/sample/local.conf .
修改local.conf為
[code="java"]
# cat local.conf
[[local|localrc]]
enable_plugin magnum https://github.com/openstack/magnum master
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 tempest
HOST_IP=192.168.139.221
FIXED_RANGE=10.24.0.0/24
NETWORK_GATEWAY=10.24.0.1
LOGDAYS=2
LOGDIR=$DEST/logs
LOGFILE=$LOGDIR/stack.sh.log
SCREEN_LOGDIR=$LOGDIR/screen
ADMIN_PASSWORD=haoning
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SREVICE_PASSWORD=$ADMIN_PASSWORD
SERVICE_TOKEN=haoning
#
[/code]
運作stack.sh
如果出現python的版本問題
sudo pip install <子產品名>==<版本号>
簡單測試
[img]http://dl2.iteye.com/upload/attachment/0113/3813/f427931d-8416-3ea7-9563-2e21c050031d.png[/img]