)]}'
{"migration/tripleo_environment/ovn_migration.sh":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"ca7268725cd1c86959c2e43d24c0c19fa5053e4d","unresolved":false,"context_lines":[{"line_number":78,"context_line":"get_role_hosts() {"},{"line_number":79,"context_line":"    inventory_file\u003d$1"},{"line_number":80,"context_line":"    role_name\u003d$2"},{"line_number":81,"context_line":"    roles\u003d`jq -r  \\.$role_name\\.children\\[\\] $inventory_file`"},{"line_number":82,"context_line":"    for role in $roles; do"},{"line_number":83,"context_line":"        hosts\u003d`jq -r --arg role \"$role\" \u0027to_entries[] | select(.key \u003d\u003d $role) | .value.children[]\u0027 $inventory_file`"},{"line_number":84,"context_line":"        for host in $hosts; do"}],"source_content_type":"text/x-sh","patch_set":2,"id":"5f7c97a3_76afe0df","line":81,"range":{"start_line":81,"start_character":11,"end_line":81,"end_character":14},"updated":"2018-07-04 13:58:51.000000000","message":"Would be nice to have a bindep.txt file in the migration/ directory so people know what are the dependencies they need to install before attempting to run the script. Or, adding it as part of the document if it\u0027s not there yet.","commit_id":"186ab3c397154ad6c4c34a99bdc5a18e89fcded5"},{"author":{"_account_id":23804,"name":"Daniel Alvarez","email":"dalvarez@redhat.com","username":"dalvarez"},"change_message_id":"db6a8fade7b9617ee4db54ba33a2bf2659af151d","unresolved":false,"context_lines":[{"line_number":78,"context_line":"get_role_hosts() {"},{"line_number":79,"context_line":"    inventory_file\u003d$1"},{"line_number":80,"context_line":"    role_name\u003d$2"},{"line_number":81,"context_line":"    roles\u003d`jq -r  \\.$role_name\\.children\\[\\] $inventory_file`"},{"line_number":82,"context_line":"    for role in $roles; do"},{"line_number":83,"context_line":"        hosts\u003d`jq -r --arg role \"$role\" \u0027to_entries[] | select(.key \u003d\u003d $role) | .value.children[]\u0027 $inventory_file`"},{"line_number":84,"context_line":"        for host in $hosts; do"}],"source_content_type":"text/x-sh","patch_set":2,"id":"5f7c97a3_d666f428","line":81,"range":{"start_line":81,"start_character":11,"end_line":81,"end_character":14},"in_reply_to":"5f7c97a3_76afe0df","updated":"2018-07-04 14:33:04.000000000","message":"Nice point! As this is a tripleo based installation if we run it from the undercloud we can assume that jq will be installed as tripleoclient should be installed too:\n\n[stack@undercloud-0 ~]$ sudo rpm -q --whatrequires jq\ninstack-undercloud-8.4.1-4.el7ost.noarch\n[stack@undercloud-0 ~]$ sudo rpm -q --whatrequires instack-undercloud\npython-tripleoclient-9.2.1-12.el7ost.noarch\n[stack@undercloud-0 ~]$ sudo rpm -q --whatrequires python-tripleoclient\n\n\nIf we want to generate this from a host different than the undercloud (do we?) then this might not work as not even /bin/tripleo-ansible-inventory might be present:\n\n[stack@undercloud-0 ~]$ yum whatprovides tripleo-ansible-inventory\nLoaded plugins: search-disabled-repos\nopenstack-tripleo-validations-8.4.1-5.el7ost.noarch : Ansible playbooks to detect potential issues with TripleO deployments","commit_id":"186ab3c397154ad6c4c34a99bdc5a18e89fcded5"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"7d9cc6dba25c9009423884f36b68cf43ce2fc837","unresolved":false,"context_lines":[{"line_number":95,"context_line":"    echo \"[ovn-dbs]\"  \u003e hosts_for_migration"},{"line_number":96,"context_line":"    ovn_central\u003dTrue"},{"line_number":97,"context_line":"    /usr/bin/tripleo-ansible-inventory --list \u003e /tmp/ansible-inventory.txt"},{"line_number":98,"context_line":"    # We want to run ovn_dbs where neutron_api was running"},{"line_number":99,"context_line":"    OVN_DBS\u003d$(get_role_hosts /tmp/ansible-inventory.txt neutron_api)"},{"line_number":100,"context_line":"    for node_ip in $OVN_DBS"},{"line_number":101,"context_line":"    do"}],"source_content_type":"text/x-sh","patch_set":4,"id":"5f7c97a3_c05fe672","line":98,"range":{"start_line":98,"start_character":47,"end_line":98,"end_character":50},"updated":"2018-07-06 05:23:12.000000000","message":"very very small nit: s/was/is.\n\nEven after migration  we will be running neutron_api","commit_id":"0c0539845ed8606ff41f687aea0dba64aaadb7cb"},{"author":{"_account_id":10237,"name":"Numan Siddique","email":"nusiddiq@redhat.com","username":"numansiddique"},"change_message_id":"7d9cc6dba25c9009423884f36b68cf43ce2fc837","unresolved":false,"context_lines":[{"line_number":110,"context_line":"    echo \"\" \u003e\u003e hosts_for_migration"},{"line_number":111,"context_line":"    echo \"[ovn-controllers]\" \u003e\u003e hosts_for_migration"},{"line_number":112,"context_line":""},{"line_number":113,"context_line":"    # We want to run ovn-controller where OVS agent was running before the migration"},{"line_number":114,"context_line":"    OVN_CONTROLLERS\u003d$(get_role_hosts /tmp/ansible-inventory.txt neutron_ovs_agent)"},{"line_number":115,"context_line":"    for node_ip in $OVN_CONTROLLERS"},{"line_number":116,"context_line":"    do"}],"source_content_type":"text/x-sh","patch_set":4,"id":"5f7c97a3_80556e54","line":113,"range":{"start_line":113,"start_character":52,"end_line":113,"end_character":55},"updated":"2018-07-06 05:23:12.000000000","message":"here was is fine :).","commit_id":"0c0539845ed8606ff41f687aea0dba64aaadb7cb"}]}
