Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Configure rootfs size when creating a VM?] #348

Closed
powerkimhub opened this issue Apr 13, 2021 · 16 comments
Closed

[Configure rootfs size when creating a VM?] #348

powerkimhub opened this issue Apr 13, 2021 · 16 comments
Assignees
Labels
enhancement New feature or request

Comments

@powerkimhub
Copy link
Member

@powerkimhub powerkimhub added the enhancement New feature or request label Apr 13, 2021
@powerkimhub
Copy link
Member Author

powerkimhub commented Apr 14, 2021

[Goal]

  • VM 생성 요청시 rootfs volume Size 변경 기능 추가

[Plan]

  • Check out the rootfs resizing feature with the Go SDK about all CSPs.
  • If All CSPs are capable, Add size attribute into ReqInfo Structure.
  • Task Scope: API, API Runtime, All Drivers, CLI, AdminWeb, ...

@powerkimhub
Copy link
Member Author

@dev4unet @hyokyungk @innodreamer

@powerkimhub
Copy link
Member Author

@dev4unet @hyokyungk @innodreamer

  • 관련한 API 분석 및 Wiki 정보 정리 감사드립니다.
  • 역시, 안되는 CSP들이 좀 있네요.
  • 조만간, 1차 모아 주신 정보를 기반으로 방안을 마련하여
  • 검토 의견을 받도록하겠습니다.

@powerkimhub
Copy link
Member Author

@hyokyungk

[In Azure]

[In IBM]

  • IBM에서도 VM 시작 이후에라도 API를 통한 Root Disk size 변경 가능한 방법이 있는지 확인 부탁드립니다.

@inno-cloudbarista
Copy link
Contributor

  • Azure

    • vm 생성 후 osDisk의 크기를 확장시킴으로 기능 제공이 가능합니다.(테스트 완료)
    • vm 생성 => vm 할당 해제(Stop) 후 => OSDISK 사이즈 변경(증가만 가능) => vm 할당(start)
  • Ibm

@powerkimhub
Copy link
Member Author

@inno-cloudbarista

  • 캄사합니다.
  • IBM 좀만 더 확인 부탁드립니다~🕷

