Commit e5194cb9 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

slapos_cloud: add jio api revision on Software Installation and Compute Node

parent 00177949
...@@ -73,6 +73,7 @@ class SoftwareInstallation(Item, JSONType): ...@@ -73,6 +73,7 @@ class SoftwareInstallation(Item, JSONType):
"reported_state": status_dict.get("state"), "reported_state": status_dict.get("state"),
"status_message": status_dict.get("text"), "status_message": status_dict.get("text"),
"processing_timestamp": self.getSlapTimestamp(), "processing_timestamp": self.getSlapTimestamp(),
"api_revision": self.getJIOAPIRevision(),
} }
result.update() result.update()
return json.dumps(result, indent=2) return json.dumps(result, indent=2)
......
...@@ -83,6 +83,16 @@ ...@@ -83,6 +83,16 @@
"description": "Last Message received for the Software Installation",\n "description": "Last Message received for the Software Installation",\n
"type": "string"\n "type": "string"\n
},\n },\n
"processing_timestamp": {\n
"title": "Processing Timestamp",\n
"type": "number",\n
"description": "Timestamp set by the master node to mark when it was last processed in the master node. If it has been processed on master, it needs reprocessing on the compute node."\n
},\n
"api_revision": {\n
"title": "API Revision",\n
"type": "string",\n
"description": "The API Revision is set by the master node to mark when the element was last processed. It is incremental. If revision has changed, critical data has been updated"\n
},\n
"portal_type": {\n "portal_type": {\n
"title": "Portal Type",\n "title": "Portal Type",\n
"const": "Software Installation",\n "const": "Software Installation",\n
...@@ -106,6 +116,7 @@ ...@@ -106,6 +116,7 @@
<key> <string>type_mixin</string> </key> <key> <string>type_mixin</string> </key>
<value> <value>
<tuple> <tuple>
<string>JIOAPIRevisionMixin</string>
<string>SlapOSCacheMixin</string> <string>SlapOSCacheMixin</string>
</tuple> </tuple>
</value> </value>
......
Catalog Tool | SlapOSCatalogToolCacheMixin Catalog Tool | SlapOSCatalogToolCacheMixin
Compute Node | JIOAPIRevisionMixin
Compute Node | SlapOSCacheMixin Compute Node | SlapOSCacheMixin
Compute Node | SlapOSComputeNodeMixin Compute Node | SlapOSComputeNodeMixin
Compute Partition | SlapOSCacheMixin Compute Partition | SlapOSCacheMixin
...@@ -6,4 +7,5 @@ Compute Partition | SlapOSComputePartitionMixin ...@@ -6,4 +7,5 @@ Compute Partition | SlapOSComputePartitionMixin
Instance Tree | SlapOSInstanceTreeMixin Instance Tree | SlapOSInstanceTreeMixin
Person | SlapOSCacheMixin Person | SlapOSCacheMixin
Slave Instance | JIOAPIRevisionMixin Slave Instance | JIOAPIRevisionMixin
Software Installation | JIOAPIRevisionMixin
Software Instance | JIOAPIRevisionMixin Software Instance | JIOAPIRevisionMixin
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment