Commit 83a8456f authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Romain Courteaud

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

parent 3e2b91aa
...@@ -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
...@@ -102,6 +112,15 @@ ...@@ -102,6 +112,15 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>type_mixin</string> </key>
<value>
<tuple>
<string>JIOAPIRevisionMixin</string>
<string>SlapOSCacheMixin</string>
</tuple>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
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
...@@ -7,8 +8,9 @@ Instance Node | SlapOSCacheMixin ...@@ -7,8 +8,9 @@ Instance Node | SlapOSCacheMixin
Person | SlapOSCacheMixin Person | SlapOSCacheMixin
Remote Node | SlapOSCacheMixin Remote Node | SlapOSCacheMixin
Slave Instance | SlapOSCacheMixin Slave Instance | SlapOSCacheMixin
Software Installation | SlapOSCacheMixin
Software Instance | SlapOSCacheMixin Software Instance | SlapOSCacheMixin
Software Installation | SlapOSCacheMixin
Instance Tree | SlapOSInstanceTreeMixin Instance Tree | SlapOSInstanceTreeMixin
Slave Instance | JIOAPIRevisionMixin Slave Instance | JIOAPIRevisionMixin
Software Instance | JIOAPIRevisionMixin Software Instance | JIOAPIRevisionMixin
Software Installation | JIOAPIRevisionMixin
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