)]}'
{"openstack_dashboard/api/nova.py":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"02a5cc3065a32bb60e2affcb8387015a991566ad","unresolved":false,"context_lines":[{"line_number":49,"context_line":"# Supported compute versions"},{"line_number":50,"context_line":"VERSIONS \u003d base.APIVersionManager(\"compute\", preferred_version\u003d2)"},{"line_number":51,"context_line":"VERSIONS.load_supported_version(1.1, {\"client\": nova_client, \"version\": 1.1})"},{"line_number":52,"context_line":"VERSIONS.load_supported_version(2.9, {\"client\": nova_client, \"version\": 2.9})"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"# API static values"},{"line_number":55,"context_line":"INSTANCE_ACTIVE_STATE \u003d \u0027ACTIVE\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_29dd7b70","line":52,"updated":"2016-01-27 00:10:43.000000000","message":"what is the minimum versions supported by python-novaclient 2.29.0 ?","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"b5be665626039a7ffef70b48d3c66bb8fb6ffaa6","unresolved":false,"context_lines":[{"line_number":49,"context_line":"# Supported compute versions"},{"line_number":50,"context_line":"VERSIONS \u003d base.APIVersionManager(\"compute\", preferred_version\u003d2)"},{"line_number":51,"context_line":"VERSIONS.load_supported_version(1.1, {\"client\": nova_client, \"version\": 1.1})"},{"line_number":52,"context_line":"VERSIONS.load_supported_version(2.9, {\"client\": nova_client, \"version\": 2.9})"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"# API static values"},{"line_number":55,"context_line":"INSTANCE_ACTIVE_STATE \u003d \u0027ACTIVE\u0027"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_04b65e3d","line":52,"in_reply_to":"9a68dd71_29dd7b70","updated":"2016-01-27 00:39:06.000000000","message":"I can keep the 2.0 as supported version if you want, but to have the locked status, 2.9 is the minimum version.","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"02a5cc3065a32bb60e2affcb8387015a991566ad","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    _attrs \u003d [\u0027addresses\u0027, \u0027attrs\u0027, \u0027id\u0027, \u0027image\u0027, \u0027links\u0027,"},{"line_number":98,"context_line":"              \u0027metadata\u0027, \u0027name\u0027, \u0027private_ip\u0027, \u0027public_ip\u0027, \u0027status\u0027, \u0027uuid\u0027,"},{"line_number":99,"context_line":"              \u0027image_name\u0027, \u0027VirtualInterfaces\u0027, \u0027flavor\u0027, \u0027key_name\u0027, \u0027fault\u0027,"},{"line_number":100,"context_line":"              \u0027tenant_id\u0027, \u0027user_id\u0027, \u0027created\u0027, \u0027locked\u0027,"},{"line_number":101,"context_line":"              \u0027OS-EXT-STS:power_state\u0027, \u0027OS-EXT-STS:task_state\u0027,"},{"line_number":102,"context_line":"              \u0027OS-EXT-SRV-ATTR:instance_name\u0027, \u0027OS-EXT-SRV-ATTR:host\u0027,"},{"line_number":103,"context_line":"              \u0027OS-EXT-AZ:availability_zone\u0027, \u0027OS-DCF:diskConfig\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_69c933ac","line":100,"updated":"2016-01-27 00:10:43.000000000","message":"when was locked first included?","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"b5be665626039a7ffef70b48d3c66bb8fb6ffaa6","unresolved":false,"context_lines":[{"line_number":97,"context_line":"    _attrs \u003d [\u0027addresses\u0027, \u0027attrs\u0027, \u0027id\u0027, \u0027image\u0027, \u0027links\u0027,"},{"line_number":98,"context_line":"              \u0027metadata\u0027, \u0027name\u0027, \u0027private_ip\u0027, \u0027public_ip\u0027, \u0027status\u0027, \u0027uuid\u0027,"},{"line_number":99,"context_line":"              \u0027image_name\u0027, \u0027VirtualInterfaces\u0027, \u0027flavor\u0027, \u0027key_name\u0027, \u0027fault\u0027,"},{"line_number":100,"context_line":"              \u0027tenant_id\u0027, \u0027user_id\u0027, \u0027created\u0027, \u0027locked\u0027,"},{"line_number":101,"context_line":"              \u0027OS-EXT-STS:power_state\u0027, \u0027OS-EXT-STS:task_state\u0027,"},{"line_number":102,"context_line":"              \u0027OS-EXT-SRV-ATTR:instance_name\u0027, \u0027OS-EXT-SRV-ATTR:host\u0027,"},{"line_number":103,"context_line":"              \u0027OS-EXT-AZ:availability_zone\u0027, \u0027OS-DCF:diskConfig\u0027]"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a68dd71_a4e8b217","line":100,"in_reply_to":"9a68dd71_69c933ac","updated":"2016-01-27 00:39:06.000000000","message":"The changes for adding locked status was merged in nova 2.9. https://github.com/openstack/nova/commit/49a572a043f27623a15af5f1b8e54c3a560b805c","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"807b32337df10dfd34396b9c4e17d4542a99d93c","unresolved":false,"context_lines":[{"line_number":50,"context_line":"VERSIONS \u003d base.APIVersionManager(\"compute\", preferred_version\u003d2)"},{"line_number":51,"context_line":"VERSIONS.load_supported_version(1.1, {\"client\": nova_client, \"version\": 1.1})"},{"line_number":52,"context_line":"VERSIONS.load_supported_version(2, {\"client\": nova_client, \"version\": 2})"},{"line_number":53,"context_line":"VERSIONS.load_supported_version(2.9, {\"client\": nova_client, \"version\": 2.9})"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"# API static values"},{"line_number":56,"context_line":"INSTANCE_ACTIVE_STATE \u003d \u0027ACTIVE\u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a18252c_569549e2","line":53,"updated":"2016-04-12 16:20:05.000000000","message":"Could you clarify why this line is still needed in this patch? The version is no longer being checked in the code, so it\u0027s not clear to me.\n\n\nI don\u0027t think it\u0027s the case that we only support the versions listed here, as it would imply we don\u0027t currently support version 2.1. As far as I know, everything works fine with Nova API versions 2.1 - 2.8.","commit_id":"9df5e7dd3f1ced5e656407f0749657967cf48226"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"efdd8348d8101c88d790ee3d5d915f61ad4871b1","unresolved":false,"context_lines":[{"line_number":50,"context_line":"VERSIONS \u003d base.APIVersionManager(\"compute\", preferred_version\u003d2)"},{"line_number":51,"context_line":"VERSIONS.load_supported_version(1.1, {\"client\": nova_client, \"version\": 1.1})"},{"line_number":52,"context_line":"VERSIONS.load_supported_version(2, {\"client\": nova_client, \"version\": 2})"},{"line_number":53,"context_line":"VERSIONS.load_supported_version(2.9, {\"client\": nova_client, \"version\": 2.9})"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"# API static values"},{"line_number":56,"context_line":"INSTANCE_ACTIVE_STATE \u003d \u0027ACTIVE\u0027"}],"source_content_type":"text/x-python","patch_set":16,"id":"5a18252c_504f03bd","line":53,"in_reply_to":"5a18252c_569549e2","updated":"2016-04-12 20:36:32.000000000","message":"This is needed to use nova client 2.9. Without it, there will be an error message \"Error: 2.9 is not a supported API version for the compute service, choices are: 2, 1.1\". I was to make it easier for user to set nova version as 2.9 on local_settings. \n\nI do see your point that having it specified here may appear that the other version 2 minor versions are not supported, but I am not sure if I should remove this line and expect users to fix it when they see the error.","commit_id":"9df5e7dd3f1ced5e656407f0749657967cf48226"}],"openstack_dashboard/dashboards/project/instances/tables.py":[{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"bf15687f937c9ebd59f26107cb66b7e0d5e0b9ee","unresolved":false,"context_lines":[{"line_number":900,"context_line":""},{"line_number":901,"context_line":"    # to only allow locked instances to be unlocked"},{"line_number":902,"context_line":"    def allowed(self, request, instance):"},{"line_number":903,"context_line":"        if instance and not getattr(instance, \u0027locked\u0027, False):"},{"line_number":904,"context_line":"            return False"},{"line_number":905,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"},{"line_number":906,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a68dd71_8ad575ba","line":903,"range":{"start_line":903,"start_character":56,"end_line":903,"end_character":61},"updated":"2016-01-27 02:09:23.000000000","message":"in lower version if \u0027locked\u0027 not include in instance details, this will always return False, so the UnlockInstance action will never allowed?","commit_id":"3facf6829d6fef1ec9a5005ec37baf5fe90d0296"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"46ec8b3aafeb2ea9c2d8ba5ddb523baf09dc0ac1","unresolved":false,"context_lines":[{"line_number":900,"context_line":""},{"line_number":901,"context_line":"    # to only allow locked instances to be unlocked"},{"line_number":902,"context_line":"    def allowed(self, request, instance):"},{"line_number":903,"context_line":"        if instance and not getattr(instance, \u0027locked\u0027, False):"},{"line_number":904,"context_line":"            return False"},{"line_number":905,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"},{"line_number":906,"context_line":"            return False"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a68dd71_94c6f714","line":903,"range":{"start_line":903,"start_character":56,"end_line":903,"end_character":61},"in_reply_to":"9a68dd71_8ad575ba","updated":"2016-01-27 04:03:46.000000000","message":"Good point! Would be nice to have some fallback for those can\u0027t use nova 2.9.","commit_id":"3facf6829d6fef1ec9a5005ec37baf5fe90d0296"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"fd21324e5641c101c0b95e3d6fd07abb1a294554","unresolved":false,"context_lines":[{"line_number":869,"context_line":"    # to only allow unlocked instances to be locked"},{"line_number":870,"context_line":"    def allowed(self, request, instance):"},{"line_number":871,"context_line":"        if instance and getattr(instance, \u0027locked\u0027, False):"},{"line_number":872,"context_line":"            return False"},{"line_number":873,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"},{"line_number":874,"context_line":"            return False"},{"line_number":875,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":7,"id":"7a5de9d1_e0a3f79c","line":872,"updated":"2016-01-28 01:49:06.000000000","message":"can we do a version_get() check?","commit_id":"998dc38f912c4b6dd9e867b86c67513d9b2208f3"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"e9a94a04373e92e7581b5c71dee1af7c8b9dfafd","unresolved":false,"context_lines":[{"line_number":877,"context_line":""},{"line_number":878,"context_line":"    # to only allow unlocked instances to be locked"},{"line_number":879,"context_line":"    def allowed(self, request, instance):"},{"line_number":880,"context_line":"        if NOVA_ACTIVE_VERSION \u003e\u003d MINIMUM_NOVA_ACTIVE_VERSION and instance \\"},{"line_number":881,"context_line":"                and getattr(instance, \u0027locked\u0027, False):"},{"line_number":882,"context_line":"            return False"},{"line_number":883,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"}],"source_content_type":"text/x-python","patch_set":11,"id":"da0c15f0_9b409458","line":880,"updated":"2016-03-25 22:29:02.000000000","message":"I think we can simplify this check further by changing the if statement to:\n\n\nif instance and getattr(instance, \u0027locked\u0027, False):\n\n\nIf using a nova API version less than 2.9, the instance won\u0027t have a \u0027locked\u0027 member. So getattr will return the default value of False and we will show the button as expected.\n\n\nAlso, are there cases where we need the \"and instance\" check here? I would think \"instance\" is always populated when this function is called, but I could be wrong.\n\nIf we do need this, what are the cases where \"instance\" isn\u0027t populated?","commit_id":"3117b6c8249ec95581de17e35e17f2f1c997593e"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"e9a94a04373e92e7581b5c71dee1af7c8b9dfafd","unresolved":false,"context_lines":[{"line_number":910,"context_line":""},{"line_number":911,"context_line":"    # to only allow locked instances to be unlocked"},{"line_number":912,"context_line":"    def allowed(self, request, instance):"},{"line_number":913,"context_line":"        if NOVA_ACTIVE_VERSION \u003e\u003d MINIMUM_NOVA_ACTIVE_VERSION and instance \\"},{"line_number":914,"context_line":"                and not getattr(instance, \u0027locked\u0027, True):"},{"line_number":915,"context_line":"            return False"},{"line_number":916,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"}],"source_content_type":"text/x-python","patch_set":11,"id":"da0c15f0_3b306801","line":913,"updated":"2016-03-25 22:29:02.000000000","message":"Same comment here as above.","commit_id":"3117b6c8249ec95581de17e35e17f2f1c997593e"},{"author":{"_account_id":6162,"name":"Dan Nguyen","email":"dan.nguyens.mail@gmail.com","username":"daniel-a-nguyen"},"change_message_id":"76b0734f36a0fad1b4afe0eb5bea891982cd74c0","unresolved":false,"context_lines":[{"line_number":912,"context_line":"    def allowed(self, request, instance):"},{"line_number":913,"context_line":"        if NOVA_ACTIVE_VERSION \u003e\u003d MINIMUM_NOVA_ACTIVE_VERSION and instance \\"},{"line_number":914,"context_line":"                and not getattr(instance, \u0027locked\u0027, True):"},{"line_number":915,"context_line":"            return False"},{"line_number":916,"context_line":"        if not api.nova.extension_supported(\u0027AdminActions\u0027, request):"},{"line_number":917,"context_line":"            return False"},{"line_number":918,"context_line":"        return True"}],"source_content_type":"text/x-python","patch_set":11,"id":"da0c15f0_16745b33","line":915,"range":{"start_line":915,"start_character":0,"end_line":915,"end_character":12},"updated":"2016-03-25 22:16:56.000000000","message":"Nit: This check could probably be abstracted to method.","commit_id":"3117b6c8249ec95581de17e35e17f2f1c997593e"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"f9e99b79dfd096ed90ef499497aea0e5cb0e8cac","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"LOG \u003d logging.getLogger(__name__)"},{"line_number":51,"context_line":"NOVA_ACTIVE_VERSION \u003d api.nova.VERSIONS.get_active_version()[\"version\"]"},{"line_number":52,"context_line":"MINIMUM_NOVA_ACTIVE_VERSION \u003d 2.9"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"ACTIVE_STATES \u003d (\"ACTIVE\",)"},{"line_number":55,"context_line":"VOLUME_ATTACH_READY_STATES \u003d (\"ACTIVE\", \"SHUTOFF\")"}],"source_content_type":"text/x-python","patch_set":15,"id":"5a18252c_5ee4693a","line":52,"updated":"2016-04-11 23:44:18.000000000","message":"Not used, remove. Otherwise above L52, should leave a comment like \n\n# minimum version needed to use locked status\n\nOtherwise, someone may question MINIMUM_NOVA_ACTIVE_VERSION for what?","commit_id":"a9366024979ceaaa031fc9c4bac5345ed44e18f2"}],"openstack_dashboard/local/local_settings.py.example":[{"author":{"_account_id":5623,"name":"David Lyle","email":"dklyle0@gmail.com","username":"david-lyle"},"change_message_id":"02a5cc3065a32bb60e2affcb8387015a991566ad","unresolved":false,"context_lines":[{"line_number":50,"context_line":"#    \"data-processing\": 1.1,"},{"line_number":51,"context_line":"#    \"identity\": 3,"},{"line_number":52,"context_line":"#    \"volume\": 2,"},{"line_number":53,"context_line":"     \"compute\": 2.9"},{"line_number":54,"context_line":"}"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Set this to True if running on multi-domain model. When this is enabled, it"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"9a68dd71_895ca7ee","line":53,"updated":"2016-01-27 00:10:43.000000000","message":"I\u0027m not sure we can make this leap. What is the minimum API version for compute supported by nova for Mitaka?","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":11885,"name":"Ying Zuo","email":"yingzuo4@gmail.com","username":"yingzuo"},"change_message_id":"66de4c123731589a349a8471fad6e714be9da724","unresolved":false,"context_lines":[{"line_number":50,"context_line":"#    \"data-processing\": 1.1,"},{"line_number":51,"context_line":"#    \"identity\": 3,"},{"line_number":52,"context_line":"#    \"volume\": 2,"},{"line_number":53,"context_line":"     \"compute\": 2.9"},{"line_number":54,"context_line":"}"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"# Set this to True if running on multi-domain model. When this is enabled, it"}],"source_content_type":"application/octet-stream","patch_set":1,"id":"9a68dd71_64af1a7e","line":53,"in_reply_to":"9a68dd71_895ca7ee","updated":"2016-01-27 00:49:40.000000000","message":"nova 2 is used by default, but the lock status is only available since 2.9.","commit_id":"cb084d2d30b309468b1b2cf4e774e8eff347e0c3"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"fd21324e5641c101c0b95e3d6fd07abb1a294554","unresolved":false,"context_lines":[{"line_number":53,"context_line":"#    \"compute\": 2"},{"line_number":54,"context_line":"#}"},{"line_number":55,"context_line":""},{"line_number":56,"context_line":"OPENSTACK_API_VERSIONS \u003d { \"compute\": 2.9 }"},{"line_number":57,"context_line":""},{"line_number":58,"context_line":"# Set this to True if running on multi-domain model. When this is enabled, it"},{"line_number":59,"context_line":"# will require user to enter the Domain name in addition to username for login."}],"source_content_type":"application/octet-stream","patch_set":7,"id":"7a5de9d1_40e20b05","line":56,"updated":"2016-01-28 01:49:06.000000000","message":"This should be removed. Having version 2.0 can be a explanation for after L48.","commit_id":"998dc38f912c4b6dd9e867b86c67513d9b2208f3"},{"author":{"_account_id":7179,"name":"Brad Pokorny","email":"brad_pokorny@symantec.com","username":"bpokorny"},"change_message_id":"e9a94a04373e92e7581b5c71dee1af7c8b9dfafd","unresolved":false,"context_lines":[{"line_number":53,"context_line":"# NOTE: The version should be formatted as it appears in the URL for the"},{"line_number":54,"context_line":"# service API. For example, The identity service APIs have inconsistent"},{"line_number":55,"context_line":"# use of the decimal point, so valid options would be 2.0 or 3."},{"line_number":56,"context_line":"# Minimum nova version to get the instance locked status is 2.9."},{"line_number":57,"context_line":"#OPENSTACK_API_VERSIONS \u003d {"},{"line_number":58,"context_line":"#    \"data-processing\": 1.1,"},{"line_number":59,"context_line":"#    \"identity\": 3,"}],"source_content_type":"application/octet-stream","patch_set":11,"id":"da0c15f0_9b11b4af","line":56,"updated":"2016-03-25 22:29:02.000000000","message":"I think this comment would be more obvious if it said \"Minimum compute version..\", since we use \"compute\" below.","commit_id":"3117b6c8249ec95581de17e35e17f2f1c997593e"}]}
