求助:DevStack部署OpenStack

Dawn_sun 发布于 2013/11/08 13:53
阅读 3K+
收藏 1

echo ADMIN_PASSWORD=password > localrc
echo MYSQL_PASSWORD=password >> localrc
echo RABBIT_PASSWORD=password >> localrc
echo SERVICE_PASSWORD=password >> localrc
echo SERVICE_TOKEN=tokentoken >> localrc


http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-setuptools


+ os_CODENAME=precise
+ export os_VENDOR os_RELEASE os_UPDATE os_PACKAGE os_CODENAME
+ [[ Ubuntu =~ (Ubuntu) ]]
+ DISTRO=precise
+ export DISTRO
+ echo 'Distro: precise'
Distro: precise
+ get_versions
++ which pip
+ PIP=/usr/local/bin/pip
+ [[ -n /usr/local/bin/pip ]]
++ /usr/local/bin/pip --version
++ awk '{ print $2}'
+ PIP_VERSION=1.4.1
+ echo 'pip: 1.4.1'
pip: 1.4.1
+ uninstall_package python-pip
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ apt_get purge python-pip
+ [[ '' = \T\r\u\e ]]
+ [[ -z purge python-pip ]]
+ local sudo=sudo
++ id -u
+ [[ 1000 = \0 ]]
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= apt-get                                                                               --option Dpkg::Options::=--force-confold --assume-yes purge python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-pip is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
+ [[ -n '' ]]
+ install_pip_tarball
+ cd /home/itec/devstack/files
+ curl -O https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0cu                                                                              rl: (7) couldn't connect to host
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace
itec@test :~/devstack$ stack.sh
stack.sh: command not found
itec@test :~/devstack$ ./stack.sh
Using mysql database backend
+ echo_summary 'Installing package prerequisites'
+ [[ -t 3 ]]
+ [[ True != \T\r\u\e ]]
+ echo -e Installing package prerequisites
Installing package prerequisites
+ source /home/itec/devstack/tools/install_prereqs.sh
++ [[ -n '' ]]
++ [[ -z /home/itec/devstack ]]
++ PREREQ_RERUN_MARKER=/home/itec/devstack/.prereqs
++ PREREQ_RERUN_HOURS=2
++ PREREQ_RERUN_SECONDS=7200
+++ date +%s
++ NOW=1383880598
+++ head -1 /home/itec/devstack/.prereqs
++ LAST_RUN=1383877070
++ DELTA=3528
++ [[ 3528 -lt 7200 ]]
++ [[ -z '' ]]
++ echo 'Re-run time has not expired (3672 seconds remaining) '
Re-run time has not expired (3672 seconds remaining)
++ echo 'and FORCE_PREREQ not set; exiting...'
and FORCE_PREREQ not set; exiting...
++ return 0
+ [[ False != \T\r\u\e ]]
+ /home/itec/devstack/tools/install_pip.sh
+++ dirname /home/itec/devstack/tools/install_pip.sh
++ cd /home/itec/devstack/tools
++ pwd
+ TOOLS_DIR=/home/itec/devstack/tools
++ cd /home/itec/devstack/tools/..
++ pwd
+ TOP_DIR=/home/itec/devstack
+ cd /home/itec/devstack
+ source /home/itec/devstack/functions
+++ set +o
+++ grep xtrace
++ XTRACE='set -o xtrace'
++ set +o xtrace
+ FILES=/home/itec/devstack/files
+ INSTALL_PIP_VERSION=1.4.1
+ [[ -n '' ]]
+ PIP_GET_PIP_URL=https://raw.github.com/pypa/pip/master/contrib/get-pip.py
+ PIP_TAR_URL=https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
+ GetDistro
+ GetOSVersion
++ which sw_vers
+ [[ -x '' ]]
++ which lsb_release
+ [[ -x /usr/bin/lsb_release ]]
++ lsb_release -i -s
+ os_VENDOR=Ubuntu
++ lsb_release -r -s
+ os_RELEASE=12.04
+ os_UPDATE=
+ os_PACKAGE=rpm
+ [[ Debian,Ubuntu,LinuxMint =~ Ubuntu ]]
+ os_PACKAGE=deb
++ lsb_release -c -s
+ os_CODENAME=precise
+ export os_VENDOR os_RELEASE os_UPDATE os_PACKAGE os_CODENAME
+ [[ Ubuntu =~ (Ubuntu) ]]
+ DISTRO=precise
+ export DISTRO
+ echo 'Distro: precise'
Distro: precise
+ get_versions
++ which pip
+ PIP=/usr/local/bin/pip
+ [[ -n /usr/local/bin/pip ]]
++ /usr/local/bin/pip --version
++ awk '{ print $2}'
+ PIP_VERSION=1.4.1
+ echo 'pip: 1.4.1'
pip: 1.4.1
+ uninstall_package python-pip
+ is_ubuntu
+ [[ -z deb ]]
+ '[' deb = deb ']'
+ apt_get purge python-pip
+ [[ '' = \T\r\u\e ]]
+ [[ -z purge python-pip ]]
+ local sudo=sudo
++ id -u
+ [[ 1000 = \0 ]]
+ sudo DEBIAN_FRONTEND=noninteractive http_proxy= https_proxy= no_proxy= apt-get                                                                               --option Dpkg::Options::=--force-confold --assume-yes purge python-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package python-pip is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
+ [[ -n '' ]]
+ install_pip_tarball
+ cd /home/itec/devstack/files
+ curl -O https://pypi.python.org/packages/source/p/pip/pip-1.4.1.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0cu                                                                              rl: (7) couldn't connect to host
++ failed
++ local r=1
+++ jobs -p
++ kill
++ set +o xtrace

pip-1.4.1.tar.gzpip-1.4.1.tar.gzpip-1.4.1.tar.gzpip-1.4.1.tar.gz
pip-1.4.1.tar.gz已经手动安装了,但是不知道为什么还是会失败……求助ing(couldn't connect to host?)

加载中
0
Shaun_Yuan
Shaun_Yuan

这个是devstack.sh的一个bug,已经修复,手动修复如下:找到devstack.sh 的59行,注释掉,加上offline=true的判断即可。

详细可看这修复代码:

https://github.com/openstack-dev/devstack/commit/8b5d3cf3df65682f94a1885ef71d2fb31bdfb3ba

0
B
BlueFlouse
先手动安装PIP,不检查网络状态跳过PIP安装。#注释掉590行附近的代码

具体来讲:
先手动安装PIP
$aptitude install python-pip
找到devstack.sh 的590行,注释掉安装PIP的相关代码,可能就可以往下走了。
返回顶部
顶部