<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Server Metadata: <a href="http://docs.openstack.org/api/openstack-compute/2/content/Server_Metadata-d1e2529.html">http://docs.openstack.org/api/openstack-compute/2/content/Server_Metadata-d1e2529.html</a><div><br></div><div>More Metadata Info: <a href="http://docs.openstack.org/api/openstack-compute/2/content/MetadataSection.html">http://docs.openstack.org/api/openstack-compute/2/content/MetadataSection.html</a><div><br></div><div>Personalities: <a href="http://docs.openstack.org/api/openstack-compute/2/content/Server_Personality-d1e2543.html">http://docs.openstack.org/api/openstack-compute/2/content/Server_Personality-d1e2543.html</a></div><div><br></div><div>Vish</div><div><br><div><div><div>On Aug 31, 2012, at 2:52 AM, Trinath Somanchi <<a href="mailto:trinath.somanchi@gmail.com">trinath.somanchi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">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>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></div></div></body></html>