-
Notifications
You must be signed in to change notification settings - Fork 47
CB‐Spider Zone Based Control Testing Guide
Zone-Based Control is a feature provided by CB-Spider in Cloud-Barista, allowing resource creation and management not only in the Default Zone within a single Connection but also in other Target Zones. For more, Check the Zone-based Control wiki document.
- CB-SPIDER: 0.10.1
- CSP: AWS
- Region: us-east-2
- Default Zone: us-east-2a (United States, Ohio)
- Target Zone: us-east-2b (United States, Ohio)
- VM Spec: t2.micro
- VM Image: ami-00afc76f2b7273d3b
- Disk: Size - 1GB / Type - gp2
Verify the zone information of the provisioned resources(Subnet, Disk, VM).
- List all resources created in the default and target zones.
- Ensure the zone information matches the expected configuration.
- Resource details include accurate zone information.
Figure 1: VPC/Subnet Management
Figure 2: Disk Management
Figure 3: VM Provisioning Info
Test resource provisioning in the default zone (us-east-2a
).
- Create a subnet
s1
and diskd1
in the default zone (us-east-2a). - Create a Security Group for
s1
. - Provision a VM in the subnet
s1
. - Attach the disk
d1
to the VM. - Detach the disk
d1
from the VM.
- Subnet
s1
and diskd1
are successfully created in the default zone (us-east-2a
). - VM1 is successfully created in the
us-east-2a
zone. - Disk
d1
is successfully attached to theVM1
. - Disk
d1
is successfully detached from theVM1
.
![]() Figure 4: Disk Attach to Default Zone |
![]() Figure 5: Disk Detach from Default Zone |
Test resource provisioning in the target zone (us-east-2b
).
- Create a subnet
s2
and diskd2
in the target zone (us-east-2b
). - Create a Security Group for
s2
- Provision a
VM2
in the subnets2
. - Attach the disk
d2
to theVM2
. - Detach the disk
d2
from theVM2
.
- Subnet
s2
and diskd2
are successfully created in the target zone (us-east-2b
). -
VM2
is successfully created in theus-east-2b
zone. - Disk
d2
is successfully attached to theVM2
. - Disk
d2
is successfully detached from theVM2
![]() Figure 6: Disk Attach to Target Zone |
![]() Figure 7: Disk Detach from Target Zone |
Validate error handling when there is a zone mismatch.
- Attempt to interaction with a resource in an incorrect zone.
- Attempt to attach
d1
(inus-east-2a
) toVM2
(inus-east-2b
) using the API / CLI - Observe the error message returned by the system.
-
Method:
PUT
- Endpoint: `http://localhost:1024/spider/disk/aws-ohio-disk-1/attach
-
Request Body:
{ "ConnectionName": "aws-config01", "ReqInfo": { "VMName": "aws-ohio-vm-2" } }
- System Should return a Zone Mismatch Error response, clearly indicating that the disk and the VM are not in the same availability zone.
{
"message": "InvalidVolume.ZoneMismatch: The volume 'vol-0fb0eede632787658' is not in the same availability zone as instance 'i-08bdefda0ac12fef5'\nstatus code: 400, request id: 60e134ec-8477-4679-88a8-a70d057a62c8"
}
You can view the Zone-Based Control Test results for each CSP's resources at the link below:
🔗 View Google Spreadsheet
By following this guide, you can successfully test the Zone-Based Control feature in CB-SPIDER and ensure it operates as expected under various scenarios.
-
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 Use Alibaba ECS i1.* Instance Types
- 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]