demo folder
This commit is contained in:
parent
ded95f0714
commit
7770f7b9b0
|
@ -0,0 +1,141 @@
|
|||
#!/opt/monasca/bin/python
|
||||
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
# implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This script is designed to demo the entire Monasca Events package.
|
||||
# It will post a stream defintion and transform defintion,
|
||||
# and then it'll generate events at 5 per minute
|
||||
|
||||
|
||||
import datetime
|
||||
import json
|
||||
import kafka
|
||||
import sys
|
||||
import time
|
||||
|
||||
import notigen
|
||||
import requests
|
||||
import yaml
|
||||
|
||||
from monascaclient import ksclient
|
||||
|
||||
events_url = "http://192.168.10.4:8082/v2.0"
|
||||
|
||||
def token():
|
||||
keystone = {
|
||||
'username': 'mini-mon',
|
||||
'password': 'password',
|
||||
'project': 'test',
|
||||
'auth_url': 'http://192.168.10.5:35357/v3'
|
||||
}
|
||||
ks_client = ksclient.KSClient(**keystone)
|
||||
return ks_client.token
|
||||
|
||||
headers = {
|
||||
'X-Auth-User': 'mini-mon',
|
||||
'X-Auth-Key': 'password',
|
||||
'X-Auth-Token': token(),
|
||||
'Accept': 'application/json',
|
||||
'User-Agent': 'python-monascaclient',
|
||||
'Content-Type': 'application/json'}
|
||||
|
||||
def stream_definition_post():
|
||||
body = {}
|
||||
|
||||
notif_resp = requests.get(
|
||||
url="http://192.168.10.4:8080/v2.0/notification-methods",
|
||||
data=json.dumps(body), headers=headers)
|
||||
notif_dict = json.loads(notif_resp.text)
|
||||
action_id = str(notif_dict['elements'][0]['id'])
|
||||
|
||||
body = {"fire_criteria": [{"event_type": "compute.instance.create.start"},
|
||||
{"event_type": "compute.instance.create.end"}],
|
||||
"description": "provisioning duration",
|
||||
"name": "Example Stream Definition",
|
||||
"group_by": ["instance_id"],
|
||||
"expiration": 3000,
|
||||
"select": [{"traits": {"tenant_id": "406904"},
|
||||
"event_type": "compute.instance.create.*"}],
|
||||
"fire_actions": [action_id],
|
||||
"expire_actions": [action_id]}
|
||||
|
||||
response = requests.post(
|
||||
url=events_url + "/stream-definitions",
|
||||
data=json.dumps(body),
|
||||
headers=headers)
|
||||
|
||||
|
||||
def transform_definition_post():
|
||||
|
||||
# Open example yaml file and post to DB
|
||||
fh = open('files/transform_definition.yaml', 'r')
|
||||
specification_data = yaml.load(fh)
|
||||
|
||||
body = {
|
||||
"name": 'Example Transform Definition',
|
||||
"description": 'an example description',
|
||||
"specification": str(specification_data)
|
||||
}
|
||||
|
||||
response = requests.post(
|
||||
url=events_url + "/transforms",
|
||||
data=json.dumps(body),
|
||||
headers=headers)
|
||||
|
||||
def event_generator():
|
||||
|
||||
# generate 5 events per minute
|
||||
g = notigen.EventGenerator("files/event_templates", operations_per_hour=300)
|
||||
now = datetime.datetime.utcnow()
|
||||
start = now
|
||||
nevents = 0
|
||||
|
||||
length = 0
|
||||
|
||||
while nevents < 300:
|
||||
e = g.generate(now)
|
||||
if e:
|
||||
nevents += len(e)
|
||||
key = time.time() * 1000
|
||||
|
||||
msg = e
|
||||
|
||||
if len(msg) > length:
|
||||
length = len(msg)
|
||||
print("Max notification size: {}".format(length))
|
||||
|
||||
response = requests.post(
|
||||
url=events_url + "/events",
|
||||
data=json.dumps(msg),
|
||||
headers=headers)
|
||||
|
||||
now = datetime.datetime.utcnow()
|
||||
time.sleep(0.01)
|
||||
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
stream_definition_post()
|
||||
transform_definition_post()
|
||||
event_generator()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,974 @@
|
|||
[
|
||||
{
|
||||
"xuuid": 9,
|
||||
"v4": 14,
|
||||
"time_map": {
|
||||
"[[[[DT_9]]]]": [
|
||||
0,
|
||||
3,
|
||||
962765
|
||||
],
|
||||
"[[[[DT_5]]]]": [
|
||||
-1,
|
||||
86398,
|
||||
713424
|
||||
],
|
||||
"[[[[DT_17]]]]": [
|
||||
-199,
|
||||
84770,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_23]]]]": [
|
||||
0,
|
||||
4,
|
||||
536102
|
||||
],
|
||||
"[[[[DT_16]]]]": [
|
||||
-163,
|
||||
42547,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_20]]]]": [
|
||||
-199,
|
||||
85752,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_2]]]]": [
|
||||
-199,
|
||||
84770,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_15]]]]": [
|
||||
-199,
|
||||
84639,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_7]]]]": [
|
||||
0,
|
||||
0,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_21]]]]": [
|
||||
-199,
|
||||
85943,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_11]]]]": [
|
||||
0,
|
||||
4,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_3]]]]": [
|
||||
-1,
|
||||
86399,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_8]]]]": [
|
||||
0,
|
||||
1,
|
||||
163638
|
||||
],
|
||||
"[[[[DT_14]]]]": [
|
||||
-199,
|
||||
84421,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_10]]]]": [
|
||||
0,
|
||||
3,
|
||||
989039
|
||||
],
|
||||
"[[[[DT_4]]]]": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"[[[[DT_22]]]]": [
|
||||
-199,
|
||||
85967,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_1]]]]": [
|
||||
-199,
|
||||
84421,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_13]]]]": [
|
||||
-201,
|
||||
56142,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_6]]]]": [
|
||||
0,
|
||||
0,
|
||||
47717
|
||||
],
|
||||
"[[[[DT_12]]]]": [
|
||||
0,
|
||||
4,
|
||||
463062
|
||||
],
|
||||
"[[[[DT_19]]]]": [
|
||||
-199,
|
||||
85725,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_18]]]]": [
|
||||
0,
|
||||
0,
|
||||
268272
|
||||
],
|
||||
"[[[[DT_0]]]]": [
|
||||
-1,
|
||||
46116,
|
||||
268272
|
||||
]
|
||||
},
|
||||
"uuid": 18,
|
||||
"v6": 2
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"bandwidth": {},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"old_state": null,
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": null,
|
||||
"audit_period_ending": "[[[[DT_3]]]]",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_3]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_4]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_2]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "deleting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"bandwidth": {},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"old_state": "error",
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_3]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "deleting",
|
||||
"audit_period_ending": "[[[[DT_3]]]]",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_4]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_6]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_3]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "deleting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"bandwidth": {},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"old_state": "error",
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "deleting",
|
||||
"audit_period_ending": "[[[[DT_7]]]]",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_5]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_8]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_4]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.delete.start",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "deleting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_6]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_9]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_5]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.shutdown.start",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "deleting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_7]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_10]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_6]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "deleting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"bandwidth": {},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "error",
|
||||
"old_state": null,
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 640,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 61440,
|
||||
"instance_type": "60 GB Performance",
|
||||
"vcpus": 16,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "1024",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "False",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "windows",
|
||||
"org.openstack__1__os_version": "2008.2"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "deleting",
|
||||
"audit_period_ending": "[[[[DT_11]]]]",
|
||||
"os_type": "windows",
|
||||
"instance_flavor_id": "performance2-60"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_8]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_12]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_7]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "terminate_instance",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"exception": {},
|
||||
"args": {
|
||||
"instance": {
|
||||
"vm_state": "error",
|
||||
"availability_zone": null,
|
||||
"terminated_at": null,
|
||||
"ephemeral_gb": 600,
|
||||
"instance_type_id": 15,
|
||||
"user_data": null,
|
||||
"cleaned": false,
|
||||
"vm_mode": "hvm",
|
||||
"deleted_at": null,
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"id": 346688,
|
||||
"security_groups": {
|
||||
"objects": [
|
||||
{
|
||||
"deleted_at": null,
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"description": "default",
|
||||
"deleted": false,
|
||||
"created_at": "[[[[DT_13]]]]",
|
||||
"updated_at": null,
|
||||
"project_id": "[[[[tenant_id]]]]",
|
||||
"id": 187,
|
||||
"name": "[[[[display_name]]]]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"disable_terminate": false,
|
||||
"root_device_name": "/dev/xvda",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"uuid": "[[[[UUID_1]]]]",
|
||||
"default_swap_device": null,
|
||||
"info_cache": {
|
||||
"instance_uuid": "[[[[UUID_1]]]]",
|
||||
"deleted": true,
|
||||
"created_at": "[[[[DT_14]]]]",
|
||||
"updated_at": "[[[[DT_15]]]]",
|
||||
"network_info": [
|
||||
{
|
||||
"ovs_interfaceid": null,
|
||||
"network": {
|
||||
"bridge": "publicnet",
|
||||
"label": "public",
|
||||
"meta": {
|
||||
"original_id": "[[[[UUID_9]]]]",
|
||||
"nvp_managed": false
|
||||
},
|
||||
"id": "[[[[UUID_10]]]]",
|
||||
"subnets": [
|
||||
{
|
||||
"ips": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "fixed",
|
||||
"floating_ips": [],
|
||||
"version": 6,
|
||||
"address": "[[[[V6_1]]]]"
|
||||
}
|
||||
],
|
||||
"version": 6,
|
||||
"meta": {},
|
||||
"dns": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_5]]]]"
|
||||
},
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_6]]]]"
|
||||
}
|
||||
],
|
||||
"routes": [],
|
||||
"cidr": "2a00:1a48:7807:101::/64",
|
||||
"gateway": {
|
||||
"meta": {},
|
||||
"type": "gateway",
|
||||
"version": 6,
|
||||
"address": "fe80::def"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ips": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "fixed",
|
||||
"floating_ips": [],
|
||||
"version": 4,
|
||||
"address": "[[[[V4_0]]]]"
|
||||
}
|
||||
],
|
||||
"version": 4,
|
||||
"meta": {},
|
||||
"dns": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_5]]]]"
|
||||
},
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_6]]]]"
|
||||
}
|
||||
],
|
||||
"routes": [],
|
||||
"cidr": "[[[[V4_7]]]]/24",
|
||||
"gateway": {
|
||||
"meta": {},
|
||||
"type": "gateway",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_8]]]]"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"devname": "[[[[device_name]]]]",
|
||||
"qbh_params": null,
|
||||
"meta": {},
|
||||
"address": "BC:76:4E:08:43:27",
|
||||
"type": null,
|
||||
"id": "[[[[UUID_11]]]]",
|
||||
"qbg_params": null
|
||||
},
|
||||
{
|
||||
"ovs_interfaceid": null,
|
||||
"network": {
|
||||
"bridge": "servicenet",
|
||||
"label": "private",
|
||||
"meta": {
|
||||
"original_id": "[[[[UUID_12]]]]",
|
||||
"nvp_managed": false
|
||||
},
|
||||
"id": "[[[[UUID_13]]]]",
|
||||
"subnets": [
|
||||
{
|
||||
"ips": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "fixed",
|
||||
"floating_ips": [],
|
||||
"version": 4,
|
||||
"address": "[[[[V4_9]]]]"
|
||||
}
|
||||
],
|
||||
"version": 4,
|
||||
"meta": {},
|
||||
"dns": [
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_5]]]]"
|
||||
},
|
||||
{
|
||||
"meta": {},
|
||||
"type": "dns",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_6]]]]"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"interface": null,
|
||||
"cidr": "[[[[V4_10]]]]/12",
|
||||
"meta": {},
|
||||
"gateway": {
|
||||
"meta": {},
|
||||
"type": "gateway",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_11]]]]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"interface": null,
|
||||
"cidr": "[[[[V4_12]]]]/12",
|
||||
"meta": {},
|
||||
"gateway": {
|
||||
"meta": {},
|
||||
"type": "gateway",
|
||||
"version": 4,
|
||||
"address": "[[[[V4_11]]]]"
|
||||
}
|
||||
}
|
||||
],
|
||||
"cidr": "[[[[V4_13]]]]/20",
|
||||
"gateway": null
|
||||
}
|
||||
]
|
||||
},
|
||||
"devname": "[[[[device_name]]]]",
|
||||
"qbh_params": null,
|
||||
"meta": {},
|
||||
"address": "BC:76:4E:08:92:48",
|
||||
"type": null,
|
||||
"id": "[[[[UUID_14]]]]",
|
||||
"qbg_params": null
|
||||
}
|
||||
],
|
||||
"deleted_at": "[[[[DT_16]]]]"
|
||||
},
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"launched_on": "c-10-21-128-29",
|
||||
"display_description": "[[[[display_name]]]]",
|
||||
"key_data": null,
|
||||
"deleted": false,
|
||||
"config_drive": "",
|
||||
"power_state": 0,
|
||||
"default_ephemeral_device": null,
|
||||
"progress": 0,
|
||||
"project_id": "[[[[tenant_id]]]]",
|
||||
"launched_at": "[[[[DT_17]]]]",
|
||||
"scheduled_at": "[[[[DT_14]]]]",
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"key_name": null,
|
||||
"updated_at": "[[[[DT_18]]]]",
|
||||
"host": "[[[[host]]]]",
|
||||
"root_gb": 40,
|
||||
"user_id": "[[[[XUUID_1]]]]",
|
||||
"system_metadata": {
|
||||
"instance_type_id": "15",
|
||||
"image_min_ram": "1024",
|
||||
"instance_type_vcpu_weight": "10",
|
||||
"image_cache_in_nova": "True",
|
||||
"instance_type_ephemeral_gb": "600",
|
||||
"image_org.openstack__1__os_version": "2008.2",
|
||||
"image_org.openstack__1__os_distro": "com.microsoft.server",
|
||||
"image_org.openstack__1__architecture": "x64",
|
||||
"image_base_image_ref": "[[[[UUID_2]]]]",
|
||||
"image_os_type": "windows",
|
||||
"instance_type_root_gb": "40",
|
||||
"instance_type_name": "60 GB Performance",
|
||||
"image_image_type": "base",
|
||||
"instance_type_rxtx_factor": "5000.0",
|
||||
"image_auto_disk_config": "False",
|
||||
"instance_type_vcpus": "16",
|
||||
"image_disk_format": "vhd",
|
||||
"instance_type_memory_mb": "61440",
|
||||
"instance_type_swap": "0",
|
||||
"image_min_disk": "40",
|
||||
"instance_type_flavorid": "performance2-60",
|
||||
"image_container_format": "ovf"
|
||||
},
|
||||
"task_state": "deleting",
|
||||
"shutdown_terminate": false,
|
||||
"cell_name": null,
|
||||
"ephemeral_key_uuid": null,
|
||||
"locked": false,
|
||||
"name": "instance-[[[[UUID_1]]]]",
|
||||
"created_at": "[[[[DT_14]]]]",
|
||||
"locked_by": null,
|
||||
"launch_index": 0,
|
||||
"memory_mb": 61440,
|
||||
"vcpus": 16,
|
||||
"image_ref": "[[[[UUID_2]]]]",
|
||||
"architecture": "x64",
|
||||
"auto_disk_config": false,
|
||||
"os_type": "windows",
|
||||
"metadata": {}
|
||||
},
|
||||
"self": null,
|
||||
"context": {
|
||||
"project_name": "[[[[tenant_id]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"_read_deleted": "no",
|
||||
"timestamp": "[[[[DT_5]]]]",
|
||||
"auth_token": "[[[[XUUID_0]]]]",
|
||||
"remote_address": "[[[[V4_2]]]]",
|
||||
"quota_class": null,
|
||||
"is_admin": true,
|
||||
"glance_api_servers": null,
|
||||
"request_id": "req-[[[[UUID_0]]]]",
|
||||
"instance_lock_checked": false,
|
||||
"project_id": "[[[[tenant_id]]]]",
|
||||
"user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
"bdms": [
|
||||
{
|
||||
"instance_uuid": "[[[[UUID_1]]]]",
|
||||
"virtual_name": null,
|
||||
"no_device": null,
|
||||
"created_at": "[[[[DT_19]]]]",
|
||||
"snapshot_id": null,
|
||||
"updated_at": "[[[[DT_20]]]]",
|
||||
"device_name": "/dev/xvdb",
|
||||
"deleted": 0,
|
||||
"volume_size": null,
|
||||
"volume_id": "[[[[UUID_15]]]]",
|
||||
"id": 13754,
|
||||
"deleted_at": null,
|
||||
"delete_on_termination": false
|
||||
},
|
||||
{
|
||||
"instance_uuid": "[[[[UUID_1]]]]",
|
||||
"virtual_name": null,
|
||||
"no_device": null,
|
||||
"created_at": "[[[[DT_21]]]]",
|
||||
"snapshot_id": null,
|
||||
"updated_at": "[[[[DT_22]]]]",
|
||||
"device_name": "/dev/xvdc",
|
||||
"deleted": 0,
|
||||
"volume_size": null,
|
||||
"volume_id": "[[[[UUID_16]]]]",
|
||||
"id": 13755,
|
||||
"deleted_at": null,
|
||||
"delete_on_termination": false
|
||||
}
|
||||
],
|
||||
"reservations": []
|
||||
}
|
||||
},
|
||||
"priority": "ERROR",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_17]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"user-admin",
|
||||
"bofh",
|
||||
"glance",
|
||||
"glance:admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_23]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_8]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,370 @@
|
|||
[
|
||||
{
|
||||
"xuuid": 4,
|
||||
"v4": 2,
|
||||
"time_map": {
|
||||
"[[[[DT_9]]]]": [
|
||||
0,
|
||||
1,
|
||||
19109
|
||||
],
|
||||
"[[[[DT_5]]]]": [
|
||||
-1,
|
||||
86392,
|
||||
365732
|
||||
],
|
||||
"[[[[DT_7]]]]": [
|
||||
0,
|
||||
0,
|
||||
667761
|
||||
],
|
||||
"[[[[DT_1]]]]": [
|
||||
-321,
|
||||
54605,
|
||||
667761
|
||||
],
|
||||
"[[[[DT_3]]]]": [
|
||||
-1,
|
||||
86399,
|
||||
667761
|
||||
],
|
||||
"[[[[DT_8]]]]": [
|
||||
0,
|
||||
0,
|
||||
990505
|
||||
],
|
||||
"[[[[DT_4]]]]": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"[[[[DT_6]]]]": [
|
||||
0,
|
||||
0,
|
||||
175295
|
||||
],
|
||||
"[[[[DT_0]]]]": [
|
||||
-1,
|
||||
19714,
|
||||
667761
|
||||
],
|
||||
"[[[[DT_2]]]]": [
|
||||
-321,
|
||||
54911,
|
||||
667761
|
||||
]
|
||||
},
|
||||
"uuid": 7,
|
||||
"v6": 1
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": null,
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "powering-off",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 0,
|
||||
"instance_type_id": 5,
|
||||
"bandwidth": {
|
||||
"public": {
|
||||
"bw_in": 537783,
|
||||
"bw_out": 19189871
|
||||
}
|
||||
},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"old_state": "active",
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 160,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 160,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 4096,
|
||||
"instance_type": "4GB Standard Instance",
|
||||
"vcpus": 2,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "rhel",
|
||||
"org.openstack__1__os_distro": "com.redhat",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "True",
|
||||
"min_disk": "160",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "6.3"
|
||||
},
|
||||
"architecture": null,
|
||||
"new_task_state": "powering-off",
|
||||
"audit_period_ending": "[[[[DT_3]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "5"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_3]]]]",
|
||||
"_context_remote_address": null,
|
||||
"_context_roles": [],
|
||||
"timestamp": "[[[[DT_4]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_0]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.power_off.start",
|
||||
"_context_auth_token": null,
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "powering-off",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 0,
|
||||
"instance_type_id": 5,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 160,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 160,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 4096,
|
||||
"instance_type": "4GB Standard Instance",
|
||||
"vcpus": 2,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "rhel",
|
||||
"org.openstack__1__os_distro": "com.redhat",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "True",
|
||||
"min_disk": "160",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "6.3"
|
||||
},
|
||||
"architecture": null,
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "5"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_4]]]]",
|
||||
"_context_remote_address": null,
|
||||
"_context_roles": [],
|
||||
"timestamp": "[[[[DT_6]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_1]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": null,
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 0,
|
||||
"instance_type_id": 5,
|
||||
"bandwidth": {
|
||||
"public": {
|
||||
"bw_in": 537783,
|
||||
"bw_out": 19189871
|
||||
}
|
||||
},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "stopped",
|
||||
"old_state": "active",
|
||||
"old_task_state": "powering-off",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 160,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 160,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 4096,
|
||||
"instance_type": "4GB Standard Instance",
|
||||
"vcpus": 2,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "rhel",
|
||||
"org.openstack__1__os_distro": "com.redhat",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "True",
|
||||
"min_disk": "160",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "6.3"
|
||||
},
|
||||
"architecture": null,
|
||||
"new_task_state": null,
|
||||
"audit_period_ending": "[[[[DT_7]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "5"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_5]]]]",
|
||||
"_context_remote_address": null,
|
||||
"_context_roles": [],
|
||||
"timestamp": "[[[[DT_8]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_2]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.power_off.end",
|
||||
"_context_auth_token": null,
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 0,
|
||||
"instance_type_id": 5,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "stopped",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 160,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 160,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 4096,
|
||||
"instance_type": "4GB Standard Instance",
|
||||
"vcpus": 2,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "rhel",
|
||||
"org.openstack__1__os_distro": "com.redhat",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "True",
|
||||
"min_disk": "160",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "6.3"
|
||||
},
|
||||
"architecture": null,
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "5"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_6]]]]",
|
||||
"_context_remote_address": null,
|
||||
"_context_roles": [],
|
||||
"timestamp": "[[[[DT_9]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_3]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
}
|
||||
]
|
|
@ -0,0 +1,598 @@
|
|||
[
|
||||
{
|
||||
"xuuid": 7,
|
||||
"v4": 5,
|
||||
"time_map": {
|
||||
"[[[[DT_9]]]]": [
|
||||
0,
|
||||
1,
|
||||
667540
|
||||
],
|
||||
"[[[[DT_12]]]]": [
|
||||
0,
|
||||
104,
|
||||
358269
|
||||
],
|
||||
"[[[[DT_5]]]]": [
|
||||
-1,
|
||||
86399,
|
||||
584928
|
||||
],
|
||||
"[[[[DT_7]]]]": [
|
||||
0,
|
||||
0,
|
||||
838660
|
||||
],
|
||||
"[[[[DT_1]]]]": [
|
||||
-53,
|
||||
31457,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_3]]]]": [
|
||||
-1,
|
||||
86399,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_8]]]]": [
|
||||
0,
|
||||
1,
|
||||
257119
|
||||
],
|
||||
"[[[[DT_10]]]]": [
|
||||
0,
|
||||
103,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_4]]]]": [
|
||||
0,
|
||||
0,
|
||||
0
|
||||
],
|
||||
"[[[[DT_6]]]]": [
|
||||
0,
|
||||
0,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_0]]]]": [
|
||||
-1,
|
||||
81879,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_2]]]]": [
|
||||
-53,
|
||||
31518,
|
||||
654695
|
||||
],
|
||||
"[[[[DT_11]]]]": [
|
||||
0,
|
||||
104,
|
||||
332227
|
||||
]
|
||||
},
|
||||
"uuid": 9,
|
||||
"v6": 1
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "rebooting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"bandwidth": {},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"old_state": "active",
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_1]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "rebooting",
|
||||
"audit_period_ending": "[[[[DT_3]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": false,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_3]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_4]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_1]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "rebooting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"bandwidth": {
|
||||
"public": {
|
||||
"bw_in": 1142550,
|
||||
"bw_out": 4402404
|
||||
},
|
||||
"private": {
|
||||
"bw_in": 29028,
|
||||
"bw_out": 15580
|
||||
}
|
||||
},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"old_state": "active",
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_3]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "rebooting",
|
||||
"audit_period_ending": "[[[[DT_6]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": false,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_4]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_7]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_2]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.reboot.start",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "rebooting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_5]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_8]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_3]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "rebooting",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"bandwidth": {
|
||||
"public": {
|
||||
"bw_in": 1142550,
|
||||
"bw_out": 4402404
|
||||
},
|
||||
"private": {
|
||||
"bw_in": 29028,
|
||||
"bw_out": 15580
|
||||
}
|
||||
},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"old_state": null,
|
||||
"old_task_state": null,
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": "rebooting",
|
||||
"audit_period_ending": "[[[[DT_6]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": false,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_6]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_9]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_4]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.update",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"bandwidth": {
|
||||
"public": {
|
||||
"bw_in": 1142550,
|
||||
"bw_out": 4402404
|
||||
},
|
||||
"private": {
|
||||
"bw_in": 29028,
|
||||
"bw_out": 15580
|
||||
}
|
||||
},
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"old_state": "active",
|
||||
"old_task_state": "rebooting",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"audit_period_beginning": "[[[[DT_0]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"new_task_state": null,
|
||||
"audit_period_ending": "[[[[DT_10]]]]",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": false,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_7]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_11]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_5]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
},
|
||||
{
|
||||
"_context_request_id": "req-[[[[UUID_0]]]]",
|
||||
"_context_quota_class": null,
|
||||
"event_type": "compute.instance.reboot.end",
|
||||
"_context_auth_token": "[[[[XUUID_0]]]]",
|
||||
"_context_user_id": "[[[[user_id]]]]",
|
||||
"payload": {
|
||||
"state_description": "",
|
||||
"availability_zone": null,
|
||||
"terminated_at": "",
|
||||
"ephemeral_gb": 80,
|
||||
"instance_type_id": 12,
|
||||
"deleted_at": "",
|
||||
"reservation_id": "[[[[reservation_id]]]]",
|
||||
"instance_id": "[[[[UUID_1]]]]",
|
||||
"user_id": "[[[[user_id]]]]",
|
||||
"hostname": "[[[[hostname]]]]",
|
||||
"state": "active",
|
||||
"launched_at": "[[[[DT_2]]]]",
|
||||
"metadata": {},
|
||||
"node": "[[[[node]]]]",
|
||||
"ramdisk_id": "",
|
||||
"access_ip_v6": "[[[[V6_0]]]]",
|
||||
"disk_gb": 120,
|
||||
"access_ip_v4": "[[[[V4_0]]]]",
|
||||
"kernel_id": "",
|
||||
"host": "[[[[host]]]]",
|
||||
"display_name": "[[[[display_name]]]]",
|
||||
"image_ref_url": "http://[[[[V4_4]]]]:9292/images/[[[[UUID_2]]]]",
|
||||
"root_gb": 40,
|
||||
"tenant_id": "[[[[tenant_id]]]]",
|
||||
"created_at": "[[[[DT_1]]]]",
|
||||
"memory_mb": 8192,
|
||||
"instance_type": "8 GB Performance",
|
||||
"vcpus": 8,
|
||||
"image_meta": {
|
||||
"container_format": "ovf",
|
||||
"min_ram": "512",
|
||||
"vm_mode": "hvm",
|
||||
"base_image_ref": "[[[[UUID_2]]]]",
|
||||
"os_distro": "fedora",
|
||||
"org.openstack__1__os_distro": "org.fedoraproject",
|
||||
"image_type": "base",
|
||||
"disk_format": "vhd",
|
||||
"org.openstack__1__architecture": "x64",
|
||||
"auto_disk_config": "disabled",
|
||||
"min_disk": "40",
|
||||
"cache_in_nova": "True",
|
||||
"os_type": "linux",
|
||||
"org.openstack__1__os_version": "20"
|
||||
},
|
||||
"architecture": "x64",
|
||||
"os_type": "linux",
|
||||
"instance_flavor_id": "performance1-8"
|
||||
},
|
||||
"priority": "INFO",
|
||||
"_context_is_admin": true,
|
||||
"_context_user": "[[[[user_id]]]]",
|
||||
"publisher_id": "[[[[publisher_id]]]]",
|
||||
"message_id": "[[[[UUID_8]]]]",
|
||||
"_context_remote_address": "[[[[V4_2]]]]",
|
||||
"_context_roles": [
|
||||
"checkmate",
|
||||
"object-store:default",
|
||||
"compute:default",
|
||||
"identity:user-admin",
|
||||
"admin"
|
||||
],
|
||||
"timestamp": "[[[[DT_12]]]]",
|
||||
"_context_timestamp": "[[[[DT_5]]]]",
|
||||
"_unique_id": "[[[[XUUID_6]]]]",
|
||||
"_context_glance_api_servers": null,
|
||||
"_context_project_name": "[[[[tenant_id]]]]",
|
||||
"_context_read_deleted": "no",
|
||||
"_context_tenant": "[[[[tenant_id]]]]",
|
||||
"_context_instance_lock_checked": false,
|
||||
"_context_project_id": "[[[[tenant_id]]]]",
|
||||
"_context_user_name": "[[[[user_id]]]]"
|
||||
}
|
||||
]
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,3 @@
|
|||
EVENT MAGIC<br>
|
||||
EVENT MAGIC<br>
|
||||
WHAT<br>
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
$event = $_POST["event"];
|
||||
|
||||
$file = 'data.txt';
|
||||
|
||||
$current = file_get_contents($file);
|
||||
$current .= $event ."<br> \n";
|
||||
file_put_contents($file, $current);
|
||||
|
||||
?>
|
|
@ -0,0 +1,32 @@
|
|||
<html>
|
||||
<head>
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
|
||||
|
||||
<!-- Latest compiled and minified jQuery -->
|
||||
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
setInterval(function(){
|
||||
$("#events").load('data.txt');
|
||||
}, 3000);
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
<div id="events"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
- event_type: compute.instance.*
|
||||
traits: &instance_traits
|
||||
tenant_id:
|
||||
fields: payload.tenant_id
|
||||
service:
|
||||
fields: publisher_id
|
||||
plugin: split
|
||||
- event_type: compute.instance.exists
|
||||
traits:
|
||||
<<: *instance_traits
|
||||
audit_period_beginning:
|
||||
type: datetime
|
||||
fields: payload.audit_period_beginning
|
||||
audit_period_ending:
|
||||
type: datetime
|
||||
fields: payload.audit_period_ending
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
#/bin/bash
|
||||
php -S 0.0.0.0:8765 -t files/server
|
Loading…
Reference in New Issue