目錄html
github訪問速度過慢:修改/opt/stack/devstack/stackrc 文件, 找到GIT_BASE=${GIT_BASE:-git://git.openstack.org} 將這一行的源地址改成https://github.comhtml5
pip 下載速度過慢: 修改pip.conf文件mysql
找到pip.conf文件,沒有的話在根目錄下建立.pip目錄,建立pip.conf,並寫入 $ sudo find -name pip.conf 修改該文件: [global] index-url = http://pypi.douban.com/simple trusted-host=pypi.douban.com
注意控制節點和計算節點安裝devstack的不一樣之處在於該配置文件內容不一樣,具體以下:git
[[local|localrc]] ############################################################ # Customize the following HOST_IP based on your installation ############################################################ MULTI_HOST=True HOST_IP=192.168.100.30 SERVICE_HOST=192.168.100.30 SERVICE_PASSWORD=devstack ADMIN_PASSWORD=devstack SERVICE_TOKEN=devstack DATABASE_PASSWORD=root RABBIT_PASSWORD=password ENABLE_HTTPD_MOD_WSGI_SERVICES=True KEYSTONE_USE_MOD_WSGI=True FIXED_RANGE=10.3.3.0/24 #ENABLED_SERVICES=placement-api # Logging LOGFILE=$DEST/logs/stack.sh.log SCREEN_LOGDIR=$DEST/logs/screen VERBOSE=True ENABLE_DEBUG_LOG_LEVEL=True ENABLE_VERBOSE_LOG_LEVEL=True GIT_BASE=${GIT_BASE:-https://github.com} USE_BARBICAN=True TACKER_BRANCH=stable/pike enable_plugin heat ${GIT_BASE}/openstack/heat $TACKER_BRANCH enable_plugin networking-sfc ${GIT_BASE}/openstack/networking-sfc $TACKER_BRANCH enable_plugin barbican ${GIT_BASE}/openstack/barbican $TACKER_BRANCH enable_plugin mistral ${GIT_BASE}/openstack/mistral $TACKER_BRANCH enable_plugin tacker https://gitee.com/SINET_gangliu/tacker stable/pike # vnc config NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://$SERVICE_HOST:6080/vnc_auto.html" VNCSERVER_LISTEN=$HOST_IP VNCSERVER_PROXYCLIENT_ADDRESS=$VNCSERVER_LISTEN
[[local|localrc]] MULTI_HOST=True HOST_IP=192.168.100.33 LOGFILE=/opt/stack/logs/stack.sh.log # Credentials ADMIN_PASSWORD=devstack MYSQL_PASSWORD=root RABBIT_PASSWORD=password SERVICE_PASSWORD=devstack SERVICE_TOKEN=devstack # Service information SERVICE_HOST=192.168.100.30 MYSQL_HOST=192.168.100.30 RABBIT_HOST=192.168.100.30 GLANCE_HOSTPORT=192.168.100.30:9292 Q_HOST=192.168.100.30 KEYSTONE_AUTH_HOST=192.168.100.30 KEYSTONE_SERVICE_HOST=192.168.100.30 DATABASE_TYPE=mysql ENABLED_SERVICES=placement-client,placement-api,n-cpu,n-api,c-sch,c-api,c-vol,q-agt #ENABLED_SERVICES=placement-client,placement-api,n-cpu,q-agt,neutron Q_AGENT=openvswitch # vnc config NOVA_VNC_ENABLED=True NOVNCPROXY_URL="http://192.168.100.30:6080/vnc_auto.html" VNCSERVER_LISTEN=0.0.0.0 VNCSERVER_PROXYCLIENT_ADDRESS=$HOST_IP #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 GIT_BASE=https://github.com
cd devstack ./stack.sh