cloudmesh / cloudmesh-cloud

Multicloud Cloudmesh Plugins for cloudmesh cmd5 CMD
https://cloudmesh.github.io/cloudmesh-manual
Apache License 2.0
2 stars 27 forks source link

Cloudmesh compute provider db update objects #265

Open nirandaperera opened 4 years ago

nirandaperera commented 4 years ago

Specify unified object structures for methods in ComputeNodeABC class that use @DatabaseUpdate decorator. ex:

    def create(self, name=None, image=None, size=None, timeout=360, group=None, **kwargs):

This create method should return a vm object at least with the following structure.

{
    "name" : "test-vm-5",
    "ip_public" : "150.136.163.240",
    "status" : "RUNNING",
    "username": "cm_user",
    "key_name": "test",
    "cm" : {
        "kind" : "vm",
        "name" : "test-vm-5",
        "group" : "cloudmesh",
        "cloud" : "oracle",
        "status" : "available",
        "collection" : "oracle-vm",
        "created" : "2019-12-17 16:05:34.590558",
        "modified" : "2019-12-17 16:07:13.893371",
        "creation_time" : "96.00",
        "driver" : "oracle",
        "updated" : "2019-12-17 16:07:13.373632"
    },
}
laszewsk commented 4 years ago

All clouds need to be checked and documentation to the manual needs to be added