Thursday, 2019-01-10

*** etienne has quit IRC02:48
*** jrist has quit IRC04:54
*** jrist has joined #ara05:07
*** gvincent has joined #ara07:58
*** herald85 has joined #ara08:32
*** logan- has quit IRC09:21
*** themroc has joined #ara10:06
*** sshnaidm|afk is now known as sshnaidm10:31
*** openstackgerrit has quit IRC11:05
ara-slackjeansebastien.guyot: Hi !13:16
ara-slackjeansebastien.guyot: ara-manage-db show give me :13:19
ara-slackRev : <xxxxx> (head)13:19
ara-slackParent : <xxxxx>13:19
ara-slackPath : </usr/lib/python2.7/site-packages/ara/db/versions/005_ansible_metadata.py13:19
ara-slack ansible_metadata13:19
ara-slack revision ID : <xxxxxxx>13:19
ara-slack  Revises : <xxxxxx>13:19
ara-slack  Create Date : 2017-05-02 13:34:41.15015613:19
ara-slack nothing wrong in this ...13:19
ara-slackjeansebastien.guyot: have you a limit from playbook number ?13:42
ara-slackactually, for exemple i have more 125000 rows in tasks13:42
ara-slackdmsimard: No, there isn't any hard limits but the more playbooks there are, the slower things are likely to get14:09
ara-slackjeansebastien.guyot: ok ...14:36
ara-slackI have test 16.0.2 version from scratch, it's OK ...  but i want  my old data ....14:36
ara-slackbetween 0.14.6 and 0.15.1 you have add SQLALCHEMY ... Do you think that the problem could come from?14:36
ara-slackdmsimard: sqlalchemy was always in ara, that's how flask talks to the database14:39
ara-slackdmsimard: perhaps the sql migration failed to be applied, timed out or was interrupted14:39
ara-slackdmsimard: The migrations are all here: https://github.com/openstack/ara/tree/master/ara/db/versions14:40
ara-slackdmsimard: Have you tried downgrading ? In fact, what have you tried ?14:40
ara-slackjeansebastien.guyot: I just try from 0.14.6 to execute pip install ara --upgrade14:56
ara-slackjeansebastien.guyot: before for old version this was ok with this14:57
ara-slackdmsimard: ok, do yo have a backup or your database ?15:11
ara-slackjeansebastien.guyot: actually not ...15:14
ara-slackjeansebastien.guyot: i compare schema of two database (by schemaspy), its the same ...15:15
ara-slackjeansebastien.guyot: seem same15:15
ara-slackdmsimard: Ok, I would at least dump/backup your database at this point15:18
ara-slackjeansebastien.guyot: I will try to make a dump of the base in 0.14.6 and to import it in the base 0.16.2 without the creation of table ...15:19
ara-slackdmsimard: ok, sorry that I can't be more helpful .. let me know if you end up figuring what was the issue15:20
ara-slackjeansebastien.guyot: no problem :slightly_smiling_face:15:20
dmsimardapollo13: so I learned that apparently namespaced packages are directly installable by pip15:40
apollo13yes, what did you think?15:40
dmsimardwell, right now we have "ara", "ara-server", "ara-plugins" and "ara-clients"15:40
dmsimardbut we could have "ara", "ara.server", "ara.plugins", "ara.clients"15:41
apollo13is that a valid pypi package name?15:41
dmsimardit's not15:42
dmsimardI mean15:42
dmsimardthe package is still ara15:42
dmsimardbut it'd only install the namespaced one ? I don't know.. I found that somewhere on stack overflow15:42
dmsimardI would not really have the opportunity to test this without breaking anything, perhaps we could try the test pypi instance15:43
dmsimardhttps://packaging.python.org/guides/packaging-namespace-packages/ doesn't mention the "pip install" syntax15:45
dmsimardthis is where I found it https://stackoverflow.com/questions/45324189/python-install-sub-package-from-package15:47
dmsimardI thought it would have been interesting even if just to keep "pip install ara" for people who aren't interested in the separated packages15:50
dmsimardbut then the people who care could do pip install ara.server, for example15:50
*** sshnaidm has quit IRC16:10
*** sshnaidm has joined #ara16:11
ara-slacknj.chandu: Right now I have multiple jobs that run in parallel on the same host. And I am using ARA to generate static report at the end of the job. What’s happening is all the playbook executions are recorded and displayed in the static report. Is there a way to show only that specific job’s playbook report when multiple jobs are running in the same host in parallel? Thanks in advance16:17
ara-slackdmsimard: @nj.chandu what we are doing in the openstack community is that we have one database per job16:19
ara-slackdmsimard: the database is stored as part of the artifacts of the job16:19
ara-slackdmsimard: we do not actually generate the static HTML report because it does not scale very well16:20
ara-slackdmsimard: the approach is documented here: https://ara.readthedocs.io/en/latest/advanced.html16:20
*** herald85 has quit IRC16:26
ara-slackdmsimard: that's not how it works16:47
ara-slackdmsimard: those are meant to be used by apache16:47
*** themroc has quit IRC16:48
ara-slackdmsimard: an example workflow would be something like your job sets ARA_DATABASE to a unique location for the build (ex: $WORKSPACE/ansible.sqlite)16:48
ara-slackdmsimard: when you archive your logs and artifacts, you recover that database and put it inside an ara-report directory16:48
ara-slackdmsimard: and then apache, with that sqlite middleware, links that ara-report URL to the path of a database on disk16:49
ara-slackdmsimard: The limitation is that apache needs to be running on the same server where the sqlite files are hosted and the locations must match16:49
dmsimardin practice, it looks like this16:50
dmsimardhttp://logs.openstack.org/23/628523/1/check/ara-server-ansible-integration/7007e52/ara-report/16:50
dmsimardthe database file is available at http://logs.openstack.org/23/628523/1/check/ara-server-ansible-integration/7007e52/ara-report/ansible.sqlite16:50
dmsimardand it is located on the server at a location like /srv/logs/23/628523/1/check/ara-server-ansible-integration/7007e52/ara-report/ansible.sqlite16:51
*** jrist is now known as jrist__18:16
*** jrist has joined #ara18:17
*** jrist__ has quit IRC18:18
ara-slacknj.chandu: This /Users/chandanjavaregowda/.ara/ansible.sqlite database doesn’t have the latest reports. Although I am able to view the latest report by ara generate html build/ and visiting the build/ dir18:35
ara-slacknj.chandu: I was wrong the reports are loading the HTML content but not the data. Upon execution of playbook this is the error message I’m getting ^20:14
*** openstackgerrit has joined #ara20:39
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Implement support for naming playbooks  https://review.openstack.org/62992720:39
openstackgerritDavid Moreau Simard proposed openstack/ara-plugins master: Implement support for setting host aliases  https://review.openstack.org/62992820:39
*** openstackgerrit has quit IRC20:50
ara-slackdmsimard: @nj.chandu are you running multiple concurrent playbooks simultaneously ? The "database is locked" error might due to concurrent writes to the sqlite database21:36
ara-slackdmsimard: ansible.cfg does not expand the "~", that is from your shell (i.e bash)21:45
ara-slackdmsimard: if you need to rely on the ~, you can use env variables instead21:45
ara-slackdmsimard: FWIW, dir=~/.ara is redundant because that's the default21:45
ara-slackdmsimard: if you want to try a new database, you can do "export ARA_DATABASE=sqlite:////tmp/test.sqlite"21:46
ara-slacknj.chandu: both setting the env variable and providing absolute path didn’t help21:49
ara-slacknj.chandu: I see a message in ara.log not sure if that can be of any help2019-01-10 16:46:23,643 INFO ara.webapp.configure_db: Initializing new DB from scratch21:52
ara-slacknj.chandu: apologies setting env variable works21:54
ara-slacknj.chandu: I made a mistake in ls tmp/test.sqlite, it should have been ls /tmp/test.sqlite21:54
ara-slacknj.chandu: @dmsimard I have apache running, and the sqlite file. I have created new dir ara-report under /tmp, what should be the path to open the report with the browser?22:00
*** zoredache has quit IRC22:08
*** zoredache has joined #ara22:10
*** openstackgerrit has joined #ara23:03
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Serialize the value provided by ara_record  https://review.openstack.org/62994623:03
*** gvincent has quit IRC23:50

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