)]}'
{"magnum/drivers/heat/driver.py":[{"author":{"_account_id":6484,"name":"Feilong Wang","email":"hustemb@gmail.com","username":"flwang"},"change_message_id":"3e570edad6bf5f1631d1acd85b6295b21ec700df","unresolved":true,"context_lines":[{"line_number":334,"context_line":"        for ostree_tag in [\"ostree_commit\", \"ostree_remote\"]:"},{"line_number":335,"context_line":"            try:"},{"line_number":336,"context_line":"                ostree_param \u003d {"},{"line_number":337,"context_line":"                    ostree_tag: cluster_template.labels[ostree_tag]"},{"line_number":338,"context_line":"                }"},{"line_number":339,"context_line":"                heat_params.update(ostree_param)"},{"line_number":340,"context_line":"            except KeyError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"abf355a6_36645646","line":337,"updated":"2021-02-16 03:28:48.000000000","message":"IIUC, the code is trying to get both ostree_commit and ostree_branch, but generally, we only specify one label based on the design. So it failed at line 337 with the KeyError. And then when catch the KeyError, error happened at line 341.\n\nSee below trace:\n\n\nTraceback (most recent call last):\n\n File \"/openstack/venvs/magnum-20.1.6/lib/python3.6/site-packages/magnum/drivers/heat/driver.py\", line 336, in get_heat_params\n   ostree_tag: cluster_template.labels[ostree_tag]\n\nKeyError: \u0027ostree_remote\u0027\n\n\nDuring handling of the above exception, another exception occurred:\n\n\nTraceback (most recent call last):\n\n File \"/openstack/venvs/magnum-20.1.6/lib/python3.6/site-packages/oslo_log/formatters.py\", line 513, in format\n   return logging.Formatter.format(self, record)\n\n File \"/usr/lib/python3.6/logging/__init__.py\", line 577, in format\n   record.message \u003d record.getMessage()\n\n File \"/usr/lib/python3.6/logging/__init__.py\", line 338, in getMessage\n   msg \u003d msg % self.args\n\nTypeError: not enough arguments for format string","commit_id":"f081cfc108de80ea18ac80563df604b5f982f7d6"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"7f2d5341b8dd9a62d5842100d4542ba43fcdceb6","unresolved":true,"context_lines":[{"line_number":334,"context_line":"        for ostree_tag in [\"ostree_commit\", \"ostree_remote\"]:"},{"line_number":335,"context_line":"            try:"},{"line_number":336,"context_line":"                ostree_param \u003d {"},{"line_number":337,"context_line":"                    ostree_tag: cluster_template.labels[ostree_tag]"},{"line_number":338,"context_line":"                }"},{"line_number":339,"context_line":"                heat_params.update(ostree_param)"},{"line_number":340,"context_line":"            except KeyError:"}],"source_content_type":"text/x-python","patch_set":1,"id":"adfea6e9_999409bc","line":337,"in_reply_to":"abf355a6_36645646","updated":"2021-03-04 11:33:57.000000000","message":"This is resolved by the break statement in the next PS.","commit_id":"f081cfc108de80ea18ac80563df604b5f982f7d6"}]}
