1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright (c) 2017-2018 VMware, Inc.
6 Event/Alert/Metrics Federation
9 As a cloud mediation layer, Multicloud could be invoked by many projects, through this feature, Multicloud will provide
10 VM status/events check and also can customize the type of event which user would like to receive. There are some
11 kinds of VM status can be chosen: DELETE, PAUSE, POWER_OFF, REBUILD,SHUT_DOWN, SOFT_DELETE, etc.. In VMware VIO Plugin,
12 once any change of VM status is detected of a given type, Multicloud will catch the event and throw it to DMaaP.
13 Other projects can try this way of getting VM status messages in the future. Also, for other Multicloud plugin providers,
14 due to some issues, there will be rest apis for them to grab the VM status messages.
16 The APP-C won't be impacted since APP-C can still call the existing API which implemented in Amsterdam Release
17 and the API is an existing API
22 In VIO, one typical use case is to allow VIO users to fetch messages from DMaaP, this will provide a easier way for fetching status of
23 VMs, it may drastically reduce the time of close loop, for other Multicloud plugin providers, Multicloud will provide a set of
32 The proposed change will include two parts: * listener: to listen the events of the status change of VM, for others it
33 will have rest apis to get the messages * publisher: to throw the event to DMaaP.The message we try to send is something like this:
35 "state_description": "powering-off",
36 "availability_zone": "nova",
39 "instance_type_id": 5,
41 "reservation_id": "r-pvx3l6s2",
43 "display_name": "VM1",
47 "launched_at": "2018-03-07T05:59:46.000000",
49 "node": "domain-c202.22bfc05c-da55-4ba6-ba93-08d9a067138e",
56 "user_id": "aa90efa5c84c4084b39094da952e0bd1",
57 "image_ref_url": "http://10.154.9.172:9292/images/207b9b7c-9450-4a95-852b-0d6d41f35d24",
60 "tenant_id": "943ecb804cdf4103976b8a02cea12fdb",
61 "created_at": "2018-03-07 05:58:01+00:00",
62 "instance_id": "4f398943-7d39-4119-8058-74768d6dfa52",
63 "instance_type": "m1.small",
67 "container_format": "bare",
69 "vmware_disktype": "streamOptimized",
70 "disk_format": "vmdk",
72 "image_url": "https://cloud-images.ubuntu.com/releases/14.04/release/ubuntu-14.04-server-cloudimg-amd64-disk1.img",
73 "vmware_adaptertype": "lsiLogic",
75 "base_image_ref": "207b9b7c-9450-4a95-852b-0d6d41f35d24"
79 "instance_flavor_id": "2"
82 The eventual work flow looks like as follows:
93 +-----------------------+ +------------------+
94 | Multicloud VIO Plugin |----------->| Dmaap |
96 +--------|-----^--------+ +------------------+
100 +----------------------+
102 +----------------------+
107 Since the security rules of VIMs and network connectivity issues, other multicloud plugins won't be suitable for the
108 oslo notification listener, so we will provide rest apis for them, the specific implementation will be dicided by them
110 Input of <vim_id>/check_vim_status will be
114 "states": array // the set of VIM status which user wants to get
117 Output of check_vim_status will be
121 "state_description": string // VIM's state
122 "launched_at": string // time of state change
125 The work flow looks like as follows:
136 +-----------------------+
137 | Multicloud Plugins |
139 +--------|-----^--------+
143 +----------------------+
145 +----------------------+