Sunday, 2018-08-19

mnaserdoes sf have a software tracker, i found a few issues so far trying a deployment00:36
mnasers/software/bug/00:36
mnaserjust deploying the 'reference' architecture isnt working out of the box, repoxplorer tries to deploy before elk, so the service never goes up because elk is not up00:37
mnasercommented it out, re-ran, and now running again and waiting to see whats going on00:37
mnaserboo.. this now "{'owner': 'nodepool', 'path': '/var/www/nodepool-log', 'group': 'apache'}"00:49
mnaseri guess it expects apache to be on the same server00:49
mnaseri just did a manual `yum install httpd` .. so not ideal but yeah00:51
mnaserthat'll get the group in there00:51
tristanCmnaser: Hi! Yes SF is using taiga, you can find the backlog here: https://tree.taiga.io/project/morucci-software-factory/backlog?tags=software%20factory and report issue there: https://tree.taiga.io/project/morucci-software-factory/issues?q=&order_by=status&tags=software%20factory03:05
tristanCmnaser: oops indeed, roles should be in order and this isn't checked at the moment, i guess the softwarefactory-project.io.yaml refarch doesn't work out of the box03:06
mnasertristanC: just posted two but i dont see them.. somehow03:08
tristanCmnaser: Thanks! oh, it's because they are missing the sf tags03:09
mnasertristanC: woops, sorry, never used that tool before03:09
tristanCmnaser: i'll propose a quick fix for the nodepool issue, httpd is automatically installed, but only for the nodepool-builder role, the directory only need to be created there03:10
mnasertristanC: yeah i think nodepool-launcher tries to chown the nodepool logs to apache so yeah03:10
mnaserbut the ordering might be a bit more of a bigger issue03:10
tristanCmnaser: the deployment playbooks are generated here: https://softwarefactory-project.io/cgit/software-factory/sf-config/tree/sfconfig/inventory.py#n19803:12
tristanCso we could make sure elk is setup before repoxplorer03:12
mnaseryes that would be a requirement03:13
mnaseri came up with a heat template to deploy all infrastructure and populate the arch.yml file, just need to edit sfconfig.yml and kick it off03:13
mnaserso it could be a nice solution for customers to bring up03:14
mnaseralso, the testinfra test is failing at the end03:14
mnasertristanC: https://softwarefactory-project.io/cgit/software-factory/sf-config/tree/testinfra/test_hypervisor-runc.py .. the curl gives a 404 but returns rc 003:15
mnasercurl http://<snip>:20001; echo $? => 003:16
tristanCright, the test may need to be adjusted for 404 code03:17
mnaserjust bringing up the little things i saw here and there :)03:17
sfbenderTristan de Cacqueray created software-factory/sf-config master: nodepool: setup /var/www/nodepool-log only for builder service  https://softwarefactory-project.io/r/1343403:17
tristanCmnaser: thanks, those are indeed real bugs we didn't see before.03:18
mnasertristanC: np :)03:18
mnaserim done for today.. ill hack at it tomorrow and see how the runc thing works.  it'll be useful for these quick jobs that dont require big infra03:19
mnasertox/linters/etc03:19
tristanCmnaser: nice, let us know out it goes.03:22
*** nijaba has quit IRC06:04
*** nijaba has joined #softwarefactory06:07
mnasercant login as admin :<15:36
mnasergithub oauth + normal login form and the login form gives me a 50015:36
mnaserthe traceback.. https://www.irccloud.com/pastebin/ybD0VpXq/15:36
mnaserthing is the form isn't posting json..15:37
*** sshnaidm|off has quit IRC15:44
*** sshnaidm|off has joined #softwarefactory15:45
mnasertristanC: https://github.com/softwarefactory-project/cauth/blob/master/cauth/auth/password.py#L229 there needs to be a 'break' there because it will attempt all 3 even if the first passes16:03
tristanCmnaser: the form isn't posting json indeed, that response.json() should be from managesf, could you check managesf logs please?16:11
mnasertristanC: where does managesf log things (but also, it shouldn't post to managesf if it finds things in the localdb?)16:12
tristanCmnaser: iirc the cauth localdb is historical, local user are stored in managesf, logs are in /var/log/managesf16:13
tristanCand/or journalctl -u managesf16:14
tristanCmnaser: adding a break to the authenticate plugin loop seems correct16:15
mnasertristanC: it doesnt show anything wild16:15
mnaseri think managesf auth only happens when it delegates json from an oauth source16:15
mnaseri think the break would resolve that issue for the 'bootstrap' admin user16:15
mnasergonna try adding softwarefactory to the equation16:17
mnasererr16:17
mnaserstoryboard16:17
sfbenderTristan de Cacqueray created software-factory/cauth master: Log managesf response that can't be decoded  https://softwarefactory-project.io/r/1343516:20
tristanCmnaser: the code may be improved, though it may cause side effect when multiple idp are enabled...16:21
tristanCmnaser: and it should work as-is, i suspect an issue between cauth and managesf, anychange you can apply https://softwarefactory-project.io/r/13435, reload httpd and re-try loggin as admin?16:22
mnasertristanC: ill do that in a second, i added the break.. i pretty much just needed to login once to add myself to config repo16:23
*** tristanC has quit IRC16:24
*** mordred has quit IRC16:24
*** tristanC has joined #softwarefactory16:28
*** mordred has joined #softwarefactory16:32
*** sshnaidm|off is now known as sshnaidm16:37
mnaserlooks like storyboard is giving 401's18:10
mnaseri guess if you install storyboard *after* you add accounts, they won't have users in their table18:16
mnaseri think18:16
mnaserfound it.. managesf is not restarted after deployment of storyboard18:25

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