Thursday, 2016-07-21

*** zhurong has quit IRC00:01
*** yangyapeng has quit IRC00:11
*** zhusz has joined #openstack-freezer00:22
*** StraubTW has quit IRC00:27
*** ddieterly has joined #openstack-freezer00:57
*** ddieterly has quit IRC01:06
*** zhurong has joined #openstack-freezer01:11
*** yangyapeng has joined #openstack-freezer01:22
*** iceyao has joined #openstack-freezer01:37
*** yangyape_ has joined #openstack-freezer02:01
*** yangyapeng has quit IRC02:03
*** c00281451 has joined #openstack-freezer02:22
*** EinstCra_ has joined #openstack-freezer02:25
*** yangyapeng has joined #openstack-freezer02:27
*** yangyape_ has quit IRC02:27
*** EinstCrazy has quit IRC02:29
*** zhusz has quit IRC02:42
*** iceyao_ has joined #openstack-freezer02:44
*** iceyao has quit IRC02:46
*** yangyape_ has joined #openstack-freezer02:58
*** yangyapeng has quit IRC02:58
*** iceyao has joined #openstack-freezer03:15
*** StraubTW has joined #openstack-freezer03:17
*** EinstCra_ has quit IRC03:18
*** iceyao_ has quit IRC03:19
*** StraubTW has quit IRC03:21
*** EinstCrazy has joined #openstack-freezer03:24
*** clenimar has quit IRC03:28
*** clenimar has joined #openstack-freezer03:32
*** yangyape_ has quit IRC03:41
*** yangyapeng has joined #openstack-freezer03:42
*** clenimar has quit IRC04:04
*** clenimar has joined #openstack-freezer04:10
*** StraubTW has joined #openstack-freezer04:17
*** StraubTW has quit IRC04:23
*** michauds has joined #openstack-freezer05:05
*** lpetrut has joined #openstack-freezer05:06
*** michauds has quit IRC05:10
*** iceyao has quit IRC05:28
*** iceyao has joined #openstack-freezer05:32
*** iceyao has quit IRC05:34
*** EinstCrazy has quit IRC05:43
*** yangyapeng has quit IRC05:54
*** yangyapeng has joined #openstack-freezer05:56
*** lpetrut has quit IRC06:16
athinkingmeathi06:20
*** lpetrut has joined #openstack-freezer06:25
*** lpetrut has quit IRC06:45
yangyapenghi athinkingmeat07:09
athinkingmeatany suggestions on how to fix Freezer client error: Critical Error: 'FreezerConfig' object has no attribute 'client_manager' ? :) this started to happen after i've applied refs/changes/91/344691/1 to fix nova import problem07:12
yangyapengif you install swift?  stable/mitaka?07:13
yangyapengathinkingmeat:07:14
athinkingmeatstable/mitaka . swift is there, but i have set to use local path for backups :D should i work with swift?07:15
yangyapenghttps://review.openstack.org/#/c/303701/  athinkingmeat  I fix it in master07:19
yangyapengbackup fs to local ?07:19
athinkingmeatyangyapeng: i was trying to do nova to local.07:20
yangyapengi know. I have a path  to fix it  backup nova to local07:20
yangyapenghttps://review.openstack.org/#/c/315547/   and https://review.openstack.org/#/c/315085/07:21
yangyapengthis patch fix it to backup nova and cinder to local07:22
yangyapengit is unavaiable in master, but it need to have a try  in stable/mitaka.07:22
yangyapengathinkingmeat:07:22
yangyapengathinkingmeat:  can you have a try ?07:23
athinkingmeatyangyapeng: i can try, but you will have to help me to fetch refs from git :)07:23
yangyapengstep1   : git fetch https://git.openstack.org/openstack/freezer refs/changes/85/315085/7 && git checkout FETCH_HEAD07:24
yangyapengstep1 pacth to fix backup cinder to local.07:25
yangyapengstep2: git fetch https://git.openstack.org/openstack/freezer refs/changes/47/315547/1 && git checkout FETCH_HEAD07:25
yangyapengstep 2:  fix backup nova to local.07:25
yangyapengfreezer-agent --nova-inst-id 1983bb28-b962-4597-ab83-c7529594c1c507:26
yangyapeng--restore-from-date 2016-04-28T09:55:50 --storage local07:26
yangyapeng--container /home/nfs07:26
yangyapengusage:07:26
athinkingmeatok, thank you07:27
athinkingmeatssl certificate is self signed, probably it is the reason why i get this error https://www.irccloud.com/pastebin/kBXy70fJ/07:32
yangyapengit looks like ssl certificate07:36
yangyapengathinkingmeat:  Can you get the token ?   the command       openstack token issue07:36
athinkingmeati can get token with insecure flag https://www.irccloud.com/pastebin/Tqzi9qIy/07:37
yangyapengIt looks like a openssl problem07:43
athinkingmeatok, will try to replace cert with valid one07:44
*** saggi has joined #openstack-freezer07:50
*** zhusz has joined #openstack-freezer07:50
*** StraubTW has joined #openstack-freezer07:54
*** StraubTW has quit IRC07:59
*** zhanghao has joined #openstack-freezer07:59
*** szaher_ has joined #openstack-freezer08:33
*** lpetrut has joined #openstack-freezer08:49
*** clsacramento has quit IRC09:05
*** electrofelix has joined #openstack-freezer09:15
*** daemontool has joined #openstack-freezer09:39
*** daemontool_ has joined #openstack-freezer09:44
athinkingmeatyangyapeng: it worked with valid ssl certificate :)09:46
yangyapengathinkingmeat: :)09:46
*** daemontool has quit IRC09:47
openstackgerritSwapnil Kulkarni (coolsvap) proposed openstack/freezer: Remove discover from test-requirements  https://review.openstack.org/34529710:00
daemontool_yangyapeng, who are the engineers from Cloud99 with more contributions in Freezer? Including the pending reviews?10:01
*** zhurong has quit IRC10:02
yangyapengiceyao  Einst Crazy zhangjnan     :)10:05
openstackgerritSwapnil Kulkarni (coolsvap) proposed openstack/freezer-api: Remove discover from test-requirements  https://review.openstack.org/34530110:06
daemontool_yangyapeng,  in that order from more to less contribs?10:07
openstackgerritSwapnil Kulkarni (coolsvap) proposed openstack/freezer-web-ui: Remove discover from test-requirements  https://review.openstack.org/34530410:07
yangyapengdaemontool_:  yeah,10:09
yangyapengdaemontool_: include contribution the lenth of time later10:10
daemontool_yangyapeng, are you the first?10:11
daemontool_ok10:11
daemontool_ty10:11
yangyapengdaemontool_: :)10:11
*** yangyapeng has quit IRC10:18
*** yangyapeng has joined #openstack-freezer10:21
*** yangyapeng has quit IRC10:24
*** zhusz has quit IRC11:32
*** daemontool_ has quit IRC11:35
*** zhurong has joined #openstack-freezer11:37
*** daemontool_ has joined #openstack-freezer11:38
*** zhurong has quit IRC11:42
*** zhurong has joined #openstack-freezer11:43
daemontool_someone from ericsson should join the chan shortly to ask for some support on troubleshooting11:52
*** yangyapeng has joined #openstack-freezer11:53
*** yangyapeng has quit IRC11:53
*** yangyapeng has joined #openstack-freezer11:54
*** zhusz has joined #openstack-freezer11:58
*** zhusz_ has joined #openstack-freezer11:59
*** zhusz has left #openstack-freezer11:59
*** qwebirc30062 has joined #openstack-freezer12:01
*** daemontool__ has joined #openstack-freezer12:06
*** daemontool_ has quit IRC12:09
*** iceyao has joined #openstack-freezer12:28
athinkingmeatrestoring nova backup: [*] Critical Error: Multiple possible networks found, use a Network ID to be more specific. (HTTP 409) (Request-ID: req-51dfed45-6134-48a0-9b80-ffab180da85f)13:27
yangyapenghi athinkingmeat13:27
yangyapengthe patch fix it , but need you apply it . https://review.openstack.org/#/c/312430/13:27
yangyapengathinkingmeat:13:27
athinkingmeatyangyapeng: teach me how to find out refs please :)13:30
yangyapengathinkingmeat: git fetch https://git.openstack.org/openstack/freezer refs/changes/30/312430/12 && git checkout FETCH_HEAD13:31
yangyapengathinkingmeat:  but,  have you   apply my two patch  backup nova or cinder to local?13:32
yangyapengathinkingmeat:  so,May can't apply this directly path to fix mutiple network.13:33
athinkingmeatstatus after patching https://www.irccloud.com/pastebin/rdjgYB2R/13:35
yangyapengyeah  it is ok .13:38
yangyapengathinkingmeat:  if you restore nova,  increase the param  --nova-restore-network  NETWORK_ID13:39
yangyapengathinkingmeat:  prefix the network_id13:39
athinkingmeathttps://www.irccloud.com/pastebin/x9EHzStG/13:47
*** StraubTW has joined #openstack-freezer13:48
athinkingmeatprobably this is because i have set internalURL for the endpoint type13:48
athinkingmeati get this error now: https://www.irccloud.com/pastebin/YjnXyC19/13:56
*** EinstCrazy has joined #openstack-freezer13:58
yangyapengathinkingmeat: f240f5de-466e-4bf1-bcff-1a8280960a0e the network is invalid13:59
m3m0hello everyone, we have a meeting at #openstack-meeting-alt14:00
yangyapengathinkingmeat: the network_id is  correct?14:00
athinkingmeatyangyapeng: yeah, i can see it in openstack network list14:01
*** zhusz_ has quit IRC14:02
*** ddieterly has joined #openstack-freezer14:03
athinkingmeatyangyapeng: thank you for your time, i am going out now. will continue tomorrow :)14:04
yangyapengathinkingmeat:  ok  see you14:04
*** zhurong has quit IRC14:04
daemontool__shouldn't the freezer tab in horizon be under Projects like other services?14:07
*** ddieterly has quit IRC14:13
*** yangyape_ has joined #openstack-freezer14:16
*** daemontool__ is now known as daemontool14:16
*** ddieterly has joined #openstack-freezer14:19
*** yangyapeng has quit IRC14:19
*** EinstCrazy has quit IRC14:31
*** EinstCrazy has joined #openstack-freezer14:32
*** michauds has joined #openstack-freezer14:44
daemontoolm3m0, when you get the chance can you try14:56
daemontoolon deploying devstack master14:56
daemontoolwith freezer and try to create a new job from horizon?14:56
daemontooldoens't work here14:56
*** michauds has quit IRC14:57
m3m0any specific error you get?15:00
m3m0daemontool: ^^15:00
domhnallwdaemontool, I've been seeing some weird stuff here too.15:00
zhangjnKolla first15:00
*** yangyapeng has joined #openstack-freezer15:01
iceyao:)15:01
m3m0domhnallw: which ones?15:01
m3m0zhangjn: +2 :)15:02
*** yangyape_ has quit IRC15:02
*** Marcellin_ has joined #openstack-freezer15:02
zhangjniceyao: you can to do this BP.15:03
iceyaoyeah, I can do that15:03
zhangjn:)15:03
domhnallwm3m0, It's a bit hazy in my head as it was a few days ago, but IIRC from a fresh devstack install I'm seeing what look like some layout issues, and as well as that when I've tried to request lists of certain items, it was redirecting me to /identity.15:03
domhnallwI know I was thinking about raising a bug but I wanted to rule out that it was something not-so-clever in my setup :)15:04
m3m0if you can raise the bug we can work on it, let me ask the management if we can work on horizon or move the bug to the horizon team15:05
domhnallwSure.15:06
domhnallwI'll get to that maybe tomorrow.15:06
openstackgerrityapeng Yang proposed openstack/freezer: Increase the judgment of the state of the cinder volume  https://review.openstack.org/31855115:06
daemontooldomhnallw, ok thanks15:07
daemontoolm3m0,  when the create job button is clicked15:07
daemontoolnothing happen15:07
domhnallwdaemontool, I think that might be related to what I was seeing.15:07
*** saggi has quit IRC15:07
domhnallwThe network activity logs in the browsers I tried were... odd.15:07
m3m0do you have any example of those logs?15:08
daemontoolyes but there-s nothing15:08
daemontoolok15:09
m3m0and for the network logs?15:09
daemontoolhave to check15:09
daemontoolfreezer client-list retrurn None15:10
domhnallwOne sec.15:10
yangyapengshould have a auto regist client to freezer-api15:11
daemontoolquite cool the freezer cli15:11
daemontool:)15:11
daemontoolbtw did you try the remote console from horizon for a VM? impressive :)15:12
slashmedaemontool: ??15:13
slashmeDaemontool: the NoVNC console ?15:13
daemontoolyes, if you start a vm, click on the vm details, console15:14
domhnallwm3m0, I'm having difficulty replicating it right now because I have jobs and actions to browse, but beforehand requests to (for example) http://my_devstack_host/dashboard/disaster_recovery/jobs would return a 302 Found and redirect me to /dashboard/identity instead. Now that I have jobs, it doesn't do that.15:14
daemontoolyou have a remote qemu console15:14
slashmeHmm, something new in the console ? It's been present since forever.15:15
daemontoolnever saw it15:16
slashmeIt's especialy usefull with windows VM ;)15:17
*** szaher_ has quit IRC15:18
yangyapengdomhnallw: my question is different from you,  I create action , but when I create a job, that con not join in the job  action15:18
yangyapengerror getting action list15:18
domhnallwyangyapeng, yes, I'm getting that too when there are no actions assigned to the user I've logged in as.15:19
domhnallwIf there are actions logged, then it seems to want to work, at least here.15:20
*** EinstCrazy has quit IRC15:20
domhnallwThe layout on the pages is strange looking in some cases; for example, when you look at the jobs page and haven't clicked on a job to show its actions, then the little TWBS toolbar at the top of the actions list is being hidden and the action list gets pulled upward by the height of the toolbar pulling it out of line with the jobs list.15:22
domhnallwThat thing of hiding the button toolbar on the right-hand pane is happening in a couple of places and throwing off the alignment of the left and right panes (for example, on the jobs page, left pane = jobs list, right pane = actions list)15:23
yangyapengyeah15:25
*** StraubTW_ has joined #openstack-freezer15:28
domhnallwSpecifically, it's the <caption> tag for the relevant table, e.g. the actions_in_job table on the job list page.15:28
domhnallwyangyapeng, just in case, you know that the UI will only show jobs, actions etc. that are issued through the API?15:30
domhnallwThe command-line tools won't necessary touch the API so they won't appear in the Horizon plugin either.15:30
*** szaher_ has joined #openstack-freezer15:30
*** StraubTW has quit IRC15:30
domhnallwThis behaviour is intentional.15:30
*** StraubTW_ has quit IRC15:31
yangyapengbut , I use the    curl  command  create job , it is ok, and  it is through the api.15:32
domhnallwYep, that *should* be fine.15:32
domhnallwIt was in case you were using the agent, for example.15:33
yangyapengcurl -s -H "X-Auth-Token: gAAAAABXgFgCniNhNu5wbJOIXGiuDXeBrYXaVxiY_P2c186xXHxKdi_CDtn0JJa5ZeKmH5karIDfZAJdVCzAE-YxcRlPa3_TgWmJP6rI3ixY4Smc3NuD-3DPyWj4X7uIs7jssktRBXd5WmjdTM-JQ1uAhVbnlBRslseLCndEMXiEc72tvcWK_C4" -X POST -H "Content-type: application/json" -d '{"client_id": "e1b7f9b499224fccbd5e9755b36cb186_freezer", "description": "freezer  backup nova-81", "job_actions": [{"fullbackup_dayofweek”: "1", "mandatory": true, "m15:33
yangyapengax_retries": 5, "max_retries_interval": 60, "freezer_action": {"action": "backup", "cindernative_vol_id": "cf19a93f-b272-44fa-89db-18664658a00e", "backup_level": "incremental"}}], "job_schedule": {"schedule_interval": "1 days”, "schedule_start_date": "2016-07-03T10:38:00"}}' http://172.16.40.240:9090/v1/jobs15:34
yangyapengIt is ok .it shoud be fine15:34
yangyapengIn horizon, the same as    use command curl  maybe15:35
domhnallwOkay, I just mentioned it in case it was the cause. It seems it's not.15:35
*** michauds has joined #openstack-freezer15:35
szaher_guys, do you think we might need this ( http://docs.openstack.org/developer/oslo.config/mutable.html ) for anything in freezer ?15:35
domhnallwWhat would be the use case, I guess?15:36
*** StraubTW has joined #openstack-freezer15:36
domhnallwWould either the agent or the scheduler benefit from on-the-fly reconfiguration?15:38
*** michauds has quit IRC15:40
szaher_Scheduler and freezer-api might use it, not sure about that15:40
szaher_the agent I don't think so15:41
yangyapenghmm  agent don't need15:41
szaher_Yes15:42
StraubTWHi! I was trying to run the Freezer code without the trickle executable but with a configuration file.  It wouldn’t run.  So, I took a look and it appears that if you do not have a trickle executable but you do have a config file that it will add a tmp_file key to the backup_args dictionary.  However, if you don’t have a trickle executable, it will try to pop out tmp_file which doesn’t exist and thus an exception is thr15:53
StraubTWown and the program exits.  Would it be possible to have someone move the if backup_args.config: \ backup_args.__dict__[‘tmp_file’] = conf_file.name above and on the same indent as the if trickle_executable and then move the part in the else statement if backup_args.config to the same indent level as well?  That should prevent it from having a happy heart attack and exiting.15:53
StraubTWAll in reference to a file called "config.py" under the common directory.15:56
szaher_StraubTW15:56
szaher_StraubTW15:56
szaher_Hi StraubTW15:56
StraubTWHi!15:56
szaher_which version of freezer are you using ?15:57
szaher_could you paste your error message, config file and logs here http://paste.openstack.org/15:57
StraubTW"Mitaka"15:57
StraubTWSure.  Gimmie a sec.15:58
szaher_tyt15:58
StraubTWOk.16:01
szaher_urls plz16:04
StraubTWhttp://paste.openstack.org/show/539076/16:05
StraubTWSorry.  Wasn't sure how all of this worked.16:05
*** iceyao has quit IRC16:08
szaher_StraubTW I am not sure what are you trying to do here ?16:09
szaher_where is the path that you're trying to back it up ?16:10
szaher_why are you adding all this arguments to your config file ?16:10
szaher_adding upload_limit or download_limit will make freezer look for trickle executable16:10
StraubTWIt was the example config file.  path_to_backup = /Users/AStraub/Documents   is the test dir I was trying to back up.16:10
szaher_what is the command that you used to run this job ?16:11
szaher_why did you add the option param config to the job file ?16:11
StraubTWBecause it was in the example file?16:11
StraubTWfreezerc --config ./freezer/job-backup.conf16:11
StraubTWSorry...  freezerc --config .freezer/job-backup.conf16:12
szaher_freezerc is deprecated and to be removed I think in newton16:13
szaher_where is the example file ?16:13
szaher_can you provide a link for that file ?16:13
szaher_http://paste.openstack.org/show/539078/16:15
szaher_try to run this job file to test freezer16:15
szaher_and use the command # freezer-agent --config .../path/to/job/file16:16
szaher_http://paste.openstack.org/show/539080/ here is a modified one16:17
szaher_you have to source OS credentials that will be used to upload the backup to swift16:18
domhnallwStraubTW, is that a Windows box you're running that on?16:18
StraubTWMac16:18
domhnallwOh.16:18
domhnallwWas wondering about /Users.16:18
StraubTWThe example file is in github under /specs/ and is called job-backup.conf.example16:19
szaher_I think this needs to be change and it's outdated16:20
szaher_slashme any idea about this https://github.com/openstack/freezer/blob/stable/mitaka/specs/job-backup.conf.example ?16:21
StraubTWThe file in question is in the master branch at: https://github.com/openstack/freezer/blob/master/freezer/common/config.py16:22
domhnallwIt's identical to the one on the mitaka brance bar a single typo in a comment. I suspect it's a bit outdated.16:23
domhnallwbranch*16:23
szaher_StraubTW, which question16:24
szaher_?16:24
domhnallwszaher_, "in question" === "that we're talking about"16:24
slashmeszaher it is super outdated ...16:25
domhnallw:p16:25
*** ddieterly is now known as ddieterly[away]16:25
StraubTWOutside of the example, if you run without the trickle executable, on line 565 it will skip to the else clause and then attempt to remove the tmp_file item.16:26
StraubTWHowever, the tmp_file item is only added if you are in the if clause above the else.16:26
szaher_Please, check from line 53016:27
szaher_if you passed upload_limit or download_limit and you are using config file this is going to create a tmp file and dump the parameters that you passed in your config file in it16:28
szaher_if backup_args.config:16:28
szaher_            conf_file = NamedTemporaryFile(prefix='freezer_job_', delete=False)16:28
StraubTWYes....16:29
szaher_so, removing the tmp file is Ok and won't cause anyproblems16:29
StraubTWBut trying to remove 'tmp_file' from the dictionary when it is not there causes an exception.16:29
szaher_if you didn't pass upload or download limits so no tmp files will be created and we won't call the remove statement16:29
StraubTWline 58816:29
StraubTWbackup_args.__dict__.pop('tmp_file')16:29
szaher_Do you have a code editor offline ?16:30
StraubTWI have a copy of the file and a copy of vi.16:30
StraubTWI'm looking at : https://github.com/openstack/freezer/blob/master/freezer/common/config.py16:31
szaher_me too16:32
szaher_you need to have something where you can fold and unfold the code just to see16:32
StraubTWOk.  In the if statement at line 573 the 'tmp_file' item is added to the dictionary.16:32
StraubTWin the else statement associated with the if it is removed from the dictionary.16:32
StraubTWThus, if the if statement is false it will go to the else statement and attempt to remove the item which is not in the dictionary.16:33
szaher_Man the tmp file and tmp_file index are created before the if statement16:34
szaher_check line 50116:34
StraubTW502 says that you add an item to the dictionary called 'storages'16:34
StraubTWHowever, the code is popping an item called 'tmp_file' which was never added.16:35
szaher_Ok, You are right16:36
szaher_going to file a bug about this and do it tomorrow16:36
StraubTWThank you very much.  I hope I was helpful.16:36
szaher_Thanks man :)16:36
*** szaher_ has quit IRC16:37
slashmeszaher: the bug is already created16:38
*** ddieterly[away] is now known as ddieterly17:01
*** ddieterly is now known as ddieterly[away]17:22
*** electrofelix has quit IRC17:35
*** clenimar has quit IRC17:45
*** lpetrut has quit IRC17:57
*** daemontool has quit IRC18:01
*** clenimar has joined #openstack-freezer18:12
*** lpetrut has joined #openstack-freezer18:18
*** ddieterly[away] has quit IRC18:22
*** lpetrut has quit IRC18:27
*** ddieterly has joined #openstack-freezer18:32
*** ddieterly is now known as ddieterly[away]18:42
*** lpetrut has joined #openstack-freezer18:46
*** michauds has joined #openstack-freezer18:51
*** ddieterly[away] is now known as ddieterly18:55
*** ddieterly is now known as ddieterly[away]19:21
*** ddieterly[away] is now known as ddieterly19:23
*** ddieterly is now known as ddieterly[away]19:27
*** ddieterly[away] is now known as ddieterly19:50
*** ddieterly is now known as ddieterly[away]20:25
*** ddieterly[away] is now known as ddieterly20:57
*** ddieterly has quit IRC21:10
*** clenimar has quit IRC21:47
*** Marcellin_ has quit IRC21:57
*** clenimar has joined #openstack-freezer22:02
*** StraubTW has quit IRC22:12
*** lpetrut has quit IRC22:33
*** ddieterly has joined #openstack-freezer22:43
*** ddieterly has quit IRC23:20

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