Commit 10a8482f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

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

parent 4590c090
......@@ -73,6 +73,7 @@ class SoftwareInstallation(Item, JSONType):
"reported_state": status_dict.get("state"),
"status_message": status_dict.get("text"),
"processing_timestamp": self.getSlapTimestamp(),
"api_revision": self.getJIOAPIRevision(),
}
result.update()
return json.dumps(result, indent=2)
......
......@@ -83,6 +83,16 @@
"description": "Last Message received for the Software Installation",\n
"type": "string"\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
"title": "Portal Type",\n
"const": "Software Installation",\n
......@@ -107,6 +117,7 @@
<value>
<tuple>
<string>SlapOSCacheMixin</string>
<string>JIOAPIRevisionMixin</string>
</tuple>
</value>
</item>
......
Catalog Tool | SlapOSCatalogToolCacheMixin
Compute Node | JIOAPIRevisionMixin
Compute Node | SlapOSCacheMixin
Compute Node | SlapOSComputeNodeMixin
Compute Partition | SlapOSCacheMixin
......@@ -6,4 +7,5 @@ Compute Partition | SlapOSComputePartitionMixin
Instance Tree | SlapOSInstanceTreeMixin
Person | SlapOSCacheMixin
Slave Instance | JIOAPIRevisionMixin
Software Installation | 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