)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"7713357181a5ee23a87540050b5ca79970c94ebf","unresolved":true,"context_lines":[{"line_number":17,"context_line":""},{"line_number":18,"context_line":"[1] https://github.com/ansible/ansible/issues/14958"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"Closes-Bug: #1903537"},{"line_number":21,"context_line":"Change-Id: I77e3e5e4336a5d3f76b10d09cf7034023fbec075"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9bf20a34_2a1bbac6","line":20,"range":{"start_line":20,"start_character":13,"end_line":20,"end_character":20},"updated":"2020-12-18 09:29:39.000000000","message":"can you please add some info in the bug as currently it is a bit confusing what was done here.","commit_id":"3e2371f71fe2f56c69065f613c2fc2473e88d5e1"}],"deployment/ceph-ansible/ceph-osd.yaml":[{"author":{"_account_id":25402,"name":"Francesco Pantano","email":"fpantano@redhat.com","username":"fmount"},"change_message_id":"2c24c11f21eac5357c78fc02fc2a18b9bdc98660","unresolved":true,"context_lines":[{"line_number":93,"context_line":"                register: check_docker_cli"},{"line_number":94,"context_line":"                check_mode: false"},{"line_number":95,"context_line":"              - name: Set noout flag"},{"line_number":96,"context_line":"                shell: \"{{ container_client }} exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set {{ item }}\""},{"line_number":97,"context_line":"                become: true"},{"line_number":98,"context_line":"                with_items:"},{"line_number":99,"context_line":"                  - noout"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"40080d58_61e68f44","line":96,"range":{"start_line":96,"start_character":69,"end_line":96,"end_character":84},"updated":"2020-12-17 09:06:48.000000000","message":"Not sure if there\u0027s a better \"ansible way\" to do this but tests look good:\n\n```\n[heat-admin@controller-0 ~]$ hostname\ncontroller-0.mydomain.asd.local\n[heat-admin@controller-0 ~]$ echo ${HOSTNAME}\ncontroller-0.mydomain.asd.local\n[heat-admin@controller-0 ~]$ echo ${HOSTNAME%%.*}\ncontroller-0\n\n\nTASK [Set noout flag] **********************************************************                                                                                                  \nWednesday 16 December 2020  11:46:26 -0500 (0:00:00.944)       0:00:07.834 ****                                                                                                   \nchanged: [ceph-0 -\u003e 192.168.24.46] \u003d\u003e (item\u003dnoout) \u003d\u003e {\"ansible_loop_var\": \"item\", \"changed\": true, \"cmd\": \"podman exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set noout\", \"delta\": \"0:00:01.690689\", \"end\": \"2020-12-16 16:46:29.269851\", \"item\": \"noout\", \"rc\": 0, \"start\": \"2020-12-16 16:46:27.579162\", \"stderr\": \"noout is set\", \"stderr_lines\": [\"noout is set\"], \"stdout\": \"\", \"stdout_lines\": []}                                                                                                                                          \nchanged: [ceph-0 -\u003e 192.168.24.46] \u003d\u003e (item\u003dnorecover) \u003d\u003e {\"ansible_loop_var\": \"item\", \"changed\": true, \"cmd\": \"podman exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set norecover\", \"delta\": \"0:00:00.782940\", \"end\": \"2020-12-16 16:46:30.312623\", \"item\": \"norecover\", \"rc\": 0, \"start\": \"2020-12-16 16:46:29.529683\", \"stderr\": \"norecover is set\", \"stderr_lines\": [\"norecover is set\"], \"stdout\": \"\", \"stdout_lines\": []}                                                                                                                      \nchanged: [ceph-0 -\u003e 192.168.24.46] \u003d\u003e (item\u003dnobackfill) \u003d\u003e {\"ansible_loop_var\": \"item\", \"changed\": true, \"cmd\": \"podman exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set nobackfill\", \"delta\": \"0:00:00.748782\", \"end\": \"2020-12-16 16:46:31.313889\", \"item\": \"nobackfill\", \"rc\": 0, \"start\": \"2020-12-16 16:46:30.565107\", \"stderr\": \"nobackfill is set\", \"stderr_lines\": [\"nobackfill is set\"], \"stdout\": \"\", \"stdout_lines\": []}                                                                                                         \nchanged: [ceph-0 -\u003e 192.168.24.46] \u003d\u003e (item\u003dnorebalance) \u003d\u003e {\"ansible_loop_var\": \"item\", \"changed\": true, \"cmd\": \"podman exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set norebalance\", \"delta\": \"0:00:00.776388\", \"end\": \"2020-12-16 16:46:32.327687\", \"item\": \"norebalance\", \"rc\": 0, \"start\": \"2020-12-16 16:46:31.551299\", \"stderr\": \"norebalance is set\", \"stderr_lines\": [\"norebalance is set\"], \"stdout\": \"\", \"stdout_lines\": []}\nchanged: [ceph-0 -\u003e 192.168.24.46] \u003d\u003e (item\u003dnodeep-scrub) \u003d\u003e {\"ansible_loop_var\": \"item\", \"changed\": true, \"cmd\": \"podman exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set nodee\np-scrub\", \"delta\": \"0:00:01.710036\", \"end\": \"2020-12-16 16:46:34.289178\", \"item\": \"nodeep-scrub\", \"rc\": 0, \"start\": \"2020-12-16 16:46:32.579142\", \"stderr\": \"nodeep-scrub is set\", \"stderr_lines\": [\"nodeep-scrub is set\"], \"stdout\": \"\", \"stdout_lines\": []}                                                                                                        \nTASK [Gather missing facts] ****************************************************\n\n```","commit_id":"3e2371f71fe2f56c69065f613c2fc2473e88d5e1"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"7713357181a5ee23a87540050b5ca79970c94ebf","unresolved":true,"context_lines":[{"line_number":93,"context_line":"                register: check_docker_cli"},{"line_number":94,"context_line":"                check_mode: false"},{"line_number":95,"context_line":"              - name: Set noout flag"},{"line_number":96,"context_line":"                shell: \"{{ container_client }} exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set {{ item }}\""},{"line_number":97,"context_line":"                become: true"},{"line_number":98,"context_line":"                with_items:"},{"line_number":99,"context_line":"                  - noout"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"8e6b837c_a3f540bc","line":96,"range":{"start_line":96,"start_character":69,"end_line":96,"end_character":84},"in_reply_to":"40080d58_61e68f44","updated":"2020-12-18 09:29:39.000000000","message":"ok i was originally confused because it seemed like you were going back to the original problem in the bug\n\nthe key here is the substring removal ... anything beginning with \u0027.\u0027 to end of string.\n\nbut why do you need the double %% what is the difference to just one. locally both are working for me.","commit_id":"3e2371f71fe2f56c69065f613c2fc2473e88d5e1"},{"author":{"_account_id":8449,"name":"Marios Andreou","email":"marios.andreou@gmail.com","username":"marios"},"change_message_id":"e138218975e6fd232eb178bdd595f4d5aa6c1dd4","unresolved":true,"context_lines":[{"line_number":93,"context_line":"                register: check_docker_cli"},{"line_number":94,"context_line":"                check_mode: false"},{"line_number":95,"context_line":"              - name: Set noout flag"},{"line_number":96,"context_line":"                shell: \"{{ container_client }} exec -u root ceph-mon-${HOSTNAME%%.*} ceph osd set {{ item }}\""},{"line_number":97,"context_line":"                become: true"},{"line_number":98,"context_line":"                with_items:"},{"line_number":99,"context_line":"                  - noout"}],"source_content_type":"text/x-yaml","patch_set":5,"id":"f83ba55b_1dca1003","line":96,"range":{"start_line":96,"start_character":69,"end_line":96,"end_character":84},"in_reply_to":"8e6b837c_a3f540bc","updated":"2020-12-18 09:33:47.000000000","message":"k i think it is to do with matching a longer suffix i.e. \u0027everything\u0027 not just the first thing after the first \u0027.\u0027 if it is like controller-0.abc.defg.hij for example","commit_id":"3e2371f71fe2f56c69065f613c2fc2473e88d5e1"}]}