@powerkimhub powerkimhub pinned this issue Nov 8, 2021
powerkimhub added a commit that referenced this issue Nov 9, 2021
GCP/Alibaba/Tencent RootDisk 및 사이즈 변경 기능 지원 (이슈 #348)
@powerkimhub
Copy link
Member Author

@powerkimhub
Copy link
Member Author

powerkimhub commented Nov 10, 2021

@dev4unet @hyokyungk @inno-cloudbarista @innodreamer

[적용대상 및 현황]

  • Driver

    CSP Status
    1. AWS 완료
    2. Azure 완료
    (Size변경제외)
    3. GCP 완료
    4. Alibaba 완료
    5. Tencent 완료
    6. IBM 적용불가
    7. OpenStack 완료
    (Type변경제외)
    8. Cloudit 적용불가
    CSP Status
    9. NCP 적용불가
    10. KT 적용불가

  • Server: 완료
  • REST API / Go API: 완료
  • 기본 기능 개발 완료 / 세부 시험 및 검증 필요

@powerkimhub
Copy link
Member Author

[GCP/Alibaba/Tencent 적용]


@inno-cloudbarista @hyokyungk (@dev4unet , @innodreamer)

  • PR내 구현 조건, 시험 항목 등 참고하시면,
  • 일관성 있고 좋을 거 같습니다.

@powerkimhub
Copy link
Member Author

inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 12, 2021
- Azure RootDisk Size (현재 미제공)
   - vm 생성 시 지정하는 방식이 아닌 생성 후 디스크의 변경을 이용한 기능 제공
   - disksize 변경 시 발생하는 에러 사항 고려 후 제공
- Azure RootDisk Type(제공)
   - DiskType : Premium_LRS / Standard_LRS / StandardSSD_LRS / UltraSSD_LRS 중  UltraSSD_LRS 를 제외한 3가지 Type 제공
   - UltraSSD_LRS 제외 이유 : 제공 지역 및 iops에 대한 제한
   - Type의 가독성을 위하여  아래 타입의 문자열로 제공
      - Premium_LRS = PremiumSSD
      - StandardSSD_LRS  = StandardSSD
      -  Standard_LRS = StandardHHD
inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 12, 2021
- Azure RootDisk Size (현재 미제공)
   - vm 생성 시 지정하는 방식이 아닌 생성 후 디스크의 변경을 이용한 기능 제공
   - disksize 변경 시 발생하는 에러 사항 고려 후 제공
- Azure RootDisk Type(제공)
   - DiskType : Premium_LRS / Standard_LRS / StandardSSD_LRS / UltraSSD_LRS 중  UltraSSD_LRS 를 제외한 3가지 Type 제공
   - UltraSSD_LRS 제외 이유 : 제공 지역 및 iops에 대한 제한
   - Type의 가독성을 위하여  아래 타입의 문자열로 제공
      - Premium_LRS = PremiumSSD
      - StandardSSD_LRS  = StandardSSD
      -  Standard_LRS = StandardHHD
@powerkimhub
Copy link
Member Author

powerkimhub commented Nov 12, 2021

@inno-cloudbarista
Copy link
Contributor

inno-cloudbarista commented Nov 14, 2021

@powerkimhub
reqInfo.RootDiskType = "" 인 경우 기존과 동일한 PremiumSSD 타입으로 생성되게끔 되어 있습니다.

@powerkimhub
Copy link
Member Author

@inno-cloudbarista

관련하여, 추가 질의 드립니다.

  • disk type을 꼭 설정해야 하는 것이 아니라면,
  • 설정을 하지 않으면, CSP가 default로 PremiumSSD로 설정해준다면,
  • "" 요청시 bypass하는 것이 좋을 것 같습니다.
    • 사유: 향후 Azure에서 default type을 다르게 변경 가능성이 있음
  • 항상 설정해줘야 한다면 현재처럼 두시면 되겠습니다.

@inno-cloudbarista
Copy link
Contributor

@powerkimhub
넵 알겠습니다. 해당 사항 코드에 반영하겠습니다.

inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 15, 2021
 Type : "" 요청시 PremiumSSD => bypass
CSP의 defaultType 변경에 대한 연동
powerkimhub added a commit that referenced this issue Nov 15, 2021
…type

[Azure] RootDisk Type 타입지정(이슈 #348)
@powerkimhub
Copy link
Member Author

inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 18, 2021
- RootDisk Size 지정
   - RootDisk Size 지정을 위한 Volume Create 생성 옵션
   - RootDisk Volume의 타입 이원화로 Image 정보 metadata 내 지정 삽입
     > ImageName이라는 메타데이터가 웹 콘솔내에 보이지만 api에서 찾을 수 없음
     > 사용자 지정 metadata로 삽입
inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 18, 2021
- RootDisk Size 지정
   - RootDisk Size 지정을 위한 Volume Create 생성 옵션
   - RootDisk Volume의 타입 이원화로 Image 정보 metadata 내 지정 삽입
     > ImageName이라는 메타데이터가 웹 콘솔내에 보이지만 api에서 찾을 수 없음
     > 사용자 지정 metadata로 삽입
inno-cloudbarista pushed a commit to inno-cloudbarista/cb-spider that referenced this issue Nov 18, 2021
- RootDisk Size 지정
   - RootDisk Size 지정을 위한 Volume Create 생성 옵션
   - RootDisk Volume의 타입 이원화로 Image 정보 metadata 내 지정 삽입
     > ImageName이라는 메타데이터가 웹 콘솔내에 보이지만 api에서 찾을 수 없음
     > 사용자 지정 metadata로 삽입
powerkimhub added a commit that referenced this issue Nov 18, 2021
…change

[openstack] RootDisk Size 지정(이슈 #348)
@powerkimhub
Copy link
Member Author

  • Thanks, @innodreamer

  • [OpenStack 적용]

  • [OpenStack Root Disk Size 설정 방식]

    • Size 조절시 Volume Creation 옵션으로만 가능

    • Volume 생성 후 Root Disk로 마운트

    • Spec에 기술된 내용은 적용되지 않음

    • image

  • [Volume Creation 여부에 따른 VM 생성 시간 차이]

    • 단, Farm 환경에 따라 생성 시간 차이가 큼(1분 미만 vs 2~4분)
    • image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants