Tuesday, 2018-06-26

*** bcoca has quit IRC01:33
*** harlowja has quit IRC01:46
*** jparrill has quit IRC05:23
*** jparrill has joined #ara05:24
*** openstackgerrit has quit IRC06:04
*** gvincent_ has joined #ara07:04
*** gvincent has quit IRC07:07
*** jcl has joined #ara07:23
*** gvincent_ has quit IRC07:30
*** jparrill has quit IRC07:40
*** jparrill has joined #ara07:40
*** jparrill has quit IRC08:42
*** jparrill has joined #ara08:42
*** gvincent has joined #ara08:47
*** gvincent has quit IRC09:10
*** gvincent has joined #ara09:11
*** gvincent has quit IRC09:19
*** gvincent has joined #ara09:36
*** sshnaidm|afk is now known as sshnaidm10:30
*** tbielawa has joined #ara12:52
*** Bakey has joined #ara13:24
*** evrardjp has joined #ara13:27
*** evrardjp_ has quit IRC13:30
*** themurph has joined #ara13:40
*** bcoca has joined #ara14:10
*** bcoca has joined #ara14:10
*** tbielawa is now known as tbielawa|mtg14:28
*** jcl has quit IRC14:41
*** tbielawa|mtg is now known as tbielawa15:47
*** harlowja has joined #ara16:12
ara-slack<dbpiv> OK, I am back…. Still have this insert into files failure.  I thought there was a fix put in 0.15.0 and we shouldn’t have this issue anymore?  I am running 0.15.0 with Ansible 2.5.5. and Python 2.7.  I know I can walk through and delete each file from the sqlite db, but I was hoping to avoid that.  Any ideas?16:36
*** harlowja has quit IRC17:10
*** tbielawa is now known as tbielawa|lunch17:15
*** tbielawa|lunch is now known as tbielawa18:19
*** cliles has quit IRC18:27
*** sshnaidm has quit IRC19:09
*** tbielawa has quit IRC19:18
*** tbielawa has joined #ara19:18
*** sshnaidm has joined #ara19:50
*** openstackgerrit has joined #ara20:26
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Remove trailing slashes from URL  https://review.openstack.org/57760320:26
ara-slack<dmsimard> @dbpiv hey, saw your message just now. Are you able to reliably reproduce the issue or something ?20:27
ara-slack<dbpiv> @dmsimard Yes….  It is a daily issue for me at this point.20:28
ara-slack<dmsimard> If this is what I'm thinking about, the workaround I merged was https://github.com/openstack/ara/commit/b85df540af6df608e833d78a7d6e0e16f8deb71b20:29
ara-slack<dbpiv> yeah I pulled the models.py and compared them….  They where the same.20:30
ara-slack<dmsimard> Translated, that boils down to "if you find a playbook without a file, create a fake file and attach it, then return that"20:30
ara-slack<dmsimard> It's kind of dirty but should work, if it doesn't, we're missing something20:30
ara-slack<dmsimard> It should even be self-healing, in the sense that the fix is then persisted in the database20:31
ara-slack<dbpiv> my error would indicate that the file entry is already inserted into the db thus it fails to load.20:31
ara-slack<dmsimard> do you have a stack trace ?20:31
ara-slack<dbpiv> UNIQUE constraint failed: files.playbook_id, files.path [SQL: u’INSERT INTO files (id, playbook_id, path, content_id, is_playbook) VALUES (?, ?, ?, ?, ?)’] [parameters: (‘c6c8727d-9239-4e18-840c-48239d4fe8b5’, u'40dbaa51-8a2e-4d76-a981-22f4173c06f0', u’/Users/dbpiv/Documents/PSFT/Ansible/CacheClear_TEST.yml’, None, 1)]20:32
ara-slack<dbpiv> stack trace?20:32
ara-slack<dbpiv> or tell me how to get a stack trace20:32
ara-slack<dmsimard> yeah, like a python traceback that tells you where the error came from20:32
ara-slack<dmsimard> do you get that when your playbook runs ? after ? from the web interface ?20:33
ara-slack<dbpiv> only from the web interface.20:33
ara-slack<dmsimard> do you run the standalone server or something else ?20:33
ara-slack<dbpiv> with the --debug option on I get a webpage full of Traceback….20:33
ara-slack<dbpiv> is that what you are looking for?20:34
dmsimardmaybe20:34
dmsimardif there's no sensitive info there, can you screenshot it ?20:34
ara-slack<dbpiv> File uploaded https://ara-community.slack.com/files/U6U9U3BV1/FBFE0C3BQ/integrityerror_--_werkzeug_debugger.pdf / https://slack-files.com/T6VAB05L7-FBFE0C3BQ-e753d5826820:35
ara-slack<dbpiv> nothing sensitive…. just my userid and some paths.20:35
dmsimardok I think I understand what's going on20:37
dmsimardhang on20:37
openstackgerritDavid Moreau Simard proposed openstack/ara master: Improve self-healing of missing playbook file references  https://review.openstack.org/57820220:52
openstackgerritDavid Moreau Simard proposed openstack/ara master: Improve self-healing of missing playbook file references  https://review.openstack.org/57820220:53
ara-slack<dmsimard> @dbpiv can you try this patch ? ^ in patch format: https://git.openstack.org/cgit/openstack/ara/patch/?id=043538fa6fedd3fcf1f11ac66609b42bcff434fd20:54
ara-slack<dmsimard> disclaimer: I don't currently have the means to easily reproduce your issue and test the fix20:54
ara-slack<dbpiv> No worries… I can test this.  Give me a couple of minutes.20:55
ara-slack<dmsimard> in a nutshell20:55
ara-slack<dmsimard> the fix that had merged prior was to address a race condition where a playbook was created but the playbook's file had not yet been created20:56
ara-slack<dmsimard> it's two operations and if there's something interrupted at a very specific point, you'd end up with an orphaned playbook with no files20:56
ara-slack<dmsimard> now, in the trace you sent me -- the file had been created BUT it had not been flagged as a playbook file *yet*, so this new patch also attempts to recover from that.20:57
ara-slack<dbpiv> and it worked like a charm20:57
ara-slack<dmsimard> so everything auto-healed then ?20:57
ara-slack<dmsimard> thankfully this kind of stuff shouldn't happen  in the new 1.0 code paths, operations are more... atomic20:59
ara-slack<dbpiv> yes it loaded… however interestingly there are two run listed at 2018-06-25 08:28'ish from something I was testing…. They are blank with no task and no records.  I assume those were the issues.20:59
ara-slack<dbpiv> but yes everything loaded without issue.20:59
ara-slack<dmsimard> do you run your playbooks locally on your machine ?21:00
*** tbielawa has quit IRC21:00
ara-slack<dbpiv> All of my development is on my machine… so yes.  but the production runs are on a different server.21:00
ara-slack<dbpiv> the diff server lets me change ansible versions with worrying so I can test.21:01
dmsimardok, this specific issue is essentially because of interrupted runs... like ctrl+c early enough in the process21:01
dmsimardit's not handled gracefully21:01
dmsimardbcoca: I wonder if Ansible could send a callback hook on interrupt ? I guess it'd be best effort21:02
*** themurph has quit IRC21:02
bcocawe do have an interrupt handler21:02
bcocabut callback might not be available21:02
ara-slack<dbpiv> I might can buy that….  Our standard playbook make extensive use of vars_prompt so it is highly likely that runs are killed at the vars_prompt stage before any contact with the server.21:03
ara-slack<dmsimard> ok so I'll merge that and it'll be available in 0.15.1 (along with some other fixes)21:04
ara-slack<dmsimard> thanks for letting me know about it21:04
ara-slack<dbpiv> hey thanks for the help….  ARA is awesome for developing playbooks.21:04
openstackgerritDavid Moreau Simard proposed openstack/ara-server master: Remove trailing slashes from URL  https://review.openstack.org/57760321:07
openstackgerritDavid Moreau Simard proposed openstack/ara master: Improve self-healing of missing playbook file references  https://review.openstack.org/57820221:19
openstackgerritDavid Moreau Simard proposed openstack/ara master: Improve self-healing of missing playbook file references  https://review.openstack.org/57820221:19
*** myoung is now known as myoung|off21:56
openstackgerritMerged openstack/ara-server master: Remove trailing slashes from URL  https://review.openstack.org/57760322:07
*** Bakey has quit IRC23:24

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