)]}'
{"devstack/post_test_hook.sh":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5587a3f216c465bcaab6d0d0f43b6448fffff361","unresolved":false,"context_lines":[{"line_number":5,"context_line":"# Collect OVS and OVN databases"},{"line_number":6,"context_line":"if [ -f $BASE/data/ovs/*.db ] ; then"},{"line_number":7,"context_line":"    mkdir -p $BASE/logs/ovs_dbs"},{"line_number":8,"context_line":"    cp $BASE/data/ovs/*.db $BASE/logs/ovs_dbs/"},{"line_number":9,"context_line":"fi"}],"source_content_type":"text/x-sh","patch_set":7,"id":"1f485f77_d0769270","line":8,"updated":"2017-11-17 13:52:29.000000000","message":"Can we compress these files (tar.gz) before moving it to the logs/ directory ? These .db\u0027s files are text right ? So we will save a bunch of space.\n\nInfra will keep it for weeks so, the more space we can save the best here.","commit_id":"04a9a458c986f3eb4d7f9d20c4b48b076b0cf433"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5587a3f216c465bcaab6d0d0f43b6448fffff361","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":7,"id":"1f485f77_b0c31689","line":10,"updated":"2017-11-17 13:52:29.000000000","message":"I wonder if it would be better to move the networking_ovn/tests/contrib/post_test_hook.sh [0] here and change the playbook for the functional tests [1] to use it (or at least rename the other one to explicitly say \"functional\"). Otherwise we will ended up with 2 files with the same name and it will be very confusing.\n\n\n[0] https://github.com/openstack/networking-ovn/blob/master/networking_ovn/tests/contrib/post_test_hook.sh\n\n[1] https://github.com/openstack/networking-ovn/blob/a9af75cd3ce6cd6685b6435b325c97cacc83ce0e/playbooks/legacy/networking-ovn-dsvm-functional/run.yaml#L52","commit_id":"04a9a458c986f3eb4d7f9d20c4b48b076b0cf433"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"0cc0fdf09372bdefbb0cea137be49b8802537c4c","unresolved":false,"context_lines":[{"line_number":22,"context_line":"}"},{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Collect OVS and OVN databases"},{"line_number":25,"context_line":"if [ -f $BASE/data/ovs/*.db ] ; then"},{"line_number":26,"context_line":"    mkdir -p $BASE/logs/ovs_dbs"},{"line_number":27,"context_line":"    gzip -9 $BASE/data/ovs/*.db"},{"line_number":28,"context_line":"    mv $BASE/data/ovs/*.gz $BASE/logs/ovs_dbs/"}],"source_content_type":"text/x-sh","patch_set":8,"id":"ff82abbf_2083b455","line":25,"updated":"2017-11-21 17:14:02.000000000","message":"I believe the problem is this conditional here (mind my bash-fu, it\u0027s not the greatest):\n\n$ if [[ -f /opt/stack/data/ovs/ovnnb.db ]]; then echo \"aha\"; fi\naha\n\n$ if [[ -f /opt/stack/data/ovs/*.db ]]; then echo \"oi\"; fi\n\nThis seem to be due to the wild card. May I suggest: \n\n$ if ls /opt/stack/data/ovs/*.db 1\u003e /dev/null 2\u003e\u00261; then echo \"aha\"; fi\naha","commit_id":"e44cc39e79bd20351f6ec70348b5ccf3b24d4572"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"5cf7b1e5f90eebad768c431d1d7492583dc81292","unresolved":false,"context_lines":[{"line_number":23,"context_line":""},{"line_number":24,"context_line":"# Collect OVS and OVN databases"},{"line_number":25,"context_line":"for f in $BASE/data/ovs/*.db; do"},{"line_number":26,"context_line":"    [ -e \"$f\" ] \u0026\u0026 gzip -9 $BASE/data/ovs/*.db \u0026\u0026 mv $BASE/data/ovs/*.gz $BASE/logs/ovs_dbs/"},{"line_number":27,"context_line":"    break"},{"line_number":28,"context_line":"done"},{"line_number":29,"context_line":""}],"source_content_type":"text/x-sh","patch_set":9,"id":"ff82abbf_862e58a3","line":26,"range":{"start_line":26,"start_character":19,"end_line":26,"end_character":43},"updated":"2017-11-21 18:50:02.000000000","message":"Apparently we will need sudo here, see [0]\n\n[0] http://logs.openstack.org/09/520609/9/check/networking-ovn-tempest-dsvm-ovs-release/7317af8/logs/devstack-gate-post_test_hook.txt.gz#_2017-11-21_18_32_06_133\n\nAlso, instead of using a loop, maybe:\n\nif ls /opt/stack/data/ovs/*.db 1\u003e /dev/null 2\u003e\u00261; then\n    mkdir -p $BASE/logs/ovs_dbs\n    sudo gzip -9 $BASE/data/ovs/*.db\n    mv $BASE/data/ovs/*.gz $BASE/logs/ovs_dbs/\nfi","commit_id":"2eab53316b2940ae5c8f68439d3ac6857e98849c"},{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"58924ab69f837bacc669897f6a81b74f7554494c","unresolved":false,"context_lines":[{"line_number":25,"context_line":"if ls $BASE/data/ovs/*.db 1\u003e /dev/null 2\u003e\u00261; then"},{"line_number":26,"context_line":"    mkdir -p $BASE/logs/ovs_dbs"},{"line_number":27,"context_line":"    mv $BASE/data/ovs/*.db $BASE/logs/ovs_dbs/"},{"line_number":28,"context_line":"    gzip -9 $BASE/logs/ovs_dbs/*.db"},{"line_number":29,"context_line":"fi"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"if [[ \"$venv\" \u003d\u003d dsvm-functional* ]]"}],"source_content_type":"text/x-sh","patch_set":10,"id":"ff82abbf_7a0f16e1","line":28,"updated":"2017-11-22 09:49:31.000000000","message":"Same permission problems :-(\n\nBut interesting as well, even tho we moved it to logs/ovs_dbs I still can\u0027t see them (the non-compressed) in the logs. Which is strange cause it worked on patch-set #6, no ?\n\nhttp://logs.openstack.org/09/520609/10/check/networking-ovn-tempest-dsvm-ovs-release/47ffcfa/logs/devstack-gate-post_test_hook.txt.gz#_2017-11-22_09_04_16_180","commit_id":"00f3dbf27bbaeff6c8efda3c7be3f7310a9e70ea"}],"playbooks/legacy/tempest-post-common.yml":[{"author":{"_account_id":6773,"name":"Lucas Alvares Gomes","email":"lucasagomes@gmail.com","username":"lucasagomes"},"change_message_id":"38d44b5bf344f8d4efe88b054f237c2a5aebe36d","unresolved":false,"context_lines":[{"line_number":6,"context_line":"      mkdir -p {{ ansible_user_dir }}/workspace/logs/ovs_dbs"},{"line_number":7,"context_line":"      cp /opt/stack/data/ovs/*.db {{ ansible_user_dir }}/workspace/logs/ovs_dbs/"},{"line_number":8,"context_line":"      gzip -9 {{ ansible_user_dir }}/workspace/logs/ovs_dbs/*.db"},{"line_number":9,"context_line":"    fi"},{"line_number":10,"context_line":"  register: tmp_dbg"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"- debug: var\u003dtmp_dbg.stdout_lines"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"ff82abbf_d9297e9b","line":9,"updated":"2017-11-22 22:04:20.000000000","message":"Would be good to make it more ansible-ish but I think for a first version it\u0027s fine.","commit_id":"7451b59de7aaf9608a93feeab116019c9d062845"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1afc753787a81de5b143083e305284b2b3ca69e5","unresolved":false,"context_lines":[{"line_number":6,"context_line":"      mkdir -p {{ ansible_user_dir }}/workspace/logs/ovs_dbs"},{"line_number":7,"context_line":"      cp /opt/stack/data/ovs/*.db {{ ansible_user_dir }}/workspace/logs/ovs_dbs/"},{"line_number":8,"context_line":"      gzip -9 {{ ansible_user_dir }}/workspace/logs/ovs_dbs/*.db"},{"line_number":9,"context_line":"    fi"},{"line_number":10,"context_line":"  register: tmp_dbg"},{"line_number":11,"context_line":""},{"line_number":12,"context_line":"- debug: var\u003dtmp_dbg.stdout_lines"}],"source_content_type":"text/x-yaml","patch_set":14,"id":"ff82abbf_d66dbd04","line":9,"in_reply_to":"ff82abbf_d9297e9b","updated":"2017-11-23 10:04:49.000000000","message":"Yeah, it wouldn\u0027t be bad, the more ansible-ish would make it sightly slower though.\n\nI\u0027m going to remove the debug anyway (now that it works) :D","commit_id":"7451b59de7aaf9608a93feeab116019c9d062845"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"1afc753787a81de5b143083e305284b2b3ca69e5","unresolved":false,"context_lines":[{"line_number":16,"context_line":"    - ovnnb"},{"line_number":17,"context_line":"    - ovnsb"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"- name: Compress OVN databases in individual files"},{"line_number":20,"context_line":"  command: gzip -9 {{ ansible_user_dir }}/workspace/logs/ovs_dbs/*.txt"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#"}],"source_content_type":"text/x-yaml","patch_set":15,"id":"ff82abbf_b1db63eb","line":19,"updated":"2017-11-23 10:04:49.000000000","message":"Ansible has \"archive\" command, which will create a tar.gz or tar.gz2, but not a raw gz ... (they have plans to add \"compress\" command but that hasn\u0027t happened yet though...)","commit_id":"4d19d607cca0014f46091268db2cea338dce81d7"},{"author":{"_account_id":8788,"name":"Miguel Angel Ajo","email":"mangelajo@redhat.com","username":"mangelajo"},"change_message_id":"b4839835325dd017a3add90ff43fd0322e1dae4b","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    - ovnsb"},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"- name: Compress OVN databases in individual files"},{"line_number":20,"context_line":"  shell: gzip -9 \u0027{{ ansible_user_dir }}/workspace/logs/ovs_dbs/*\u0027"},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"#"},{"line_number":23,"context_line":"# Synchronize files from workspace in node to the zuul log_root which will be stored"}],"source_content_type":"text/x-yaml","patch_set":17,"id":"ff82abbf_0761aaa9","line":20,"updated":"2017-11-23 13:33:47.000000000","message":"I\u0027m not sure if the \u0027 \u0027 here will also make it fail (non * expansion), if that fails we can remove the commas.","commit_id":"eeb0428ebcb0b179b0d532f37f111a5e98ca725a"}]}
