Tuesday, 2018-07-03

*** hwoarang has quit IRC02:10
*** hwoarang has joined #ara05:14
*** hwoarang has quit IRC06:23
*** hwoarang has joined #ara06:23
*** hwoarang has joined #ara06:23
*** openstackgerrit has quit IRC06:49
*** gvincent has joined #ara09:51
*** hwoarang has quit IRC09:53
*** hwoarang has joined #ara09:54
*** hwoarang has joined #ara09:54
*** hwoarang has quit IRC09:56
*** hwoarang has joined #ara09:57
*** hwoarang has quit IRC09:57
*** hwoarang has joined #ara09:57
*** gvincent has quit IRC10:21
tristanCprometheanfire: wouldn't https://review.openstack.org/#/c/574669/ help?11:18
*** bcoca has joined #ara12:37
*** bcoca has joined #ara12:37
*** themurph has joined #ara13:26
dmsimardprometheanfire: hey, I'm not sure exactly to what extent I'll be able to help13:34
dmsimardprometheanfire: I'm trying to put as little maintenance in ARA 0.x as possible so I can spend that time getting 1.0 out the door13:35
dmsimardif bumping flask from 0.x to 1.x means there's a bunch of work involved I might not be able to do it13:35
*** tbielawa has joined #ara13:44
*** themurph has quit IRC13:50
*** guilhermesp has joined #ara14:23
*** tbielawa is now known as tbielawa|stand14:28
*** themurph has joined #ara14:33
*** openstackgerrit has joined #ara14:37
openstackgerritDavid Moreau Simard proposed openstack/ara master: Stop supporting Ansible =<2.3 in config compatibility layer  https://review.openstack.org/57524014:37
*** tbielawa|stand is now known as tbielawa14:45
openstackgerritMerged openstack/ara master: Improve self-healing of missing playbook file references  https://review.openstack.org/57820214:45
openstackgerritDavid Moreau Simard proposed openstack/ara master: Bump requirements and update gate jobs for latest version of Ansible  https://review.openstack.org/57989114:46
dmsimardbcoca: still waiting for that slack invite :p14:53
openstackgerritDavid Moreau Simard proposed openstack/ara master: Avoid join and yield per and just iterate  https://review.openstack.org/57970614:56
openstackgerritDavid Moreau Simard proposed openstack/ara master: Drop the rest of the usage of YIELD_PER  https://review.openstack.org/57971014:56
ara-slack<dmsimard> @harlowja ^ rebased your patches, the first one was based on an ancient parent for some reason14:57
bcocadmsimard: i canot do those anymore14:59
bcocapermissions were changed14:59
ara-slack<dmsimard> @dcreno @logan.attwood ^ Josh has sent patches which should improve the behavior when dealing with a large amount of tasks/hosts. Let me know if you want to test/try them out ahead of the release15:00
ara-slack<logan.attwood> ty15:00
bcocadmsimard: but pushed up the chain ... lets see what happens15:01
dmsimardbcoca: sure, thanks :D15:01
dmsimardbcoca: submitted a talk to ansiblefest about ara, hope it gets selected :)15:01
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a trailing slash to file links in the file tab  https://review.openstack.org/57473915:03
openstackgerritDavid Moreau Simard proposed openstack/ara master: Add a trailing slash to file links in the file tab  https://review.openstack.org/57473915:07
prometheanfiretristanC: nice15:11
openstackgerritDavid Moreau Simard proposed openstack/ara master: Bump requirements and update gate jobs for latest version of Ansible  https://review.openstack.org/57989115:24
openstackgerritDavid Moreau Simard proposed openstack/ara master: Bump requirements and update gate jobs for latest version of Ansible  https://review.openstack.org/57989115:26
*** weshay|ruck is now known as weshay15:29
*** sshnaidm is now known as sshnaidm|rover15:29
*** prometheanfire has left #ara15:42
ara-slack<dcreno> File uploaded https://ara-community.slack.com/files/U9PSY5M7Y/FBJ3L05TN/-.txt / https://slack-files.com/T6VAB05L7-FBJ3L05TN-c5c81456bd - <@U6U5DKJ59>, interested but currently battling “Internal Server Error” due to this…16:04
ara-slack<dmsimard> @dcreno your error is fixed by another commit which hasn't landed yet :( Let me land the stuff that is in flight and get a proper beta release out. I'll let you know when it's good to go. Probably tomorrow.16:08
ara-slack<dcreno> that would be great.16:08
*** jparrill_ has quit IRC17:04
*** jparrill_ has joined #ara17:04
*** tbielawa is now known as tbielawa|lunch17:10
*** jparrill_ has quit IRC17:15
weshayhowdy.. trying the adhoc example for ara17:23
weshayansible localhost -m ara_record \17:23
weshay    -a "playbook=uuuu-iiii-dddd-0000 key=logs value={{ lookup('file', '/var/log/ansible.log') }}"17:23
weshaynvrmind for now :)17:24
*** jparrill_ has joined #ara17:24
dmsimardweshay: ok :p17:40
weshay:)17:40
weshaydmsimard, so after a ansible ara_read  that appears to have worked.. I don't have any playbooks in the sqllite db17:58
weshay:(17:58
weshayhttp://paste.openstack.org/show/724911/ is a partial paste17:59
* weshay tries to get more data17:59
dmsimardweshay: "playbook=deploy_steps_playbook.yaml" is not right18:00
dmsimardweshay: you need the actual playbook uuid18:00
weshayOH18:00
dmsimardthis can be retrieved in different ways18:00
dmsimardI already have a gist for that I think, hang on18:00
dmsimardweshay: so I have this but this isn't what you want -- though it does show you that running an ara_record (or ara_read) task within a playbook provides the playbook uuid in the return output (registered var)18:02
dmsimardhttps://gist.github.com/dmsimard/0335667e69539c1dd22a169cbd43e61618:02
weshaythis is all post ansible run btw18:02
* weshay looks18:02
weshayessentially post processing http://logs.openstack.org/49/575749/6/check/tripleo-ci-centos-7-containers-multinode/fef5b0c/logs/undercloud/var/lib/mistral/ee6e8d26-ac5d-40bb-96b4-b43d4d89cd79/18:03
dmsimardweshay: there's basically two ways of retrieving the playbook uuid18:03
dmsimardweshay: 1) running an ara_record task within a playbook and looking at the playbook_id of the registered var18:03
dmsimard2) doing something like "ara playbook list" and retrieving the uuid from there18:03
weshayya. ran that18:03
weshaynothing returned18:03
dmsimardweshay: where is the database file located ?18:04
dmsimardweshay: if you're not exporting a database path, by default it'll be in ~/.ara/ansible.sqlite18:04
dmsimardin a job you might have $WORKSPACE/ansible.sqlite or whatever, for example18:04
weshayya.. that is where it's at18:04
weshayok..18:05
weshayI have a few jobs that have ara configured for the overcloud18:05
weshayit appeared as though I could just take the ansible.log and the playbook and generate this data18:05
weshayI think that was my mistake18:05
dmsimardweshay: you can, that's more or less what ara already does in it's own integration tests18:06
dmsimardweshay: 1) https://github.com/openstack/ara/blob/master/run_tests.sh#L129-L13018:06
dmsimard2) https://github.com/openstack/ara/blob/master/run_tests.sh#L16018:06
dmsimardsee in the records http://logs.openstack.org/40/575240/2/check/ara-integration-ubuntu-py35-2.5.2/2959e25/logs/build-playbook/18:07
weshayya.. k..18:07
weshayso maybe my ara_record command was wrong too18:07
dmsimardweshay: well, aside from the playbook id being wrong, the rest looks okay18:09
weshayya.. so I just need the id18:09
*** tbielawa|lunch is now known as tbielawa18:09
weshayw/o the original db18:10
weshaymaybe I'll try this on another deployment18:10
dmsimardif you're doing an "ara playbook list" and nothing comes up (while you're expecting stuff to be there), it's likely because the database is actually somewhere else18:10
weshayassuming ara was configured originally though18:10
weshayif ara was not configured in ansible.cfg or $other .. I would not have it18:10
dmsimardright, but I thought all ooo/oooq jobs had it ?18:11
weshaydmsimard, so there is the ci playbooks.. and now the playbooks that tripleo uses to deploy the undercloud or overcloud18:11
weshaywe have the undercloud working.. which is awesome18:11
weshaynow working on the overcloud playbooks18:11
dmsimardweshay: so inception-ish18:11
weshayya18:11
weshay:(18:11
weshayhttps://review.openstack.org/#/c/565077/12/tripleo_common/actions/ansible.py18:12
dmsimardhttp://codesearch.openstack.org/?q=callback_plugins&i=nope&files=&repos=tripleo-ci,tripleo-common,tripleo-common-tempest-plugin,tripleo-docs,tripleo-ha-utils,tripleo-heat-templates,tripleo-image-elements,tripleo-ipsec,tripleo-puppet-elements,tripleo-quickstart,tripleo-quickstart-extras,tripleo-repos,tripleo-specs,tripleo-ui,tripleo-upgrade,tripleo-validations18:12
*** tbielawa is now known as tbielawa|brb18:13
weshaythere is data in the /tmp/deploy.sqlite db18:13
dmsimardweshay: ah so do an export ARA_DATABASE=sqlite:////tmp/deploy.sqlite before running your commands18:17
weshayya.. did that18:17
weshaydmsimard, so I'm doing two things btw.. which may confuse you..18:18
weshaythere are the jobs where we are configuring ara to work18:18
weshayhttp://paste.openstack.org/show/724913/18:18
weshayand you get that ^18:18
weshayand an experiment I'm trying to just pull the ansible logs and post process on the logs on my local dev box18:18
weshaythe local devbox is the one coming up w/ no playbooks18:19
weshayhttp://logs.openstack.org/62/578462/7/check/tripleo-ci-centos-7-containers-multinode/67f8589/logs/ara_oooq_oc/18:19
weshayis CI ^ atm18:19
weshayand that is consistent on my local recreate w/ the paste18:19
dmsimardweshay: btw I added some comments to that review18:21
weshaydata from that is http://logs.openstack.org/62/578462/7/check/tripleo-ci-centos-7-containers-multinode/67f8589/logs/undercloud/var/lib/mistral/070b7a05-f674-4997-bf68-3ccd8a8ce1d6/18:21
weshaydmsimard, k18:21
weshaydmsimard, the other thing is.. w/ all the inner and outter inception bullshit18:23
weshaywe were trying to use different dbs for the different levels to keep it clean18:23
weshaynotting the various ara dirs http://logs.openstack.org/62/578462/7/check/tripleo-ci-centos-7-containers-multinode/67f8589/logs/18:23
weshayara_oooq_root is the undercloud install18:23
dmsimardweshay: you guys need to stop generating all these html reports and use the raw databases instead18:24
weshayto what end?18:24
weshaywe're sending the data to grafana afaik w/ just the dbs18:25
dmsimardweshay: http://lists.openstack.org/pipermail/openstack-dev/2018-March/128902.html18:25
dmsimardweshay: html reports don't scale and are wasteful in terms of performance and resources18:25
dmsimardso you could have like18:26
dmsimard<root>/ara-report <-- zuul report18:26
dmsimard<root>/logs/undercloud/ara-report <-- undercloud report18:26
dmsimard<root>/logs/overcloud/ara-report <-- overcloud report18:26
dmsimardyou don't need to generate anything, just need to create that directory structure and put the "ansible.sqlite" database there18:27
dmsimardfor example, with openstack-ansible18:28
dmsimardThis is Zuul's report: http://logs.openstack.org/33/572433/2/check/openstack-ansible-deploy-aio_basekit-opensuse-423/7b48a37/ara-report/18:28
dmsimardand this is the OSA report: http://logs.openstack.org/33/572433/2/check/openstack-ansible-deploy-aio_basekit-opensuse-423/7b48a37/logs/ara-report/18:28
dmsimardand then, you can also download the databases directly if you like, you just suffix "ansible.sqlite" so http://logs.openstack.org/33/572433/2/check/openstack-ansible-deploy-aio_basekit-opensuse-423/7b48a37/logs/ara-report/ansible.sqlite works18:29
weshaydmsimard, so using more than one sqlite db is ok?18:29
weshaymay flip that dir structure though..18:30
weshay\/logs/ara_report/undercloud18:30
weshay\/logs/ara_report/overcloud18:30
weshaybecause you have the undercloud logs, then subnode-$1,$2,$318:30
dmsimardweshay: I don't see why not -- the only thing to keep in mind if you want to use what I just described is that it's important that the directory is called "ara-report" and that the database is called "ansible.sqlite" because that's how the middleware is set up to dynamically load the databases18:30
weshayk18:31
dmsimardweshay: It'd probably save a few minutes on your jobs if you did it that way, because then you don't waste time generating hundreds of html files, compressing them and then rsyncing them. It's just this one small sqlite file.18:31
dmsimardplus, you get to be able to download the raw databases for experimenting locally or whatever18:32
weshayhrm k18:32
weshayk k.. someone just knocked.. bbiab18:32
dmsimardweshay: kind of got sidetracked but I couldn't help but point out an obvious improvement opporunity :)18:33
dmsimardfwiw, I don't think what you're running into is an issue with ara, just need to properly point it to the right database and stuff.18:33
*** tbielawa|brb is now known as tbielawa18:51
openstackgerritMerged openstack/ara master: Stop supporting Ansible =<2.3 in config compatibility layer  https://review.openstack.org/57524019:00
openstackgerritMerged openstack/ara master: Add a trailing slash to file links in the file tab  https://review.openstack.org/57473919:04
openstackgerritMerged openstack/ara master: Avoid join and yield per and just iterate  https://review.openstack.org/57970619:04
*** jparrill_ has quit IRC19:11
*** jparrill has joined #ara19:12
openstackgerritMerged openstack/ara master: Bump requirements and update gate jobs for latest version of Ansible  https://review.openstack.org/57989119:36
*** tbielawa is now known as tbielawa|g0n319:53
*** themurph has quit IRC21:26
openstackgerritMerged openstack/ara master: Drop the rest of the usage of YIELD_PER  https://review.openstack.org/57971021:49
tristanCdmsimard: weshay: we have integrated ara-report in sf-3.1, so we can copy the settings to logs.rdoproject and have it added to the rdo base job.23:40

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!