)]}'
{"zun/api/controllers/v1/containers.py":[{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"bfa4da847b5b6781d061461e5a3e1cedb997ad0b","unresolved":false,"context_lines":[{"line_number":504,"context_line":"                need_memory \u003d int(patch[\u0027memory\u0027])"},{"line_number":505,"context_line":"            else:"},{"line_number":506,"context_line":"                need_memory \u003d int(patch[\u0027memory\u0027]) - int(container.memory[:-1])"},{"line_number":507,"context_line":"            if node_info.mem_free \u003c need_memory:"},{"line_number":508,"context_line":"                msg \u003d _(\"%(host_state)s does not have %(request_ram)d \""},{"line_number":509,"context_line":"                        \"usable memory, it only has %(usable_ram)d usable \""},{"line_number":510,"context_line":"                        \"memory.\") % {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f91af0f_148766b7","line":507,"range":{"start_line":507,"start_character":15,"end_line":507,"end_character":24},"updated":"2018-01-08 21:55:45.000000000","message":"We need to do this in compute node as a resource claim. Otherwise, the resource tracker in compute node will break.","commit_id":"caf95f042a100db54343e4ac75e3ceb8ffa1647f"},{"author":{"_account_id":11536,"name":"hongbin","email":"hongbin034@gmail.com","username":"hongbin"},"change_message_id":"68b6eac3abc77b9bf9281edc9526ccbddf5f90b2","unresolved":false,"context_lines":[{"line_number":504,"context_line":"                need_memory \u003d int(patch[\u0027memory\u0027])"},{"line_number":505,"context_line":"            else:"},{"line_number":506,"context_line":"                need_memory \u003d int(patch[\u0027memory\u0027]) - int(container.memory[:-1])"},{"line_number":507,"context_line":"            if node_info.mem_free \u003c need_memory:"},{"line_number":508,"context_line":"                msg \u003d _(\"%(host_state)s does not have %(request_ram)d \""},{"line_number":509,"context_line":"                        \"usable memory, it only has %(usable_ram)d usable \""},{"line_number":510,"context_line":"                        \"memory.\") % {"}],"source_content_type":"text/x-python","patch_set":1,"id":"9f91af0f_140c463f","line":507,"range":{"start_line":507,"start_character":15,"end_line":507,"end_character":24},"in_reply_to":"9f91af0f_148766b7","updated":"2018-01-08 22:05:16.000000000","message":"This is how we do resource claiming in \u0027create\u0027: https://github.com/openstack/zun/commit/67eedb807290b6d7a3c6c2bb6e9296b5c16d3959 . Need something similar in update.","commit_id":"caf95f042a100db54343e4ac75e3ceb8ffa1647f"}]}
