)]}'
{"tripleo_common/actions/files.py":[{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"aec159fdb958d6dd997c1a3e935b18d9104bad71","unresolved":false,"context_lines":[{"line_number":88,"context_line":"class SaveTempDirToSwift(base.TripleOAction):"},{"line_number":89,"context_line":"    \"\"\"Save temporary directory, identified by path, to Swift container"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    The path must match the regular expression"},{"line_number":92,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    The Swift container must exist"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_f39ccc5e","line":91,"updated":"2018-05-18 08:17:12.000000000","message":"I guess this doesn\u0027t hurt but I am not sure we should be enforcing it ... it assumes the store action works best (only?) with the tmpdir creation action","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"1e9c8bfc054346bdf3371c338fce48fa0e1f1452","unresolved":false,"context_lines":[{"line_number":88,"context_line":"class SaveTempDirToSwift(base.TripleOAction):"},{"line_number":89,"context_line":"    \"\"\"Save temporary directory, identified by path, to Swift container"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"    The path must match the regular expression"},{"line_number":92,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":93,"context_line":""},{"line_number":94,"context_line":"    The Swift container must exist"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_c7b96579","line":91,"in_reply_to":"5f7c97a3_f39ccc5e","updated":"2018-05-25 15:21:53.000000000","message":"Is there a security concern if we allow any path on the server passed by the user to be uploaded to swift? The actions in this file have so far only been for temporary directories so I was being consistent and limiting the scope intentionally.","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"aec159fdb958d6dd997c1a3e935b18d9104bad71","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def run(self, context):"},{"line_number":105,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":106,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":107,"context_line":"        tarball_name \u003d \u0027fetch_dir-%s.tar.gz\u0027 % timeutils.timestamp()"},{"line_number":108,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":109,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":110,"context_line":"        if (not isinstance(self.path, six.string_types) or"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_13dce816","line":107,"updated":"2018-05-18 08:17:12.000000000","message":"maybe prefix the name with ceph-ansible as well","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"1e9c8bfc054346bdf3371c338fce48fa0e1f1452","unresolved":false,"context_lines":[{"line_number":104,"context_line":"    def run(self, context):"},{"line_number":105,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":106,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":107,"context_line":"        tarball_name \u003d \u0027fetch_dir-%s.tar.gz\u0027 % timeutils.timestamp()"},{"line_number":108,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":109,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":110,"context_line":"        if (not isinstance(self.path, six.string_types) or"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_6704114b","line":107,"in_reply_to":"5f7c97a3_13dce816","updated":"2018-05-25 15:21:53.000000000","message":"Sounds good. I\u0027ll do that.","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"aec159fdb958d6dd997c1a3e935b18d9104bad71","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":113,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":114,"context_line":"        try:"},{"line_number":115,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":116,"context_line":"                swift_service, self.path , self.container,"},{"line_number":117,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"},{"line_number":118,"context_line":"        except swiftexceptions.ClientException as err:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_131388ba","line":115,"updated":"2018-05-18 08:17:12.000000000","message":"don\u0027t hate me but in a few other places I see people using \"tarball_extract_to_swift_container\" instead ... which would also remove the need to add \"extract_tarball\" function\n\nI think for consistency it\u0027s better to do the same here as well","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"1e9c8bfc054346bdf3371c338fce48fa0e1f1452","unresolved":false,"context_lines":[{"line_number":112,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":113,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":114,"context_line":"        try:"},{"line_number":115,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":116,"context_line":"                swift_service, self.path , self.container,"},{"line_number":117,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"},{"line_number":118,"context_line":"        except swiftexceptions.ClientException as err:"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_c2a153f9","line":115,"in_reply_to":"5f7c97a3_131388ba","updated":"2018-05-25 15:21:53.000000000","message":"I see an equal use of both functions [1] so I thought I was being consistent with the exiting code base. I could revise this to create tarball and then upload it in two steps [2] instead just pointing to the temp directory, but then I\u0027d have a problem with uploading one tarball vs all of the files in the tarball to Swift [3]. This is relevant for this patch because the current patchset has a bug of not downloading the correct fetch dir because there are many versions of it [4]. In my testing it seems this resulted in hitting the same bug during ceph monitor scale up. I\u0027m planning to address this in my next patch set by ensuring there is only one object in the swift container.\n\n[1] \n[stack@undercloud actions]$ grep create_and_upload_tarball *.py | grep -v files.py\nlogging_to_swift.py:            swiftutils.create_and_upload_tarball(\nplan.py:            swiftutils.create_and_upload_tarball(\nundercloud.py:            swiftutils.create_and_upload_tarball(\n[stack@undercloud actions]$\n\n[stack@undercloud actions]$ grep tarball_extract_to_swift_container *\nconfig.py:            tarball.tarball_extract_to_swift_container(\nplan.py:                tarball.tarball_extract_to_swift_container(\ntemplates.py:            tarball.tarball_extract_to_swift_container(\n[stack@undercloud actions]$\n\n[2] https://github.com/openstack/tripleo-common/blob/master/tripleo_common/actions/config.py#L56-L60\n\n[3] http://paste.openstack.org/show/721986/\n\n[4] http://paste.openstack.org/show/721987/","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"b1d640f70de4967606e2029003dba3a21ce209b9","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            headers, objects \u003d swift.get_container(self.container)"},{"line_number":118,"context_line":"            for o in objects:"},{"line_number":119,"context_line":"                swift.delete_object(self.container, o[\u0027name\u0027])"},{"line_number":120,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":121,"context_line":"                swift_service, self.path , self.container,"},{"line_number":122,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_b324ab61","line":119,"updated":"2018-05-25 20:10:51.000000000","message":"I can\u0027t just \"swiftutils.empty_container(swift_service, self.container)\" here because that function requires the swift container to be a part of th deployment plan:\n\nhttps://github.com/openstack/tripleo-common/blob/master/tripleo_common/utils/swift.py#L37","commit_id":"f442a6cdc37b61f782469e3fe5e0b7354c0f7ffe"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"aff6620f5cc504bef6c80a89146222b9152c2c8a","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        try:"},{"line_number":117,"context_line":"            headers, objects \u003d swift.get_container(self.container)"},{"line_number":118,"context_line":"            for o in objects:"},{"line_number":119,"context_line":"                swift.delete_object(self.container, o[\u0027name\u0027])"},{"line_number":120,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":121,"context_line":"                swift_service, self.path , self.container,"},{"line_number":122,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"}],"source_content_type":"text/x-python","patch_set":3,"id":"5f7c97a3_3232cb11","line":119,"in_reply_to":"5f7c97a3_b324ab61","updated":"2018-05-28 10:17:24.000000000","message":"ack, thanks for looking and sorry about the digression","commit_id":"f442a6cdc37b61f782469e3fe5e0b7354c0f7ffe"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"b8acb08e4d6ff6ebfaf24ddcd2c7ac21f3f75671","unresolved":false,"context_lines":[{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_107762a2","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":46},"updated":"2018-06-12 12:40:38.000000000","message":"We should give this a generic name (-1 here)","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"bbb5e29388b7ca95a70fdb575c438dc2e6b1b47a","unresolved":false,"context_lines":[{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_53f08491","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":46},"in_reply_to":"5f7c97a3_107762a2","updated":"2018-06-12 13:32:07.000000000","message":"I might be missing something, why so?","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"dd7f3b8aad5cf93319d89fd25cd617c555f9c239","unresolved":false,"context_lines":[{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_53fac442","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":46},"in_reply_to":"5f7c97a3_53f08491","updated":"2018-06-12 13:36:15.000000000","message":"ah to keep the action generic I guess, indeed\n\nI had similar comments before about the regexp (and missed this one) ... but then I thought it works well with the MakeTempDir action\n\nthe filename should be generic though, +1","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"0b35a232fb84afb2e9675a2d9a143f8f8ddd5f5a","unresolved":false,"context_lines":[{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_e0e11eff","line":111,"range":{"start_line":111,"start_character":24,"end_line":111,"end_character":46},"in_reply_to":"5f7c97a3_53fac442","updated":"2018-07-13 22:08:45.000000000","message":"Thanks for the review I have given the file name a generic name:\n\n\u0027temporary_dir-%s.tar.gz\u0027 % timeutils.timestamp()","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":8042,"name":"Jiří Stránský","email":"jistr@redhat.com","username":"jistr"},"change_message_id":"b8acb08e4d6ff6ebfaf24ddcd2c7ac21f3f75671","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        try:"},{"line_number":166,"context_line":"            swiftutils.download_container(swift, self.container, self.path)"},{"line_number":167,"context_line":"            filenames \u003d os.listdir(self.path)"},{"line_number":168,"context_line":"            if len(filenames) \u003d\u003d 1:"},{"line_number":169,"context_line":"                tarball.extract_tarball(self.path, filenames[0], remove\u003dTrue)"},{"line_number":170,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":171,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_90aff2e1","line":168,"range":{"start_line":168,"start_character":15,"end_line":168,"end_character":34},"updated":"2018-06-12 12:40:38.000000000","message":"Ah i was wondering how we tell which file to extract, when looking at the workflow. Ack i think a container per persisted directory is probably fine as a pattern.","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"bbb5e29388b7ca95a70fdb575c438dc2e6b1b47a","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        try:"},{"line_number":166,"context_line":"            swiftutils.download_container(swift, self.container, self.path)"},{"line_number":167,"context_line":"            filenames \u003d os.listdir(self.path)"},{"line_number":168,"context_line":"            if len(filenames) \u003d\u003d 1:"},{"line_number":169,"context_line":"                tarball.extract_tarball(self.path, filenames[0], remove\u003dTrue)"},{"line_number":170,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":171,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_93285ce2","line":168,"range":{"start_line":168,"start_character":15,"end_line":168,"end_character":34},"in_reply_to":"5f7c97a3_90aff2e1","updated":"2018-06-12 13:32:07.000000000","message":"we could maybe also look for a tarball starting with ceph_ansible_fetch_dir as per line 111","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"dd7f3b8aad5cf93319d89fd25cd617c555f9c239","unresolved":false,"context_lines":[{"line_number":165,"context_line":"        try:"},{"line_number":166,"context_line":"            swiftutils.download_container(swift, self.container, self.path)"},{"line_number":167,"context_line":"            filenames \u003d os.listdir(self.path)"},{"line_number":168,"context_line":"            if len(filenames) \u003d\u003d 1:"},{"line_number":169,"context_line":"                tarball.extract_tarball(self.path, filenames[0], remove\u003dTrue)"},{"line_number":170,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":171,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_538f24cc","line":168,"range":{"start_line":168,"start_character":15,"end_line":168,"end_character":34},"in_reply_to":"5f7c97a3_93285ce2","updated":"2018-06-12 13:36:15.000000000","message":"or whatever prefix we end up using there","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"b03862510053fee15afa78cba2312bb260608359","unresolved":false,"context_lines":[{"line_number":87,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"class SaveTempDirToSwift(base.TripleOAction):"},{"line_number":91,"context_line":"    \"\"\"Save temporary directory, identified by path, to Swift container"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    The path must match the regular expression"},{"line_number":94,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    The Swift container must exist"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    Contents from path will be packaged in a tarball before upload"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    Older tarball(s) will be replaced with the one that is uploaded"},{"line_number":101,"context_line":"    \"\"\""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def __init__(self, path, container):"},{"line_number":104,"context_line":"        super(SaveTempDirToSwift, self).__init__()"},{"line_number":105,"context_line":"        self.path \u003d path"},{"line_number":106,"context_line":"        self.container \u003d container"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":115,"context_line":"        if (not isinstance(self.path, six.string_types) or"},{"line_number":116,"context_line":"                not re.match(_regex, self.path)):"},{"line_number":117,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":118,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":119,"context_line":"        try:"},{"line_number":120,"context_line":"            headers, objects \u003d swift.get_container(self.container)"},{"line_number":121,"context_line":"            for o in objects:"},{"line_number":122,"context_line":"                swift.delete_object(self.container, o[\u0027name\u0027])"},{"line_number":123,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":124,"context_line":"                swift_service, self.path, self.container,"},{"line_number":125,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"},{"line_number":126,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":127,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"},{"line_number":128,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":129,"context_line":"        except (OSError, IOError) as err:"},{"line_number":130,"context_line":"            msg \u003d \"Error while writing file: %s\" % err"},{"line_number":131,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":132,"context_line":"        except processutils.ProcessExecutionError as err:"},{"line_number":133,"context_line":"            msg \u003d \"Error while creating a tarball: %s\" % err"},{"line_number":134,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":135,"context_line":"        except Exception as err:"},{"line_number":136,"context_line":"            msg \u003d \"Error exporting logs: %s\" % err"},{"line_number":137,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":138,"context_line":"        msg \u003d \"Saved tarball of directory %s in Swift container %s\" % ("},{"line_number":139,"context_line":"            self.path, self.container)"},{"line_number":140,"context_line":"        return actions.Result(data\u003d{\"msg\": msg})"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"class RestoreTempDirFromSwift(base.TripleOAction):"},{"line_number":144,"context_line":"    \"\"\"Unpack tarball from Swift container into temporary directory at path"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    The path must exist and match the regular expression"},{"line_number":147,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    Container should contain a single tarball object"},{"line_number":150,"context_line":"    \"\"\""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def __init__(self, path, container):"},{"line_number":153,"context_line":"        super(RestoreTempDirFromSwift, self).__init__()"},{"line_number":154,"context_line":"        self.path \u003d path"},{"line_number":155,"context_line":"        self.container \u003d container"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    def run(self, context):"},{"line_number":158,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":159,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":160,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":161,"context_line":"        if (not isinstance(self.path, six.string_types) or"},{"line_number":162,"context_line":"                not re.match(_regex, self.path)):"},{"line_number":163,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":164,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":165,"context_line":"        try:"},{"line_number":166,"context_line":"            swiftutils.download_container(swift, self.container, self.path)"},{"line_number":167,"context_line":"            filenames \u003d os.listdir(self.path)"},{"line_number":168,"context_line":"            if len(filenames) \u003d\u003d 1:"},{"line_number":169,"context_line":"                tarball.extract_tarball(self.path, filenames[0], remove\u003dTrue)"},{"line_number":170,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":171,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"},{"line_number":172,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":173,"context_line":"        except (OSError, IOError) as err:"},{"line_number":174,"context_line":"            msg \u003d \"Error while writing file: %s\" % err"},{"line_number":175,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":176,"context_line":"        except processutils.ProcessExecutionError as err:"},{"line_number":177,"context_line":"            msg \u003d \"Error while creating a tarball: %s\" % err"},{"line_number":178,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":179,"context_line":"        except Exception as err:"},{"line_number":180,"context_line":"            msg \u003d \"Error exporting logs: %s\" % err"},{"line_number":181,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":182,"context_line":"        msg \u003d \"Saved tarball of directory %s in Swift container %s\" % ("},{"line_number":183,"context_line":"            self.path, self.container)"},{"line_number":184,"context_line":"        return actions.Result(data\u003d{\"msg\": msg})"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_70149641","line":184,"range":{"start_line":90,"start_character":0,"end_line":184,"end_character":48},"updated":"2018-06-12 12:37:44.000000000","message":"It\u0027d be good if we could have some additional tests for these actions here: https://github.com/openstack/tripleo-common/blob/master/tripleo_common/tests/actions/test_files.py","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"0b35a232fb84afb2e9675a2d9a143f8f8ddd5f5a","unresolved":false,"context_lines":[{"line_number":87,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":""},{"line_number":90,"context_line":"class SaveTempDirToSwift(base.TripleOAction):"},{"line_number":91,"context_line":"    \"\"\"Save temporary directory, identified by path, to Swift container"},{"line_number":92,"context_line":""},{"line_number":93,"context_line":"    The path must match the regular expression"},{"line_number":94,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":"    The Swift container must exist"},{"line_number":97,"context_line":""},{"line_number":98,"context_line":"    Contents from path will be packaged in a tarball before upload"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"    Older tarball(s) will be replaced with the one that is uploaded"},{"line_number":101,"context_line":"    \"\"\""},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"    def __init__(self, path, container):"},{"line_number":104,"context_line":"        super(SaveTempDirToSwift, self).__init__()"},{"line_number":105,"context_line":"        self.path \u003d path"},{"line_number":106,"context_line":"        self.container \u003d container"},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"    def run(self, context):"},{"line_number":109,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":110,"context_line":"        swift_service \u003d self.get_object_service(context)"},{"line_number":111,"context_line":"        tarball_name \u003d \u0027ceph_ansible_fetch_dir-%s.tar.gz\u0027 \\"},{"line_number":112,"context_line":"                       % timeutils.timestamp()"},{"line_number":113,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":114,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":115,"context_line":"        if (not isinstance(self.path, six.string_types) or"},{"line_number":116,"context_line":"                not re.match(_regex, self.path)):"},{"line_number":117,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":118,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":119,"context_line":"        try:"},{"line_number":120,"context_line":"            headers, objects \u003d swift.get_container(self.container)"},{"line_number":121,"context_line":"            for o in objects:"},{"line_number":122,"context_line":"                swift.delete_object(self.container, o[\u0027name\u0027])"},{"line_number":123,"context_line":"            swiftutils.create_and_upload_tarball("},{"line_number":124,"context_line":"                swift_service, self.path, self.container,"},{"line_number":125,"context_line":"                tarball_name, delete_after\u003dsys.maxsize)"},{"line_number":126,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":127,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"},{"line_number":128,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":129,"context_line":"        except (OSError, IOError) as err:"},{"line_number":130,"context_line":"            msg \u003d \"Error while writing file: %s\" % err"},{"line_number":131,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":132,"context_line":"        except processutils.ProcessExecutionError as err:"},{"line_number":133,"context_line":"            msg \u003d \"Error while creating a tarball: %s\" % err"},{"line_number":134,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":135,"context_line":"        except Exception as err:"},{"line_number":136,"context_line":"            msg \u003d \"Error exporting logs: %s\" % err"},{"line_number":137,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":138,"context_line":"        msg \u003d \"Saved tarball of directory %s in Swift container %s\" % ("},{"line_number":139,"context_line":"            self.path, self.container)"},{"line_number":140,"context_line":"        return actions.Result(data\u003d{\"msg\": msg})"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":""},{"line_number":143,"context_line":"class RestoreTempDirFromSwift(base.TripleOAction):"},{"line_number":144,"context_line":"    \"\"\"Unpack tarball from Swift container into temporary directory at path"},{"line_number":145,"context_line":""},{"line_number":146,"context_line":"    The path must exist and match the regular expression"},{"line_number":147,"context_line":"    ^/tmp/file-mistral-action[A-Za-z0-9_]{6}$"},{"line_number":148,"context_line":""},{"line_number":149,"context_line":"    Container should contain a single tarball object"},{"line_number":150,"context_line":"    \"\"\""},{"line_number":151,"context_line":""},{"line_number":152,"context_line":"    def __init__(self, path, container):"},{"line_number":153,"context_line":"        super(RestoreTempDirFromSwift, self).__init__()"},{"line_number":154,"context_line":"        self.path \u003d path"},{"line_number":155,"context_line":"        self.container \u003d container"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":"    def run(self, context):"},{"line_number":158,"context_line":"        swift \u003d self.get_object_client(context)"},{"line_number":159,"context_line":"        # regex from tempfile\u0027s _RandomNameSequence characters"},{"line_number":160,"context_line":"        _regex \u003d \u0027^/tmp/file-mistral-action[A-Za-z0-9_]{6}$\u0027"},{"line_number":161,"context_line":"        if (not isinstance(self.path, six.string_types) or"},{"line_number":162,"context_line":"                not re.match(_regex, self.path)):"},{"line_number":163,"context_line":"            msg \u003d \"Path does not match %s\" % _regex"},{"line_number":164,"context_line":"            return actions.Result(error\u003d{\"msg\": msg})"},{"line_number":165,"context_line":"        try:"},{"line_number":166,"context_line":"            swiftutils.download_container(swift, self.container, self.path)"},{"line_number":167,"context_line":"            filenames \u003d os.listdir(self.path)"},{"line_number":168,"context_line":"            if len(filenames) \u003d\u003d 1:"},{"line_number":169,"context_line":"                tarball.extract_tarball(self.path, filenames[0], remove\u003dTrue)"},{"line_number":170,"context_line":"        except swiftexceptions.ClientException as err:"},{"line_number":171,"context_line":"            msg \u003d \"Error attempting an operation on container: %s\" % err"},{"line_number":172,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":173,"context_line":"        except (OSError, IOError) as err:"},{"line_number":174,"context_line":"            msg \u003d \"Error while writing file: %s\" % err"},{"line_number":175,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":176,"context_line":"        except processutils.ProcessExecutionError as err:"},{"line_number":177,"context_line":"            msg \u003d \"Error while creating a tarball: %s\" % err"},{"line_number":178,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":179,"context_line":"        except Exception as err:"},{"line_number":180,"context_line":"            msg \u003d \"Error exporting logs: %s\" % err"},{"line_number":181,"context_line":"            return actions.Result(error\u003d{\"msg\": six.text_type(msg)})"},{"line_number":182,"context_line":"        msg \u003d \"Saved tarball of directory %s in Swift container %s\" % ("},{"line_number":183,"context_line":"            self.path, self.container)"},{"line_number":184,"context_line":"        return actions.Result(data\u003d{\"msg\": msg})"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_00c69a6a","line":184,"range":{"start_line":90,"start_character":0,"end_line":184,"end_character":48},"in_reply_to":"5f7c97a3_70149641","updated":"2018-07-13 22:08:45.000000000","message":"OK, I\u0027ve added some tests.","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"}],"tripleo_common/tests/actions/test_files.py":[{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"087d8a71cef2b533f2b9519d4b308d34700464a4","unresolved":false,"context_lines":[{"line_number":83,"context_line":"        self.container \u003d \"my_container\""},{"line_number":84,"context_line":"        self.tarball \u003d \"foo.tar.gz\""},{"line_number":85,"context_line":""},{"line_number":86,"context_line":"    @mock.patch(\"tripleo_common.actions.base.TripleOAction.get_object_client\")"},{"line_number":87,"context_line":"    @mock.patch(\"tripleo_common.utils.swift.download_container\")"},{"line_number":88,"context_line":"    @mock.patch(\"tripleo_common.utils.tarball.extract_tarball\")"},{"line_number":89,"context_line":"    @mock.patch(\"os.listdir\")"},{"line_number":90,"context_line":"    def test_restore_temp_dir_from_swift(self, mock_get_object_client,"},{"line_number":91,"context_line":"                                         mock_download_container,"},{"line_number":92,"context_line":"                                         mock_extract_tarball, mock_listdir):"}],"source_content_type":"text/x-python","patch_set":10,"id":"5f7c97a3_5ae24c04","line":89,"range":{"start_line":86,"start_character":0,"end_line":89,"end_character":29},"updated":"2018-07-13 13:41:00.000000000","message":"These are backwards. Just reverse the order.\n\nhttps://docs.python.org/3/library/unittest.mock.html#nesting-patch-decorators\n\n\"Note that the decorators are applied from the bottom upwards. This is the standard way that Python applies decorators. The order of the created mocks passed into your test function matches this order.\"","commit_id":"1056fec7db5c4676e017c69baa9bfcf98678e866"}],"tripleo_common/utils/tarball.py":[{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"aec159fdb958d6dd997c1a3e935b18d9104bad71","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            headers\u003d{\u0027X-Detect-Content-Type\u0027: \u0027true\u0027}"},{"line_number":45,"context_line":"        )"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"def extract_tarball(directory, tarball, options\u003d\u0027-xf\u0027, remove\u003dFalse):"},{"line_number":48,"context_line":"    \"\"\"Extracts the tarball contained in the directory.\"\"\""},{"line_number":49,"context_line":"    full_path \u003d directory + \u0027/\u0027 + tarball"},{"line_number":50,"context_line":"    if not os.path.exists(full_path):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_f3112cae","line":47,"updated":"2018-05-18 08:17:12.000000000","message":"probably unnecessary, see my other comment for files.py","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"1e9c8bfc054346bdf3371c338fce48fa0e1f1452","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            headers\u003d{\u0027X-Detect-Content-Type\u0027: \u0027true\u0027}"},{"line_number":45,"context_line":"        )"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"def extract_tarball(directory, tarball, options\u003d\u0027-xf\u0027, remove\u003dFalse):"},{"line_number":48,"context_line":"    \"\"\"Extracts the tarball contained in the directory.\"\"\""},{"line_number":49,"context_line":"    full_path \u003d directory + \u0027/\u0027 + tarball"},{"line_number":50,"context_line":"    if not os.path.exists(full_path):"}],"source_content_type":"text/x-python","patch_set":1,"id":"5f7c97a3_42b54331","line":47,"in_reply_to":"5f7c97a3_f3112cae","updated":"2018-05-25 15:21:53.000000000","message":"I added a comment about this in your other comment too. The one difference here is storing all of the files in the swift container or just storing one file containing the tarball. I need to add some management to the files in the swift container so I thought it would be less error prone to just manage one.","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":9712,"name":"Dougal Matthews","email":"dougal.matthews@canonical.com","username":"dougal"},"change_message_id":"b03862510053fee15afa78cba2312bb260608359","unresolved":false,"context_lines":[{"line_number":56,"context_line":"        processutils.execute(*cmd)"},{"line_number":57,"context_line":"        if remove:"},{"line_number":58,"context_line":"            LOG.debug(\u0027Removing tarball %s\u0027 % full_path)"},{"line_number":59,"context_line":"            os.remove(full_path)"}],"source_content_type":"text/x-python","patch_set":7,"id":"5f7c97a3_d01eca5d","line":59,"updated":"2018-06-12 12:37:44.000000000","message":"Tests for this could be nice, but it might be enough to test the actions.","commit_id":"fb762860d3eef8612f7e217e9443a0e20e926af8"}],"workbooks/ceph-ansible.yaml":[{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"54b7367cab3cdd12b63aef8b1e7ff906762a1031","unresolved":false,"context_lines":[{"line_number":23,"context_line":"      - ceph_ansible_extra_vars: {}"},{"line_number":24,"context_line":"      - ceph_ansible_playbook: /usr/share/ceph-ansible/site-docker.yml.sample"},{"line_number":25,"context_line":"      - node_data_lookup: \u0027{}\u0027"},{"line_number":26,"context_line":"      - swift_container: \u0027ceph_ansible_fetch_dir\u0027"},{"line_number":27,"context_line":"    tags:"},{"line_number":28,"context_line":"      - tripleo-common-managed"},{"line_number":29,"context_line":"    tasks:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_d0448a76","line":26,"updated":"2018-05-14 13:37:32.000000000","message":"I think this has to carry the stack name in case we deploy multiple stacks from a single undercloud","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"1e9c8bfc054346bdf3371c338fce48fa0e1f1452","unresolved":false,"context_lines":[{"line_number":23,"context_line":"      - ceph_ansible_extra_vars: {}"},{"line_number":24,"context_line":"      - ceph_ansible_playbook: /usr/share/ceph-ansible/site-docker.yml.sample"},{"line_number":25,"context_line":"      - node_data_lookup: \u0027{}\u0027"},{"line_number":26,"context_line":"      - swift_container: \u0027ceph_ansible_fetch_dir\u0027"},{"line_number":27,"context_line":"    tags:"},{"line_number":28,"context_line":"      - tripleo-common-managed"},{"line_number":29,"context_line":"    tasks:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"5f7c97a3_e2a6cf0f","line":26,"in_reply_to":"5f7c97a3_d0448a76","updated":"2018-05-25 15:21:53.000000000","message":"Good idea. Thanks for the tip on getting this done via: https://review.openstack.org/#/c/570576/","commit_id":"907f554954bde0705d84e18dc007c57b68a5da61"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"e4be92e47c0286fc9c274340d954c8acf0356cda","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      set_swift_container:"},{"line_number":31,"context_line":"        publish:"},{"line_number":32,"context_line":"          swift_container: \u003c% concat(env().get(\u0027heat_stack_name\u0027, \u0027\u0027), \u0027_\u0027, $.swift_container) %\u003e"},{"line_number":33,"context_line":"        on-complete: collect_puppet_hieradata"},{"line_number":34,"context_line":"      collect_puppet_hieradata:"},{"line_number":35,"context_line":"        on-success: check_hieradata"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"5f7c97a3_e6249162","line":32,"updated":"2018-05-28 15:04:59.000000000","message":"Because env().get(\u0027heat_stack_name\u0027, \u0027\u0027) contains the netsted heat stack name and produces something like: \n\novercloud-AllNodesDeploySteps-5ra7h5vhklbu_ceph_ansible_fetch_dir\n\nI am concerned the netsted stack name won\u0027t be reused in subsequent deployments and this workflow will behave each time like it\u0027s a new deployment and not reuse the fetch dir which is the root cause of the bug this is trying to solve. For this reason, I think I will need to modify the above to trim overcloud-AllNodesDeploySteps-5ra7h5vhklbu_ceph_ansible_fetch_dir into just the overcloud stack name: \n\nyaql\u003e \u0027overcloud-AllNodesDeploySteps-5ra7h5vhklbu\u0027.split(\u0027-\u0027)[0]\n\"overcloud\"\nyaql\u003e","commit_id":"f442a6cdc37b61f782469e3fe5e0b7354c0f7ffe"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"0c61294a7ad49b37abc006a9ff0327af8017cedb","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      set_swift_container:"},{"line_number":31,"context_line":"        publish:"},{"line_number":32,"context_line":"          swift_container: \u003c% concat(env().get(\u0027heat_stack_name\u0027, \u0027-\u0027).split(\u0027-\u0027)[0], \u0027_\u0027, $.swift_container) %\u003e"},{"line_number":33,"context_line":"        on-complete: collect_puppet_hieradata"},{"line_number":34,"context_line":"      collect_puppet_hieradata:"},{"line_number":35,"context_line":"        on-success: check_hieradata"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5f7c97a3_06e98db5","line":32,"updated":"2018-05-28 15:12:37.000000000","message":"By default this should result in the swift container name being \"overcloud_ceph_ansible_fetch_dir\" unless the user deploys a different stackname, e.g. overcloud_foo_ceph_ansible_fetch_dir. \n\nIf env().get(\u0027heat_stack_name\u0027) doesn\u0027t return anything, then return \u0027-\u0027, so that when we split on it and take the first item we will get an empty string.\n\nyaql\u003e \u0027-\u0027.split(\u0027-\u0027)[0]\n\"\"\nyaql\u003e","commit_id":"51f74254a029e740c36e8a796d858cd121aded03"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"f8916aa2045b6414b9dd25d5e43e0d6fe65bdbba","unresolved":false,"context_lines":[{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      set_swift_container:"},{"line_number":31,"context_line":"        publish:"},{"line_number":32,"context_line":"          swift_container: \u003c% concat(env().get(\u0027heat_stack_name\u0027, \u0027-\u0027).split(\u0027-\u0027)[0], \u0027_\u0027, $.swift_container) %\u003e"},{"line_number":33,"context_line":"        on-complete: collect_puppet_hieradata"},{"line_number":34,"context_line":"      collect_puppet_hieradata:"},{"line_number":35,"context_line":"        on-success: check_hieradata"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"5f7c97a3_c11fff05","line":32,"in_reply_to":"5f7c97a3_06e98db5","updated":"2018-05-28 16:17:00.000000000","message":"Perhaps its better to do this in THT instead:\n\nhttps://review.openstack.org/#/c/570576/5/common/deploy-steps.j2","commit_id":"51f74254a029e740c36e8a796d858cd121aded03"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"ee5f243acb86b279cedca650fb3f8e6de91c0350","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    tags:"},{"line_number":28,"context_line":"      - tripleo-common-managed"},{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      show_env:"},{"line_number":31,"context_line":"        action: std.echo output\u003d\u003c% env() %\u003e"},{"line_number":32,"context_line":"        on-complete: set_swift_container"},{"line_number":33,"context_line":"      set_swift_container:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"5f7c97a3_499a3562","line":30,"updated":"2018-05-28 19:42:35.000000000","message":"I think this is a refuse from some debug attempt?","commit_id":"d9c61ec2b378c6cc5ebff53d57e756355a2f6de7"},{"author":{"_account_id":6796,"name":"Giulio Fidente","email":"gfidente@redhat.com","username":"gfidente"},"change_message_id":"50ab64b2f18cfb93b34ac1e5388cb64274f46633","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    tags:"},{"line_number":28,"context_line":"      - tripleo-common-managed"},{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      show_env:"},{"line_number":31,"context_line":"        action: std.echo output\u003d\u003c% env() %\u003e"},{"line_number":32,"context_line":"        on-complete: set_swift_container"},{"line_number":33,"context_line":"      set_swift_container:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"5f7c97a3_a9a8a977","line":30,"in_reply_to":"5f7c97a3_499a3562","updated":"2018-05-28 19:44:09.000000000","message":"I think my attempt to translate \"refuso\" from italian into english went completely wrong ... I meant to say show_env seems something you had tried locally for debug purposes but not wanted in the final version","commit_id":"d9c61ec2b378c6cc5ebff53d57e756355a2f6de7"},{"author":{"_account_id":18002,"name":"John Fulton","email":"fulton@redhat.com","username":"fultonj"},"change_message_id":"aab46042c9f42f99c4ae6f4aa890e16e4e8656bd","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    tags:"},{"line_number":28,"context_line":"      - tripleo-common-managed"},{"line_number":29,"context_line":"    tasks:"},{"line_number":30,"context_line":"      show_env:"},{"line_number":31,"context_line":"        action: std.echo output\u003d\u003c% env() %\u003e"},{"line_number":32,"context_line":"        on-complete: set_swift_container"},{"line_number":33,"context_line":"      set_swift_container:"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"5f7c97a3_2b36c452","line":30,"in_reply_to":"5f7c97a3_a9a8a977","updated":"2018-05-29 14:47:43.000000000","message":"Yes, thanks for catching. I will revise.","commit_id":"d9c61ec2b378c6cc5ebff53d57e756355a2f6de7"}]}
