*** kebray has joined #openstack-app-catalog | 02:24 | |
*** kebray has quit IRC | 07:07 | |
*** openstackgerrit has quit IRC | 10:16 | |
*** openstackgerrit has joined #openstack-app-catalog | 10:17 | |
*** openstack has joined #openstack-app-catalog | 12:51 | |
*** kebray has joined #openstack-app-catalog | 15:28 | |
*** rhagarty__ has quit IRC | 16:33 | |
*** rhagarty has joined #openstack-app-catalog | 16:39 | |
*** rhagarty has quit IRC | 17:01 | |
*** rhagarty has joined #openstack-app-catalog | 17:06 | |
kfox1111 | docaedo: thats looking good. :) | 17:08 |
---|---|---|
*** rhagarty has quit IRC | 17:08 | |
kfox1111 | for the apache config, should pull out the /api/* stuff. the wsgi script will handle it now. | 17:08 |
docaedo | kfox1111: actually it doesn't work :( Had two other people looking at it, and couldn't make sense of the errors being thrown (such as http://paste.openstack.org/show/478762/) | 17:17 |
docaedo | I intended to pull out the /api/ stuff but wanted to just get it working even a little bit first, no joy as of last week | 17:18 |
docaedo | I should say actually - the manifest stuff works right, and it's all close - sets up the server, runs pip install in a venv (and creates the venv if it doesn't exist), apache is running the wsgi, and SEEMS like apache python has the right environment (but maybe that's where this is failing) | 17:22 |
*** rhagarty has joined #openstack-app-catalog | 17:22 | |
docaedo | and throwing PBR errors is what basically stumps me | 17:23 |
*** j^2 has quit IRC | 17:29 | |
*** kebray has quit IRC | 19:31 | |
*** DarthVigil has joined #openstack-app-catalog | 20:05 | |
*** rhagarty has quit IRC | 20:19 | |
*** DarthVigil has quit IRC | 20:21 | |
kfox1111 | ah. pbr... | 20:43 |
kfox1111 | so, pbr looks for some stuff.... | 20:43 |
kfox1111 | either in the git logs of the current checkout, or I think in the egg file that is generated during sdist, or copied during a pip install. | 20:44 |
docaedo | Is there anything more that has to happen on the server other than checking out app-catalog and then running "pip install ." in that directory? | 20:47 |
docaedo | (and after that, pointing / at openstack_catalog/wsgi.py) | 20:47 |
docaedo | also - is there a commit that works better? I'm using the first python server WIP, but maybe there's a different one? Haven't looked through all the related commits | 20:48 |
kfox1111 | the first commit shoudl work. is the run_tests.sh thing working? | 20:50 |
kfox1111 | it looks like its running: pip install -r $root/requirements.txt, then running out of the git checkout for the rest. | 20:50 |
docaedo | hah, damn it did work (because that's where I started from) but somewhere along the way I broke something :/ Gimme a minute to reset | 21:01 |
*** rhagarty has joined #openstack-app-catalog | 21:08 | |
docaedo | ok I had just really screwed up my local env vars, just had to start session over - so run tests works, but pip freeze is different in the venv created from run_tests vs. the one created by puppet manifest | 21:14 |
docaedo | (looking to see if one only does test_requirements now) | 21:14 |
docaedo | so the virtualenv is created in /opt/virtenv-app-catalog after the repo is cloned to /opt/apps_site, and it runs pip install -r /opt/apps_site/requirements.txt | 21:17 |
docaedo | then the apache config theoretically uses that virtual env | 21:18 |
docaedo | and after cleaning up, and re-deploying fresh, this is the error: | 21:18 |
docaedo | http://paste.openstack.org/show/479044 | 21:18 |
docaedo | if I activate that venv and run python mange.py runserver 0.0.0.0:8000 is works | 21:21 |
docaedo | if I activate that venv and run cd /opt/apps_site/openstack_catalog; python wsgi.py .. I don't get any output (no errors, etc. - which I think is expected and good) | 21:22 |
docaedo | SO! that all makes me think it's just the apache config, but it should be really simple, and I can't figure out what is going wrong | 21:22 |
kfox1111 | hmm... | 21:36 |
kfox1111 | I'm guessing wsgi_django.py isn't being copied over to the venv maybe? | 21:37 |
kfox1111 | are you python setup.py install'ing the /opt/apps_site into /opt/virtual-app-catalog too? | 21:38 |
docaedo | kfox1111: nope! | 21:43 |
docaedo | lemme see if that's it :) | 21:43 |
docaedo | tried that, didn't seem to make a difference | 21:44 |
docaedo | same errors to be clear - but clarkb just gave me an idea for something related to look at - though that (running install in the venv) is an essential step just the same | 21:45 |
*** rhagarty_ has joined #openstack-app-catalog | 21:49 | |
*** rhagarty has quit IRC | 21:51 | |
kfox1111 | kk | 21:57 |
docaedo | haha, man .. changed the script alias to point to app catalog installed in virtual env, but had a tiny typo I missed along the way, took me a little while to find it along the way fixed other stuff, | 21:59 |
docaedo | then thinking "ah, ok, last typo!" and now I get the same | 21:59 |
docaedo | issue - "ImportError: No module named wsgi_django" | 22:00 |
docaedo | except now I'm getting it from a new place at least! "/opt/virtenv-app-catalog/lib/python2.7/site-packages/openstack_catalog/wsgi.py" | 22:00 |
kfox1111 | yeah, Its been a day like that for me too. :) | 22:01 |
kfox1111 | I think the wsgi.py is trying to import wsgi_django from the same place as its in, but I don't know if that always works. | 22:01 |
kfox1111 | your error kind of implies it doesnt. | 22:01 |
kfox1111 | maybe change the import to do openstack_catalog.wsgi_django? or add openstack_catalog to the python path? | 22:02 |
docaedo | here's the apache config for reference now: http://paste.openstack.org/show/479049 | 22:02 |
docaedo | I'll try adding that to the path | 22:03 |
docaedo | HAH! Now I have the PBR errors :D | 22:04 |
kfox1111 | heh. and the cycle continues. :) | 22:05 |
kfox1111 | maybe drop /opt/apps_site/ out of the python path now? | 22:05 |
docaedo | http://paste.openstack.org/show/479050 | 22:05 |
kfox1111 | if its all installed, I'm not sure it needs to be there... | 22:05 |
docaedo | yeah good catch on that one, trying now | 22:05 |
kfox1111 | (wsgi is a bit of a dark art sometimes... :) | 22:05 |
kfox1111 | hmm.... another thing, when you did the install, was pbr >= 1.3 installed? I've seen less break it in odd ways. | 22:07 |
docaedo | whatever came from requirements, looks like 0.11.0 | 22:08 |
kfox1111 | that may be part of it then. | 22:10 |
kfox1111 | python's dep stuff works relatively well, but there are some weird... issues... it has from time to time. | 22:10 |
docaedo | can PBR be dropped? Or is this a result of trying to pull in some stuff from horizon? | 22:20 |
docaedo | BTW upgraded pbr to 1.8.1, and still looks no bueno: http://paste.openstack.org/show/479051 | 22:22 |
kfox1111 | pbr usually makes less trouble then not using it. | 22:30 |
docaedo | yeah I know :) | 22:30 |
docaedo | at least we've made progress, might just need some version specifier or something like that | 22:30 |
kfox1111 | https://ask.openstack.org/en/question/530/what-causes-versioning-for-this-project-requires-either-an-sdist-or-an-access-to-an-upstream-git-repository-exception-when-running-stacksh/ | 22:32 |
kfox1111 | is there a PKG-INFO file somewhere? | 22:33 |
docaedo | looking | 22:34 |
docaedo | /opt/apps_site/catalog.egg-info/PKG-INFO | 22:35 |
kfox1111 | something like: ../horizon/.venv/lib/python2.7/site-packages/app_catalog_common-0.0.0-py2.7.egg-info/PKG-INFO | 22:36 |
kfox1111 | hmm... | 22:36 |
docaedo | not showing up in the venv .. | 22:36 |
kfox1111 | shoud probably be in /opt/virtenv-app-catalog/lib/python2.7/site-packages/ somewhere... | 22:36 |
kfox1111 | yeah. | 22:37 |
docaedo | yep - is it supposed to end up there when running setup.py install? | 22:37 |
kfox1111 | I think so. | 22:38 |
kfox1111 | maybe try 'pip install .' instead | 22:39 |
docaedo | ok with pip install, have lib/python2.7/site-packages/catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO | 22:42 |
kfox1111 | that looks better. | 22:42 |
kfox1111 | strange python setup.py install wasn't doing that.. | 22:42 |
docaedo | but still seeing the same error in the logs (also, it downgraded PBR version to match what was in requirements - what's the reason requirements.txt has that version?) | 22:42 |
kfox1111 | maybe pip install forces it through a sdist first. | 22:42 |
kfox1111 | I think it was there from the begining... I think I raised it up to 1.3 in the angular version. | 22:43 |
kfox1111 | might just try bumping it up to >=1.3 | 22:43 |
kfox1111 | might manually install it first, then bump the version, then try 'pip install .' | 22:44 |
docaedo | bumped the version, same error :( so weird | 22:45 |
docaedo | Looks like we need to give it a version PBR likes: https://github.com/openstack-dev/pbr/blob/master/pbr/packaging.py#L652 | 22:48 |
*** ativelkov has quit IRC | 22:54 | |
*** ativelkov has joined #openstack-app-catalog | 23:02 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!