Hi-<div><br></div><div>While going through the source code of the Nova API, i came across the following comments.</div><div><br></div><div><div>class CommonDeserializer(wsgi.MetadataXMLDeserializer):</div><div> """</div>
<div> Common deserializer to handle xml-formatted server create</div><div> requests.</div><div><br></div><div> Handles standard server attributes as well as optional metadata</div><div> and personality attributes</div>
<div> """</div><div><br></div><div> metadata_deserializer = common.MetadataXMLDeserializer()</div><div><br></div><div> def _extract_personality(self, server_node):</div><div> """Marshal the personality attribute of a parsed request"""</div>
<div> node = self.find_first_child_named(server_node, "personality")</div><div> if node is not None:</div><div> personality = []</div><div> for file_node in self.find_children_named(node, "file"):</div>
<div> item = {}</div><div> if file_node.hasAttribute("path"):</div><div> item["path"] = file_node.getAttribute("path")</div><div> item["contents"] = self.extract_text(file_node)</div>
<div> personality.append(item)</div><div> return personality</div><div> else:</div><div> return None</div><div><br></div><div><br></div><div>..............</div><div>.................</div>
<div><br></div><div>Just very interested to know, what kind of metadata is possible here and what doest this PERSONALITY attribute mean.</div><div><br></div><div>Can any me help understand the role of METADATA and its attributes with an example. Even When I brought up the instance, when I view the logs, haven't found any information regarding the metadata.</div>
<div><br></div><div>Please help me in this regard.</div><div><br></div><div>Thanking you all.</div><div><br></div>-- <br>Regards,<br>----------------------------------------------<br>Trinath Somanchi,<div>+91 9866 235 130</div>
<br>
</div>