summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorgordon chung <gord@live.ca>2015-11-02 14:42:54 -0500
committergordon chung <gord@live.ca>2015-11-12 18:03:35 -0500
commit42b2926c0a96139799bab37db6db31bffec0a2a1 (patch)
treecbd753d235169381e54281e7ce0299a29982d9af /doc
parent3807cdab02981905111197ddde833e77e7915e81 (diff)
downloadpycadf-42b2926c0a96139799bab37db6db31bffec0a2a1.tar.gz
make generate_uuid return valid uuid
original design prepended a namespace to the beginning of uuid. this scoped the uuid to a namespace but it is technically invalid. this patch drops the behaviour of prepending string. rather, it takes the namespace, hashes it, and uses uuid v5 to generate valid uuid based on that namespace Change-Id: Ibde222c91522fa3c4a1720b6a8da81dac31560b9 Closes-Bug: #1504889
Diffstat (limited to 'doc')
-rw-r--r--doc/source/event_concept.rst18
-rw-r--r--doc/source/specification/events.rst10
2 files changed, 14 insertions, 14 deletions
diff --git a/doc/source/event_concept.rst b/doc/source/event_concept.rst
index ff5114a..3e77ce5 100644
--- a/doc/source/event_concept.rst
+++ b/doc/source/event_concept.rst
@@ -104,7 +104,7 @@ details):
"name": "public"
}
],
- "id": "openstack:06747855d62547d4bfd707f75b8a1c54",
+ "id": "06747855d62547d4bfd707f75b8a1c54",
"name": "nova"
},
"observer": {
@@ -112,7 +112,7 @@ details):
},
# tags use to query events on,
"tags": [
- "correlation_id?value=openstack:56cdde6f-6b4e-48a4-94e6-defb40522fb2"
+ "correlation_id?value=56cdde6f-6b4e-48a4-94e6-defb40522fb2"
],
"eventType": "activity",
"initiator": {
@@ -128,8 +128,8 @@ details):
"agent": "python-novaclient",
"address": "9.26.26.250"
},
- "project_id": "openstack:e7e2bcc9c0df4f3eabcd412ae62503f6",
- "id": "openstack:68a3f50705a54f799ce94380fc02ed8a"
+ "project_id": "e7e2bcc9c0df4f3eabcd412ae62503f6",
+ "id": "68a3f50705a54f799ce94380fc02ed8a"
},
# optional Reason for activity event,
"reason": {
@@ -148,7 +148,7 @@ details):
],
"action": "authenticate/logon",
"outcome": "success",
- "id": "openstack:0a196053-95de-48f8-9890-4527b25b5007",
+ "id": "0a196053-95de-48f8-9890-4527b25b5007",
# Event model is extensible so additional attributes may be added to describe model,
"requestPath": "/v2/e7e2bcc9c0df4f3eabcd412ae62503f6/os-certificates"
}
@@ -188,7 +188,7 @@ Event serialisation:
"eventTime": "2014-02-27T19:29:30.855665+0000",
"target": {
"typeURI": "service/compute/cpu",
- "id": "openstack:06747855d62547d4bfd707f75b8a1c54",
+ "id": "06747855d62547d4bfd707f75b8a1c54",
"name": "instance"
},
"observer": {
@@ -198,13 +198,13 @@ Event serialisation:
"initiator": {
"typeURI": "service/oss/monitoring",
"name": "ceilometer-pollster",
- "id": "openstack:68a3f50705a54f799ce94380fc02ed8a"
+ "id": "68a3f50705a54f799ce94380fc02ed8a"
},
"measurement": [
{
"result": "80",
"metric": {
- "metricId": "openstack:<metric_id>",
+ "metricId": "<metric_id>",
"unit": "%",
"name": "CPU utilisation metric"
}
@@ -212,7 +212,7 @@ Event serialisation:
],
"action": "monitor",
"outcome": "success",
- "id": "openstack:0a196053-95de-48f8-9890-4527b25b5007"
+ "id": "0a196053-95de-48f8-9890-4527b25b5007"
}
.. note::
diff --git a/doc/source/specification/events.rst b/doc/source/specification/events.rst
index 7cd781c..058c6de 100644
--- a/doc/source/specification/events.rst
+++ b/doc/source/specification/events.rst
@@ -54,7 +54,7 @@ Serialisation
{
"typeURI": "http://schemas.dmtf.org/cloud/audit/1.0/event",
- "id": "openstack:a80dc5ee-be83-48ad-ad5e-6577f2217637",
+ "id": "a80dc5ee-be83-48ad-ad5e-6577f2217637",
"eventType": "activity",
"action": "read",
"outcome": "success",
@@ -64,10 +64,10 @@ Serialisation
},
"eventTime": "2014-01-17T23:23:38.109989+0000",
"initiator": {
- "id": "openstack:95f12d248a234a969f456cd2c794f29a",
+ "id": "95f12d248a234a969f456cd2c794f29a",
"typeURI": "service/security/account/user",
"name": "admin",
- "project_id": "openstack:e55b158759854ea6a7852aa76632c6c1",
+ "project_id": "e55b158759854ea6a7852aa76632c6c1",
"credential": {
"token": "MIIQBgYJKoZIhvcNAQcCoIIP9z xxxxxx KoZIhvcIP9z=",
"identity_status": "Confirmed"
@@ -78,7 +78,7 @@ Serialisation
}
},
"target": {
- "id": "openstack:0f126160203748a5b4923f2eb6e3b7db",
+ "id": "0f126160203748a5b4923f2eb6e3b7db",
"typeURI": "service/compute/servers",
"name": "nova",
"addresses": [
@@ -110,6 +110,6 @@ Serialisation
],
"requestPath": "/v2/56600971-90f3-4370-807f-ab79339381a9/servers",
"tags": [
- "correlation_id?value=openstack:bcac04dc-e0be-4110-862c-347088a7836a"
+ "correlation_id?value=bcac04dc-e0be-4110-862c-347088a7836a"
]
}