-
Notifications
You must be signed in to change notification settings - Fork 51
Tumblebug object handling directly from DB (for developers)
기존 텀블벅은 텀블벅에 등록된 오브젝트(특히 문제가 있는 오브젝트)를 개발자가 확인하는 데 어려움이 있었음.
텀블벅의 오브젝트를 조회하고 데이터를 강제 삭제할 수 있는 기능 제공. (관리자 및 개발자를 위한 기능)
- get objects
- get object
- delete object
- delete objects
-
GET
http://localhost:1323/tumblebug/
objects?key=/ns/ns-01/
는/ns/ns-01/
가 포함된 모든 TB 오브젝트의 ID 리스트를 반환함. -
GET
http://localhost:1323/tumblebug/
object?key=/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
는/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
오브젝트의 값을 반환함. -
DELETE
http://localhost:1323/tumblebug/
object?key=/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
는/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
를 강제 삭제함. -
DELETE
http://localhost:1323/tumblebug/
objects?key=/ns/ns-01/mcis/
는/ns/ns-01/mcis/
이하 모든 자식 오브젝트를 강제 삭제함.
1) list-object.sh
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./list-object.sh /ns/ns-01/mcis/
####################################################################
## 0. Object: List
####################################################################
{
"object" : [
"/ns/ns-01/mcis/aws-ap-southeast-1-shson",
"/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-0",
"/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-1",
"/ns/ns-01/mcis/aws-ap-southeast-1-shson/vm/aws-ap-southeast-1-shson-2",
"/ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson"
]
}
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./list-object.sh /ns/ns-01/mcis/
####################################################################
## 0. Object: List
####################################################################
{
"object" : null
}
2) get-object.sh
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./get-object.sh /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
####################################################################
## 0. Object: Get value
####################################################################
{
"id" : "aws-ap-southeast-1-shson",
"name" : "aws-ap-southeast-1-shson",
"vmId" : [
"aws-ap-southeast-1-shson-0",
"aws-ap-southeast-1-shson-1",
"aws-ap-southeast-1-shson-2"
],
"vmGroupSize" : "3"
}
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./get-object.sh /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shson
####################################################################
## 0. Object: Get value
####################################################################
{
"message" : "Failed to find /ns/ns-01/mcis/aws-ap-southeast-1-shson/vmgroup/aws-ap-southeast-1-shsonobject"
}
3) delete-object
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./delete-object.sh /ns/ns-01/resources/spec/aws-ap-southeast-1-x1e.xlarge
####################################################################
## 0. Object: Delete
####################################################################
{
"message" : "The object has been deleted"
}
4) delete-objects
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./delete-objects-becareful.sh /ns/ns-01/resources/spec/aws-ap-southeast-1-x1e.
####################################################################
## 0. Object: Delete Child Objects
####################################################################
{
"message" : "Objects have been deleted"
}
son@son:~/go/src/github.com/cloud-barista/cb-tumblebug/test/official/sequentialFullTest$ ./list-object.sh /ns/ns-01/resources/spec/aws-ap-southeast-1-x1e
####################################################################
## 0. Object: List
####################################################################
{
"object" : null
}
- Design
- Features & Usage
- Install & Start Guide
- User Interface
- Developer Guide
- Test Reports