)]}'
{"openstack_dashboard/api/rest/nova.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"ab53411c7c3fbedf7f30396a2a031b8ba883e63a","unresolved":false,"context_lines":[{"line_number":216,"context_line":"        if updated:"},{"line_number":217,"context_line":"            api.nova.server_metadata_update(request, server_id, updated)"},{"line_number":218,"context_line":"        if removed:"},{"line_number":219,"context_line":"            api.nova.server_metadata_delete(request, server_id, removed)"},{"line_number":220,"context_line":""},{"line_number":221,"context_line":""},{"line_number":222,"context_line":"@urls.register"}],"source_content_type":"text/x-python","patch_set":6,"id":"ba8a016a_8d7a0476","line":219,"updated":"2015-11-18 17:50:44.000000000","message":"Hard to believe Nova doesn\u0027t just let us do this in one call, but based on reading the API docs, it looks like this is the only option.\n\nhttp://developer.openstack.org/api-ref-compute-v2.1.html#server-metadata-v2.1","commit_id":"9b9f35a05901561d67c73a7b59051bb77cd5f3c2"}],"openstack_dashboard/static/app/core/metadata/metadata.service.js":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"6e80c391d9ba11c27bc3de057c9114c7a0aeb82c","unresolved":false,"context_lines":[{"line_number":78,"context_line":"     *"},{"line_number":79,"context_line":"     * @param {string} resource Resource type."},{"line_number":80,"context_line":"     */"},{"line_number":81,"context_line":"    function getNamespaces(resource) {"},{"line_number":82,"context_line":"      return glance.getNamespaces({"},{"line_number":83,"context_line":"        resource_type: {"},{"line_number":84,"context_line":"          aggregate: \u0027OS::Nova::Aggregate\u0027,"}],"source_content_type":"text/javascript","patch_set":3,"id":"da85f559_4cc4773f","line":81,"updated":"2015-11-13 22:58:57.000000000","message":"I said earlier that we should open a separate bug, but, in testing, I found that if the the glance API is set to v1 only, that this will cause an error in the UI meaning we\u0027ve got something broken on master for any deployer that happens to deploy from master and still be on glance v1:\n\n Error: Unable to retrieve the namespaces\n\nSo, I think we should deal with this here before merging (or in a parent patch to keep separate).\n\nTo replicate:\n\n Go into /etc/glance/glance-api.conf\n\nSet the following:\n\n enable_v1_api \u003d true\n enable_v2_api \u003d false\n\nRestart glance API.\n\nSo, we can handle this in several ways.\n\nYou could set the allowed on the action to only be allowed if:\n\n glance.VERSIONS.active \u003e\u003d 2\n\nOr you could return an empty array for the getNamespaces calls from the clientside javascript or on server side if the glance version is not \u003e\u003d 2.\n\nMy preference would be the latter, because then it would be solved everywhere and we wouldn\u0027t have to sprinkle glance version checks everywhere.","commit_id":"2ba89ef6e272d5d21f9a0cb4076d5db31faceaad"}]}
