*** sarob has quit IRC | 01:57 | |
*** coolsvapl is now known as coolsvap | 03:22 | |
*** reed_ has joined #openstack-community | 03:34 | |
*** reed_ has quit IRC | 03:37 | |
*** sarob has joined #openstack-community | 04:11 | |
*** sarob has quit IRC | 05:43 | |
*** neeti has joined #openstack-community | 06:51 | |
*** jcoufal has joined #openstack-community | 06:55 | |
*** mrmartin has joined #openstack-community | 07:12 | |
*** dizquierdo has joined #openstack-community | 07:36 | |
*** swat30 has quit IRC | 07:49 | |
*** swat30 has joined #openstack-community | 07:51 | |
*** mrmartin has quit IRC | 10:40 | |
*** mrmartin has joined #openstack-community | 10:57 | |
*** Harry51S has joined #openstack-community | 12:01 | |
*** mrmartin has quit IRC | 12:10 | |
*** shakamunyi has quit IRC | 12:18 | |
*** yfauser has joined #openstack-community | 12:28 | |
*** yfauser has left #openstack-community | 12:28 | |
*** dizquierdo has quit IRC | 12:34 | |
*** dizquierdo has joined #openstack-community | 12:48 | |
*** rbowen has joined #openstack-community | 13:05 | |
*** yfauser has joined #openstack-community | 13:09 | |
*** yfauser has left #openstack-community | 13:09 | |
*** Piet has joined #openstack-community | 13:10 | |
*** mrmartin has joined #openstack-community | 13:10 | |
*** tiswanso has joined #openstack-community | 13:18 | |
*** dizquierdo has quit IRC | 13:24 | |
*** jcoufal_ has joined #openstack-community | 13:24 | |
*** jcoufal has quit IRC | 13:27 | |
*** coolsvap is now known as coolsvap|afk | 13:37 | |
*** neeti has quit IRC | 13:38 | |
*** julim has joined #openstack-community | 13:48 | |
*** Piet has quit IRC | 13:52 | |
*** mattgriffin has joined #openstack-community | 14:01 | |
*** electrocucaracha has joined #openstack-community | 14:37 | |
*** packet has joined #openstack-community | 14:41 | |
*** sarob has joined #openstack-community | 15:02 | |
*** sarob has quit IRC | 15:03 | |
*** sarob has joined #openstack-community | 15:03 | |
*** jcoufal_ has quit IRC | 15:18 | |
reed | hello folks | 15:21 |
---|---|---|
mrmartin | hi | 15:24 |
*** sarob_ has joined #openstack-community | 15:26 | |
reed | mrmartin, how are things going? | 15:26 |
mrmartin | things are almost great :) | 15:26 |
mrmartin | https://github.com/mkissam/puppet-askbot | 15:26 |
mrmartin | the refactoring to trusty / github askbot-devel deploy src basically ready | 15:27 |
mrmartin | I just found one thing related to solr index rebuild task that is blocking us | 15:28 |
reed | saw that message | 15:28 |
mrmartin | that was working previously on precise | 15:28 |
*** sarob has quit IRC | 15:28 | |
mrmartin | and I've discussed the initial steps with Jeremy, so if it works, we can start to merge into official puppet-askbot and system-config repos | 15:28 |
reed | i need to go grab evgeny | 15:29 |
reed | i'm still concerned that google+ auth is not working | 15:29 |
reed | not sure why | 15:29 |
mrmartin | and the theme is still broken | 15:29 |
reed | he said he fixed it | 15:29 |
mrmartin | where? | 15:29 |
reed | with multiple patchsets | 15:29 |
reed | he sent 2 more patches | 15:30 |
mrmartin | https://github.com/openstack-infra/askbot-theme/commits/feature/development | 15:30 |
reed | pull the askbot-theme project on gerrit | 15:30 |
mrmartin | oh, ok, it still sits in gerrit | 15:30 |
mrmartin | I saw just this one: https://review.openstack.org/177486 | 15:30 |
mrmartin | https://review.openstack.org/#/c/179472/ | 15:31 |
reed | i suggest you to subscribe to that project on gerrit :) | 15:31 |
mrmartin | good idea :D | 15:31 |
reed | so you get all notifications | 15:31 |
mrmartin | we can approve those, because it is going to feature/development branch | 15:32 |
reed | ok, let's go then | 15:33 |
reed | are you core there? | 15:34 |
*** electrocucaracha has quit IRC | 15:34 | |
mrmartin | yeap | 15:34 |
mrmartin | I can approve. | 15:34 |
mrmartin | I approve those quickly | 15:35 |
*** sarob has joined #openstack-community | 15:35 | |
reed | i started from the first one (they all depend on each other) | 15:35 |
reed | you continue :) | 15:35 |
*** electrocucaracha has joined #openstack-community | 15:35 | |
mrmartin | both changes are in the git repo now | 15:37 |
reed | cool | 15:37 |
reed | can you deploy them on askbot-dev? | 15:38 |
*** sarob_ has quit IRC | 15:39 | |
mrmartin | I'm doing that | 15:39 |
mrmartin | ok, it is there | 15:42 |
* reed reloads | 15:42 | |
mrmartin | this simple puppet apply command updates everything: puppet apply --modulepath='/etc/puppet/modules' /etc/puppet/manifests/site.pp | 15:43 |
reed | it looks good | 15:44 |
reed | the theme, doesn't it? | 15:44 |
mrmartin | yeah, it is better now | 15:45 |
mrmartin | so we have two open issues, one is this google auth, and the other one is the solr rebuild index | 15:46 |
*** mwagner_lap has quit IRC | 15:47 | |
reed | yep | 15:47 |
reed | let me try google auth again | 15:47 |
reed | with debug on | 15:47 |
mrmartin | ok | 15:48 |
reed | i may have screwed up something on google side | 15:48 |
reed | http://paste.openstack.org/show/214864/ | 15:49 |
reed | http://paste.openstack.org/show/214865/ | 15:49 |
mrmartin | nice | 15:50 |
mrmartin | it tries to open an url, but receives a 403 | 15:51 |
mrmartin | [Mon May 04 10:43:33.222508 2015] [:error] [pid 32300:tid 140023767713536] Error attempting to use stored discovery information: <openid.consumer.consumer.TypeURIMismatch: Required type http://specs.openid.net/auth/2.0/signon not found in ['http://specs.openid.net/auth/2.0/server', 'http://openid.net/srv/ax/1.0', 'http://openid.net/extensions/sreg/1.1', 'http://ns.launchpad.net/2007/openid-teams'] for endpoint <openid.consumer. | 15:51 |
mrmartin | discover.OpenIDServiceEndpoint server_url='https://login.launchpad.net/+openid' claimed_id=None local_id=None canonicalID=None used_yadis=True >> | 15:51 |
reed | I may have screwed up the url | 15:51 |
reed | ah | 15:51 |
reed | that's confusing | 15:52 |
mrmartin | this entry was in the apache error log | 15:52 |
reed | why on earth should it open launchpad? | 15:52 |
mrmartin | :) | 15:52 |
reed | something is hardcoded | 15:52 |
mrmartin | I'm going to grep launchpad in source tree | 15:53 |
reed | k | 15:53 |
mrmartin | https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py | 15:55 |
mrmartin | but it have configs for different providers too | 15:55 |
*** yfauser has joined #openstack-community | 15:56 | |
reed | the thing is that Google+ should not use openid | 15:56 |
*** yfauser has left #openstack-community | 15:56 | |
reed | oh | 15:57 |
reed | ALLOWED_LOGIN_TYPES = ('password', 'oauth', 'oauth2', 'openid-direct', 'openid-username', 'wordpress') | 15:57 |
reed | maybe when he did the launchpad auth he hardcoded something in there? | 15:58 |
mrmartin | which is the patch from Evgeny to resolve this google auth issue? | 15:58 |
reed | and that's also why the auth with openstackid doesn't work? | 15:58 |
reed | he didn't send one | 15:58 |
mrmartin | oh ok. | 15:58 |
reed | and he's not online yet | 15:59 |
mrmartin | grep "openstackid" * -R | 15:59 |
mrmartin | doesn't return anything | 15:59 |
reed | never mind openstackid | 15:59 |
mrmartin | but it is a tricky, because we have a settings.py too and the database have a livesettings_settings table, that can override the defaults | 15:59 |
reed | maybe there is something hardcoded in the settings table? | 16:00 |
mrmartin | 118 | 1 | LOGIN_PROVIDERS | SIGNIN_CUSTOM_OPENID_ENDPOINT | https://openstackid.org | 16:00 |
mrmartin | yeap, if you do a su - postgres | 16:01 |
mrmartin | then a psql askbotdb | 16:01 |
mrmartin | you can do a select * from livesettings_setting; | 16:01 |
reed | that's weird though | 16:01 |
mrmartin | but I guess if you are an admin there, you need to see those settings somewhere in the UI | 16:01 |
mrmartin | 119 | 1 | LOGIN_PROVIDERS | SIGNIN_GOOGLE_METHOD | google-plus | 16:01 |
reed | probably that's a leftover from some configuration I did | 16:02 |
mrmartin | those lines related to google-plus auth: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py#L559 | 16:03 |
mrmartin | the openid.realm is askbot_settings.APP_URL and it is set to http://askbot-dev.openstack.org | 16:04 |
reed | mrmartin, have you tried authenticating yourself? | 16:04 |
mrmartin | not yet | 16:04 |
reed | I have a doubt | 16:05 |
reed | on your profile, did you add a google identity before? | 16:05 |
reed | I think I did | 16:05 |
reed | i'm wondering if the code that should move my google id from openid to oauth is borked and creating that mess | 16:06 |
mrmartin | same error here | 16:06 |
reed | no | 16:06 |
reed | ok, that's it :) | 16:06 |
reed | ok | 16:07 |
reed | have we exhausted our options to debug this? | 16:07 |
mrmartin | no, we can inject more debug code into askbot | 16:08 |
mrmartin | it is not clear from this exception, which url askbot tries to open, and fails with 403 | 16:08 |
reed | how long will that take? i wonder if we should wait for evgeny instead | 16:09 |
mrmartin | it is failing here: https://github.com/ASKBOT/askbot-devel/blob/master/askbot/deps/django_authopenid/util.py#L556 | 16:11 |
mrmartin | yeap, it is a bit hard, because we can just debug our side, it is easier with openstackid because we can see the logs from both side | 16:12 |
reed | maybe I can see something on gogole dev console | 16:13 |
mrmartin | ok, I can try to hack this single line | 16:14 |
mrmartin | so we can get more info | 16:14 |
reed | ok | 16:14 |
reed | trying one more thing | 16:25 |
reed | I may have screwed up on google+ side | 16:26 |
mrmartin | ok | 16:26 |
reed | AH | 16:27 |
reed | damn, it was my fault | 16:27 |
mrmartin | so? | 16:27 |
mrmartin | is it working now? | 16:27 |
mrmartin | great | 16:27 |
reed | it's weird that google allowed me to create the API credentials without me having enabled the APIs at all | 16:27 |
mrmartin | works here too | 16:27 |
reed | the captcha is not working on my side | 16:28 |
reed | google says: In the sidebar on the left, expand APIs & auth. Next, click APIs. Select the Enabled APIs link in the API section to see a list of all your enabled APIs. Make sure that the API is on the list of enabled APIs. If you have not enabled it, select the API from the list of APIs, then select the Enable API button for the API. | 16:28 |
reed | but nowhere it says which damn API it wants enabled | 16:28 |
reed | searching for oauth or auth leads to nothing | 16:29 |
mrmartin | yeah, if we can see proper error messages, it could be easier to debug. this come from the deep of python libs | 16:29 |
mrmartin | I hope the self-driving car software will be better ;) | 16:29 |
reed | but I guess it had to be some GOogle+ API | 16:29 |
reed | I enabled the Google+ API and we now are a step forward | 16:29 |
reed | do we have an etherpad somewhere? | 16:30 |
reed | I want to write this down | 16:30 |
mrmartin | yes | 16:30 |
reed | found it | 16:30 |
mrmartin | https://etherpad.openstack.org/p/askbot-integration | 16:30 |
mrmartin | this one | 16:30 |
mrmartin | need to check this captcha thing | 16:31 |
mrmartin | it is embedding this code: http://paste.openstack.org/show/214872/ | 16:33 |
mrmartin | I'll check the settings.py and python deps | 16:33 |
reed | probably the client secret thing is wrong | 16:34 |
reed | yep | 16:38 |
reed | I think the recaptcha stuff doesn't have the domain enabled | 16:38 |
reed | I'm creating a new set of keys | 16:38 |
reed | for askbot-dev | 16:38 |
mrmartin | RECAPTCHA_SECRET / RECAPTCHA_KEY from livesettings | 16:38 |
mrmartin | yeah | 16:38 |
reed | ok | 16:40 |
reed | done, now testing | 16:40 |
reed | crap, I don't see google+ anymore | 16:41 |
reed | any idea what happened? | 16:42 |
reed | http://askbot-dev.openstack.org/en/account/signin/?next=/en/ | 16:42 |
mrmartin | yeap, google plus was stolen by the weasel | 16:44 |
mrmartin | strange | 16:45 |
mrmartin | I'm doing a site redeploy | 16:46 |
*** sarob_ has joined #openstack-community | 16:46 | |
reed | thanks | 16:46 |
mrmartin | if it not brings back, then it must be a db issue | 16:46 |
*** sarob_ has quit IRC | 16:48 | |
mrmartin | it must be a db issue | 16:49 |
mrmartin | have you done a save on the gui? | 16:49 |
mrmartin | I'm going to grab a dinner quickly, then look back | 16:51 |
reed | i did | 16:52 |
reed | mrmartin, feel free to restore the db | 16:53 |
*** mattgriffin has quit IRC | 16:53 | |
*** dizquierdo has joined #openstack-community | 16:55 | |
*** evgeny has joined #openstack-community | 17:02 | |
evgeny | reed, mrmartin: hello | 17:02 |
mrmartin | hi | 17:03 |
reed | hi evgeny | 17:04 |
mrmartin | ok I'm back | 17:04 |
reed | evgeny, what happened? | 17:04 |
reed | mrmartin, let's start over with the dev site | 17:04 |
reed | we've understood now what the issue is, let's rebuild from scratch, DB included | 17:05 |
evgeny | reed: am I late for the meeting? | 17:05 |
evgeny | reed: my calendar shows that it starts now | 17:05 |
mrmartin | reed, but it is a bug, if you click on a save button, and the settings going away | 17:05 |
*** dpose has joined #openstack-community | 17:05 | |
dizquierdo | (I'm also around for the meeting, if there's a meeting :) ) | 17:05 |
evgeny | mrmartin: I would make sure that there are no outdated .pyc files. | 17:06 |
mrmartin | evgeny: how can that happen? | 17:06 |
evgeny | mrmartin: if you update something after files have a chance to compile | 17:07 |
mrmartin | evgeny: we have two open things now, one is this solr reindex issue, the other one is that the google plus auth gone away suddenly | 17:07 |
*** mattgriffin has joined #openstack-community | 17:07 | |
evgeny | mrmartin: google auth is disabled by default, b/c it requires setup | 17:07 |
mrmartin | it was enabled 20 minutes ago and we can login | 17:08 |
mrmartin | but suddenly gone away | 17:08 |
evgeny | hmm, maybe check the settings in the login providers? | 17:08 |
reed | mrmartin, let's just rebuild so we test the instructions | 17:09 |
reed | it's faster | 17:09 |
mrmartin | it is not ) | 17:09 |
mrmartin | :) | 17:09 |
mrmartin | but I'll rebuild | 17:09 |
reed | dizquierdo, I have a couple of questions for you | 17:09 |
dizquierdo | please, go ahead reed | 17:09 |
dizquierdo | sure | 17:10 |
reed | mrmartin, it's cleaner then :) | 17:11 |
mrmartin | ok, I'm doing | 17:12 |
evgeny | mrmartin: the index issue seems either due to issues in the environment variables or in the django installation as error occurs on django importing own module | 17:13 |
mrmartin | evgeny: it is a bit strange, because actions.py is there | 17:13 |
mrmartin | http://askbot.org/en/question/9594/why-askbot-works-with-runserver-but-fails-with-production-server/ | 17:14 |
mrmartin | the pythonpath seems to be ok | 17:14 |
*** dizquierdo has quit IRC | 17:17 | |
*** dizquierdo has joined #openstack-community | 17:17 | |
evgeny | mrmartin: to check python paths you could insert logging statement in the settings.py file | 17:19 |
mrmartin | I did a sys.print to manage.py | 17:19 |
mrmartin | it was included in my bug report | 17:20 |
mrmartin | so it is hell strange, becasue the actions.py is there, and the python path seems to be ok | 17:21 |
mrmartin | python --version | 17:21 |
mrmartin | Python 2.7.6 | 17:21 |
mrmartin | other python manage.py commands are working well | 17:22 |
evgeny | this may not be related, but can you list migrations on the askbot app | 17:23 |
evgeny | python manage.py migrate askbot --list | 17:23 |
evgeny | could you show the last few? | 17:23 |
evgeny | migrations in the list | 17:23 |
reed | mrmartin, let me know when the -dev site is rebuilt and I'll add the Google stuff | 17:23 |
mrmartin | evgeny, what I need to insert into settings.py ? | 17:23 |
evgeny | mrmartin: for google? | 17:24 |
evgeny | ASKBOT_SIGNIN_GOOGLE_METHOD = 'google-plus' | 17:24 |
*** mrmartin has quit IRC | 17:25 | |
evgeny | and add secret and the public keys, they can also be added via settings.py | 17:25 |
reed | he's gone | 17:27 |
*** mrmartin has joined #openstack-community | 17:28 | |
mrmartin | ... | 17:28 |
reed | he's back | 17:28 |
*** mrmartin has quit IRC | 17:28 | |
reed | great to know that the keys can go in settings.py | 17:28 |
evgeny | mrmartin: ASKBOT_GOOGLE_PLUS_KEY and ASKBOT_GOOGLE_PLUS_SECRET can be either added via settings.py or via the web interface | 17:29 |
evgeny | reed: only obviously they can't go into the public repository | 17:29 |
reed | evgeny, we have ways to put those keys in a private repo and have puppet pull them from there | 17:30 |
evgeny | reed: so you might have a settings_secret.py and import it at the bottom. | 17:30 |
*** mrmartin has joined #openstack-community | 17:30 | |
reed | so all the code is public, all configurations, except the private stuff like the passwords and secret keys | 17:30 |
evgeny | ok | 17:30 |
mrmartin | i'm back | 17:30 |
reed | <evgeny> mrmartin: ASKBOT_GOOGLE_PLUS_KEY and ASKBOT_GOOGLE_PLUS_SECRET can be either added via settings.py or via the web interface | 17:30 |
mrmartin | so, evgeny the python path: ['/srv/askbot-site/config', '/usr/local/lib/python2.7/dist-packages/askbot-0.7.53-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/jsonfield-1.0.3-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/django_transaction_signals-1.0.0-py2.7.egg', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-o | 17:30 |
mrmartin | ld', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/local/lib/python2.7/dist-packages/askbot-0.7.53-py2.7.egg/askbot/deps'] | 17:30 |
reed | mrmartin, the site is still down, right? | 17:31 |
evgeny | mrmartin: in this case I would insert a "import pdb; pdb.stack_trace()" somewhere and try to run the command | 17:31 |
mrmartin | yes | 17:31 |
evgeny | mrmartin: assuming that all your python environment is built in /usr/local/lib/python2.7/dist-packages | 17:31 |
mrmartin | reed: it is down, because the db migration script is runing | 17:31 |
mrmartin | evgeny: i did a python setup.py | 17:32 |
mrmartin | it is part of the puppet scripts, it is doing a python setup.py after each git repo change | 17:32 |
*** tiswanso has quit IRC | 17:32 | |
evgeny | mrmartin: my sys.path has a lot more items | 17:33 |
*** tiswanso_ has joined #openstack-community | 17:33 | |
evgeny | mrmartin: but I use a virtualenv | 17:33 |
evgeny | mrmartin: afaik every item that is in the pip freeze is a separate item on sys.path | 17:34 |
mrmartin | hm | 17:34 |
evgeny | mrmartin: do you have all those packages in /usr/local/lib/python2.7/dist-packages | 17:34 |
mrmartin | yes | 17:34 |
evgeny | maybe list that dir? | 17:35 |
evgeny | ok | 17:35 |
evgeny | you could also try python manage.py shell | 17:35 |
evgeny | mrmartin: and try making manually the same import that is failing | 17:36 |
mrmartin | http://paste.openstack.org/show/214878/ | 17:36 |
mrmartin | yeah, I'm using that from python manage.py | 17:36 |
evgeny | mrmartin: does this work " from django.contrib.admin import ModelAdmin, actions" | 17:37 |
mrmartin | django.core.exceptions.ImproperlyConfigured: Requested setting DATABASES, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. | 17:38 |
mrmartin | I guess needs to load settings.py before | 17:38 |
evgeny | mrmartin: someone had the same issue and narrowed it to he psycopg2 module | 17:38 |
evgeny | http://stackoverflow.com/questions/24186814/importerror-cannot-import-name-actions | 17:38 |
mrmartin | I saw that, but how the hack is that related? | 17:38 |
evgeny | mrmartin: the import I'd try from "python manage.py shell" | 17:38 |
evgeny | mrmartin: no idea, just found this myself | 17:39 |
mrmartin | it is work from there :O | 17:39 |
evgeny | mrmartin: it could be a different exception masked inside | 17:40 |
mrmartin | python manage.py askbot_rebuild_index -l en --traceback | 17:40 |
mrmartin | ImportError: cannot import name actions | 17:40 |
mrmartin | File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/sites.py", line 3, in <module> | 17:40 |
mrmartin | and it is even sitting in the same directory | 17:41 |
mrmartin | and when I remove the actions.pyc python compiles this file again | 17:42 |
mrmartin | I can try a deployment with mysql, wihout psycopg2, so if it is work, then the pgsql is related | 17:43 |
evgeny | I would inselt a 'import pdb; pdb.stack_trace(); at the first line of actions.py | 17:43 |
evgeny | and then launch the command that fails | 17:43 |
mrmartin | it fails on import | 17:44 |
evgeny | it fails for some reason which is inside that file or inside file that is imported by actions.py | 17:44 |
evgeny | I've seen such strange import errors, usually they are b/c of some exception inside a module that is being imported | 17:45 |
mrmartin | oh ok. | 17:45 |
*** mwagner_lap has joined #openstack-community | 17:46 | |
evgeny | mrmartin: psycopg2 was updated recently so it could be due to that | 17:51 |
mrmartin | awesome | 17:51 |
mrmartin | I'm deploying that from ubuntu package instead of pip | 17:53 |
evgeny | in your pip freeze psycopg2==2.4.5 it's quite old have you tried installing older version? | 17:53 |
evgeny | ah, ok | 17:54 |
evgeny | now they have 2.6 | 17:54 |
mrmartin | ok, but it is the version included in trusty | 17:54 |
evgeny | on my laptop I had 2.5.2, installed sometime 5 months ago | 17:54 |
mrmartin | what is the requirement for askbot? | 17:54 |
mrmartin | ok. | 17:54 |
evgeny | not fixe | 17:54 |
mrmartin | I try to do pip upgrade | 17:54 |
evgeny | not a fixed requirement | 17:54 |
evgeny | I usually just do "pip install psycopg2" | 17:55 |
mrmartin | ok, vagrant node is deploying now with mysql, so let's wait the results | 17:55 |
evgeny | after the base installation (which does not include the db binding) | 17:55 |
*** mattgriffin has quit IRC | 17:56 | |
evgeny | So import error might happen when python attempts to import the binary psql library | 17:56 |
* reed needs to learn how to use vagrant | 17:57 | |
mrmartin | ok, so if finally this is the case, than we need to pin the dependent libs very strictly | 17:57 |
mrmartin | reed: vagrant up / vagrant ssh / vagrant destroy that's all | 17:57 |
mrmartin | vagrant init maybe helps | 17:57 |
reed | let me rephrase then | 17:57 |
* reed needs to learn the magic behind vagrant | 17:58 | |
reed | :) | 17:58 |
reed | i learned a long time ago that magic works against you unless you know what you're doing :) | 17:58 |
mrmartin | http://askbot-dev.openstack.org/en/account/signin/?next=/en/ | 18:00 |
mrmartin | still no google plus icon | 18:00 |
reed | that's normal, I have to enable it | 18:00 |
mrmartin | ok. | 18:00 |
mrmartin | so the migration is done | 18:00 |
reed | mrmartin, evgeny was saying that you can add the google API things in settings.py | 18:00 |
mrmartin | ok. | 18:00 |
reed | so we could keep those in hiera | 18:00 |
reed | the secrets | 18:01 |
mrmartin | we can | 18:01 |
reed | for the moment let's use the UI quickly | 18:01 |
* reed adding the G+ things | 18:01 | |
reed | done | 18:03 |
reed | testing | 18:03 |
reed | damn | 18:03 |
reed | openid.realm=https://ask.openstack.org | 18:03 |
reed | that needs to be changed | 18:03 |
mrmartin | yeap | 18:04 |
mrmartin | wrong uri | 18:04 |
mrmartin | doing that | 18:04 |
reed | mrmartin, do you rememebr that it was in the settings table | 18:04 |
reed | ? | 18:04 |
mrmartin | yeap | 18:04 |
evgeny | it's probably the base url issue | 18:04 |
evgeny | in the settings there is a "... and URLS" section | 18:05 |
evgeny | there is a place to enter base site url | 18:05 |
*** EmilienM is now known as EmilienM|mtg | 18:05 | |
reed | let me check | 18:05 |
mrmartin | done. | 18:06 |
evgeny | it should be askbot-dev.openstack.org not ask.openstack.org , or incorrect url is entered in the google console where you've obtained the keys | 18:06 |
mrmartin | evgeny: same error with mysql provider | 18:06 |
evgeny | maybe connection issue is with solr? | 18:07 |
mrmartin | askbot-dev | 18:07 |
mrmartin | evgeny: i don't think so | 18:07 |
evgeny | which error? | 18:07 |
reed | now I lost G+ auth option again | 18:07 |
mrmartin | actions import | 18:07 |
mrmartin | reed: I guess you lost this option when you save the settings through the UI | 18:07 |
evgeny | mrmartin: at this time I would try to debug inside the actions.py file | 18:07 |
mrmartin | evgeny: I'm doing that | 18:08 |
*** jcoufal has joined #openstack-community | 18:08 | |
reed | damn it, this is a bloody mess | 18:08 |
reed | there is no bloody G+ button now | 18:08 |
* reed growing increasingly frustrated | 18:09 | |
*** packet has quit IRC | 18:09 | |
reed | why is the G+ button not showing up? | 18:10 |
reed | evgeny, any clue of where to look for? | 18:10 |
reed | do we need to rebuild the db again? WTH | 18:11 |
evgeny | reed: I would see if the settings are enabled, whether you have cache server configured and not running on local memory cache | 18:11 |
reed | evgeny, G+ is enabled in settings | 18:12 |
evgeny | if locmem cache is used, then every process instance would have own cache and own settings | 18:12 |
reed | mrmartin, let's enable debugging too | 18:12 |
*** Marga_ has joined #openstack-community | 18:12 | |
reed | so an apache restart would help? | 18:12 |
mrmartin | done | 18:13 |
mrmartin | cache flushed / apache restarted | 18:13 |
evgeny | reed, mrmartin: disclaimer - have not used your puppet setup, so I'm looking at your system as a closed box | 18:14 |
reed | mrmartin, didn't restart | 18:14 |
mrmartin | evgeny it is open source: https://github.com/mkissam/puppet-askbot | 18:14 |
reed | evgeny, as mrmartin said, you can at least look at it (if not deploy with it) | 18:15 |
mrmartin | done. | 18:15 |
mrmartin | evgeny: it is not a magic, doing the same as we used to do manually | 18:15 |
*** jtomasek has quit IRC | 18:15 | |
reed | no G+ yet | 18:16 |
mrmartin | evgeny: > /usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py(6)<module>()->None | 18:16 |
mrmartin | -> from django.contrib.admin.sites import AdminSite, site | 18:16 |
mrmartin | (Pdb) n | 18:16 |
mrmartin | ImportError: 'cannot import name User' | 18:16 |
mrmartin | > /usr/local/lib/python2.7/dist-packages/django/utils/importlib.py(35)import_module() | 18:16 |
reed | public key was gone in the settings UI | 18:17 |
mrmartin | java was better | 18:17 |
reed | holymoly IT WORKS | 18:17 |
reed | provider last used | 18:17 |
reed | google-plus just now | 18:17 |
mrmartin | reed: what you did? | 18:17 |
evgeny | probably puppet overwrote them? | 18:18 |
reed | http://askbot-dev.openstack.org/en/account/signin/?next=/en/ | 18:18 |
reed | evgeny, only the secret key was gone, the public was still there | 18:18 |
reed | it's possible that whatever mrmartin query used to fix the base URL, removed the private key | 18:19 |
mrmartin | I'm not | 18:19 |
mrmartin | I just did an sql update on a single row | 18:19 |
evgeny | mrmartin: perhaps you could step in more detail? On which line import User fails? | 18:19 |
reed | An internal error occurred: 5154599A338F9.A440987.C500469D (the captcha still has issues) | 18:19 |
mrmartin | I think it is related somehow to overwriting values in UI | 18:19 |
mrmartin | the g+ gone away first, when you did something on UI, I guess this captcha thing | 18:20 |
mrmartin | (Pdb) n | 18:20 |
mrmartin | ImportError: 'cannot import name actions' | 18:20 |
mrmartin | > /usr/local/lib/python2.7/dist-packages/django/db/models/loading.py(72)_populate() | 18:20 |
mrmartin | -> self.load_app(app_name, True) | 18:20 |
reed | when registering using Google+ askbot still asks for email, it doesn't get it automatically from Google (known issue?) | 18:20 |
*** EmilienM|mtg is now known as EmilienM | 18:21 | |
evgeny | reed: it's a known issue | 18:22 |
reed | the signup process is a bit f-ed up but hey, it's better than nothing | 18:22 |
reed | like the annoying "Validation email sent. Please find it and follow the enclosed link." | 18:22 |
mrmartin | evgeny: http://paste.openstack.org/show/214883/ | 18:22 |
reed | but it works | 18:22 |
reed | ok | 18:22 |
* reed sighs of relief, at least one thing passes the test | 18:22 | |
evgeny | reed: perhaps the validation email message should be different and email text | 18:23 |
mrmartin | if we solve this solr reindex thing, then we can move on | 18:23 |
evgeny | reed: the email validation is enabled so that spammers have harder time creating their accounts | 18:23 |
reed | evgeny, it makes it also harder for humans | 18:24 |
evgeny | reed: unfortunately - true. | 18:24 |
evgeny | mrmartin: looking at your snippet | 18:25 |
*** dizquierdo has quit IRC | 18:27 | |
*** dpose has quit IRC | 18:29 | |
evgeny | mrmartin: you did not step on the actual error yet | 18:31 |
evgeny | so I'll have to trace by reading the code | 18:31 |
mrmartin | > /usr/local/lib/python2.7/dist-packages/django/utils/importlib.py(35)import_module()->None | 18:32 |
mrmartin | -> __import__(name) | 18:32 |
mrmartin | (Pdb) l | 18:32 |
mrmartin | 30 for character in name: | 18:32 |
mrmartin | 31 if character != '.': | 18:32 |
mrmartin | 32 break | 18:32 |
mrmartin | 33 level += 1 | 18:32 |
mrmartin | 34 name = _resolve_name(name[level:], package, level) | 18:32 |
mrmartin | 35 -> __import__(name) | 18:32 |
mrmartin | 36 return sys.modules[name] | 18:32 |
mrmartin | ^ it was the next line | 18:32 |
*** tiswanso_ has quit IRC | 18:33 | |
evgeny | mrmartin: do you have value of "name" ? | 18:34 |
mrmartin | checking | 18:34 |
mrmartin | (Pdb) p name | 18:35 |
mrmartin | 'django.contrib.admin' | 18:35 |
mrmartin | do you think it is related to missing python path? | 18:35 |
evgeny | It might | 18:36 |
evgeny | does "import django.contrib.admin" work from the pdb shell? | 18:36 |
mrmartin | jeez | 18:37 |
mrmartin | (Pdb) import django.contrib.admin | 18:37 |
mrmartin | *** ImportError: cannot import name actions | 18:37 |
evgeny | it should work, so I think might be a path issue | 18:37 |
evgeny | if you do the same import in the "python manage.py shell" does that work? | 18:38 |
evgeny | also you can test sys.path right there on the shell and in the pdb shell | 18:39 |
*** mattgriffin has joined #openstack-community | 18:39 | |
mrmartin | manage.py shell is perfect | 18:39 |
evgeny | this is my sys path '/home/fadeev/other-projects/django-followit', '/home/fadeev/other-projects/django-followit', '/home/fadeev/askbot-main', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/lamson-1.3.4-py2.7.egg', '/home/fadeev/as | 18:39 |
evgeny | '/home/fadeev/other-projects/django-followit', '/home/fadeev/other-projects/django-followit', '/home/fadeev/askbot-main', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/pip-1.1-py2.7.egg', '/home/fadeev/askbot-main/env/local/lib/python2.7/site-packages/lamson-1.3.4-py2.7.egg', '/home/fadeev/askbot-main/env/local/ | 18:40 |
evgeny | hmm, I think this chat cuts off the text | 18:40 |
mrmartin | ['/srv/askbot-site/config', '/usr/local/lib/python2.7/dist-packages/askbot-0.7.53-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/jsonfield-1.0.3-py2.7.egg', '/usr/local/lib/python2.7/dist-packages/django_transaction_signals-1.0.0-py2.7.egg', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib | 18:40 |
mrmartin | -dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/local/lib/python2.7/dist-packages/askbot-0.7.53-py2.7.egg/askbot/deps'] | 18:40 |
mrmartin | http://paste.openstack.org/show/214886/ | 18:41 |
evgeny | http://paste.openstack.org/raw/214887/ | 18:41 |
evgeny | my path is has more items ^ | 18:42 |
mrmartin | but no reference here for django admin | 18:42 |
evgeny | is your path the same in pdb shell when you debug and in django manage.py shell? should be the same... | 18:43 |
mrmartin | yes | 18:43 |
mrmartin | and the django app from wsgi works well | 18:43 |
evgeny | I am googling about this - someone suggests in could be a bug in django | 18:48 |
evgeny | mrmartin: http://grokbase.com/t/gg/django-users/13af6erhv5/importerror-cannot-import-name-actions | 18:48 |
evgeny | this guy says that downgrading django to 1.5.4 helped | 18:48 |
mrmartin | pip freeze | grep Django | 18:49 |
mrmartin | Django==1.5.12 | 18:49 |
*** subscope_ has joined #openstack-community | 18:49 | |
evgeny | he also suggested a patch that supposedly helps | 18:50 |
mrmartin | ubuntu trusty have 1.6.1-2 packaged | 18:51 |
mrmartin | so it is the good old question, which package source am I need to use? the ubuntu packaged ones or the pip? | 18:51 |
mrmartin | meanwhile in requirements.txt: django>=1.3.1,<1.6 | 18:52 |
evgeny | I always use pip packages, so far no issues | 18:52 |
mrmartin | what is your actual django version that works? | 18:52 |
evgeny | can't say anything against ubuntu packages | 18:52 |
evgeny | working requirements are narrower now, min 1.5, I will update | 18:53 |
evgeny | try pip uninstall django; pip install django==1.5.4 | 18:54 |
evgeny | it's faster than rebuilding and can be reversed if necessary | 18:54 |
mrmartin | Could not fetch URL https://pypi.python.org/simple/django/1.5.4: 404 Client Error: Not Found | 18:56 |
mrmartin | 1.5.4 seems to be revoked | 18:56 |
mrmartin | 1.5.8 is the latest from 1.5.x branch | 18:57 |
*** julim has quit IRC | 19:02 | |
evgeny | mrmartin: maybe you could try a suggested patch? | 19:03 |
evgeny | http://grokbase.com/t/gg/django-users/13af6erhv5/importerror-cannot-import-name-actions | 19:03 |
evgeny | it's changing what's imported and is likely to help | 19:03 |
mrmartin | ok, actually I cannot deploy any version of Django | 19:03 |
evgeny | it's not importing actions, | 19:03 |
evgeny | ? | 19:04 |
*** julim has joined #openstack-community | 19:04 | |
*** Marga_ has quit IRC | 19:04 | |
mrmartin | with pip freeze we have a Django==1.5.12 | 19:05 |
mrmartin | but the askbot_requirements.txt contains a django line | 19:05 |
evgeny | can you log in to the server and modify code in django/contrib/admin/sites.py ? | 19:05 |
mrmartin | http://paste.openstack.org/show/214889/ | 19:06 |
mrmartin | I've found that patch today and applied with no much luck | 19:06 |
evgeny | it's pip install django, | 19:07 |
evgeny | but you do need to add version as you will probably get 1.8 | 19:07 |
evgeny | sorry, nvm | 19:07 |
mrmartin | it can be a workaround to deploy everything under a virtualenv | 19:10 |
evgeny | Are you on Ubuntu 14.04? | 19:10 |
mrmartin | yeap | 19:10 |
mrmartin | you know, because precise ubuntu-cloudimg have problems | 19:10 |
evgeny | I see people have issues with pip on that version | 19:10 |
mrmartin | awesome :D | 19:10 |
evgeny | also I always use virtualenv | 19:11 |
mrmartin | reed, I'll rewrite the puppet scripts to use virtualenv instead of native pip / python packages | 19:12 |
reed | what's the implication from the maintenability point of view? | 19:13 |
evgeny | Would it be hard to switch to 12.04? | 19:13 |
reed | evgeny, is 12.04 a LTS? | 19:13 |
evgeny | yes | 19:14 |
mrmartin | basically venv is better | 19:14 |
reed | oh, the older LTS... how long is it going to be around? | 19:14 |
*** tiswanso has joined #openstack-community | 19:14 | |
reed | ok, if venv is better then it's good | 19:14 |
mrmartin | because it is using a separate environment independently of host os python packages | 19:14 |
evgeny | till 2017 | 19:14 |
evgeny | 12.04.5 | 19:15 |
mrmartin | yeah, but askbot/precise with ubuntu cloudimg also had some strange bug | 19:15 |
reed | we have a bunch of 12.04.. is that precise? | 19:15 |
reed | gotcha | 19:15 |
evgeny | https://wiki.ubuntu.com/Releases till april 2017 | 19:15 |
mrmartin | the ideal could be the support of ubuntu python-xxxx packages without any pip, because it is usually well tested | 19:17 |
mrmartin | but askbot relies on django 1.5 as i understand, so this is the reason we need to deploy packages from pip | 19:17 |
mrmartin | https://wiki.mozilla.org/ReleaseEngineering/How_To/Install_a_Python_Virtualenv_with_Puppet | 19:20 |
mrmartin | mozilla guys are using python venv with puppet too | 19:20 |
reed | nice | 19:20 |
clarkb | there is a puppet module we use to manage virtualenvs | 19:24 |
clarkb | should already be available on the master if you want to use it | 19:24 |
mrmartin | awesome | 19:25 |
mrmartin | where? | 19:25 |
clarkb | https://git.openstack.org/cgit/openstack-infra/system-config/tree/modules.env#n41 that module iirc | 19:26 |
mrmartin | I'm checking that, we have issues with askbot-devel deployment on trusty and on some precise images | 19:27 |
evgeny | mrmartin: I would actually comment a bunch of stuff in admin/sites.py | 19:27 |
mrmartin | different ones | 19:27 |
evgeny | we don't use it anyway | 19:27 |
mrmartin | yeah, evgeny, but it is a hack :) | 19:27 |
mrmartin | are you mean the django admin/sites.py ? | 19:27 |
evgeny | in fact disabling 'admin' app might work | 19:28 |
evgeny | yes | 19:28 |
mrmartin | ok, I give it a chance | 19:29 |
evgeny | it will require also removig references to admin in urls.py | 19:30 |
evgeny | I'm trying here | 19:30 |
evgeny | the site works for me, removed 'django.contrib.admin' from the installed apps and commented out lines with admin in urls.py | 19:33 |
evgeny | hopefully that removes the admin import when you run the index command | 19:34 |
evgeny | It still might not if other apps import from admin models | 19:35 |
evgeny | but its a quick try | 19:35 |
mrmartin | clarkb: which puppet module using this python venv? | 19:35 |
mrmartin | I not found anything in system-config | 19:36 |
clarkb | mrmartin: I linked it to you above | 19:36 |
clarkb | stankevich/puppet-python | 19:36 |
mrmartin | ok I got it | 19:36 |
mrmartin | but, in openstack-infra | 19:36 |
mrmartin | are we using that anywhere? | 19:36 |
mrmartin | I cannot find any pattern matching to python::virtualenv in system-config | 19:37 |
*** mattgriffin has quit IRC | 19:38 | |
*** electroc_ has joined #openstack-community | 19:38 | |
*** electrocucaracha has quit IRC | 19:42 | |
*** mattgriffin has joined #openstack-community | 19:42 | |
*** tiswanso has quit IRC | 19:48 | |
*** mattgriffin has quit IRC | 19:51 | |
mrmartin | ok, no error here on index rebuild when contrib.admin is removed from apps in settings.py | 19:51 |
mrmartin | but django app dies when called from web due the missing contrib.admin | 19:52 |
clarkb | the puppetboard module uses it | 19:54 |
clarkb | so its a transitive dep | 19:54 |
*** rbowen has quit IRC | 19:54 | |
mrmartin | ok. thnx | 19:58 |
evgeny | mrmartin: django should not die if admin is removed from root urls.py | 19:59 |
*** jcoufal has quit IRC | 20:00 | |
mrmartin | but with this removal, will we loose the admin ui of the app? | 20:00 |
evgeny | yes, we'll lose admin ui | 20:00 |
mrmartin | a too big price | 20:02 |
mrmartin | I'll try to redeploy with a downgraded django version, maybe just trusty pip was going to mad when I wanted to downgrade | 20:03 |
*** evgeny has quit IRC | 20:05 | |
*** subscope_ has quit IRC | 20:08 | |
*** rbowen has joined #openstack-community | 20:09 | |
reed | well | 20:12 |
mrmartin | ok, so the result: it is not working with a downgraded django | 20:12 |
mrmartin | and the pip is buggy on trusty | 20:12 |
reed | if the config option can be passed via settings.py | 20:12 |
reed | i wouldn't mind missing the admin panel | 20:12 |
mrmartin | yeah, it requires a settings.py change and an askbot-devel patch | 20:12 |
mrmartin | but loosing the admin ui? | 20:12 |
reed | it's not very useful in the end if all the configurations can be passed via file changes | 20:13 |
reed | it would even be better to some extent | 20:13 |
mrmartin | Evgeny: can you make the import in urls.py configurable? | 20:13 |
mrmartin | so if the contrib.admin is included in the INSTALLED_APPS, then import admin, otherwise not | 20:14 |
mrmartin | ? | 20:14 |
*** evgeny has joined #openstack-community | 20:15 | |
*** mattgriffin has joined #openstack-community | 20:16 | |
mrmartin | [22:13:55] <mrmartin>Evgeny: can you make the import in urls.py configurable? | 20:18 |
mrmartin | [22:14:18] <mrmartin>so if the contrib.admin is included in the INSTALLED_APPS, then import admin, otherwise not | 20:18 |
mrmartin | [22:14:19] <mrmartin>? | 20:18 |
evgeny | sure | 20:19 |
evgeny | also - did you get my message? - it's possible to use custom settings.py when running commands | 20:19 |
evgeny | via the --settings option | 20:19 |
mrmartin | oh | 20:19 |
mrmartin | oh great | 20:19 |
evgeny | the parameter is treated as path to python module, so it should be without the .py extension | 20:20 |
mrmartin | it can be a workaround too | 20:20 |
evgeny | are you sure you have a clean django 1.5.12 without remnants of django1.6? | 20:21 |
mrmartin | I'm sure, it was redeployed from scratch | 20:21 |
mrmartin | vagrant | 20:21 |
notmyname | anyone know what the ops track is called in sched? | 20:23 |
notmyname | ah. seems to be "Ops" | 20:24 |
reed | notmyname, yep, you found it :) | 20:25 |
notmyname | thanks | 20:25 |
notmyname | I'm scheduling the swift stuff and want to make sure I don't conflict | 20:25 |
reed | you can file a RFT to call it "hops" like the ones you had to jump to find it :)) | 20:25 |
reed | s/RFT/RFE | 20:26 |
*** tiswanso has joined #openstack-community | 20:26 | |
reed | s/hops/hoops | 20:26 |
reed | horrible joke | 20:26 |
reed | ok, back to food | 20:26 |
notmyname | I think *hops worked better ;-) | 20:26 |
mrmartin | evgeny, reed: python manage.py askbot_rebuild_index -l en --settings=settings-cli works well as a workaround now | 20:27 |
mrmartin | and the settings-cli not contains the contrib.admin app | 20:27 |
reed | is that good news? | 20:28 |
mrmartin | that's a workaround | 20:31 |
*** tiswanso has quit IRC | 20:31 | |
mrmartin | not to check how the other cli tools like the cron scheduled tasks and celeryd working | 20:31 |
mrmartin | but yes, it is a good news | 20:32 |
*** tiswanso has joined #openstack-community | 20:32 | |
mrmartin | I'll prepare the required infra patches for the change, and put the project into infra approval queue | 20:33 |
*** julim has quit IRC | 20:34 | |
*** Marga_ has joined #openstack-community | 20:35 | |
*** mattgrif_ has joined #openstack-community | 20:37 | |
*** evgeny has quit IRC | 20:37 | |
*** mattgriffin has quit IRC | 20:40 | |
*** dizquierdo has joined #openstack-community | 20:41 | |
*** Piet has joined #openstack-community | 20:42 | |
*** mrmartin has quit IRC | 20:50 | |
*** electroc_ has quit IRC | 20:59 | |
*** electrocucaracha has joined #openstack-community | 21:00 | |
*** electrocucaracha has quit IRC | 21:00 | |
*** rbowen has quit IRC | 21:08 | |
reed | thanks | 21:16 |
*** electrocucaracha has joined #openstack-community | 21:20 | |
*** Piet has quit IRC | 21:26 | |
*** evgeny has joined #openstack-community | 21:35 | |
*** mwagner_lap has quit IRC | 21:35 | |
*** dizquierdo has quit IRC | 21:45 | |
*** Piet has joined #openstack-community | 21:48 | |
*** mattgrif_ has quit IRC | 21:59 | |
*** mwagner_lap has joined #openstack-community | 22:22 | |
*** evgeny has quit IRC | 22:23 | |
*** Marga_ has quit IRC | 23:09 | |
*** Marga_ has joined #openstack-community | 23:12 | |
*** Marga_ has quit IRC | 23:15 | |
*** Marga_ has joined #openstack-community | 23:38 | |
*** rbowen has joined #openstack-community | 23:55 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!