Tuesday, 2016-05-31

*** EinstCrazy has joined #openstack-freezer01:25
*** zhangjn has quit IRC02:01
*** zhangjn has joined #openstack-freezer02:06
openstackgerritOpenStack Proposal Bot proposed openstack/freezer: Updated from global requirements  https://review.openstack.org/31505502:59
*** EinstCrazy has quit IRC03:00
*** EinstCrazy has joined #openstack-freezer03:30
*** lpetrut has joined #openstack-freezer04:15
*** lpetrut has quit IRC05:04
*** lpetrut has joined #openstack-freezer05:29
*** lpetrut has quit IRC05:47
*** lpetrut has joined #openstack-freezer06:08
*** lpetrut has quit IRC06:13
*** yuval has joined #openstack-freezer06:26
*** kjelly has quit IRC07:57
*** c00281451_ is now known as chenzeng08:07
chenzenghi, guys, I have a question, can some body give me some help, thanks. my question is if there 2 scheduler, which jobs do they get to do? for example, there are 10 jobs, scheduler_A maybe get 5 of them to do, and scheduler_B get another 5.08:59
*** electrofelix has joined #openstack-freezer09:01
*** daemontool has joined #openstack-freezer09:22
szaherEinstCrazy: plz re-review this one https://review.openstack.org/#/c/320964/09:25
daemontoolo/09:31
*** yangyapeng has joined #openstack-freezer09:34
EinstCrazyszaher Hello09:38
szaherEinstCrazy: Hi09:42
szaherSorry I wasn't on my desk09:42
EinstCrazyen , I've get that previous patch has been deleted. but I've not get what is the problem09:43
szaherpermission denied !09:44
szaherthe permission is denied to access or write on the config files !09:44
szaherEinstCrazy: http://logs.openstack.org/64/320964/6/check/gate-freezer-api-devstack-dsvm/69bd0f6/logs/devstacklog.txt.gz09:46
*** ksmutthu has joined #openstack-freezer09:48
EinstCrazyOK, I got it09:48
EinstCrazyAnd the second problem why not use the argument -R to chown?09:48
EinstCrazyAs i known without -R, it only change the folder itself. but this seem to be done before09:49
EinstCrazyAs in devstack code, nova configure use like this:09:52
EinstCrazy300     sudo install -d -o $STACK_USER $NOVA_CONF_DIR09:52
EinstCrazy30109:52
EinstCrazy302     install_default_policy nova09:52
EinstCrazy30309:52
EinstCrazy304     configure_rootwrap nova09:52
EinstCrazy30509:52
EinstCrazy306     if [[ "$ENABLED_SERVICES" =~ "n-api" ]]; then09:52
EinstCrazy307         # Get the sample configuration file in place09:52
EinstCrazy308         cp $NOVA_DIR/etc/nova/api-paste.ini $NOVA_CONF_DIR09:52
EinstCrazy309     fi09:52
EinstCrazy31009:52
szaherI can see it's working fine without the need for -R online what do you think ?09:56
szaherJenkins is giving +1 !09:56
openstackgerritMerged openstack/freezer-api: Remove version string from elk documents  https://review.openstack.org/32292710:00
EinstCrazyI think as it has change the owner of the folder before why do this twice?10:00
EinstCrazyIf you keep your point, I change my vote10:07
szaherEinstCrazy: to make long story short, you say that I need to remove the second chown, and use -R in the first line ?10:08
szaherI am going to do another patchset anyway10:09
EinstCrazy szaher: i think delete the last line or  -R in the last one10:09
openstackgerrityapeng Yang proposed openstack/freezer: Increase the judgment of the state of the cinder volume  https://review.openstack.org/31855110:16
*** EinstCrazy has quit IRC10:32
*** yangyapeng has quit IRC10:35
*** zhangjn has quit IRC11:36
*** zhangjn has joined #openstack-freezer11:38
*** ksmutthu has quit IRC11:55
*** electrofelix has quit IRC13:39
*** zengchen has joined #openstack-freezer13:42
*** electrofelix has joined #openstack-freezer13:51
gahanI've just setup freezer in my cloud but whenever trying to access anything from within Web UI (+ Create Job / + Create action) api throws Critical TypeError: argument of type 'NoneType' is not iterable. File "/usr/local/lib/python2.7/dist-packages/freezer_api/api/common/middleware.py", line 69, in process_request if 'application/json' not in req.content_type:13:58
m3m0gahan: are you running master branches?14:10
gahanm3m0: most recent14:10
gahanmaster14:10
m3m0could you try using the stable ones?14:10
gahanis it backward compatibile with elasticsearch?14:11
openstackgerritDomhnall Walsh proposed openstack/freezer-api: fix typo in jobs.py  https://review.openstack.org/32340114:11
m3m0I think so, but we are aware of that error, we are working on fix it14:12
gahanhow do I switch the branch in freezer dir and pull?14:12
*** yangyapeng has joined #openstack-freezer14:12
gahanwhat is the latest stable for liberty?14:14
daemontoolgahan, git clone https://github.com/openstack/freezer14:15
daemontoolcd freezer14:15
daemontoolgit checkout stable/liberty14:15
gahanthanks14:16
m3m0mitaka14:18
daemontoolgit checkout stable/mitaka14:19
daemontoolnewton == master14:19
*** EinstCrazy has joined #openstack-freezer14:19
m3m0could someone review this please? https://review.openstack.org/#/c/299248/14:21
*** domhnallw has joined #openstack-freezer14:22
gahanliberty/stable throws some mod_Wsgi exception14:24
gahan[Tue May 31 14:20:31.551631 2016] [:error] [pid 24065:tid 140718852138752] [remote 10.1.1.143:19380] mod_wsgi (pid=24065): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.14:25
gahanand nothing works, dashboard died14:25
gahanhad to uninstall freezer14:25
daemontoolgahan, it probably would be better if you use venv14:30
m3m0did you install freezer-web-ui and freezer on the same environment as horizon?14:31
gahanI installed api on another box and web-ui and freezer on one14:31
gahanNow I have containers unable to remove14:35
yangyapenghello everyone please review this patch if you have time https://review.openstack.org/#/c/312430/  https://review.openstack.org/#/c/318551/  https://review.openstack.org/#/c/315939/14:36
gahanand stable/liberty freezer-agent doesn't work at all.14:37
gahanImportError: cannot import name create_subprocess14:37
m3m0I've seen this14:37
m3m0try removing the freezer folder and uninstallit14:38
m3m0and install it like this: git clone -b stable/mitaka https://github.com/openstack/freezer14:38
gahanwhat's the command to uninstall?14:38
m3m0pip uninstall freezer14:38
gahanyou sure aobut mitaka while I'm using liberty14:38
gahan?14:38
gahanI didn't use pip14:38
gahanI use python setup.py install14:38
m3m0could be liberty just clone the right branch from the beggining14:38
m3m0it can be uninstalled using pip as well14:38
yangyapengyou can install python-pip14:38
gahanI removed it all manually14:41
gahanpip uninstall was useless, couldn't find it.14:41
m3m0you install it again?14:43
gahanyeah14:44
gahanuwsgi is no longer picking up that module14:46
gahanImportError: No module named wsgi14:48
gahaneverything crapped up, webui14:50
yangyapengping EinstCrazy14:50
gahanany idea how to get rid of the containers from object store using mysql or some other magic? and filesystem too14:51
EinstCrazy?14:51
daemontoolgahan, my best advise would be to remove the packages you installed and restart from scratch using virtualenv14:53
gahandaemontool: that's not ideal I'm already running containers that are heavily in use on that openstack deployment14:54
daemontoolwell then at least uses virtualenv for new  tasks14:54
gahanI cloned stable/liberty as I was told and still getting warning about depreceations in mitaka14:54
daemontooldid you install freezer-web-ui_14:55
daemontool?14:55
daemontoolalready?14:55
gahanapi, client, and webui14:55
daemontoolso remove them14:55
gahanI did14:55
daemontooland reinstall them in a virtualenv14:55
daemontooland install all the requirements.txt from the venv14:56
gahanhow bout old containers in object store?14:57
gahanI can't get rid of these through UI14:57
daemontoolswift delete container_name14:58
jokke_daemontool: \o14:58
daemontooljokke_,  o/14:58
*** yuval has quit IRC14:59
gahandaemontool: that seems to be doing something. as I'm already using lxc containers in deployment do you suggest I create one and for API? I still have to install freezer-web-ui in the same container as openstack-dashboard though, isn't that right?14:59
daemontoolyes you should install freezer-web-ui in the same container as horizon15:01
gahan`pip2 list` lists freezer and freezer-web-ui but refuses to remove them [No files were found to uninstall]15:02
gahanshall I manually remove files from /usr/local/lib/python2.7/dist-packages/ ?15:03
m3m0yes, please, that what pip does,15:07
*** daemontool_ has joined #openstack-freezer15:09
gahanthanks15:09
*** daemontool has quit IRC15:10
*** daemontool_ has quit IRC15:11
*** daemontool__ has joined #openstack-freezer15:11
*** zengchen has quit IRC15:12
daemontool__gahan: pip freeze | grep freezer15:13
gahanpython is throwing exception15:14
yangyapengpip search freezer ?15:15
m3m0which exception?15:15
gahanTraceback (most recent call last):15:16
gahan  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main15:16
gahan    status = self.run(options, args)15:16
gahan  File "/usr/lib/python2.7/dist-packages/pip/commands/freeze.py", line 74, in run15:16
gahan    req = pip.FrozenRequirement.from_dist(dist, dependency_links, find_tags=find_tags)15:16
gahan  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 286, in from_dist15:16
gahan    assert len(specs) == 1 and specs[0][0] == '=='15:16
gahanAssertionError15:16
*** ksmutthu has joined #openstack-freezer15:23
*** ksmutthu has quit IRC15:24
*** EinstCrazy has quit IRC15:28
*** EinstCrazy has joined #openstack-freezer15:29
*** EinstCrazy has quit IRC15:29
*** openstackgerrit has quit IRC15:33
*** openstackgerrit has joined #openstack-freezer15:34
gahandaemontool__: installed all in container and now I can't even pull freezer-api --help and it still binds to localhost only even when I specifically try different address in /etc/freezer-api.conf15:35
yangyapenghello  gahan15:38
gahanhello15:38
openstackgerritMerged openstack/freezer-api: fix typo in jobs.py  https://review.openstack.org/32340115:38
yangyapengif you  have a freezer user in keystone15:38
yangyapeng1. create a freezer user in keystone  2. install  elasticsearch 3. config freezer-api.conf 4. init sql15:40
gahanok all 4 done15:40
gahannow freezer-api --help gives socket.gaierror: [Errno -2] Name or service not known15:40
gahanamongst many other lines15:40
gahanwhen starting, there's a deprececation warning about Mitaka even though my branch is stable/liberty15:41
openstackgerritMemo Garcia proposed openstack/python-freezerclient: Fixed client creation when no os_backup_url is given  https://review.openstack.org/32345615:41
yangyapengkeystone user-create --name freezer --pass FREEZER_PWD15:43
yangyapengkeystone user-role-add --user freezer --tenant service --role admin15:43
yangyapengkeystone service-create --name freezer --type backup \ --description "Freezer Backup Service”15:43
yangyapengkeystone endpoint-create  --service-id $(keystone service-list | awk '/ backup / {print $2}') \15:43
yangyapeng --publicurl http://172.16.20.16:9090\15:43
yangyapeng --internalurl http://172.16.20.16:9090\15:43
yangyapeng --adminurl http://172.16.20.16:9090\ --region regionOne15:43
gahandid that15:43
yangyapengit is done ?15:43
gahan1,2,3,4 are done15:43
gahanI may just need to recreate the endpoint as IP has changed after moving inside lxc15:44
gahanbut I can't see the point if it won't bind anyway to any other address than localhost15:44
gahanis it keystone not allowing it?15:45
gahan$ keystone endpoint-create --service-id $(keystone service-list | awk '/ backup / {print $2}') --publicurl http://10.1.1.110:9090 --internalurl http://10.1.1.110:9090 --adminurl http://10.1.1.110:9090 --region office15:48
gahanbind_host = 10.1.1.11015:48
gahan2016-05-31 15:47:57,894 root INFO Server listening on 127.0.0.1:909015:49
*** yangyapeng has quit IRC15:50
*** yangyapeng has joined #openstack-freezer15:50
yangyapengi am disconneted just now.15:51
*** saggi has quit IRC16:04
*** yangyapeng has quit IRC16:07
openstackgerritMerged openstack/freezer-api: Don't check for content-type in requests  https://review.openstack.org/32055516:51
*** yangyapeng has joined #openstack-freezer17:07
*** yangyapeng has quit IRC17:12
openstackgerritSaad Zaher proposed openstack/freezer-api: Move to Paste and Paste-deploy  https://review.openstack.org/32096417:18
openstackgerritSaad Zaher proposed openstack/freezer-api: Move to Paste and Paste-deploy  https://review.openstack.org/32096417:19
openstackgerritSaad Zaher proposed openstack/freezer-api: Move to Paste and Paste-deploy  https://review.openstack.org/32096417:20
*** lpetrut has joined #openstack-freezer17:30
*** daemontool__ has quit IRC17:54
*** daemontool has joined #openstack-freezer17:55
*** electrofelix has quit IRC18:12
openstackgerritClenimar Filemon proposed openstack/freezer: Switch to keystoneauth  https://review.openstack.org/32352518:29
openstackgerritOpenStack Proposal Bot proposed openstack/freezer-api: Updated from global requirements  https://review.openstack.org/28869918:50
*** yangyapeng has joined #openstack-freezer19:09
*** yangyapeng has quit IRC19:14
*** daemontool has quit IRC19:38
*** lpetrut has quit IRC19:53
*** daemontool has joined #openstack-freezer20:15
*** daemontool_ has joined #openstack-freezer20:31
*** daemontool has quit IRC20:33
*** daemontool_ has quit IRC21:02

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