1. physical machine or VM 에 ubuntu 12.04 or 14.04 가 설치 되어있다고 가정함
2. Ubuntu upgrade
최신 패키지로 업그레이드함
필요시 재부팅
sudo apt-get upgrade
sudo shutdown -ry 0
3. proxy 환경 설정
사내 등에서 proxy 서버가 있는 환경인 경우 proxy 인증서(xxx.crt) 를 다운받아서 아래 위치에 복사함
/usr/share/ca-certificates/extra/xxx.crt
인증서 복사 후 아래 명령어로 인증서를 시스템에 등록함
sudo dpkg-reconfigure ca-certificates (yes, xxx.crt 선택)
Proxy 세팅을 위해 /etc/environment 파일에 아래 내용을 추가합니다. Virtual box 는 10.0.0.0/8 subnet 을
기본으로 사용함
ubuntu@ubuntu:~$ sudo vi /etc/environment
...
http_proxy="http://a.b.c.d:8080/"
https_proxy="https://a.b.c.d:8080/"
no_proxy="localhost,127.0.0.1,127.0.0.0/8,127.0.1.1,10.0.0.0/8"
4. devstack 설치
4.1 git, pip 설치/설정
Python Package 관리 도구인 PIP 와 형상관리도구 Git 을 설치합니다.
ubuntu@ubuntu:~$ sudo apt-get install git python-pip
ubuntu@ubuntu:~$ sudo vi ~/.pip/pip.conf
[global]
cert = /usr/share/ca-certificates/extra/xxx.crt
4.2 devstack download
$ git clone http://github.com/openstack-dev/devstack
$ cd ~/devstack
$ git checkout stable/juno
4.3 local.conf 편집
[[local|localrc]]
# Credentials
DATABASE_PASSWORD=openstack
ADMIN_PASSWORD=openstack
SERVICE_PASSWORD=openstack
SERVICE_TOKEN=openstack
RABBIT_PASSWORD=openstack
# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
#ENABLED_SERVICES+=,n-net
#ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
#ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,cinder,c-api,c-vol,c-sch,c-bak
#ENABLED_SERVICES+=,heat,h-api,h-api-cfn,h-api-cw,h-eng
#ENABLED_SERVICES+=,trove,tr-api,tr-tmgr,tr-cond
ENABLED_SERVICES+=,horizon
# Images
# Use this image when creating test instances
IMAGE_URLS+=",http://cdn.download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img"
# Use this image when working with Orchestration (Heat)
#IMAGE_URLS+=",http://fedorapeople.org/groups/heat/prebuilt-jeos-images/F17-x86_64-cfntools.qcow2"
# Branches
KEYSTONE_BRANCH=master
NOVA_BRANCH=master
NEUTRON_BRANCH=master
SWIFT_BRANCH=master
GLANCE_BRANCH=master
CINDER_BRANCH=master
HEAT_BRANCH=master
TROVE_BRANCH=master
HORIZON_BRANCH=master
# Swift Configuration
SWIFT_REPLICAS=1
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5
# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
4.4 stack.sh 실행
ubuntu@ubuntu:~/devstack$ ./stack.sh
screen -x stack 을 통해 각 데몬들이 정상인지 확인
웹브라우저를 통해 Horizon 에 접속해서 테스트 가능
5. Troubleshooting
5.1 아래 에러 나는 경우
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/local/lib/python2.7/dist-packages
pip.conf 파일에 아래 라인 추가/변경
index-url = http://pypi.gocept.com/simple/
5.2 아래 에러
No such file or directory: '/usr/lib/python2.7/dist-packages/setuptools.egg-info'
5. Troubleshooting
5.1 아래 에러 나는 경우
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip in /usr/local/lib/python2.7/dist-packages
pip.conf 파일에 아래 라인 추가/변경
index-url = http://pypi.gocept.com/simple/
5.2 아래 에러
No such file or directory: '/usr/lib/python2.7/dist-packages/setuptools.egg-info'
-> 아래 링크 참조해서 다음과 같이 조치
http://stackoverflow.com/questions/28441674/error-while-installing-icehouse-openstack-using-devstack
sudo rm /usr/lib/python2.7/dist-packages/setuptools.egg-info sudo apt-get install --reinstall python-setuptools
댓글 없음:
댓글 쓰기