)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"87abcf29c5db7d8ee5be0b818b6d230af4e73b5f","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Spyros Trigazis \u003cspyridon.trigazis@cern.ch\u003e"},{"line_number":5,"context_line":"CommitDate: 2020-03-11 13:55:36 +0100"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add fcct config for coreos user_data"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Until now we had only the output of the Fedora"},{"line_number":10,"context_line":"CoreOS Configuration Transpiler. Add a yaml"},{"line_number":11,"context_line":"that can transpile it to an ignition file."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"The current ignition file was generate with"},{"line_number":14,"context_line":"version v0.4.0:"},{"line_number":15,"context_line":"podman run --rm -v ./fcct-config.yaml:/config.fcc:z \\"},{"line_number":16,"context_line":"quay.io/coreos/fcct:v0.4.0 \\"},{"line_number":17,"context_line":"--pretty --strict --input /config.fcc \u003e ./user_data.json"},{"line_number":18,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":11,"id":"1fa4df85_b2c41e61","line":15,"range":{"start_line":7,"start_character":0,"end_line":15,"end_character":53},"updated":"2020-03-11 13:00:01.000000000","message":"SHould probably mention in the commit message that we fixed the modes.","commit_id":"a8ab482a5af039fa8c7b2b8fe74b9407064050f4"}],"magnum/drivers/k8s_fedora_coreos_v1/templates/fcct-config.yaml":[{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"fdbfc6e9e3cec35518d24e70e0e53f5dd9886034","unresolved":false,"context_lines":[{"line_number":62,"context_line":"          HTTP_PROXY\u003d\"__HTTP_PROXY__\""},{"line_number":63,"context_line":"          HTTPS_PROXY\u003d\"__HTTPS_PROXY__\""},{"line_number":64,"context_line":"          NO_PROXY\u003d\"__NO_PROXY__\""},{"line_number":65,"context_line":"          CONTAINER_INFRA_PREFIX\u003d\"__CONTAINER_INFRA_PREFIX__\""},{"line_number":66,"context_line":"          HEAT_CONTAINER_AGENT_TAG\u003d\"__HEAT_CONTAINER_AGENT_TAG__\""},{"line_number":67,"context_line":"          "},{"line_number":68,"context_line":"          "},{"line_number":69,"context_line":"          if [ -n \"${HTTP_PROXY}\" ]; then"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"1fa4df85_4677340a","line":66,"range":{"start_line":65,"start_character":9,"end_line":66,"end_character":65},"updated":"2020-03-11 10:02:59.000000000","message":"I don\u0027t know why was this here in the first place. It is not used.","commit_id":"8bb77382e996d1d6362233584de709febcf4485c"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"69025de04b1baaad95493b19bcb46e8c1a978464","unresolved":false,"context_lines":[{"line_number":62,"context_line":"          HTTP_PROXY\u003d\"__HTTP_PROXY__\""},{"line_number":63,"context_line":"          HTTPS_PROXY\u003d\"__HTTPS_PROXY__\""},{"line_number":64,"context_line":"          NO_PROXY\u003d\"__NO_PROXY__\""},{"line_number":65,"context_line":"          CONTAINER_INFRA_PREFIX\u003d\"__CONTAINER_INFRA_PREFIX__\""},{"line_number":66,"context_line":"          HEAT_CONTAINER_AGENT_TAG\u003d\"__HEAT_CONTAINER_AGENT_TAG__\""},{"line_number":67,"context_line":"          "},{"line_number":68,"context_line":"          "},{"line_number":69,"context_line":"          if [ -n \"${HTTP_PROXY}\" ]; then"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"1fa4df85_26d478bd","line":66,"range":{"start_line":65,"start_character":9,"end_line":66,"end_character":65},"in_reply_to":"1fa4df85_4677340a","updated":"2020-03-11 10:06:09.000000000","message":"¯\\_(ツ)_/¯","commit_id":"8bb77382e996d1d6362233584de709febcf4485c"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"dde3dcf1e51715926ab9b230d924d9431cb5c2e9","unresolved":false,"context_lines":[{"line_number":149,"context_line":"        ExecStartPre\u003dmkdir -p /srv/magnum"},{"line_number":150,"context_line":"        ExecStartPre\u003d-/bin/podman kill heat-container-agent"},{"line_number":151,"context_line":"        ExecStartPre\u003d-/bin/podman rm heat-container-agent"},{"line_number":152,"context_line":"        ExecStartPre\u003d-/bin/podman pull $CONTAINER_INFRA_PREFIXheat-container-agent:$HEAT_CONTAINER_AGENT_TAG"},{"line_number":153,"context_line":"        ExecStart\u003d/bin/podman run \\"},{"line_number":154,"context_line":"                --name heat-container-agent \\"},{"line_number":155,"context_line":"                --privileged \\"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"1fa4df85_e66e6095","line":152,"range":{"start_line":152,"start_character":40,"end_line":152,"end_character":66},"updated":"2020-03-11 09:41:57.000000000","message":"doesnt this need to be ${CONTAINER_INFRA_PREFIX} or presented as __CONTAINER_INFRA_PREFIX__","commit_id":"8bb77382e996d1d6362233584de709febcf4485c"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"dde3dcf1e51715926ab9b230d924d9431cb5c2e9","unresolved":false,"context_lines":[{"line_number":164,"context_line":"                --volume /tmp:/tmp \\"},{"line_number":165,"context_line":"                --volume /dev:/dev \\"},{"line_number":166,"context_line":"                --env REQUESTS_CA_BUNDLE\u003d/etc/pki/tls/certs/ca-bundle.crt \\"},{"line_number":167,"context_line":"                $CONTAINER_INFRA_PREFIXheat-container-agent:$HEAT_CONTAINER_AGENT_TAG \\"},{"line_number":168,"context_line":"                /usr/bin/start-heat-container-agent"},{"line_number":169,"context_line":"        TimeoutStartSec\u003d10min"},{"line_number":170,"context_line":"        "}],"source_content_type":"text/x-yaml","patch_set":3,"id":"1fa4df85_c671e479","line":167,"range":{"start_line":167,"start_character":16,"end_line":167,"end_character":39},"updated":"2020-03-11 09:41:57.000000000","message":"doesnt this need to be ${CONTAINER_INFRA_PREFIX} or presented as __CONTAINER_INFRA_PREFIX__","commit_id":"8bb77382e996d1d6362233584de709febcf4485c"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"59f0ef325628aefd6609ca0b8c6006182caedee4","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      group:"},{"line_number":15,"context_line":"        name: root"},{"line_number":16,"context_line":"    - path: /var/lib/heat-cfntools"},{"line_number":17,"context_line":"      mode: 700"},{"line_number":18,"context_line":"      user:"},{"line_number":19,"context_line":"        name: root"},{"line_number":20,"context_line":"      group:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"1fa4df85_09e86d7a","line":17,"range":{"start_line":17,"start_character":12,"end_line":17,"end_character":15},"updated":"2020-03-11 11:05:48.000000000","message":"this ends up translating to 274:\n\n[core@k8s-flannel-coreos-gwdxuuqmxmki-master-0 ~]$ stat  /var/lib/heat-cfntools\n  File: /var/lib/heat-cfntools\n  Size: 27        \tBlocks: 0          IO Block: 4096   directory\nDevice: fc04h/64516d\tInode: 6339        Links: 2\nAccess: (0274/d-w-rwxr--)  Uid: (    0/    root)   Gid: (    0/    root)\nContext: system_u:object_r:var_lib_t:s0\nAccess: 2020-03-11 10:43:19.851000000 +0000\nModify: 2020-03-11 10:43:19.542000000 +0000\nChange: 2020-03-11 10:43:19.851000000 +0000\n Birth: 2020-03-11 10:43:19.542000000 +0000","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"fcda5ad6e6c58f0c34d922c72eccb0cad6c13c2b","unresolved":false,"context_lines":[{"line_number":14,"context_line":"      group:"},{"line_number":15,"context_line":"        name: root"},{"line_number":16,"context_line":"    - path: /var/lib/heat-cfntools"},{"line_number":17,"context_line":"      mode: 700"},{"line_number":18,"context_line":"      user:"},{"line_number":19,"context_line":"        name: root"},{"line_number":20,"context_line":"      group:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"1fa4df85_8cc78b65","line":17,"range":{"start_line":17,"start_character":12,"end_line":17,"end_character":15},"in_reply_to":"1fa4df85_09e86d7a","updated":"2020-03-11 11:43:33.000000000","message":"this was always like this.\n\nstat -c \"%a %n\" \u003cfile|regex\u003e","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"59f0ef325628aefd6609ca0b8c6006182caedee4","unresolved":false,"context_lines":[{"line_number":21,"context_line":"        name: root"},{"line_number":22,"context_line":"  files:"},{"line_number":23,"context_line":"    - path: /etc/hostname"},{"line_number":24,"context_line":"      mode: 644"},{"line_number":25,"context_line":"      group:"},{"line_number":26,"context_line":"        name: root"},{"line_number":27,"context_line":"      user:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"1fa4df85_69ca411b","line":24,"range":{"start_line":24,"start_character":12,"end_line":24,"end_character":15},"updated":"2020-03-11 11:05:48.000000000","message":"this ends up translating to 204 on the instances... \n\n[core@k8s-flannel-coreos-gwdxuuqmxmki-master-0 ~]$ stat /etc/hostname\n  File: /etc/hostname\n  Size: 41        \tBlocks: 8          IO Block: 4096   regular file\nDevice: fc04h/64516d\tInode: 5627        Links: 1\nAccess: (0204/--w----r--)  Uid: (    0/    root)   Gid: (    0/    root)\nContext: system_u:object_r:hostname_etc_t:s0\nAccess: 2020-03-11 10:43:21.724000000 +0000\nModify: 2020-03-11 10:43:19.542000000 +0000\nChange: 2020-03-11 10:43:19.848000000 +0000\n Birth: 2020-03-11 10:43:19.542000000 +0000","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"fcda5ad6e6c58f0c34d922c72eccb0cad6c13c2b","unresolved":false,"context_lines":[{"line_number":21,"context_line":"        name: root"},{"line_number":22,"context_line":"  files:"},{"line_number":23,"context_line":"    - path: /etc/hostname"},{"line_number":24,"context_line":"      mode: 644"},{"line_number":25,"context_line":"      group:"},{"line_number":26,"context_line":"        name: root"},{"line_number":27,"context_line":"      user:"}],"source_content_type":"text/x-yaml","patch_set":6,"id":"1fa4df85_2cae9798","line":24,"range":{"start_line":24,"start_character":12,"end_line":24,"end_character":15},"in_reply_to":"1fa4df85_69ca411b","updated":"2020-03-11 11:43:33.000000000","message":"fixed","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"87abcf29c5db7d8ee5be0b818b6d230af4e73b5f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"variant: fcos"},{"line_number":2,"context_line":"version: 1.0.0"},{"line_number":3,"context_line":"passwd:"},{"line_number":4,"context_line":"  users:"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"1fa4df85_d292fa58","line":1,"range":{"start_line":1,"start_character":0,"end_line":1,"end_character":13},"updated":"2020-03-11 13:00:01.000000000","message":"if this file allows comments, does it make sense to put this here: podman run --rm -v ./fcct-config.yaml:/config.fcc:z \\\nquay.io/coreos/fcct:v0.4.0 \\\n--pretty --strict --input /config.fcc \u003e ./user_data.json","commit_id":"a8ab482a5af039fa8c7b2b8fe74b9407064050f4"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"87abcf29c5db7d8ee5be0b818b6d230af4e73b5f","unresolved":false,"context_lines":[{"line_number":8,"context_line":"storage:"},{"line_number":9,"context_line":"  directories:"},{"line_number":10,"context_line":"    - path: /var/lib/cloud/data"},{"line_number":11,"context_line":"      # actual octal mode 755"},{"line_number":12,"context_line":"      # below it is decimal"},{"line_number":13,"context_line":"      mode: 493"},{"line_number":14,"context_line":"      user:"},{"line_number":15,"context_line":"        name: root"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"1fa4df85_d21f5a07","line":12,"range":{"start_line":11,"start_character":8,"end_line":12,"end_character":27},"updated":"2020-03-11 13:00:01.000000000","message":"lets put this in a single line, e.g. 493 (decimal) \u003d\u003d 755 (octal)","commit_id":"a8ab482a5af039fa8c7b2b8fe74b9407064050f4"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"87abcf29c5db7d8ee5be0b818b6d230af4e73b5f","unresolved":false,"context_lines":[{"line_number":16,"context_line":"      group:"},{"line_number":17,"context_line":"        name: root"},{"line_number":18,"context_line":"    - path: /var/lib/heat-cfntools"},{"line_number":19,"context_line":"      # actual octal mode 755"},{"line_number":20,"context_line":"      # below it is decimal"},{"line_number":21,"context_line":"      mode: 493"},{"line_number":22,"context_line":"      user:"},{"line_number":23,"context_line":"        name: root"}],"source_content_type":"text/x-yaml","patch_set":11,"id":"1fa4df85_529fea64","line":20,"range":{"start_line":19,"start_character":5,"end_line":20,"end_character":27},"updated":"2020-03-11 13:00:01.000000000","message":"single line.. etc.","commit_id":"a8ab482a5af039fa8c7b2b8fe74b9407064050f4"}],"magnum/drivers/k8s_fedora_coreos_v1/templates/generate_user_data.md":[{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"7576a5ef8d45cc8233fe613bfea3f06401930774","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Producing user_data.json"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"To generate user_data.json you need to use [0]."},{"line_number":4,"context_line":"For detailed instructions, please refer to the upstream documentation [1]."},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"You can use podman or docker to generate the ignition formatted json:"},{"line_number":7,"context_line":"```"},{"line_number":8,"context_line":"podman run --rm -v ./fcct-config.yaml:/config.fcc:z quay.io/coreos/fcct:release --pretty --strict --input /config.fcc \u003e ./user_data.json"},{"line_number":9,"context_line":"```"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"[0] https://github.com/coreos/fcct"},{"line_number":12,"context_line":"[1] https://github.com/coreos/fedora-coreos-docs/blob/master/modules/ROOT/pages/producing-ign.adoc"}],"source_content_type":"text/x-markdown","patch_set":11,"id":"1fa4df85_b2a73ea8","line":12,"range":{"start_line":1,"start_character":0,"end_line":12,"end_character":98},"updated":"2020-03-11 13:04:46.000000000","message":"I think it would be better to add this as a comment inside fcct-config.yaml or in the actual developer docs?","commit_id":"a8ab482a5af039fa8c7b2b8fe74b9407064050f4"}],"magnum/drivers/k8s_fedora_coreos_v1/templates/kubemaster.yaml":[{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"80f752d2acd19d6c43879f9aa227f660fda95664","unresolved":false,"context_lines":[{"line_number":648,"context_line":"            - str_replace:"},{"line_number":649,"context_line":"                template: {get_file: user_data.json}"},{"line_number":650,"context_line":"                params:"},{"line_number":651,"context_line":"                  __HOSTNAME__: {get_param: name}"},{"line_number":652,"context_line":"                  __SSH_KEY_VALUE__: {get_param: ssh_public_key}"},{"line_number":653,"context_line":"                  __OPENSTACK_CA__: {get_param: openstack_ca}"},{"line_number":654,"context_line":"                  __CONTAINER_INFRA_PREFIX__:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"1fa4df85_fa991ac3","line":651,"range":{"start_line":651,"start_character":18,"end_line":651,"end_character":30},"updated":"2020-03-10 19:06:35.000000000","message":"This was required for the string replacement.\n\nfcct replaces $ with the equivalent string url encoding.","commit_id":"8bb77382e996d1d6362233584de709febcf4485c"}],"magnum/drivers/k8s_fedora_coreos_v1/templates/user_data.json":[{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"6f1d65d0dcf6c57afa76b8f695dffc65ba0921f6","unresolved":false,"context_lines":[{"line_number":32,"context_line":"        \"user\": {"},{"line_number":33,"context_line":"          \"name\": \"root\""},{"line_number":34,"context_line":"        },"},{"line_number":35,"context_line":"        \"mode\": 700"},{"line_number":36,"context_line":"      },"},{"line_number":37,"context_line":"      {"},{"line_number":38,"context_line":"        \"group\": {"}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_8ce22ba0","line":35,"range":{"start_line":35,"start_character":16,"end_line":35,"end_character":19},"updated":"2020-03-11 12:04:37.000000000","message":"this should be 448","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"6f1d65d0dcf6c57afa76b8f695dffc65ba0921f6","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        \"user\": {"},{"line_number":43,"context_line":"          \"name\": \"root\""},{"line_number":44,"context_line":"        },"},{"line_number":45,"context_line":"        \"mode\": 700"},{"line_number":46,"context_line":"      }"},{"line_number":47,"context_line":"    ],"},{"line_number":48,"context_line":"    \"files\": ["}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_acdfe7d4","line":45,"range":{"start_line":45,"start_character":16,"end_line":45,"end_character":19},"updated":"2020-03-11 12:04:37.000000000","message":"448","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"6f1d65d0dcf6c57afa76b8f695dffc65ba0921f6","unresolved":false,"context_lines":[{"line_number":58,"context_line":"          \"source\": \"data:,__HOSTNAME__%0A\","},{"line_number":59,"context_line":"          \"verification\": {}"},{"line_number":60,"context_line":"        },"},{"line_number":61,"context_line":"        \"mode\": 644"},{"line_number":62,"context_line":"      },"},{"line_number":63,"context_line":"      {"},{"line_number":64,"context_line":"        \"group\": {"}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_2ced378b","line":61,"range":{"start_line":61,"start_character":16,"end_line":61,"end_character":19},"updated":"2020-03-11 12:04:37.000000000","message":"420","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":20498,"name":"Spyros Trigazis","email":"spyridon.trigazis@cern.ch","username":"strigazi"},"change_message_id":"94954055902f990d73a7aa9ed682d09bfdb47a21","unresolved":false,"context_lines":[{"line_number":58,"context_line":"          \"source\": \"data:,__HOSTNAME__%0A\","},{"line_number":59,"context_line":"          \"verification\": {}"},{"line_number":60,"context_line":"        },"},{"line_number":61,"context_line":"        \"mode\": 644"},{"line_number":62,"context_line":"      },"},{"line_number":63,"context_line":"      {"},{"line_number":64,"context_line":"        \"group\": {"}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_2c177754","line":61,"range":{"start_line":61,"start_character":16,"end_line":61,"end_character":19},"in_reply_to":"1fa4df85_2ced378b","updated":"2020-03-11 12:12:08.000000000","message":"I fixed that. In another patchSet.","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"6f1d65d0dcf6c57afa76b8f695dffc65ba0921f6","unresolved":false,"context_lines":[{"line_number":72,"context_line":"          \"source\": \"data:,__OPENSTACK_CA__%0A\","},{"line_number":73,"context_line":"          \"verification\": {}"},{"line_number":74,"context_line":"        },"},{"line_number":75,"context_line":"        \"mode\": 644"},{"line_number":76,"context_line":"      },"},{"line_number":77,"context_line":"      {"},{"line_number":78,"context_line":"        \"group\": {"}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_cc01033c","line":75,"range":{"start_line":75,"start_character":16,"end_line":75,"end_character":19},"updated":"2020-03-11 12:04:37.000000000","message":"420","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"},{"author":{"_account_id":28022,"name":"Bharat Kunwar","email":"brtknr@bath.edu","username":"brtknr"},"change_message_id":"6f1d65d0dcf6c57afa76b8f695dffc65ba0921f6","unresolved":false,"context_lines":[{"line_number":86,"context_line":"          \"source\": \"data:,%23!%2Fbin%2Fbash%0A%0Aset%20-x%0Aset%20-e%0Aset%20%2Bu%0A%0Auntil%20%5B%20-f%20%2Fetc%2Fpki%2Fca-trust%2Fsource%2Fanchors%2Fopenstack-ca.pem%20%5D%0Ado%0A%20%20%20%20echo%20%22waiting%20for%20%2Fetc%2Fpki%2Fca-trust%2Fsource%2Fanchors%2Fopenstack-ca.pem%22%0A%20%20%20%20sleep%203s%0Adone%0A%0A%2Fusr%2Fbin%2Fupdate-ca-trust%0A%0AHTTP_PROXY%3D%22__HTTP_PROXY__%22%0AHTTPS_PROXY%3D%22__HTTPS_PROXY__%22%0ANO_PROXY%3D%22__NO_PROXY__%22%0A%0Aif%20%5B%20-n%20%22%24%7BHTTP_PROXY%7D%22%20%5D%3B%20then%0A%20%20%20%20export%20HTTP_PROXY%0A%20%20%20%20echo%20%22http_proxy%3D%24%7BHTTP_PROXY%7D%22%20%3E%3E%20%2Fetc%2Fenvironment%0Afi%0A%0Aif%20%5B%20-n%20%22%24%7BHTTPS_PROXY%7D%22%20%5D%3B%20then%0A%20%20%20%20export%20HTTPS_PROXY%0A%20%20%20%20echo%20%22https_proxy%3D%24%7BHTTPS_PROXY%7D%22%20%3E%3E%20%2Fetc%2Fenvironment%0Afi%0A%0Aif%20%5B%20-n%20%22%24%7BNO_PROXY%7D%22%20%5D%3B%20then%0A%20%20%20%20export%20NO_PROXY%0A%20%20%20%20echo%20%22no_proxy%3D%24%7BNO_PROXY%7D%22%20%3E%3E%20%2Fetc%2Fenvironment%0Afi%0A%0A%23%20Create%20a%20keypair%20for%20the%20heat-container-agent%20to%0A%23%20access%20the%20node%20over%20ssh.%20It%20is%20useful%20to%20operate%0A%23%20in%20host%20mount%20namespace%20and%20apply%20configuration.%0Aid%0Amkdir%20-p%20%2Fsrv%2Fmagnum%2F.ssh%0Achmod%200700%20%2Fsrv%2Fmagnum%2F.ssh%0A%23touch%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa%0Assh-keygen%20-q%20-t%20rsa%20-N%20\u0027\u0027%20-f%20%2Ftmp%2Fheat_agent_rsa%0Amv%20%2Ftmp%2Fheat_agent_rsa%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa%0Amv%20%2Ftmp%2Fheat_agent_rsa.pub%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa.pub%0Achmod%200400%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa%0Achmod%200400%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa.pub%0A%23%20Add%20the%20public%20to%20the%20host%20authorized_keys%20file.%0Amkdir%20-p%20%2Froot%2F.ssh%0Achmod%200700%20%2Froot%2F.ssh%0Acat%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa.pub%20%3E%20%2Froot%2F.ssh%2Fauthorized_keys%0A%23%20Add%20localost%20to%20know_hosts%0Assh-keyscan%20127.0.0.1%20%3E%20%2Fsrv%2Fmagnum%2F.ssh%2Fknown_hosts%0A%23%20ssh%20configguration%20file%2C%20to%20be%20specified%20with%20ssh%20-F%0Acat%20%3E%20%2Fsrv%2Fmagnum%2F.ssh%2Fconfig%20%3C%3CEOF%0AHost%20localhost%0A%20%20%20%20%20HostName%20127.0.0.1%0A%20%20%20%20%20User%20root%0A%20%20%20%20%20IdentityFile%20%2Fsrv%2Fmagnum%2F.ssh%2Fheat_agent_rsa%0A%20%20%20%20%20UserKnownHostsFile%20%2Fsrv%2Fmagnum%2F.ssh%2Fknown_hosts%0AEOF%0A%0Ased%20-i%20\u0027%2F%5EPermitRootLogin%2F%20s%2F%20.*%2F%20without-password%2F\u0027%20%2Fetc%2Fssh%2Fsshd_config%0A%23%20Security%20enhancement%3A%20Disable%20password%20authentication%0Ased%20-i%20\u0027%2F%5EPasswordAuthentication%20yes%2F%20s%2F%20yes%2F%20no%2F\u0027%20%2Fetc%2Fssh%2Fsshd_config%0A%0Asystemctl%20restart%20sshd%0A\","},{"line_number":87,"context_line":"          \"verification\": {}"},{"line_number":88,"context_line":"        },"},{"line_number":89,"context_line":"        \"mode\": 700"},{"line_number":90,"context_line":"      }"},{"line_number":91,"context_line":"    ]"},{"line_number":92,"context_line":"  },"}],"source_content_type":"application/json","patch_set":6,"id":"1fa4df85_ecfe3f37","line":89,"range":{"start_line":89,"start_character":16,"end_line":89,"end_character":19},"updated":"2020-03-11 12:04:37.000000000","message":"448","commit_id":"66a4b4acb8499cb793f4e674b1510ca2d9123f77"}]}
