cb-spider/

directory
v0.0.0-...-9c72d28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: Apache-2.0, Apache-2.0, Apache-2.0

README

cb-spider

CB-Spider is a sub-Framework of the Cloud-Barista Multi-Cloud Project.

The CB-Spider Mission is to connect all the clouds with a single interface.


[목 차]

  1. 설치 환경
  2. 소스 설치
  3. 실행 준비
  4. 서버 실행
  5. API 규격
  6. 활용 예시
  7. 특이 사항

[설치 환경]

  • 리눅스(검증시험:Ubuntu 18.04, Raspbian GNU/Linux 10)

[소스 설치]

  • Git 설치

  • Go 설치(1.12 이상)

  • Cloud-Barista alliance 설치 (CB-Log)

  • Cloud-Barista alliance 설치 (CB-Store)

  • CB-Spider 설치

    • go get -u -v github.com/cloud-barista/cb-spider

[실행 준비]

  • CB-Spider 실행에 필요한 환경변수 설정

    • source setup.env (위치: ./cb-spider)
  • driver shared library 생성 방법(설치 시스템 당 1회 실행, driver source 변경시 실행)

  • ./build_all_driver_lib.sh 실행

  • 결과: cb-spider/cloud-driver-libs/xxx-driver-v1.0.so 생성

  • 참고: 특정 CSP driver만 build하는 방법

    • cd cb-spider/cloud-control-manager/cloud-driver/drivers/aws # AWS Driver 경우
    • build_driver_lib.sh 실행

[서버 실행]

  • cd cb-spider/api-runtime/rest-runtime
  • go run *.go # 1024 포트 REST API Server 실행됨
  • 참고: 메타 정보 초기화 방법
  • cb-spider/meta_db/dat 아래 파일 삭제(ex: 0.dat) 후 서버 재가동

[API 규격]

[활용 예시]

  • 시험 도구: cb-spier/api-runtime/rest-runtime/test/[aws|azure|gcp|openstack|cloudit] (AWS 경우:aws)
  • 시험 순서: 연동 정보 추가 => 자원등록 => VM 생성 및 제어 시험
  • 시험 방법:
    • (연동정보관리) cb-spider/api-runtime/rest-runtime/test/aws/cim-insert-test.sh 참고(Credential 정보 수정 후 실행)
    • (자원관리) cb-spider/api-runtime/rest-runtime/test/aws 아래 자원 별 디렉토리 시험 스크립트 존재
    • (자원관리) 자원별 create/list/get/delete 관련 shell 스크립트 실행
    • (자원관리) 자원 생성 순서
      • (1) vnetwork, keypair, publicip 및 securitygroup 생성
      • (2) vm 생성 및 제어
      • (3) 삭제는 자원 생성 역순

[특이 사항]

  • 개발상태: 초기 기능 중심 개발추진 중 / 기술개발용 / 상용활용시 보완필요
  • Alibaba: 통합 시험 전 상태
  • Key관리: CSP가 제공하지 않는 경우 Key 자체 생성 및 Key 파일 내부 관리
    • 관리위치: cb-spider/cloud-driver-libs/.ssh-CSPName/* (임시방법)
    • 공유서버에서 운영시 보안 이슈 존재

Directories

Path Synopsis
api-runtime
cloud-driver/drivers/aws/resources
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
vm-ssh/test
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
Proof of Concepts for the Cloud-Barista Multi-Cloud Project.
cloud-info-manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL