Skip to content

Commit

Permalink
Merge pull request #1225 from seokho-son/main
Browse files Browse the repository at this point in the history
Add SW NLB config for PoC
  • Loading branch information
seokho-son authored Oct 20, 2022
2 parents f23fbb7 + 19095ef commit 84d6335
Show file tree
Hide file tree
Showing 7 changed files with 488 additions and 29 deletions.
10 changes: 8 additions & 2 deletions conf/cloud_conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,11 @@ cloud:
interval: "10"
timeout: "9"
threshold: "3"
global:
port: 8080
nlbsw:
sw: "HAProxy"
version: "latest"
command:
deployNlb: "wget https://raw.githubusercontent.com/cloud-barista/cb-tumblebug/main/scripts/nlb/deployNlb.sh chmod +x ~/deployNlb.sh; sudo ~/deployNlb.sh"
addTargetNode: "wget https://raw.githubusercontent.com/cloud-barista/cb-tumblebug/main/scripts/nlb/addTargetNode.sh chmod +x ~/addTargetNode.sh; sudo ~/addTargetNode.sh"
applyConfig: "wget https://raw.githubusercontent.com/cloud-barista/cb-tumblebug/main/scripts/nlb/applyConfig.sh chmod +x ~/applyConfig.sh; sudo ~/applyConfig.sh"

1 change: 1 addition & 0 deletions docs/apiChangeLog/dev-api-diff-v0.6.5-v0.6.12.html

Large diffs are not rendered by default.

361 changes: 361 additions & 0 deletions docs/apiChangeLog/dev-api-diff-v0.6.5-v0.6.12.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/apiChangeLog/dev-api-diff.html

Large diffs are not rendered by default.

133 changes: 107 additions & 26 deletions src/api/rest/docs/dev-api-diff.md → docs/apiChangeLog/dev-api-diff.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,27 @@
* `GET` /ns/{nsId}/mcis/{mcisId}/nlb/{nlbId}/healthz Get NLB Health
* `POST` /ns/{nsId}/mcis/{mcisId}/nlb/{nlbId}/vm Add VMs to NLB
* `DELETE` /ns/{nsId}/mcis/{mcisId}/nlb/{nlbId}/vm Delete VMs from NLB
* `PUT` /ns/{nsId}/mcis/{mcisId}/vm/{vmId}/{command} Attach/Detach data disk to/from VM
* `POST` /ns/{nsId}/mcis/{mcisId}/vm/{vmId}/{command} Create VM snapshot
* `GET` /ns/{nsId}/mcis/{mcisId}/vmgroup/{vmgroupId} List VMs with a VMGroup label in a specified MCIS
* `POST` /ns/{nsId}/mcis/{mcisId}/vmgroup/{vmgroupId} ScaleOut VM group in specified MCIS
* `POST` /ns/{nsId}/resources/customImage Create Custom Image
* `GET` /ns/{nsId}/mcis/{mcisId}/subgroup List SubGroup IDs in a specified MCIS
* `GET` /ns/{nsId}/mcis/{mcisId}/subgroup/{subgroupId} List VMs with a SubGroup label in a specified MCIS
* `POST` /ns/{nsId}/mcis/{mcisId}/subgroup/{subgroupId} ScaleOut subGroup in specified MCIS
* `GET` /ns/{nsId}/mcis/{mcisId}/vm/{vmId}/dataDisk Get available dataDisks for a VM
* `PUT` /ns/{nsId}/mcis/{mcisId}/vm/{vmId}/dataDisk Attach/Detach available dataDisk
* `POST` /ns/{nsId}/mcis/{mcisId}/vm/{vmId}/snapshot Snapshot VM and create a Custom Image Object using the Snapshot
* `GET` /ns/{nsId}/resources/customImage List all customImages or customImages' ID
* `POST` /ns/{nsId}/resources/customImage Register existing Custom Image in a CSP
* `DELETE` /ns/{nsId}/resources/customImage Delete all customImages
* `GET` /ns/{nsId}/resources/customImage/{customImageId} Get customImage
* `DELETE` /ns/{nsId}/resources/customImage/{customImageId} Delete customImage
* `GET` /ns/{nsId}/resources/dataDisk List all Data Disks or Data Disks' ID
* `POST` /ns/{nsId}/resources/dataDisk Create Data Disk
* `DELETE` /ns/{nsId}/resources/dataDisk Delete all Data Disks
* `GET` /ns/{nsId}/resources/dataDisk/{dataDiskId} Get Data Disk
* `PUT` /ns/{nsId}/resources/dataDisk/{dataDiskId} Upsize Data Disk
* `DELETE` /ns/{nsId}/resources/dataDisk/{dataDiskId} Delete Data Disk
* `GET` /ns/{nsId}/mcis/{mcisId}/vmgroup List VMGroup IDs in a specified MCIS

### What's Deprecated
---
* `POST` /ns/{nsId}/mcis/{mcisId}/vmgroup Create multiple VMs by VM group in specified MCIS

### What's Changed
---
Expand All @@ -43,124 +49,199 @@
Insert tumblebugOverview.customImage
Insert tumblebugOverview.dataDisk
Insert tumblebugOverview.nlb
`POST` /ns/{nsId}/cmd/mcis/{mcisId}/vm/{vmId} Send a command to specified VM
Parameters

Modify vmId //VM ID
`GET` /ns/{nsId}/control/mcis/{mcisId}/vm/{vmId} Control the lifecycle of VM (suspend, resume, reboot, terminate)
Parameters

Modify vmId //VM ID
`POST` /ns/{nsId}/mcis Create MCIS
Parameters

Insert mcisReq.vm.dataDiskIds
Insert mcisReq.vm.subGroupSize //if subGroupSize is (not empty) && (> 0), subGroup will be gernetad. VMs will be created accordingly.
Delete mcisReq.vm.vmGroupSize //if vmGroupSize is (not empty) && (> 0), VM group will be gernetad. VMs will be created accordingly.
Modify mcisReq.vm.imageId
Modify mcisReq.vm.name //VM name or VM group name if is (not empty) && (> 0). If it is a group, actual VM name will be generated with -N postfix.
Modify mcisReq.vm.rootDiskType //"", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHHD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_ssd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"]
Return Type

Insert vm.dataDiskIds
Insert vm.subGroupId //defined if the VM is in a group
Insert vm.cspViewVmDetail.dataDiskIIDs
Insert vm.cspViewVmDetail.dataDiskNames
Insert vm.cspViewVmDetail.imageType
Delete vm.vmBlockDisk
Delete vm.vmBootDisk //ex) /dev/sda1
Delete vm.vmGroupId //defined if the VM is in a group
Delete vm.cspViewVmDetail.vmblockDisk //ex)
Delete vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
`POST` /ns/{nsId}/mcis/{mcisId}/vm Create VM in specified MCIS
`GET` /ns/{nsId}/mcis/{mcisId} Get MCIS object (option: status, accessInfo, vmId)
Parameters

Add filterKey //(For option=id) Field key for filtering (ex: connectionName)
Add filterVal //(For option=id) Field value for filtering (ex: aws-ap-northeast-2)
Add accessInfoOption //(For option=accessinfo) accessInfoOption (showSshKey)
Modify option //Option
`DELETE` /ns/{nsId}/mcis/{mcisId} Delete MCIS
Return Type

Insert output
Delete message
`POST` /ns/{nsId}/mcis/{mcisId}/vm Create and add homogeneous VMs(subGroup) to a specified MCIS (Set subGroupSize for multiple VMs)
Parameters

Insert vmReq.dataDiskIds
Insert vmReq.subGroupSize //if subGroupSize is (not empty) && (> 0), subGroup will be gernetad. VMs will be created accordingly.
vmReq Notes Details for an VM object change into Details for VMs(subGroup)
Delete vmReq.vmGroupSize //if vmGroupSize is (not empty) && (> 0), VM group will be gernetad. VMs will be created accordingly.
Modify vmReq.imageId
Modify vmReq.name //VM name or VM group name if is (not empty) && (> 0). If it is a group, actual VM name will be generated with -N postfix.
Modify vmReq.rootDiskType //"", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHHD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_ssd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"]
Return Type

Insert dataDiskIds
Insert cspViewVmDetail.dataDiskIIDs
Insert cspViewVmDetail.dataDiskNames
Insert configureCloudAdaptiveNetwork //ConfigureCloudAdaptiveNetwork is an option to configure Cloud Adaptive Network (CLADNet) ([yes/no] default:yes)
Insert installMonAgent //InstallMonAgent Option for CB-Dragonfly agent installation ([yes/no] default:yes)
Insert placementAlgo
Insert statusCount
Insert systemLabel //SystemLabel is for describing the mcis in a keyword (any string can be used) for special System purpose
Insert vm
Delete connectionName
Delete createdTime //Created time
Delete cspViewVmDetail
Delete idByCSP //CSP managed ID or Name
Delete imageId
Delete location
Delete monAgentStatus //Montoring agent status
Delete networkAgentStatus //NetworkAgent status
Delete privateDNS
Delete privateIP
Delete publicDNS
Delete publicIP
Delete region //AWS, ex) {us-east1, us-east1-c} or {ap-northeast-2}
Delete rootDeviceName
Delete rootDiskSize
Delete rootDiskType
Delete securityGroupIds
Delete specId
Delete sshKeyId
Delete sshPort
Delete subnetId
Delete systemMessage //Latest system message such as error message
Delete vNetId
Delete vmBlockDisk
Delete vmBootDisk //ex) /dev/sda1
Delete cspViewVmDetail.vmblockDisk //ex)
Delete cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
Delete vmGroupId //defined if the VM is in a group
Delete vmUserAccount
Delete vmUserPassword
Modify label
Modify status //Required by CB-Tumblebug
`GET` /ns/{nsId}/mcis/{mcisId}/vm/{vmId} Get VM in specified MCIS
Parameters

Modify vmId //VM ID
Modify option //Option for MCIS
`POST` /ns/{nsId}/mcis/{mcisId}/vmgroup Create multiple VMs by VM group in specified MCIS
`DELETE` /ns/{nsId}/mcis/{mcisId}/vm/{vmId} Delete VM in specified MCIS
Parameters

Insert vmReq.dataDiskIds
Modify vmReq.rootDiskType //"", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHHD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_ssd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"]
Return Type

Insert vm.dataDiskIds
Insert vm.cspViewVmDetail.dataDiskIIDs
Insert vm.cspViewVmDetail.dataDiskNames
Delete vm.vmBlockDisk
Delete vm.vmBootDisk //ex) /dev/sda1
Delete vm.cspViewVmDetail.vmblockDisk //ex)
Delete vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
Modify vmId //VM ID
`POST` /ns/{nsId}/mcisDynamic Create MCIS Dynamically
Parameters

Insert mcisReq.vm.subGroupSize //if subGroupSize is (not empty) && (> 0), subGroup will be gernetad. VMs will be created accordingly.
Delete mcisReq.vm.vmGroupSize //if vmGroupSize is (not empty) && (> 0), VM group will be gernetad. VMs will be created accordingly.
Modify mcisReq.vm.name //VM name or VM group name if is (not empty) && (> 0). If it is a group, actual VM name will be generated with -N postfix.
Modify mcisReq.vm.rootDiskType //"", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHHD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_essd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"]
Return Type

Insert vm.dataDiskIds
Insert vm.subGroupId //defined if the VM is in a group
Insert vm.cspViewVmDetail.dataDiskIIDs
Insert vm.cspViewVmDetail.dataDiskNames
Insert vm.cspViewVmDetail.imageType
Delete vm.vmBlockDisk
Delete vm.vmBootDisk //ex) /dev/sda1
Delete vm.vmGroupId //defined if the VM is in a group
Delete vm.cspViewVmDetail.vmblockDisk //ex)
Delete vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
`GET` /ns/{nsId}/policy/mcis List all MCIS policies
Return Type

Insert mcisPolicy.policy.autoAction.vm.dataDiskIds
Insert mcisPolicy.policy.autoAction.vm.subGroupId //defined if the VM is in a group
Insert mcisPolicy.policy.autoAction.vm.cspViewVmDetail.dataDiskIIDs
Insert mcisPolicy.policy.autoAction.vm.cspViewVmDetail.dataDiskNames
Insert mcisPolicy.policy.autoAction.vm.cspViewVmDetail.imageType
Delete mcisPolicy.policy.autoAction.vm.vmBlockDisk
Delete mcisPolicy.policy.autoAction.vm.vmBootDisk //ex) /dev/sda1
Delete mcisPolicy.policy.autoAction.vm.vmGroupId //defined if the VM is in a group
Delete mcisPolicy.policy.autoAction.vm.cspViewVmDetail.vmblockDisk //ex)
Delete mcisPolicy.policy.autoAction.vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify mcisPolicy.policy.autoAction.vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
`GET` /ns/{nsId}/policy/mcis/{mcisId} Get MCIS Policy
Return Type

