docaedo | I should say - bumped the version in package.json but that seems to have had no effect | 00:15 |
---|---|---|
docaedo | Got a suggestion from lifeless on building the right path which made the PBR error go away (https://review.openstack.org/#/c/245315) but now I'm back to the apparent path issues with wsgi.py (http://paste.openstack.org/show/479074) | 01:27 |
docaedo | mean to write that here, but accidentally posted to -infra. Who knows though, maybe it'll result in someone looking and helping :) | 01:28 |
kfox1111 | :) | 01:31 |
kfox1111 | does: /opt/virtenv-app-catalog/lib/python2.7/site-packages/openstack_catalog/wsgi_django.py exist? | 01:31 |
kfox1111 | if so, maybe try changinag the import wsgi_django in wsgi.py to import openstack_catalog.wsgi_django? | 01:32 |
docaedo | exists, and has content | 01:32 |
kfox1111 | oh. and tweak DispatcherMiddleware(wsgi_django to be DispatcherMiddleware(openstack_catalog.wsgi_django | 01:34 |
docaedo | making that change (then pip install --upgrade .) brings back the PBR errors :( | 01:34 |
kfox1111 | there's got to be more too this... | 01:35 |
kfox1111 | did apache get restarted after? | 01:35 |
kfox1111 | I know apache can cache threads. | 01:35 |
docaedo | yep, stopping apache each time, and restarting | 01:35 |
kfox1111 | hmm... | 01:35 |
docaedo | also weirdly, running this throws no errors: | 01:36 |
docaedo | (virtenv-app-catalog)root@ubuntu14:/opt/apps_site# which python | 01:36 |
kfox1111 | how very strange. | 01:36 |
docaedo | /opt/virtenv-app-catalog/bin/python | 01:36 |
docaedo | (virtenv-app-catalog)root@ubuntu14:/opt/apps_site# python /opt/virtenv-app-catalog/lib/python2.7/site-packages/openstack_catalog/wsgi.py | 01:36 |
docaedo | which you would think should have an error if it can't import stuff (and if everything in the venv under apache is working right) | 01:36 |
docaedo | yes, strange is right | 01:36 |
kfox1111 | right. | 01:36 |
kfox1111 | and you said runserver's working too? | 01:37 |
docaedo | yep, runserver locally works great | 01:38 |
docaedo | which seems to mean this HAS to be something wrong with apache/mod_wsgi and the paths it's getting in config | 01:38 |
docaedo | (to me) | 01:38 |
kfox1111 | and lib/python2.7/site-packages/catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO is still there? | 01:39 |
kfox1111 | in the venv? | 01:39 |
kfox1111 | hmm.... | 01:40 |
kfox1111 | I wonder if it needs to be renamed openstack_catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO ... | 01:40 |
kfox1111 | to match the module name. | 01:40 |
kfox1111 | I'd believe runserver can run without it finding PKG-INFO since it can just use the git checkout to find the version. | 01:41 |
docaedo | that might make a positive difference, but not really sure | 01:41 |
docaedo | I'll modify setup.cfg and try that | 01:41 |
kfox1111 | can just try mv'ing lib/python2.7/site-packages/catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO openstack_catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO in the venv. | 01:42 |
kfox1111 | or cp -a | 01:42 |
kfox1111 | I've gota head out in about 2 min. | 01:43 |
docaedo | tried that, didn't work | 01:43 |
docaedo | you should head out | 01:43 |
docaedo | some day, eventually, I'll figure this out :) | 01:44 |
kfox1111 | k. I'll think about it some more too... probably something simple we're both missing. :) | 01:44 |
kfox1111 | have a good one. :) | 01:44 |
docaedo | I know, that's what's pissing me off more than anything | 01:44 |
docaedo | one of those deals where you spend a day working on something and find out it was a missing : all along | 01:45 |
docaedo | bah, gonna stop too and have some dinner, ttyl! | 01:45 |
kfox1111 | like I said before, wsgi's kind of a dark art.... usually it just works. ocationally there's something stupidly subtile tripping you up. | 01:45 |
kfox1111 | k. l8r. | 01:45 |
*** kebray has joined #openstack-app-catalog | 03:13 | |
*** kebray has quit IRC | 03:17 | |
*** kebray has joined #openstack-app-catalog | 03:17 | |
*** kebray has quit IRC | 04:58 | |
*** kebray has joined #openstack-app-catalog | 04:59 | |
*** kebray has quit IRC | 07:07 | |
*** openstackgerrit has quit IRC | 09:31 | |
*** openstackgerrit has joined #openstack-app-catalog | 09:32 | |
*** openstackgerrit has quit IRC | 10:31 | |
*** openstackgerrit has joined #openstack-app-catalog | 10:32 | |
kfox1111 | docaedo: I was able to duplicate the pbr version thing in a runserver example. | 15:02 |
*** kebray has joined #openstack-app-catalog | 15:02 | |
kfox1111 | if you copy manage.py somewhere outside of the git repo, make sure everything's in the python path, and run: python manage.py runserver 127.0.0.1:8080 | 15:03 |
kfox1111 | it was failing in the same way. | 15:03 |
kfox1111 | then, changing line 2 of setup.cfg from: name = catalog to name = openstack_catalog | 15:04 |
kfox1111 | and doing a 'pip uninstall .; pip install .' | 15:05 |
kfox1111 | I was able to do the runserver then. | 15:05 |
kfox1111 | that may not be the only problem, but it seems to be the fix for the pbr thing. | 15:06 |
kfox1111 | oh. and I tweaked requirements.txt to be pbr>=1.3. not sure it mattered or not, but I started off with that change in place. | 15:06 |
docaedo | kfox1111: thanks, I'll try that once I get rolling this morning | 15:26 |
*** kebray has quit IRC | 16:25 | |
*** kebray has joined #openstack-app-catalog | 16:27 | |
*** kebray has quit IRC | 17:59 | |
*** kebray has joined #openstack-app-catalog | 18:02 | |
docaedo | HOLY COW! Made that change, plus modified wsgi.py to say from openstack_catalog import wsgi.. and from openstack_catalog.api import api and it works! | 22:32 |
openstackgerrit | Christopher Aedo proposed openstack/app-catalog: WIP - Python Server https://review.openstack.org/227856 | 22:37 |
kfox1111 | awesome. :) | 22:39 |
docaedo | now I'll start making the other few minor adjustments, like pulling out the API stuff and make sure that all works, trigger manage.py collectstatic and .. not sure what else we'll need | 22:49 |
docaedo | oh have to make sure it works over SSL (seemed mod_wsgi didn't like having two apps on different ports using the same name, but I could be wrong, sooooo many errors encountered along the way) | 22:50 |
kfox1111 | :) | 23:15 |
kfox1111 | and drop the api stuff from the config. | 23:15 |
*** rhagarty_ has quit IRC | 23:55 | |
*** rhagarty has joined #openstack-app-catalog | 23:55 | |
*** rhagarty has quit IRC | 23:58 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!