Tuesday, 2015-11-17

docaedoI should say - bumped the version in package.json but that seems to have had no effect00:15
docaedoGot 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
docaedomean 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
kfox1111does: /opt/virtenv-app-catalog/lib/python2.7/site-packages/openstack_catalog/wsgi_django.py exist?01:31
kfox1111if so, maybe try changinag the import wsgi_django in wsgi.py to import openstack_catalog.wsgi_django?01:32
docaedoexists, and has content01:32
kfox1111oh. and tweak DispatcherMiddleware(wsgi_django to be DispatcherMiddleware(openstack_catalog.wsgi_django01:34
docaedomaking that change (then pip install --upgrade .) brings back the PBR errors :(01:34
kfox1111there's got to be more too this...01:35
kfox1111did apache get restarted after?01:35
kfox1111I know apache can cache threads.01:35
docaedoyep, stopping apache each time, and restarting01:35
kfox1111hmm...01:35
docaedoalso weirdly, running this throws no errors:01:36
docaedo(virtenv-app-catalog)root@ubuntu14:/opt/apps_site# which python01:36
kfox1111how very strange.01:36
docaedo/opt/virtenv-app-catalog/bin/python01:36
docaedo(virtenv-app-catalog)root@ubuntu14:/opt/apps_site# python /opt/virtenv-app-catalog/lib/python2.7/site-packages/openstack_catalog/wsgi.py01:36
docaedowhich 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
docaedoyes, strange is right01:36
kfox1111right.01:36
kfox1111and you said runserver's working too?01:37
docaedoyep, runserver locally works great01:38
docaedowhich seems to mean this HAS to be something wrong with apache/mod_wsgi and the paths it's getting in config01:38
docaedo(to me)01:38
kfox1111and lib/python2.7/site-packages/catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO is still there?01:39
kfox1111in the venv?01:39
kfox1111hmm....01:40
kfox1111I wonder if it needs to be renamed openstack_catalog-0.0.1.dev188-py2.7.egg-info/PKG-INFO ...01:40
kfox1111to match the module name.01:40
kfox1111I'd believe runserver can run without it finding PKG-INFO since it can just use the git checkout to find the version.01:41
docaedothat might make a positive difference, but not really sure01:41
docaedoI'll modify setup.cfg and try that01:41
kfox1111can 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
kfox1111or cp -a01:42
kfox1111I've gota head out in about 2 min.01:43
docaedotried that, didn't work01:43
docaedoyou should head out01:43
docaedosome day, eventually, I'll figure this out :)01:44
kfox1111k. I'll think about it some more too... probably something simple we're both missing. :)01:44
kfox1111have a good one. :)01:44
docaedoI know, that's what's pissing me off more than anything01:44
docaedoone of those deals where you spend a day working on something and find out it was a missing : all along01:45
docaedobah, gonna stop too and have some dinner, ttyl!01:45
kfox1111like 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
kfox1111k. l8r.01:45
*** kebray has joined #openstack-app-catalog03:13
*** kebray has quit IRC03:17
*** kebray has joined #openstack-app-catalog03:17
*** kebray has quit IRC04:58
*** kebray has joined #openstack-app-catalog04:59
*** kebray has quit IRC07:07
*** openstackgerrit has quit IRC09:31
*** openstackgerrit has joined #openstack-app-catalog09:32
*** openstackgerrit has quit IRC10:31
*** openstackgerrit has joined #openstack-app-catalog10:32
kfox1111docaedo: I was able to duplicate the pbr version thing in a runserver example.15:02
*** kebray has joined #openstack-app-catalog15:02
kfox1111if 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:808015:03
kfox1111it was  failing in the same way.15:03
kfox1111then, changing line 2 of setup.cfg from: name = catalog to name = openstack_catalog15:04
kfox1111and doing a 'pip uninstall .; pip install .'15:05
kfox1111I was able to do the runserver then.15:05
kfox1111that may not be the only problem, but it seems to be the fix for the pbr thing.15:06
kfox1111oh. 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
docaedokfox1111: thanks, I'll try that once I get rolling this morning15:26
*** kebray has quit IRC16:25
*** kebray has joined #openstack-app-catalog16:27
*** kebray has quit IRC17:59
*** kebray has joined #openstack-app-catalog18:02
docaedoHOLY 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
openstackgerritChristopher Aedo proposed openstack/app-catalog: WIP - Python Server  https://review.openstack.org/22785622:37
kfox1111awesome. :)22:39
docaedonow 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 need22:49
docaedooh 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
kfox1111and drop the api stuff from the config.23:15
*** rhagarty_ has quit IRC23:55
*** rhagarty has joined #openstack-app-catalog23:55
*** rhagarty has quit IRC23:58

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