Insert policy.autoAction.vm.dataDiskIds
Insert policy.autoAction.vm.subGroupId //defined if the VM is in a group
Insert policy.autoAction.vm.cspViewVmDetail.dataDiskIIDs
Insert policy.autoAction.vm.cspViewVmDetail.dataDiskNames
Insert policy.autoAction.vm.cspViewVmDetail.imageType
Delete policy.autoAction.vm.vmBlockDisk
Delete policy.autoAction.vm.vmBootDisk //ex) /dev/sda1
Delete policy.autoAction.vm.vmGroupId //defined if the VM is in a group
Delete policy.autoAction.vm.cspViewVmDetail.vmblockDisk //ex)
Delete policy.autoAction.vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify policy.autoAction.vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
`POST` /ns/{nsId}/policy/mcis/{mcisId} Create MCIS Automation policy
Parameters

Insert mcisInfo.policy.autoAction.vm.dataDiskIds
Insert mcisInfo.policy.autoAction.vm.subGroupId //defined if the VM is in a group
Insert mcisInfo.policy.autoAction.vm.cspViewVmDetail.dataDiskIIDs
Insert mcisInfo.policy.autoAction.vm.cspViewVmDetail.dataDiskNames
Insert mcisInfo.policy.autoAction.vm.cspViewVmDetail.imageType
Delete mcisInfo.policy.autoAction.vm.vmBlockDisk
Delete mcisInfo.policy.autoAction.vm.vmBootDisk //ex) /dev/sda1
Delete mcisInfo.policy.autoAction.vm.vmGroupId //defined if the VM is in a group
Delete mcisInfo.policy.autoAction.vm.cspViewVmDetail.vmblockDisk //ex)
Delete mcisInfo.policy.autoAction.vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify mcisInfo.policy.autoAction.vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
Return Type

Insert policy.autoAction.vm.dataDiskIds
Insert policy.autoAction.vm.subGroupId //defined if the VM is in a group
Insert policy.autoAction.vm.cspViewVmDetail.dataDiskIIDs
Insert policy.autoAction.vm.cspViewVmDetail.dataDiskNames
Insert policy.autoAction.vm.cspViewVmDetail.imageType
Delete policy.autoAction.vm.vmBlockDisk
Delete policy.autoAction.vm.vmBootDisk //ex) /dev/sda1
Delete policy.autoAction.vm.vmGroupId //defined if the VM is in a group
Delete policy.autoAction.vm.cspViewVmDetail.vmblockDisk //ex)
Delete policy.autoAction.vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify policy.autoAction.vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
`POST` /ns/{nsId}/registerCspVm Register existing VM in a CSP to Cloud-Barista MCIS
Parameters

Insert mcisReq.vm.dataDiskIds
Insert mcisReq.vm.subGroupSize //if subGroupSize is (not empty) && (> 0), subGroup will be gernetad. VMs will be created accordingly.
Delete mcisReq.vm.vmGroupSize //if vmGroupSize is (not empty) && (> 0), VM group will be gernetad. VMs will be created accordingly.
Modify mcisReq.vm.imageId
Modify mcisReq.vm.name //VM name or VM group name if is (not empty) && (> 0). If it is a group, actual VM name will be generated with -N postfix.
Modify mcisReq.vm.rootDiskType //"", "default", "TYPE1", AWS: ["standard", "gp2", "gp3"], Azure: ["PremiumSSD", "StandardSSD", "StandardHHD"], GCP: ["pd-standard", "pd-balanced", "pd-ssd", "pd-extreme"], ALIBABA: ["cloud_efficiency", "cloud", "cloud_ssd"], TENCENT: ["CLOUD_PREMIUM", "CLOUD_SSD"]
Return Type

Insert vm.dataDiskIds
Insert vm.subGroupId //defined if the VM is in a group
Insert vm.cspViewVmDetail.dataDiskIIDs
Insert vm.cspViewVmDetail.dataDiskNames
Insert vm.cspViewVmDetail.imageType
Delete vm.vmBlockDisk
Delete vm.vmBootDisk //ex) /dev/sda1
Delete vm.vmGroupId //defined if the VM is in a group
Delete vm.cspViewVmDetail.vmblockDisk //ex)
Delete vm.cspViewVmDetail.vmbootDisk //Deprecated soon // ex) /dev/sda1
Modify vm.cspViewVmDetail.startTime //Timezone: based on cloud-barista server location.
Expand Down
Loading

0 comments on commit 84d6335

Please sign in to comment.