| *** yangyapeng has joined #openstack-freezer | 01:19 | |
| *** yangyapeng has quit IRC | 01:20 | |
| *** yangyapeng has joined #openstack-freezer | 01:20 | |
| *** yangyapeng has quit IRC | 01:20 | |
| *** yangyapeng has joined #openstack-freezer | 01:21 | |
| *** EinstCrazy has joined #openstack-freezer | 01:33 | |
| *** zhonghua-lee has joined #openstack-freezer | 02:59 | |
| openstackgerrit | yapeng Yang proposed openstack/freezer: backup cinder_by_glance to local https://review.openstack.org/315085 | 03:21 |
|---|---|---|
| openstackgerrit | yapeng Yang proposed openstack/freezer: Delete Invalid variable https://review.openstack.org/323644 | 03:33 |
| openstackgerrit | yapeng Yang proposed openstack/freezer: backup cinder_by_glance to local https://review.openstack.org/315085 | 04:46 |
| *** EinstCrazy has quit IRC | 05:00 | |
| *** yangyapeng has quit IRC | 05:02 | |
| *** EinstCrazy has joined #openstack-freezer | 05:09 | |
| *** lpetrut has joined #openstack-freezer | 05:35 | |
| *** yangyapeng has joined #openstack-freezer | 06:01 | |
| *** yangyape_ has joined #openstack-freezer | 06:01 | |
| *** yangyapeng has quit IRC | 06:06 | |
| *** yangyape_ has quit IRC | 06:10 | |
| *** lpetrut has quit IRC | 06:25 | |
| *** EinstCrazy has quit IRC | 06:25 | |
| *** yangyapeng has joined #openstack-freezer | 06:32 | |
| *** yuval has joined #openstack-freezer | 06:39 | |
| *** EinstCrazy has joined #openstack-freezer | 06:42 | |
| *** lpetrut has joined #openstack-freezer | 06:48 | |
| *** lpetrut has quit IRC | 07:17 | |
| *** yangyapeng has quit IRC | 07:34 | |
| *** yangyape_ has joined #openstack-freezer | 07:34 | |
| *** samuelBartel has joined #openstack-freezer | 07:36 | |
| *** daemontool_ has joined #openstack-freezer | 07:42 | |
| *** kelepirci has joined #openstack-freezer | 08:27 | |
| kelepirci | hello all | 08:28 |
| yangyape_ | kelepirci: hi | 08:28 |
| kelepirci | it has been a while since my last visit to the channel. how are you guys doing? | 08:28 |
| *** electrofelix has joined #openstack-freezer | 08:36 | |
| *** daemontool_ has quit IRC | 08:58 | |
| *** daemontool has joined #openstack-freezer | 08:59 | |
| *** lpetrut has joined #openstack-freezer | 09:00 | |
| *** daemontool has quit IRC | 09:11 | |
| *** daemontool_ has joined #openstack-freezer | 09:11 | |
| openstackgerrit | Memo Garcia proposed openstack/python-freezerclient: Fixed client creation when no os_backup_url is given https://review.openstack.org/323456 | 09:25 |
| szaher | guys can we merge this one https://review.openstack.org/#/c/320964 | 09:50 |
| *** daemontool_ has quit IRC | 10:00 | |
| *** yangyapeng has joined #openstack-freezer | 10:01 | |
| *** yangyapeng has quit IRC | 10:01 | |
| *** EinstCrazy has quit IRC | 10:03 | |
| *** yangyape_ has quit IRC | 10:04 | |
| m3m0 | guys can we merge this one https://review.openstack.org/#/c/323456/ | 10:06 |
| gahan | Just tried both stable/liberty and stable/mitaka in virtualenv and both returned me an error: No handlers could be found for logger "elasticsearch.trace" (...) File "/usr/local/lib/python2.7/dist-packages/falcon/api.py", line 601, in _get_body \n body = body.encode('utf-8') \n AttributeError: 'dict' object has no attribute 'encode' | 10:10 |
| gahan | When trying to access the webui. I got further with latest master branch but couldn't create any jobs/actions. | 10:12 |
| gahan | Any workaround for api failure? | 10:12 |
| gahan | or - is there a branch of freezer-api that you'd recommend? | 10:14 |
| szaher | gahan: Hi, Can you show me the content of this file in that case freezer_api/api/common/middleware.py | 10:14 |
| szaher | plz paste it here http://paste.openstack.org | 10:14 |
| gahan | szaher: http://paste.openstack.org/show/506877/ | 10:16 |
| gahan | I'm simply running it using 'freezer-api' command, not wsgi | 10:16 |
| gahan | (tried both, same error) | 10:16 |
| openstackgerrit | Memo Garcia proposed openstack/python-freezerclient: Fixed client creation when no os_backup_url is given https://review.openstack.org/323456 | 10:20 |
| szaher | gahan: the problem is falcon upgraded their framework this deprecated some code we are using in freezer | 10:21 |
| *** zhonghua has joined #openstack-freezer | 10:22 | |
| gahan | szaher: can I downgrade falcon somehow? | 10:22 |
| szaher | that patch solved the problem upstream | 10:22 |
| szaher | https://review.openstack.org/#/c/316808/6 | 10:22 |
| szaher | I am not sure if you will be able to backport it | 10:22 |
| szaher | because it was after we move to oslo config so you need to backport a lot of stuff ! | 10:23 |
| gahan | can I use latest branch with openstack liberty? | 10:23 |
| gahan | or any other branch? | 10:23 |
| szaher | You can try to force pip to install falcon lower version from the one you have and try again | 10:23 |
| *** samuelBartel has quit IRC | 10:23 | |
| szaher | I am not sure of using the master with liberty and mitaka you can try and let us know | 10:24 |
| *** zhonghua-lee has quit IRC | 10:25 | |
| gahan | I did yesterday and came across ``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:'' which you are aware of I believe. | 10:26 |
| gahan | downgraded to 0.3.0 | 10:29 |
| gahan | now API seems fine, I've ran into problems on the other side | 10:31 |
| gahan | I can see getting 200 OK in API and apache2/dashboard but trying any action ie. "+Create Job" all I get is "Loading" | 10:40 |
| openstackgerrit | Merged openstack/freezer-api: Move to Paste and Paste-deploy https://review.openstack.org/320964 | 10:41 |
| szaher | gahan: paste the logs plz | 10:41 |
| gahan | szaher: logs from where? API? apache2/dashboard? | 10:41 |
| szaher | api | 10:41 |
| gahan | 2016-06-01 10:41:01,146 elasticsearch INFO GET http://localhost:9200/freezer/clients/_search?from=0&size=500 [status:200 request:0.003s] | 10:42 |
| gahan | 10.1.1.143 - - [01/Jun/2016 10:41:01] "GET /v1/clients/?limit=500&offset=0 HTTP/1.1" 200 15 | 10:42 |
| szaher | complete log plz on paste.open.. | 10:42 |
| gahan | szaher: http://paste.openstack.org/show/506896/ | 10:44 |
| gahan | not sure why it mentions mitaka, git checkout tells me it's liberty | 10:44 |
| szaher | I am not sure if you install the correct requirements.txt | 10:45 |
| szaher | did you run freezer-db-init ? | 10:45 |
| gahan | I did it like 3 times today | 10:46 |
| gahan | starting in a new container every timne | 10:46 |
| gahan | I did run | 10:46 |
| gahan | freezer/backups MATCHES | 10:46 |
| gahan | freezer/clients MATCHES | 10:46 |
| gahan | freezer/jobs MATCHES | 10:46 |
| gahan | Number of replicas matches. Current value is 2 | 10:46 |
| szaher | run: pip freeze | 10:47 |
| szaher | make sure the requirements you have in requirements.txt match what you get from pip freeze | 10:47 |
| gahan | installed versions are mostly newer | 10:48 |
| gahan | http://paste.openstack.org/show/506898/ | 10:49 |
| gahan | falcon is 0.3.0 | 10:50 |
| gahan | missed it | 10:50 |
| szaher | you have to stick to requirements.txt otherwise behaviour is not guaranteed | 10:50 |
| gahan | downgrade all? | 10:50 |
| gahan | I didn't specify --upgrade when running pip install -r requirements.txt | 10:51 |
| gahan | it's pip's behaviour | 10:51 |
| szaher | gahan: you installed freezer with mitaka for example then changed the repo to liberty and trying to run it ! | 10:51 |
| gahan | szaher: I did not. I destroyed container, created a new one, a git clone -b stable/liberty .... | 10:52 |
| m3m0 | szaher: ImportError: No module named oslo_middleware | 10:52 |
| gahan | try it yourself | 10:52 |
| szaher | for installing freezer liberty version you have to git clone, git checkout liberty, then install ! | 10:52 |
| m3m0 | which version are we using? | 10:52 |
| gahan | szaher: the warning about mitaka you're seeing comes from keystonemiddleware. I've got 4.5.1, there's no capping in your requirements.txt | 10:57 |
| gahan | if I only knew it can't be <X.X.X I could install it right now and proceed | 10:58 |
| gahan | >X.X.X pardon | 10:58 |
| gahan | you could add capping to requirements.txt so pip would know what to do in these circumstances | 10:59 |
| gahan | just a suggestion | 10:59 |
| openstackgerrit | Memo Garcia proposed openstack/python-freezerclient: Enforce content-type in request headers https://review.openstack.org/323793 | 11:00 |
| szaher | gahan: I was trying to test freezer-api liberty version and it seems to be working with no issues with | 11:01 |
| szaher | me | 11:01 |
| szaher | what I did was | 11:01 |
| szaher | virtualenv freezer_api_liberty | 11:02 |
| szaher | cd freezer_api_liberty | 11:02 |
| szaher | source bin/activate | 11:02 |
| szaher | git clone https://github.com/openstack/freezer-api | 11:02 |
| szaher | cd freezer-api | 11:02 |
| szaher | git checkout origin/stable/liberty | 11:02 |
| szaher | pip install -r requirements.txt | 11:02 |
| szaher | python setup.py install | 11:02 |
| szaher | freezer-api 0.0.0.0 | 11:03 |
| m3m0 | pip install -e . after cd freezer-api is better :) | 11:03 |
| szaher | I got the same mitaka warning but everything is working fine | 11:04 |
| szaher | m3m0: can you help gahan | 11:04 |
| gahan | I'm usng lxc not virtualenv | 11:04 |
| gahan | I never ran source bin/activate | 11:05 |
| gahan | not sure what that is | 11:05 |
| gahan | but other than that I did exactly same as you | 11:05 |
| gahan | now I'm downgrading requirements according to requirements.txt | 11:06 |
| gahan | well let's try virtualenv instead of lxc | 11:07 |
| m3m0 | so, do you have a container for freezer-api right? | 11:07 |
| gahan | yeah | 11:07 |
| m3m0 | in that container, what you should do, is to clone directly the branch you want to install | 11:08 |
| gahan | I did | 11:08 |
| m3m0 | git clone -b mitaka https://github.com/openstack/freezer-api | 11:08 |
| m3m0 | or stable/mitaka | 11:08 |
| m3m0 | don't remember which one :P | 11:08 |
| m3m0 | once is there | 11:09 |
| gahan | I did that | 11:09 |
| m3m0 | pip install -e freezer-api | 11:09 |
| m3m0 | this should install the requirenments and freezer-api | 11:09 |
| m3m0 | did that? | 11:09 |
| gahan | after downgrading python packages according to requirements.txt it wont start anymore | 11:10 |
| gahan | Unable to start server: 'API' object has no attribute 'add_error_handler' | 11:10 |
| gahan | I'll destroy the container and run above. | 11:11 |
| m3m0 | is there a way you can rebuild the container before installing the requirenments? | 11:11 |
| gahan | yeah 3 minuets | 11:11 |
| m3m0 | thanks, are you using zfs for lcx? | 11:11 |
| m3m0 | lxc? | 11:11 |
| gahan | lxc | 11:11 |
| gahan | I'm creating the container through juju internal gui so it reflects the template that shipped with autopilot | 11:12 |
| gahan | ok, so far | 11:13 |
| gahan | 1 git clone -b liberty https://github.com/openstack/freezer-api | 11:13 |
| gahan | 2 apt install -y git | 11:13 |
| gahan | 3 git clone -b liberty https://github.com/openstack/freezer-api | 11:13 |
| gahan | 4 git clone -b stable/liberty https://github.com/openstack/freezer-api | 11:13 |
| gahan | I've no pip installed. do you want me to do apt install python-dev and easy_install pip or apt install python-pip ? | 11:13 |
| m3m0 | apt-install python-pip please | 11:14 |
| gahan | what about elasticsearch, can I use latest stable 2.3.0 ? | 11:14 |
| gahan | and Java 8 from Oracle? | 11:14 |
| m3m0 | no, use 1.7.5 | 11:15 |
| gahan | ok | 11:15 |
| m3m0 | I'll recommend openjdk | 11:15 |
| gahan | ok, I'm on elastic.co but 1.7.5 is not exactly listed | 11:16 |
| m3m0 | I have never use java for this I always ose openjdk | 11:16 |
| m3m0 | https://www.elastic.co/downloads/past-releases/elasticsearch-1-7-5 | 11:17 |
| gahan | pip install -e freezer-api an error, Python.h is missing. I shall install python-dev then too | 11:17 |
| m3m0 | apt-get install openjdk-7-jre | 11:17 |
| m3m0 | mmmm yes :) | 11:17 |
| m3m0 | sorry for missing that part | 11:17 |
| gahan | it's cool | 11:18 |
| gahan | so I re-run pip install -e freezer-api after installing python-dev and openjdk-7-jre, elasticsearch is running | 11:20 |
| m3m0 | service elasticsearch start | 11:20 |
| gahan | since container has the same IP keystone details should be fine | 11:21 |
| gahan | yep | 11:21 |
| m3m0 | freezer-db-init [db-host] | 11:21 |
| m3m0 | wait wait | 11:21 |
| m3m0 | follow this step: https://github.com/openstack/freezer-api/tree/stable/liberty#13-edit-config-file | 11:21 |
| m3m0 | edit that file accordingly | 11:21 |
| gahan | okay | 11:21 |
| gahan | db-ini9t done | 11:23 |
| gahan | file edited and placed in /etc | 11:23 |
| gahan | pip install -e freezer-api must have failed ImportError: No module named wrapt | 11:24 |
| gahan | or it's not listed | 11:24 |
| m3m0 | if you type pwd what you get? | 11:25 |
| gahan | /root | 11:25 |
| m3m0 | and freezer-api is on /root/freezer-api ? | 11:26 |
| gahan | yes | 11:26 |
| gahan | not sure why that module is missing | 11:27 |
| m3m0 | try: pip install wrapt>=1.7 | 11:27 |
| gahan | could be because python-dev was installed after it ran once? | 11:27 |
| gahan | k | 11:27 |
| m3m0 | no, it shouldn't be a problem | 11:27 |
| gahan | ok it's running | 11:27 |
| m3m0 | did you create the mappings with db-init right? | 11:28 |
| gahan | yeah | 11:28 |
| m3m0 | mmmkey :) | 11:28 |
| gahan | after creating /etc/freezer-api.conf | 11:28 |
| m3m0 | curl http://host:9090 what do you get? | 11:29 |
| gahan | {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} | 11:29 |
| m3m0 | yep :) | 11:29 |
| m3m0 | and curl http://host:9200/freezer/jobs/_search | 11:30 |
| gahan | {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} | 11:30 |
| m3m0 | with the port 9200 ? | 11:30 |
| gahan | oops | 11:30 |
| gahan | {"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]} | 11:31 |
| gahan | sorry missed that | 11:31 |
| m3m0 | your api is ready sir/madame :) | 11:31 |
| gahan | I know it looks nice but from dashboard 'unable to get job' | 11:31 |
| m3m0 | we can fix that | 11:32 |
| m3m0 | but could you give me some time is my lunch break :) | 11:32 |
| m3m0 | I need to eat | 11:32 |
| gahan | cool | 11:32 |
| gahan | enjoy your meal | 11:32 |
| gahan | lunch here too .o/ | 11:32 |
| m3m0 | I'll ping you when I'm back | 11:33 |
| gahan | cool, thanks | 11:35 |
| *** openstackgerrit has quit IRC | 12:18 | |
| *** openstackgerrit has joined #openstack-freezer | 12:18 | |
| *** samuelBartel has joined #openstack-freezer | 12:28 | |
| * gahan is back | 12:36 | |
| m3m0 | gahan: sup | 12:39 |
| gahan | okay | 12:39 |
| gahan | webui next? | 12:39 |
| m3m0 | could you get the horizon logs? | 12:39 |
| m3m0 | sure | 12:39 |
| gahan | git clone -b stable/liberty https://github.com/openstack/freezer.git | 12:40 |
| gahan | git clone -b stable/liberty https://github.com/openstack/freezer-web-ui.git | 12:40 |
| gahan | pip -e freezer ? | 12:40 |
| gahan | pip install... | 12:40 |
| gahan | I have a clean dashboard atm and no client | 12:41 |
| gahan | but I think some previously installed python dependencies are still in /usr/local/lib/python2.7/dist-packages | 12:41 |
| m3m0 | yeah, and the ui should be installed as well | 12:43 |
| m3m0 | did you do the api registration? | 12:44 |
| m3m0 | https://github.com/openstack/freezer-api/tree/stable/liberty#4-api-registration | 12:44 |
| gahan | yeah keystone stuff is done | 12:44 |
| m3m0 | ok | 12:44 |
| m3m0 | where is horizon installed? /ops/stack? | 12:45 |
| gahan | /usr/share/openstack-dashboard/ | 12:45 |
| m3m0 | cp freezer-web-ui/disaster_recovery/enabled/_5050_freezer.py /opt/stack/horizon/openstack_dashboard/enabled/_5050_freezer.py | 12:46 |
| m3m0 | just replace the second path | 12:46 |
| gahan | yep okay | 12:46 |
| m3m0 | and be sure to be in the freezer-web-ui repo | 12:46 |
| m3m0 | and then restart apache | 12:46 |
| m3m0 | and after that restart apache | 12:47 |
| gahan | So I get 500 now | 12:48 |
| gahan | for dashboard | 12:48 |
| gahan | http://paste.openstack.org/show/506937/ | 12:50 |
| gahan | scroll to the bottom for the apache2 logs | 12:50 |
| gahan | should I run pip install -e freezer-web-ui to install distaster_recovery ? | 12:51 |
| m3m0 | yes as well plase | 12:52 |
| gahan | same thing | 12:52 |
| m3m0 | and try again with apache | 12:52 |
| m3m0 | horizon is in its own lxc right? | 12:53 |
| gahan | http://paste.openstack.org/show/506938/ | 12:54 |
| gahan | yeah | 12:54 |
| gahan | /usr/local/lib/python2.7/dist-packages/distaster_recovery doesn't exist | 12:54 |
| gahan | so I ran python setup.py install in freezer-web-ui instad | 12:55 |
| m3m0 | sure, let's try that | 12:55 |
| gahan | http://paste.openstack.org/show/506939/ | 12:56 |
| gahan | guess I have to do the same in freezer directory? | 12:57 |
| m3m0 | yes :) | 12:57 |
| gahan | okay done | 12:57 |
| m3m0 | works? | 12:58 |
| gahan | Error: unable to get job | 12:58 |
| gahan | I've got the menu item | 12:58 |
| m3m0 | ok, what the logs says? | 12:58 |
| gahan | [Wed Jun 01 12:57:53.632460 2016] [:error] [pid 38628:tid 140196367451904] WARNING:disaster_recovery.api.api:Could no get FREEZER_API_URL from config or Keystone | 12:59 |
| gahan | [Wed Jun 01 12:57:53.632565 2016] [:error] [pid 38628:tid 140196367451904] ERROR:disaster_recovery.utils:interface | 12:59 |
| gahan | [Wed Jun 01 12:57:53.633219 2016] [:error] [pid 38628:tid 140196367451904] Recoverable error: 'interface' | 12:59 |
| gahan | before I didn't have to hardcode it | 12:59 |
| gahan | so I'll add FREEZER_API_URL to /etc/openstack-dashboard/local_settings.py | 12:59 |
| gahan | FREEZER_API_URL = 'http://10.1.1.150:9090' | 12:59 |
| gahan | is that form correct? or /v1/ ? | 13:00 |
| gahan | different quotation marks? | 13:00 |
| m3m0 | FREEZER_API_URL = 'http://10.1.1.150:9090' this one should work | 13:01 |
| m3m0 | wondering why didn't get the info from keystone | 13:01 |
| m3m0 | openstack user create --password-prompt freezer | 13:01 |
| m3m0 | openstack role add --project <tenant> --user freezer admin | 13:01 |
| m3m0 | openstack service create --name freezer --description "Freezer Backup Service" backup | 13:01 |
| m3m0 | openstack endpoint create \ | 13:01 |
| m3m0 | --publicurl http://freezer_api_publicurl:port \ | 13:01 |
| m3m0 | --internalurl http://freezer_api_internalurl:port \ | 13:01 |
| m3m0 | --adminurl http://freezer_api_adminurl:port \ | 13:01 |
| m3m0 | --region regionOne \ | 13:01 |
| m3m0 | backup | 13:01 |
| m3m0 | we can try this later but first the local_settings | 13:01 |
| gahan | for me it's keystone ... | 13:01 |
| gahan | and I still have the copy of wjhat I typed | 13:01 |
| m3m0 | yes, is the same, just keystone is deprecated in favor of openstack | 13:01 |
| gahan | so it's hitting the api | 13:03 |
| gahan | [Wed Jun 01 13:02:02.564075 2016] [:error] [pid 38824:tid 140003451848448] WARNING:disaster_recovery.api.api:Using hardcoded FREEZER_API_URL: http://10.1.1.150:9090 | 13:03 |
| gahan | [Wed Jun 01 13:02:02.718306 2016] [:error] [pid 38824:tid 140003451848448] ERROR:disaster_recovery.utils:[*] Error 500: A server error occurred. Please contact the administrator. | 13:03 |
| gahan | [Wed Jun 01 13:02:02.719060 2016] [:error] [pid 38824:tid 140003451848448] Recoverable error: [*] Error 500: A server error occurred. Please contact the administrator. | 13:03 |
| gahan | [Wed Jun 01 13:02:04.376602 2016] [:error] [pid 38825:tid 140003527382784] WARNING:py.warnings:RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in Django 1.9. Use the default `url` tag instead. | 13:03 |
| gahan | API has a prettier log, paste.openstack... | 13:03 |
| gahan | http://paste.openstack.org/show/506941/ | 13:04 |
| gahan | anything I can install on the API container to help it through? | 13:06 |
| m3m0 | which version of falcon are you running in the api? | 13:07 |
| gahan | 1.0.0 | 13:09 |
| gahan | downgrade to? | 13:09 |
| gahan | 0.1.6? | 13:10 |
| m3m0 | yes please | 13:10 |
| gahan | so I did and it won't start now | 13:11 |
| gahan | Unable to start server: 'API' object has no attribute 'add_error_handler' | 13:11 |
| gahan | I tried 0.3.0 and it's up | 13:11 |
| m3m0 | ok, do you get the same error "unable to get jobs" | 13:12 |
| gahan | nope I can go inti jobs | 13:12 |
| m3m0 | :) | 13:12 |
| gahan | 10.1.1.143 - - [01/Jun/2016 13:10:53] "GET /v1/jobs/?limit=100&offset=0 HTTP/1.1" 200 12 | 13:12 |
| gahan | Create Job: 10.1.1.143 - - [01/Jun/2016 13:11:22] "GET /v1/clients/?limit=500&offset=0 HTTP/1.1" 200 15 | 13:12 |
| gahan | but it is just Loading | 13:12 |
| gahan | and apache2 logs says | 13:12 |
| gahan | [Wed Jun 01 13:11:23.362824 2016] [:error] [pid 38825:tid 140003527382784] WARNING:py.warnings:RemovedInDjango19Warning: `request.REQUEST` is deprecated, use `request.GET` or `request.POST` instead. | 13:12 |
| gahan | [Wed Jun 01 13:11:23.363030 2016] [:error] [pid 38825:tid 140003527382784] WARNING:py.warnings:RemovedInDjango19Warning: `MergeDict` is deprecated, use `dict.update()` instead. | 13:12 |
| gahan | [Wed Jun 01 13:11:23.369793 2016] [:error] [pid 38825:tid 140003527382784] WARNING:disaster_recovery.api.api:Using hardcoded FREEZER_API_URL: http://10.1.1.150:9090 | 13:13 |
| m3m0 | are you using chrome? | 13:13 |
| gahan | just warnings | 13:13 |
| gahan | yeah | 13:13 |
| gahan | pull up console? | 13:13 |
| m3m0 | could you check the developer tools (f12) | 13:13 |
| m3m0 | and check the network | 13:13 |
| m3m0 | you should reload I guess | 13:13 |
| gahan | I've got two red upon clicking the button | 13:13 |
| gahan | 404 | 13:13 |
| gahan | one is | 13:14 |
| gahan | The requested URL /static/freezer/js/vendor/moment.js was not found on this server. | 13:14 |
| m3m0 | yep, I know what it is | 13:14 |
| gahan | there's another red one bug has no preview and it is named bootstrap-datetimepicker... | 13:14 |
| gahan | npm install moment somewhere? | 13:15 |
| m3m0 | no no, should be provided by freezer-web-ui | 13:15 |
| m3m0 | I've seen this | 13:15 |
| m3m0 | the django path get's messed up | 13:15 |
| gahan | anyway to fix it? | 13:16 |
| gahan | can try newer ui | 13:16 |
| m3m0 | yes, we need to move the static file to a new path | 13:16 |
| gahan | ok | 13:16 |
| gahan | so the 404 is for Request URL:http://10.1.1.143/static/freezer/css/bootstrap-datetimepicker.min.css | 13:17 |
| gahan | and http://10.1.1.143/static/freezer/js/vendor/moment.js | 13:17 |
| m3m0 | yes, without them the page will never load | 13:17 |
| gahan | /usr/local/lib/python2.7/dist-packages/disaster_recovery/static/freezer | 13:18 |
| gahan | the files are in there | 13:18 |
| m3m0 | we need to move that folder where the static horizon files are, in the meantime I submit a patch to fix this | 13:18 |
| gahan | aha | 13:18 |
| openstackgerrit | Jonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test https://review.openstack.org/320591 | 13:19 |
| gahan | I have /usr/share/openstack-dashboard/static | 13:19 |
| gahan | so I'll just copy the dir over | 13:20 |
| m3m0 | could you: cp /usr/local/lib/python2.7/dist-packages/disaster_recovery/static/freezer /usr/share/openstack-dashboard/static | 13:20 |
| m3m0 | yes | 13:20 |
| gahan | done | 13:20 |
| gahan | now I have the little Job Configuration | 13:20 |
| m3m0 | you can see the modal window now? | 13:20 |
| gahan | yeah | 13:20 |
| m3m0 | ok, that should be the last bit | 13:20 |
| gahan | where do I start to make a sample backup of an instance? | 13:20 |
| gahan | do I create a client first or? | 13:21 |
| m3m0 | now, the client is freezer running in a host (container, vm, bare metal) | 13:25 |
| m3m0 | is an agent, so it needs to be installed | 13:25 |
| gahan | I'd like to have backups on a specific node (with biggest storage, which happens to be the same one that is running API) | 13:26 |
| m3m0 | do you mind reading this format? https://review.openstack.org/#/c/312694/7/doc/source/scheduler.rst | 13:27 |
| m3m0 | it's a patch will all the docs currently on review | 13:27 |
| gahan | that format is fine | 13:28 |
| gahan | can I install scheduler on the same host as API and expect that local path for the jobs will be then local path where scheduler is running? | 13:28 |
| m3m0 | yes, you can | 13:29 |
| m3m0 | you should check this as well: https://review.openstack.org/#/c/312694/7/doc/source/concepts.rst | 13:29 |
| gahan | I used freezer-agent before, that was easiest to start off with | 13:30 |
| openstackgerrit | OpenStack Proposal Bot proposed openstack/freezer: Updated from global requirements https://review.openstack.org/315055 | 13:47 |
| openstackgerrit | OpenStack Proposal Bot proposed openstack/freezer-api: Updated from global requirements https://review.openstack.org/288699 | 13:47 |
| gahan | m3m0: difficulties registering scheduler. what's the minimum amount of information it needs? | 14:00 |
| gahan | I exported all environment variables like in the example but register is just hanging | 14:01 |
| gahan | (freezer-scheduler register that is) | 14:01 |
| m3m0 | does it says anything? | 14:01 |
| gahan | nope just hanging | 14:01 |
| m3m0 | is it on the same lxc right? | 14:02 |
| gahan | yeah | 14:02 |
| gahan | http://paste.openstack.org/show/506961/ | 14:07 |
| gahan | exported OS_BACKUP_URL as well and it's also 503 | 14:07 |
| m3m0 | what happens if you do freezer-scheduler client-list | 14:09 |
| gahan | it hangs | 14:09 |
| gahan | should I ^C register first? | 14:09 |
| *** yangyapeng has joined #openstack-freezer | 14:09 | |
| gahan | I restarted the api | 14:09 |
| gahan | and did client-list | 14:09 |
| gahan | comes back empty table | 14:10 |
| gahan | with three columns, client_id, hostname, description | 14:10 |
| m3m0 | do the client-register again | 14:12 |
| gahan | it looks the same | 14:13 |
| gahan | just hanging | 14:13 |
| gahan | it's blocking Web UI as well | 14:14 |
| gahan | not all of it but the freezer part | 14:14 |
| gahan | should I try a newer client? | 14:15 |
| gahan | or should this work? | 14:15 |
| gahan | the ui is frozen until I press ctrl+c in API | 14:16 |
| gahan | I'd paste you the output in freezer-api after ctrl+c is pressed but paste.openstack.org is hanging for me | 14:18 |
| gahan | oh it's back | 14:19 |
| gahan | http://paste.openstack.org/show/506973/ | 14:20 |
| gahan | not sure if that helps at all | 14:21 |
| gahan | so without a client I can't really schedule anything, which would render web ui useless? | 14:28 |
| *** jonaspf has quit IRC | 15:01 | |
| *** jonaspf has joined #openstack-freezer | 15:02 | |
| gahan | m3m0: any ideas? | 15:02 |
| gahan | m3m0: I tried lastest branch in virtualenv but behaviour is the same | 15:02 |
| m3m0 | sorry I was in a meeting | 15:03 |
| m3m0 | let me read | 15:03 |
| *** yuval has quit IRC | 15:04 | |
| gahan | Can't create action either, elasticsearch WARNING PUT /freezer/actions/8de176060f54468db1aeef902adee956?version=0 [status:503 request:60.003s] | 15:30 |
| gahan | every time api when a post request fails | 15:31 |
| gahan | every time api *hangs* when a post request fails | 15:31 |
| openstackgerrit | Jonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test https://review.openstack.org/320591 | 15:32 |
| openstackgerrit | Jonas Pfannschmidt proposed openstack/freezer: Move docs from readme to docs/source and docs.openstack.org https://review.openstack.org/312694 | 15:49 |
| gahan | # freezerc --nova-inst-id b68fcf29-1c84-44af-b98b-ed86b02b9713 --file-to-backup /etc/bind --storage local --container . --backup-name zones_backup --action backup | 16:00 |
| gahan | [*] Critical Error: 'Namespace' object has no attribute 'client_manager' | 16:00 |
| gahan | is it impossible to locally backup a dir within an instance? | 16:00 |
| *** zhangjn has quit IRC | 16:17 | |
| *** zhangjn has joined #openstack-freezer | 16:19 | |
| *** samuelBartel has quit IRC | 16:42 | |
| *** zhangjn has quit IRC | 17:17 | |
| *** zhangjn has joined #openstack-freezer | 17:18 | |
| *** electrofelix has quit IRC | 17:39 | |
| *** zhangjn has quit IRC | 17:49 | |
| *** zhangjn has joined #openstack-freezer | 17:51 | |
| *** lpetrut has quit IRC | 18:28 | |
| *** lpetrut has joined #openstack-freezer | 18:30 | |
| *** lpetrut has quit IRC | 18:40 | |
| *** lpetrut has joined #openstack-freezer | 19:26 | |
| *** lpetrut has quit IRC | 20:08 | |
| *** lpetrut has joined #openstack-freezer | 20:27 | |
| *** lpetrut has quit IRC | 22:27 | |
| *** saggi1 has joined #openstack-freezer | 22:49 | |
| *** saggi1 has quit IRC | 22:49 | |
| *** ksmutthu has joined #openstack-freezer | 23:28 | |
| openstackgerrit | Clenimar Filemon proposed openstack/freezer-api: Request service token using identity v3 https://review.openstack.org/304742 | 23:51 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!