Thursday, 2016-06-02

*** yangyapeng has quit IRC00:06
*** yangyapeng has joined #openstack-freezer01:16
*** yangyapeng has quit IRC01:16
*** yangyapeng has joined #openstack-freezer01:17
yangyapengping gahan01:19
yangyapenggahan: hi01:19
*** EinstCrazy has joined #openstack-freezer01:25
*** yangyape_ has joined #openstack-freezer03:18
*** yangyapeng has quit IRC03:22
*** yangyape_ has quit IRC03:22
*** yangyapeng has joined #openstack-freezer03:42
*** c00281451 has joined #openstack-freezer03:49
*** zhangjn has quit IRC03:51
*** chenzeng has quit IRC03:51
*** yangyapeng has quit IRC03:58
*** zhangjn has joined #openstack-freezer04:02
*** c00281451 has quit IRC04:20
*** c00281451 has joined #openstack-freezer04:21
*** dmellado has quit IRC04:24
*** dmellado has joined #openstack-freezer04:27
*** yangyapeng has joined #openstack-freezer05:23
*** lpetrut has joined #openstack-freezer05:32
*** zhangjn has quit IRC05:33
*** zhangjn has joined #openstack-freezer05:36
*** yangyape_ has joined #openstack-freezer06:00
*** yangyape_ has quit IRC06:01
*** yangyape_ has joined #openstack-freezer06:01
*** yangyape_ has quit IRC06:01
*** yangyape_ has joined #openstack-freezer06:02
*** yangyapeng has quit IRC06:04
*** lpetrut has quit IRC06:39
*** yangyapeng has joined #openstack-freezer06:44
*** yangyape_ has quit IRC06:45
*** lpetrut has joined #openstack-freezer06:58
*** zhangjn has quit IRC07:12
*** zhangjn has joined #openstack-freezer07:15
*** samuelBartel has joined #openstack-freezer07:31
*** lpetrut has quit IRC07:31
*** yangyapeng has quit IRC07:34
*** yangyapeng has joined #openstack-freezer07:37
gahanyangyapeng: ping07:54
yangyapenghi gahan08:13
gahanhi yangyapeng08:13
yangyapengI See, you want backup instance to storage local ?08:13
gahanyes, a specific directory if possible?08:15
yangyapenghttps://review.openstack.org/#/c/315939/ https://review.openstack.org/#/c/315547/08:17
yangyapengtwo patch it is ok, but it is merging08:17
yangyapengfreezer-agent --nova-inst-id 1983bb28-b962-4597-ab83-c7529594c1c508:18
yangyapeng--storage local --container /home/nfs08:18
yangyapeng--container  it cloud specific diretory08:18
gahanI'm not using latest master branch but stable/liberty08:19
yangyapengwhy not master? . i have using it  openstack liberty and freezer master08:20
yangyapengIt is ok08:20
gahanI was asked to use latest stable on here08:24
gahanJust followed advice08:24
gahanyangyapeng: do you have any issues with freezer-scheduler registering with freezer-api?08:25
yangyapengfreezer-scheduler and freezer-agent need be installed in the same machine.08:26
gahanyeah could it be same as api too?08:26
yangyapengapi and scheduler could be Independent of each other.08:29
gahanthat's fine, I'm just having issues registering scheduler against api and there's not much logs are telling (I used paste.openstack.org yesterday)08:29
yangyapengok  i read it , wait08:30
gahanHow do I make /home/ntfs a cloid specific direcotry? I didn't get that part08:31
gahancould it not be just local path?08:31
yangyapengremote ssh?08:31
yangyapengnow about nfs or gluster and so on . it need be mount to local.08:32
yangyapengabout other driver it is not implemented08:32
gahanlets just keep it simple and backup an instance to local storage. or backup a directory /etc/bind within an instance into local storage08:35
gahan# freezer-agent --nova-inst-id 6b74d579-fa5f-4159-9264-96174ba0b888 --storage local --container /tmp/secondary_dns08:38
gahan[*] Critical Error: 'Namespace' object has no attribute 'client_manager'08:38
gahanCRITICAL:root:[*] Critical Error: 'Namespace' object has no attribute 'client_manager'08:38
yangyapengoh08:41
yangyapengi see08:41
yangyapengi have a patch to fix it08:41
yangyapengwait08:41
yangyapenghttps://review.openstack.org/#/c/303701/5/freezer/main.py08:45
yangyapenggahan:08:45
yangyapengif your openstack have swift ?08:45
gahanwell in autopilot selected ceph but i'm also using ceph-radosgw08:47
yangyapengliberty could have some problem08:47
gahanok I'm going to create another container and put api, scheduler and agent in there. is that patch applied if I get latest master using git?08:49
yangyapengyeah, this patch have been merged about client_manger08:50
gahanyangyapeng: when using latest master, what elasticsearch version are you using? still 1.x or 2.x ?08:50
yangyapengi use 1.4.208:51
gahanhm08:51
gahanI used 1.7.5 with liberty08:51
gahanshould I use 1.4.2 with the new setup?08:51
gahanyangyapeng: what java to run elasticsearch 1.4.2?08:52
gahanand which python? 2.7 or 3.x?08:52
gahanfor freezer08:52
*** lpetrut has joined #openstack-freezer08:53
yangyapeng2.709:04
yangyapeng1.7.5 you have met some problem ?09:05
gahanscheduler couldn't register with api and I had no idea where was the fault09:05
gahanI'm now trying latest master like you suggest09:05
yangyapeng:)09:06
yangyapengping szaher09:06
gahanwhat's freezer-paste.ini ?09:07
yangyapengfreezer-scheduler.conf ? or freezer-api.conf ?09:13
gahanapi09:17
gahanoh, freezer-scheduler registered fine09:21
yangyapengoh , haha09:21
yangyapengit is fine09:21
gahanalthough it's not displayed in the web ui09:22
gahando I need to use the same username and password for my default logins and freezer?  I though sharing the same tenant is enough09:23
yangyapengyou mean, backup nova or volume ? use admin_openrc?09:29
gahanI thought if I was registering a client within the same region/tenant it would appear for all admins having access to that region/tenant but it seems user-based09:30
openstackgerritMemo Garcia proposed openstack/freezer: Move docs from readme to docs/source and docs.openstack.org  https://review.openstack.org/31269409:34
yangyapenggahan: about it , I'm not sure, may need to verify, if szaher can explan it09:39
gahanyangyapeng: so webui, api, scheduler all seem to work. now going to try and backup to local storage, not cloud. --container specifics local path?09:39
*** lpetrut has quit IRC09:39
yangyapengyeah09:39
*** lpetrut has joined #openstack-freezer09:39
yangyapeng--container /tmp/ eg..09:39
gahancan you explain incremental to me? I start with level 0 and if I only want to have update files that changed which level do I set?09:40
gahanseems to be doing something09:41
gahandoes it always have to create a snapshot?09:41
yangyapengif backup nova, it  create a snapshot.09:42
gahancan I backup instance somehow without the need to create image snapshot?09:46
gahanyangyapeng: [*] Critical Error: 'LocalStorage' object has no attribute 'add_stream'09:47
gahan# freezer-agent --nova-inst-id 6b74d579-fa5f-4159-9264-96174ba0b888 --storage local --container /tmp/secondary_dns09:49
gahanThat's what I ran09:49
gahanlatest master09:49
yangyapengif you apply the patch09:50
yangyapeng1 patch  https://review.openstack.org/#/c/315085/ 2 patch: https://review.openstack.org/#/c/315547/1/freezer/openstack/backup.py09:51
gahanis gthere a nice download button so I could run patch -p0 ... ?09:53
gahanor should I just replace backup.py downloadable from there09:54
yangyapengabout patch1 , you can replace it is ok .09:55
gahanis there a way to download them all as .zip ?09:55
gahanI never used gerrit09:55
yangyapengbut patch2, you need to have a change manual09:55
yangyapengoh09:55
gahanor .tar or whatever09:56
gahan.diff09:56
gahanI've got the .tar for #1 - manually replace files?09:57
gahanor run python setup.py install ?09:57
gahanperhaps python setup.py develop ?09:57
yangyapenghow you install freezer ?09:58
gahanpip install -e freezer09:58
gahanbut then on the box with webui I had to run python setup.py install09:58
gahanfrom within freezer and webui dirs09:59
gahanso I've downloaded the .tar from the #2 second link, I'm thinking about replacing its backup.py with the one you've given me, and running install ?09:59
yangyapengno, #1 link, you can download tar10:00
gahanyes sorry I messed numbers around10:00
gahanI got the .tar from #110:01
gahanI wanted to replace backup.py in #1 from link #210:01
gahanthen install as usual and that should replace the files?10:01
openstackgerritMemo Garcia proposed openstack/python-freezerclient: Enforce content-type in request headers  https://review.openstack.org/32379310:02
gahanor do I extract the .tar in freezer directory I used originally, replacing the files, and re-installing?10:02
gahanroot@juju-machine-14-lxc-6:/usr/local/lib/python2.7/dist-packages# cat freezer.egg-link10:04
gahan/root/freezer10:04
gahanhow about replacing the files within that directory using the ones I downloaded10:05
yangyapengyou need to Modify some code to 1# link backup.py10:07
*** c00281451 has quit IRC10:08
gahanIt ran without errors now but the size is suspicious10:17
gahan# du -sh /tmp/secondary_dns/10:17
gahan16K/tmp/secondary_dns/10:17
gahanthere's one file10:17
gahan# cat /tmp/secondary_dns/6b74d579-fa5f-4159-9264-96174ba0b888/1464862380/6b74d579-fa5f-4159-9264-96174ba0b888-meta10:18
gahan{"x-object-meta-flavor-id": "2cfcfda7-cf90-40af-9682-21ea875f6350", "x-object-meta-name": "DNS Secondary"}10:18
gahanw10:18
yangyapengoh . backup file is ok .10:18
gahanwhere's the content of the backup?10:18
yangyapeng#1 link1 patch to backup cinder_volume to local. #2. backup nova_instalce to local.10:18
gahanaccessing /disaster_recovery/backups/ returns RROR:disaster_recovery.utils:'NoneType' object has no attribute 'copy'10:19
gahanI patched both10:19
yangyapengls -l /tmp/secondary_dns/6b74d579-fa5f-4159-9264-96174ba0b888/1464862380/10:21
gahanmy new backup.py has both modified backup_cinder_by_glance() and backup_nova()10:21
yangyapengok . it is ok10:21
gahan-rw-r--r-- 1 root root 106 Jun  2 10:13 6b74d579-fa5f-4159-9264-96174ba0b888-meta10:21
gahanthat's all10:22
gahanroot@juju-machine-14-lxc-6:/tmp/secondary_dns# find . -type f | wc -l10:23
gahan110:23
gahanno more files10:23
yangyapengit have some error ?10:23
gahanno errors10:23
gahanI can re-run with some verbose, debug options if you'd like10:23
yangyapengok10:24
gahanfreezer-agent -v -d --nova-inst-id 6b74d579-fa5f-4159-9264-96174ba0b888 --storage local --container /tmp/backup_dns10:24
gahanthat fine?10:24
yangyapengcan you see the log . ~/.freezer/freezer.log10:26
*** EinstCrazy has quit IRC10:26
yangyapenghi gahan10:27
gahanbackup.py", line 89, in backup_nova raise BaseException(msg)10:28
gahanI'm running again with verbose and debug10:30
yangyapenghave some error ?10:32
yangyapengcan you check glanceclient code ?10:32
yangyapenghttps://github.com/openstack/python-glanceclient/blob/stable/liberty/glanceclient/v1/images.py#L8010:32
gahanyeah got error10:33
yangyapengwhat error?10:33
gahanhttp://paste.openstack.org/show/507241/10:34
gahanagain only one file created locally10:35
gahan# cat /tmp/backup_dns/6b74d579-fa5f-4159-9264-96174ba0b888/1464863477/6b74d579-fa5f-4159-9264-96174ba0b888-meta10:35
gahan{"x-object-meta-flavor-id": "2cfcfda7-cf90-40af-9682-21ea875f6350", "x-object-meta-name": "DNS Secondary"}10:35
*** electrofelix has joined #openstack-freezer10:36
gahanI think my glance is using v210:36
gahanshould I downgrade python-glanceclient?10:36
yangyapengyes10:37
yangyapengoh10:37
gahanwhich version do you suggest?10:37
gahanroot@juju-machine-14-lxc-6:~/freezer# grep glance requirements.txt10:38
gahanpython-glanceclient>=2.0.0 # Apache-2.010:38
gahanI'm not sure that will help?10:38
gahanI do have that line in my images.py for glanceclient10:39
gahanyangyapeng: did you notice the link I pasted? http://paste.openstack.org/show/507241/ - is that enough logs?10:40
gahanthe thing is, image did got created10:43
gahanyangyapeng: any ideas?10:45
yangyapengI have a try , sorrt10:46
yangyapengI have a try , i am ok10:48
yangyapengfreezer-agent --nova-inst-id 1a3d6e77-00ac-4d70-86f9-2ad7738978fb --storage local --container /tmp/1110:48
gahanand the size of /tmp/11 is few gigs?10:49
gahanwhat format is it?10:50
yangyapengI see10:52
yangyapenggahan:10:52
gahanyangyapeng: can you share your freezer dir?10:52
gahanyes10:52
yangyapengabout glance  it is error. my patch is glance v1. but master is v210:53
yangyapeng[stack@freezer freezer]$ ls /tmp/11/1a3d6e77-00ac-4d70-86f9-2ad7738978fb/1464864484/10:53
yangyapeng1a3d6e77-00ac-4d70-86f9-2ad7738978fb  1a3d6e77-00ac-4d70-86f9-2ad7738978fb-meta10:53
yangyapengI have a change today.10:54
gahanthat 1a3d6e77-00ac-4d70-86f9-2ad7738978fb is a glance image file?10:54
yangyapengyes10:56
gahanmine didn't get downloaded10:56
gahanany workaround?10:56
gahancan I force v1 using OS env var?10:56
gahanor something10:56
yangyapengcan you check  freezer/openstack/osclients.py10:57
gahansure, what line?10:57
yangyapengit  have a change 2weeks ago.10:57
gahanI'm looking at the file10:58
yangyapenghttps://review.openstack.org/#/c/310733/10:58
gahanwell I've got the # (c) Copyright 2016 Hewlett-Packard Enterprise Development Company, L.P.10:59
gahanon the second line10:59
gahanclass OSClientManager(object): too10:59
gahanso it looks fine10:59
yangyapengfreezer/openstack/osclients.py   glance v2 , but 2 week ago is v1.10:59
yangyapengI  shoud fix it  later.11:00
yangyapengsorry gahan11:01
gahanokay11:01
gahanyangyapeng: ping me when you do :)11:01
yangyapengOK11:01
yangyapengIf you have some issue , you can Join us   #openstack-freezer recurring every  Thursday start 4:00 PM - end 5:00 PM GMT - Meetings11:02
gahanhow many hours from now is it?11:03
yangyapeng3 hours11:03
gahanokay11:03
gahanthat's the only issue I have for now11:04
gahando you think cinder backup would work locally?11:04
yangyapengok.11:04
gahanbut with cinder I can't specify instance id, it has to be volume id, right?11:04
*** yangyapeng has quit IRC11:08
openstackgerritMemo Garcia proposed openstack/freezer: Move docs from readme to docs/source and docs.openstack.org  https://review.openstack.org/31269411:13
openstackgerritJonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test  https://review.openstack.org/32059112:01
*** yangyapeng has joined #openstack-freezer12:20
openstackgerritSaad Zaher proposed openstack/freezer-api: Moving to freezer-manage to create/update/delete mappings  https://review.openstack.org/32452913:27
szaheryangyapeng: hi13:30
szaheryou asked about me :)13:30
szaherm3m0 https://review.openstack.org/#/c/316178/13:30
yangyapenghi szaher13:30
szaherHi :)13:30
yangyapengsome patch need  review last week13:30
yangyapeng:)13:31
szahersend it plz13:31
yangyapengok13:32
*** ddieterly has joined #openstack-freezer14:00
slashmeOkay guys, let's move to the #openstack-meeting-alt for the freezer meeting14:03
*** EinstCrazy has joined #openstack-freezer14:04
openstackgerritSaad Zaher proposed openstack/freezer-api: Moving to freezer-manage to create/update/delete mappings  https://review.openstack.org/32452914:05
jonaspfhi14:07
slashmejonaspf: got to the #openstack-meeting-alt room14:12
openstackgerritSaad Zaher proposed openstack/freezer-api: Moving to freezer-manage to create/update/delete mappings  https://review.openstack.org/32452914:41
*** zhonghua is now known as zhonghua-lee14:57
*** EinstCrazy has quit IRC15:35
openstackgerritJonas Pfannschmidt proposed openstack/freezer: WIP: First scenario test  https://review.openstack.org/32059115:44
*** ddieterly is now known as ddieterly[away]15:57
*** ddieterly[away] is now known as ddieterly16:02
*** samuelBartel has quit IRC16:14
*** clenimar has joined #openstack-freezer16:39
openstackgerritClenimar Filemon proposed openstack/freezer-api: Request service token using identity v3  https://review.openstack.org/30474217:09
*** ddieterly is now known as ddieterly[away]17:32
*** electrofelix has quit IRC17:40
*** lpetrut has quit IRC18:12
*** ddieterly[away] is now known as ddieterly18:37
*** ddieterly has quit IRC18:43
*** clenimar has quit IRC19:02
*** clenimar has joined #openstack-freezer19:06
*** clenimar has quit IRC19:14
*** clenimar has joined #openstack-freezer19:17
*** clenimar has quit IRC19:32
*** openstack has joined #openstack-freezer19:41
*** lpetrut has joined #openstack-freezer19:46
*** clenimar has joined #openstack-freezer19:51
*** clenimar has quit IRC19:56
*** clenimar has joined #openstack-freezer19:59
*** clenimar has quit IRC20:07
*** clenimar has joined #openstack-freezer20:11
*** clenimar has quit IRC20:17
*** clenimar has joined #openstack-freezer20:21
*** clenimar has quit IRC20:31
*** clenimar has joined #openstack-freezer20:34
openstackgerritOpenStack Proposal Bot proposed openstack/freezer: Updated from global requirements  https://review.openstack.org/31505521:04
*** openstackgerrit has quit IRC22:19
*** openstackgerrit has joined #openstack-freezer22:20
*** lpetrut has quit IRC22:51

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