-
Notifications
You must be signed in to change notification settings - Fork 46
How to install OpenStack on a VM for CB Spider Testing
ByoungSeob Kim edited this page Aug 22, 2021
·
25 revisions
------------------------------- In my case: AWS: Seoul Region (2020/12/04)
Image: Ubuntu Server 20.04 LTS (HVM), SSD Volume Type - ami-007b7745d0725de95
Spec: t2.2xlarge
storage: 50GB
SecurityGroup: powerkim-openstack (22, openstack dashboard: 80, Spider: 1024, 2048, 4096)
=> In my case: public-IP: 13.125.xxx.xxx
$ ssh -i powerkim.pem [email protected]
$ sudo useradd -s /bin/bash -d /opt/stack -m stack
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
$ sudo su - stack
$ git clone https://git.openstack.org/openstack-dev/devstack
$ cd devstack
$ cp ./samples/local.conf ./
$ vi local.conf
ADMIN_PASSWORD=****
DATABASE_PASSWORD=$ADMIN_PASSWORD
RABBIT_PASSWORD=$ADMIN_PASSWORD
SERVICE_PASSWORD=$ADMIN_PASSWORD
$ ./stack.sh
=========== 설치 완료 후 출력 메시지
This is your host IP address: 172.31.30.48
This is your host IPv6 address: ::1
Horizon is now available at http://172.31.30.48/dashboard
Keystone is serving at http://172.31.30.48/identity/
The default users are: admin and demo
The password: ****
============
============== 이하 설치 오류 시 참조 ===========
* 설치시 오류 발생하면,
1) ./unstack.sh 실행
2) 설정 변경 및 오류 해결
3) ./stack.sh 재실행
$ openstack --version
openstack 5.4.0
- Browser> http://13.125.xxx.xxx/dashboard admin / ****
- 참고 사항
- (오류) Dashboard 통한 instance 생성 시 '새로운 볼륨 생성' '예'가 기본 선택 사항이며, 이 경우 VM 생성은 되지만, Volume 생성 오류로 VM이 fail 상태
- (추정) 볼륨 서비스 설정 오류가 있는 듯.
- (대안) instance 생성 시 '새로운 볼륨 생성' '아니오' 선택. Spider Test에서는 volume 생성은 사용하지 않아서 무시하고 진행.
- Public Cloud의 VM에 OpenStack 설치인 경우 네트워크 환경 문제 발생: 해결해보려다 현재는 회피함.
- 오류 현황
- (오류) Spider를 통해서 VM의 public IP로 OpenStack API 호출시에 VM Private IP timeout 오류 메시지 출력.
- (추정) OpenStack 라이브러리 내부에서 VM으로 부터 얻은 서버 정보(private IP)로 접속 시도 중에 timeout 나는 것으로 보임.
- (대안) 환경 문제이므로 회피^^
-
연동 정보 등록 스크립트 위치
- 위치1(설치버전): cb-spider/api-runtime/rest-runtime/test/connect-config/3.aws-devstack-openstack-conn-config.sh
- 위치2(최신버전): https://github.com/cloud-barista/cb-spider/blob/master/api-runtime/rest-runtime/test/connect-config/3.aws-devstack-openstack-conn-config.sh
-
스크립트의 다음 Key의 Value 수정 후 실행
- IdentityEndpoint
- Username
- Password
-
시험 항목(시험 스크립트 내용 참고)
- 위치1(설치버전): cb-spider/blob/master/api-runtime/rest-runtime/test/full-test/full_test.sh
- 위치2(최신버전): https://github.com/cloud-barista/cb-spider/blob/master/api-runtime/rest-runtime/test/full-test/full_test.sh
- VPC: Create -> List -> Get
- SecurityGroup: Create -> List -> Get
- KeyPair: Create -> List -> Get"
- VM: StartVM -> List -> Get -> ListStatus -> GetStatus -> Suspend -> Resume -> Reboot
- VM: Terminate(Delete)
- KeyPair: Delete
- SecurityGroup: Delete
- VPC: Delete
-
시험 스크립트 실행
- 위치1(설치버전): cb-spider/api-runtime/rest-runtime/test/full-test/3.aws-desvstack-openstack-test.sh
- 위치2(최신버전): https://github.com/cloud-barista/cb-spider/blob/master/api-runtime/rest-runtime/test/full-test/3.aws-desvstack-openstack-test.sh
- 특별한 오류 메시지 출력 없으면 성공
- 오류 발생시: 문의처
- gituhb issue: https://github.com/cloud-barista/cb-spider/issues
- slack channel: https://cloud-barista.slack.com/archives/CLFCLNFTJ
-
Install & Start Guide
-
Features & Usage
-
- AdminWeb Tool Guide
- CLI Tool Guide
- REST API Guide
-
Design
-
Developer Guide
-
Cloud Driver Developer Guide
- Cloud Driver Developer Guide-WIP
- VM SSH Key Development Guide-WIP
- VM User Development Guide
- What is the CSP SDK API Version of drivers
- Region Zone Info and Driver API
- Price Info and Driver API
- (StartVM TerminateVM) API Call Counts and Waiting
- StartVM and TerminateVM Main Flow of drivers
- VM Root Disk Configuration Guide
- Security Group Rules and Driver API
- Network Load Balancer and Driver API
- VM Snapshot, MyImage and Disk Overview
- Kubernetes and Driver API(PMKS, K8S)
- Tag and Cloud Driver API
- AnyCall API Extension Guide
-
Test Reports
- v0.2.8-for-espresso-release
- v0.3.0-espresso-release
- Azure:Terminating VM
- cb-user@VM: ssh login, sudo run
- v0.3.14 test for SG Source
- v0.4.0-cafemocha-release
- Test via REST API Gateway
- Test Reports of v0.4.11 (IID2 initial Version)
- Test Reports of v0.4.12 (Register & Unregister existing Resources)
- Test Reports for v0.6.0 Release
- How to ...
- How to provision GPU VMs
- How to Resolve the 'Failed to Connect to Database' Error
- How to test CB Spider with Mock Driver
- How to install CB Spider on WSL2 under 공유기/사설망
- How to install CB Spider on macOS
- How to run CB Spider Container on macOS
- How to install OpenStack on a VM for CB Spider Testing
- How to get Azure available Regions
- How to profile memory usage in Golang
- Deprecated:How to install protoc and plugins
- [For Cloud-Migrator]