/srv/irclogs.ubuntu.com/2010/12/13/#ubuntuone.txt

uinfixUbuntu One shows "Disconnected" in Preferences any help ?00:43
zmjb1How do I find free tunes in Ubuntu One store05:08
zmjb1I'm new and exploring05:08
zmjb1whether I want to sign up05:08
zmjb1if it is worth my while05:09
zmjb1Anyone?05:09
JamesTaitHappy Monday!09:36
* karni struggles on statistics lecture :<09:39
karniJamesTait: happy Monday ;)09:39
karnigod my tutor is hopeless09:39
karni*lecturer09:39
duanedesign:)09:39
duanedesignmorning all09:39
JamesTaitHey karni. :) Good weekend? Get any of that sleep thing? ;)09:39
karnimorning duanedesign09:40
karniJamesTait: did get some sleep, but college stuff took over majority of weekend time - so I'm pretty sad. hope to do some coding today in the afternoon09:40
karnibut it was definitely constructively spent time, thanks :)09:41
JamesTaitkarni: That's good to hear. :)09:41
karniJamesTait: hope you got some rest, too09:41
JamesTaitkarni: I have two boys aged 7 and 4, so I never get rest!09:41
karniJamesTait: ^-^09:42
karniI had plans for u1files for android for the weekend. I ended up coding one simple networking assignment and reading up on my bechelor of sciense thesis09:46
karniI'm keeping Chad from making his contributions. I so need to get that code ready.09:47
karniJamesTait: if I can ask out of curiosity, what are you working on today?09:55
JamesTaitkarni: I'm working on the Ubuntu One server side, as usual. My tasks will be many and varied. :)10:00
karniJamesTait: oh, cool :) many, varied, and secret! ^ ^10:01
JamesTaitkarni: Well of course! This is the evil, closed-source Ubuntu One server, after all. :-P10:02
karniJamesTait: haha. I don't actually think of it that way :)10:03
karniCanonical has to make money out of services, U1 amongst others10:03
JamesTaitkarni: Conspiracy theories abound. "It's a trap!" It's a difficult balancing act.10:05
karniJamesTait: I was thinking of writing U1 server just for fun as bechelor of science project, but eventually thought it's a terribly bad idea. even if I succeeded, I wouldn't want to release it anyway.10:05
karniJamesTait: yes, I'm aware of that :<10:05
karniJamesTait: so until Canonical want's to release U1 server source, I'm still happy with it.10:07
JamesTaitbrb, rebooting10:13
=== teknico_ is now known as teknico
dutchiehi, i have ubuntu one refusing to connect for an auth error or something, and i can't work out how to get the right credentials in11:08
dutchiehttp://pastebin.com/RsmxkU8a11:08
karnidutchie: try u1sdtool --disconnect; sleep 2; u1sdtool --connect; u1sdtool -s11:10
karnidutchie: paste it to pastebin, and post the link here11:10
dutchieit's the same as before11:10
karnialt+f2, type seahorse, <Enter>, find Ubuntu One token, delete it11:11
dutchiedone, what now? the disconnect line again?11:11
karnidutchie: lucid or maverick?11:11
dutchiemaverick11:11
karnikillall ubuntu-sso-login11:12
karniu1sdtool -q; u1sdtool -c11:12
karnidutchie: ↑11:12
karnidutchie: after those two commands you should see the login screen11:12
dutchieyes, thanks11:12
karnidutchie: you're welcome.11:12
dutchienow it seems to be stuck on http://pastebin.com/Rp7iJSLk and just pops up the signin window every u1sdtool -c11:20
karniNot User huh..11:24
karniduanedesign: any hint's on that (dutchie) ↑ ?11:24
karnidutchie: i'm currently on a lecture, but stick around for more help.11:24
dutchieok11:29
duanedesigndutchie: on maverick?11:41
duanedesignoop i see it now11:41
duanedesign:)11:41
duanedesigndutchie: ok after deletingthe token. sudo killall ubuntu-sso-login; u1sdtool -q; u1sdtool -c11:43
dutchielogin window said success...11:45
dutchieand u1sdtool -s says "processing queues"11:45
dutchiethanks11:45
duanedesignconnection: With User With Network ?11:46
dutchieyup11:47
karniduanedesign: ah.. I probably forgot about sudo ;) hehe11:50
zygais the move operation between two shared folders a no-op?11:57
zygaI have ~/Ubuntu One/something and ~/Directory (also synced)11:58
zygaand I moved somethin from ~/Ubuntu One/something to ~/Directory11:58
zygaaccording to u1sdtool --waiting-content and --metadata it's being uploaded11:58
zygais that really going to upload or will it notice that it already has the same file on the server11:59
karnizyga: I think it's like "remove the folder from A, upload the folder to B"11:59
karnizyga: I'm pretty sure it will upload. like 80% sure.11:59
zygauh :/11:59
zygathat's not good11:59
zygathe same operation within a share is just a rename12:00
karniduanedesign: U1 will delete and re-upload a moved folder, won't it?12:00
zygais this a well known issio?12:00
twig11I need help troubleshooting Ubuntu One. I'm running Maverick PowerPC on an iBook G4, and I used the Ubuntu One preference app to sign in the first time. It synced all right, but when I logged into my account online, it showed four connections for the same computer. I removed all but one through the web interface, and now whenever I open the Ubuntu One preferences app it just says synchronizing for a few seconds, then disconnects without a12:48
twig11Oh yeah, honk!12:49
=== alecu_ is now known as alecu
nessitastand up in 513:55
nessitame14:00
thisfredme14:01
nessitaalecu, mandel, ralsina, dobey?14:01
ralsiname14:01
mandelme14:01
alecume14:01
nessitanessita: go!14:02
nessitaDONE: bug #68869414:02
nessitaTODO: bug #674459 and bug #68964614:02
nessitaBLOCKED: nopes14:02
nessitaNEXT: thisfred14:02
ubot4Launchpad bug 688694 in ubuntuone-client (Ubuntu) (and 1 other project) "Add syncdaemon autoconnect option (affects: 1) (heat: 6)" [Medium,Triaged] https://launchpad.net/bugs/68869414:02
ubot4Launchpad bug 674459 in ubuntuone-control-panel (Ubuntu) (and 1 other project) "After machine adding, show folders tab (affects: 1) (heat: 6)" [Medium,Triaged] https://launchpad.net/bugs/67445914:02
ubot4Launchpad bug 689646 in ubuntuone-control-panel (Ubuntu) (and 1 other project) "Allow subscribe/unsubscribe from UDF list (affects: 1) (heat: 6)" [Medium,Triaged] https://launchpad.net/bugs/68964614:02
thisfredDONE: bindwoodness TODO: more bindwood, hopefully get somewhere with the new functionality BLOCKED: no14:02
thisfredralsina!14:03
ralsinaDONE: I kinda understand the code now14:03
ralsinaTODO: woking on getting my devel. environment up14:03
ralsinaBLOCKED: no notebook until tomorrow, working on a sloooow VM :-(14:03
ralsinaNEXT: mandel14:03
mandelDONE: Paperwork overhead (holidays, perdiem, taxes, etc…). Bug triaging. Still working on IPC by allowing a way to inject the logging to the COM object (we want a unified log).14:03
mandelTODO: Finish with IPC, add integration tests (python calling .net). Integrates solution in SD (maybe today is to early for that.)14:03
mandelBLOCKED: no14:03
* mandel looks at alecu14:03
alecuDONE: pushed final zg for syncdaemon branch (bug #674252).14:03
alecuTODO: get it reviewed. start with bindwood. Buy tickets to dallas14:03
alecuBLOCKED: I hate dallas14:03
ubot4Launchpad bug 674252 in ubuntuone-client (Ubuntu) (and 1 other project) "Syncdaemon needs to store events into zeitgeist (affects: 1) (heat: 111)" [High,In progress] https://launchpad.net/bugs/67425214:03
nessitaalecu: you're going to dallas?14:04
mandelnessita: now, I'm scared, how needs to go (my mail client is kinda shit this days…)14:04
alecunessita, I am.14:04
nessitadobey: stand up?14:05
mandelnessita: do we have general mail with that or a wiki, or something (pidgin would be as good)14:05
nessitamandel: I'm lost, general mail with what? :-)14:05
mandelnessita: with who goes to dallas, I fear I lost it, or something14:06
mandelI never heard a word about it and I simply assumes I was not going :)14:06
ralsinaAFAIK, it's like this14:06
nessitamandel: let's ask Chipaca (as far as I know you're not going)14:06
ralsinaI was supposed to go, but I can't because of passport / visa problems14:07
nessitaany other stand up comment?14:07
ralsinaother than that I don't know who is going, you have to ask chipaca14:08
ralsinaBut I don't think there has been an announcement yet :-)14:08
mandelralsina: ah, ok, I just want to be sure I did not loose the mail, for the rest, if it is on the air, it is on the air :)14:08
* mandel is happy he did not screw it up14:09
ralsinaor I am losing mail too :-D14:09
mandelralsina: cool, that means I can blame the manager hehe14:10
Chipacamandel: ralsina *is* the manager14:12
* Chipaca fades into the shadows14:12
ralsinachipaca: I think he meant blaming me, yes :-)14:12
mandelChipaca: I was blaming ralsina14:13
mandelalways blame the new guy14:13
ralsinamadel: we have to maintain a proper chain of blame here14:13
mandelralsina: yes, if that does not work, well we will never get anywhere, the blame could me lost, and you never want to loose the blame 'cause if you do, you will not be able to wear white in your wedding14:15
mandelok I think I lost it there :P14:15
mandeltoo much coffee14:16
alecuChipaca, thisfred: I've set up everything so I can go to Dallas. Yahoo! (?)14:16
thisfredalecu: ok, then we better start getting tickets14:17
dobeywhat did i do on thursday exactly14:18
dobeymeh14:18
thisfredfix things? :)14:19
dobeyof course, but which things exactly :)14:19
dobeyand that is the sound of X crashing14:23
dobeybrought to you by Mozilla Firefox 4.0 Beta 714:24
nessitadobey: hey there. A new bug was reported re: nautilus crashes and high cpu usage, and a new comment was added on bug #67487614:28
ubot4Launchpad bug 674876 in ubuntuone-client (Ubuntu) (and 1 other project) "Nautilus keeps opening when ubuntu one plugin is installed (affects: 5) (dups: 3) (heat: 40)" [High,Triaged] https://launchpad.net/bugs/67487614:28
dobeyok14:30
mandeldobey: ping15:40
dobeymandel: yo15:44
mandeldobey: hello, can you help me with a little thing?15:44
dobeywhat's up?15:45
mandeldobey: I do not know what is the best way to add some code to ubuntuone-client with the current autotools setup? I do know with a setup.py15:45
dobeymandel: to add python code?15:45
mandeldobey: yes, let me elaborate a bit more to try and make sense15:46
dobeymandel: if it's a new package, you'd need to add the directory to the pypackages variable in Makefile.am (like the others are defined), or if it's just a new .py file in an existing package, just add the .py file15:46
mandeldobey: we removed the SSO code from desktopouch that added the replication info to desktopcouch (it was not the place for it) we now need to add an extension point so that the scripts gets added to the desktopcouch extension point15:47
mandeldobey: I'll get you an example of the setup to be done so that it makes more sense, give me a min to find it15:48
dobeyyou mean, you want ubuntuone-client to install python code into the desktocouch namespace?15:48
mandeldobey: kind of, with the example it makes more sense15:49
dobeyok15:50
mandeldobey: I do not know if this are the best examples, but they do explain the idea: http://jimmyg.org/blog/2010/python-setuptools-egg-plugins.html15:53
mandeland http://reinout.vanrees.org/weblog/2010/01/06/zest-releaser-entry-points.html15:53
mandeldobey: we have defined the entry point in desktopcouch, and we should be adding a new entry in ubuntuone-client, since you are the one that knows the most about the package etc.. I wanted some gidence :)15:54
dobeymaybe i'm confused, but this method of implementing plug-ins/extensions seems horribly inefficient.15:59
mandeldobey: what did you understand?16:01
dobeyit iterates over every single installed .egg-info directory looking for the entry_points.txt and then has to load all of them, and then import the correct modules/functions for ones that match16:02
mandeldobey: yes, the loading of them is major crap16:03
mandeldobey: in our case we just have one, but I'm more than open to find a diff way to do it, do you know any other one? We can make the necesary changes in desktopcouch very fast16:04
dobeymandel: i have 132 .egg-info files in /usr/share/pyshared. that is a lot of disk access to end up loading nothing in the end16:05
dobeymandel: and i don't think the "hook up desktopcouch to the u1 syncing" necessarily belongs in ubuntuone-client16:05
dobeygiven that desktopcouch syncing should be able to work without file syncing at all16:05
mandeldobey: I agree is crap but I do not have any other idea. Regarding its inclusion i ubuntuone-client, I mention it because it is needed by the preferences dialog since if the code is not there the account info is not replicated16:06
dobeywell why not similar to how bzr does it?16:07
dobeyjust load python code from a known path16:07
mandeldobey: mmm do they do that, that does not sound very secure...16:08
dobeymandel: uhm, how is it any less secure than loading arbitrary code from PYTHONPATH?16:09
dobeymandel: the way bzrlib loads plug-ins is not any less secure than simply using python to write code16:10
mandeldobey: just asking, not stating :)16:11
mandeldobey: what about zope interfaces, would you consider that any better?16:12
dobeyi don't know what that entails exactly, but let's avoid zope16:12
ralsinaIn general, as long as you load from the system's python folders it's secure as long as the system itself is not compromised. If the system is compromised, nothing is safe.16:13
ralsinaThe home folder is something else, but we are not doing that here.16:13
dobeymandel: the entry_points concept is fine if it can be limited to only loading modules under say desktopcouch.plugins or something16:13
ralsinaSo don't worry too much about security16:14
dobeywell we can worry about security, and just rewrite everything in Vala instead ;)16:14
=== beuno is now known as beuno-lunch
mandeldobey: haha I was expecting that from you ;)16:14
ralsinaWell, you know, all this applies just as well to C ;-)16:15
ralsinaLD_PRELOAD is your friend and all that16:15
dobeywell i don't think users screwing up their environment of their own volition is a "security problem"16:16
dobeymore like a PEBKAC16:16
ralsinaI'm just saying that so this doesn't get sidetracked too far. Security is not too important here, efficiency may be important here, maybe not even that important.16:16
dobeyefficiency is very important16:16
dobeythe blueprint is "make desktopcouch performance not suck"16:16
ralsinawell, startup performance <> performance as a whole16:17
dobeyadding lots of disk i/o to the process doesn't make it faster :)16:17
ralsinaBut sure, if there is a way to make this faster and it's not a huge problem, go ahead :-)16:17
dobeywell there is, because it's only one plug-in we care about, and i don't expect lots of people are going to write plug-ins in this respect16:18
ralsinaFor example, have you seen yapsy?16:18
ralsinaVery easy plugin mechanism, efficient, too.16:19
dobeymandel: why is the SSO bit being removed anyway?16:19
mandelralsina, dobey: so, just to double check, we are doing the following in desktopcouch: http://paste.ubuntu.com/543111/16:19
dobeyralsina: well, it's Python. the whole language is a plug-in mechanism :)16:19
ralsinamandel: let me check the docs on that16:20
dobeymandel: i'm saying we should not be doing that. cannon vs. mosquito problem16:20
mandeldobey: because it means that there are Ubuntu One client specific bt sthat use SSO and Desktopcouch maintained in desktopcouch. This has two problems, one it drags Ubuntu SSO as a dependency that we do not need, in adds a extra concern to Desktopcoch that has nothing to do with us :)16:20
dobeywell you only need it when using that bit of code16:20
dobeyand it has everything to do with desktopcouch. it certainly has nothing to do with file sync :)16:21
dobeywe can make it a "plug-in" and keep it in the desktopcouch tree, and just add another binary package in Ubuntu for it, and call it desktopcouch-ubuntuone or something16:21
mandeldobey: I agree, it is just used for the preferences, which are leaving for the new ones...16:21
dobeyhave it installed by default, and depend on the necessary bits, and et voila, happy16:22
mandeldobey: that sounds like a good idea :)16:22
ralsinaI like it16:22
dobeythe fact that ubuntuone-preferences is what sets up the replication in desktopcouch is a horrible thing, anyway16:22
mandeldobey: I'll need to talk with thisfred, vds and Cardinalfang about it, but I see no issues with that16:22
dobeywhy oh why is it snowing16:23
mandeldobey: yes… sometimes bad ideas happen, my parents had one around 1983 ;)16:23
thisfreddobey: I tend to agree. At the very least it should never break because of it16:23
dobeyheh16:23
thisfredmandel: now you've gone and made me feel old :)16:23
mandelthisfred: did you follow the conversation :)16:24
thisfrednot at all :)16:24
dobeysyncing files should not depend on desktopcouch and syncing desktopcouch should not depend on files sync16:24
mandelthisfred: ok, quick summary, remember that SSO code we removed from desktopcouch?16:24
thisfredvaguely :)16:24
mandelralsina: if we do this, that is, move the code to a diff package, there is nothing I know that block a new ubuntuone-client .deb16:25
dobeyin fact, desktopcouch-pair should perhaps play some part16:25
ralsinamandel: nice16:25
ralsinaHow about what blocks a desktopcouch package? ;-)16:25
mandelralsina: will lokk at it as soon as I agree with thisfred about destopcouch, he's smart, it should be quick :)16:26
dobeyand if i can get my new spare time project in a workable state this week, it would be nice to start moving some of our projects over to using it16:26
mandelthisfred: I was saying, the SSO code was added so that the preferences pane knew about the account info, it was removed since it was ugly code and was out of the desktopcouch scope16:28
thisfredmandel: yep I agree16:28
ralsinamandel: cool16:28
mandelthisfred: dobey correctly says that it could be a diff package called desktopcouch-ubuntuone, that could be used to do so (dobey correct me if I\m wrong)16:29
mandelthisfred: which should b likw 20 lines of code or so, what do you think?16:29
dobeymandel: package, not necessarily project.16:29
mandeldobey: sorry I mean package :)16:29
dobeymaking a new project for one tiny file seems a bit much16:30
thisfreddobey: just to be clear, why not u1prefs? This is where the authentication for filesync is also taken care of or not?16:30
dobeymandel: yeah, i was just trying to make it clear for the general discussion16:30
dobeythisfred: a) u1prefs is supposed to be going away, b) prefs doing all the auth is dumb, c) filesync depending on desktocouch to do stuff is dumb d) desktopcouch depending on files sync to be able to sync to u1 is dumb16:31
mandeldobey: thx :)16:31
dobeythisfred: the currently working solution is working, but it's a horrible design and simply a quick solution based on past mistakes, rather than doing it the best possible way16:31
thisfreddobey: I didn't know it was going away, and I agree with c and d16:31
dobeythisfred: well u1-control-panel is supposed to replace it16:31
thisfreddobey: but the preferences doing the auth doesn't seem that bad to me16:31
thisfreddobey: and that won't be doing the authentication at all?16:32
dobeythisfred: it should be possible for me to install desktopcouch and connect it to my ubuntuone account, without having to install or use anything having to do with file sync at all16:32
mandelthisfred, dobey: It would be nice to talk with nessita, maybe we do not need this any more, it depends on u1-control-panel, but ofcourse we will be braking the current code16:32
mandelnessita: are you around?16:33
thisfreddobey: well, does filesync work without the u1 control panel?16:33
dobeythisfred: u1-control-panel does handle sign-up/login in the broad and vague "everything that falls under ubuntuone" sense, but that doesn't mean it should always be required to work16:33
ralsinaI agree with dobey16:33
dobeythisfred: it should. whether it does or not though, i am not sure16:33
thisfredI don't see why it couldn't though, as long as IT does not depend on either, but it probably does16:34
ralsinaThose dependencies seem backwards16:34
thisfredI'm not sure how they flow, right now16:34
dobeywell syncdaemon *SHOULD* be calling the dbus auth method when you tell it to connect16:34
dobeyu1cp should really just be a place that consolidates information, but not necessarily the place you must go to be able to do anything at all16:36
thisfredI vote for the clean solution, unless it's going to take a lot of time. I want to believe mandel when he says 20 lines of code...16:36
thisfreddobey: yeah I agree, it should just be a UI layer over command line API that exists16:36
dobeywell i don't know what was removed exactly, but it should not be a hard problem at all to make it possible for desktopcouch to pair to u1, without requiring all the other u1 client stuff16:36
thisfredmandel: Do you know what to do, or do we need to think about how to do this?16:37
dobeybut i'm guessing nothing is actually designed to work as i would think it should :)16:37
thisfredand also, do you have any time to do it?16:38
thisfreddobey: that's pretty much a given ;)16:38
mandelthisfred, dobey, give me 5 min, I got to sort something at home16:42
nessitamandel: I'm about to have lunch16:47
mandelnessita: ok, no worries16:48
nessitamandel: can I get back to you in 15 minutes?16:48
=== ralsina is now known as ralsina-lunch
mandelthisfred: I'd like to talk with vds and CardinalFang before we do anything and see veryones point of view, I'm sure the can think issues that we have ignored, as soon as we have something done, I can find time16:49
mandelthisfred: although it depends on how much they give me for windows :P16:49
mandelnessita: sure, is a quick question, but certainly we can talk again when ever you finish eating does strange vegan things you eat :)16:50
* nessita will be back16:52
mandelnessita: we talk about it tom, I need to visit a friend in the hospital (kidney replacement)17:00
=== ralsina-lunch is now known as ralsina
=== beuno-lunch is now known as beuno
dobeyok, must get lunch myself17:10
nessitamandel: i'm back17:10
mandelnessita: we were talking about the SSO  code that we included in desktopcouch and later removed, do you remember it?17:11
nessitayes17:11
nessitamandel: I read a bit of backlog but I'm not sure I got the problem/thing to solve17:11
kklimonda1hey u1 guys, I have a small question17:12
nessitakklimonda1: shoot17:12
mandelnessita:  the code was removed, then we added an extension point so that it could be added trough the setuptools, yet I had a question of how to add that in ubuntuone-client, my question for you is, is it worth it? will this code be used with u1-control-panel?17:13
kklimonda1against which project should I report a bug about my files disappearing completely from u1 server? beuno has tried to help me at the weekend (and I've managed to restore them from a local backup) but it still should be reported :)17:13
beunokklimonda1, I'd gues the client17:13
mandelkklimonda1: was it my fault (aka windows?)17:13
mandel:P17:13
nessitamandel: so, the code that was added and removed was meant to do the pairing betweeb u1 and dc, right?17:14
kklimonda1mandel: not really, you can sleep safe - I won't be hunting you down :P17:14
mandelnessita: yes17:14
mandelkklimonda1: it that case, I would always blame rodrigo hehe :P17:14
kklimonda1beuno: ok, I have backed up all logs from ~/.cache/ubuntuone/log - I'm going to attach them all, hope that helps17:14
nessitamandel: so that code is independent from the control panel, as far as I know17:14
nessitamandel: and as far as I know we do need that code running17:14
kklimonda1mandel: unfortunately he has moved from the U1 team and I can't blame him anymore :/17:14
nessitamandel: what does that code do, exactly? what does "pairing" mean? :-)17:15
mandelnessita: ok, so, we do need that code, but it ha no place in u1-control-panel, or u1-client, right?17:15
mandelnessita: let me get you the explanation of a better developer, one min17:16
nessitamandel: can you describe what that code do exactly? we'll find the bets place for it. For example: how many times do we need that run? once per computer adding? once per computer restart?17:16
nessitaonce per syncdaemon restart? all the time?17:16
nessitayes, I'll wait17:16
mandelnessita: the person that reported this bug 629095 ahs a better idea17:19
ubot4Launchpad bug 629095 in desktopcouch (Ubuntu Maverick) (and 2 other projects) "Ubuntu One pairing code needs to be added (affects: 2) (heat: 37)" [Medium,Fix released] https://launchpad.net/bugs/62909517:19
mandelnessita: si soy malvado jejeje17:19
mandelnessita:  the pastebin is still there, and I'm hoping the bug refreshes your mind.. or makes you hate me more, one of the two (or both :) )17:21
nessitamandel: I remember the bug, but back then (and now) I didn't know what "pairing desktop couch with u1" mean17:21
nessitamandel: can you specify: how many times do we need that run? once per computer adding? once per computer restart? once per syncdaemon restart? all the time?17:22
kklimonda1beuno: I've created bug 689760 and attached content of the ~/.cache/ubuntuone/log there - hope that someone can figure out how did I end up deleting my files :)17:22
ubot4Launchpad bug 689760 in ubuntuone-client (Ubuntu) "files gone from the server (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/68976017:22
mandelhahaha ok, I though you knew, by looking at the code, it should be once per new token, yet we need to register to the dbus event somewhere, atm we do that in the desktopcouch service17:23
mandelnessita: ^17:23
beunokklimonda1, thank you, facundobatista is probably the right guy to look into it17:23
mandelnessita: so atm everytime we start the desktopcouch service we register to the events17:23
mandelChipaca: ping17:24
nessitamandel: right, so from my POV, we need to do that in a separated service. I'm working on a branch that provides credentials service specifically for Ubuntu One, and I think that that code should be located in that module17:24
nessitadobey: would you agree? ^17:24
mandelnessita: I believe that u1 desktopcouch pairing means setting up the management db so that it knows how to replicate your desktopcouch db with our servers, does it make sense?17:25
nessitamandel: I think so, but as per what you described, this code is being run every time dc is started on every boot?17:26
mandelnessita: yes, because if the user removes his credentials and creates new ones, we need to add the pairing accordingly17:27
nessitamandel: ok, but what happens in this scenario:17:27
nessitauser adds its computer one single time, that adding emits CredentialsFound. Then, a bunch of apps requests to SSO the token for U1 for this user, and the CredentialsFound signal is emitted 800 times17:28
facundobatistakklimonda1, one example of the files you deleted?17:28
kklimonda1facundobatista: you mean an actual file, its name or what? :)17:29
facundobatistakklimonda1, the name, to search for it in the logs17:29
mandelnessita: nothing, lines 59 and 62: https://pastebin.canonical.com/36655/17:30
kklimonda1facundobatista: that's the point - they are not in logs, they were never downloaded back from U1 to my computer17:30
mandelkklimonda1: do you know a guy called kevin (it was kevin, right facundo?)17:30
mandelhehehe17:30
kklimonda1facundobatista: what I do, before each upgrade to the dev release is moving my $HOME to /home/BACKUP and starting up with the clean sheat17:30
nessitamandel: ok17:30
nessitamandel: do you have the bug report you're working on?17:31
facundobatistakklimonda1, you see the files in the web ui?17:31
kklimonda1mandel: nope, I was really drunk.. erm, I mean should I know him? ;)17:31
kklimonda1facundobatista: no, the whole ~/Pictures/ was gone17:31
mandelmandel: he is one of my stupid jokes, dont worry too much, you know me :)17:31
mandelnessita: let me find it17:31
facundobatistakklimonda1, so, if you don't see them in the web ui, it's not that they're not getting back from U1 into your computer, but that they're not anywhere17:32
kklimonda1facundobatista: I think I did uncheck "Synchronize this folder" because it didn't do anything and I decided >>hey, it's a good idea to "restart it"<<17:32
facundobatistabeuno, kklimonda1 say you restored the files?17:32
mandelnessita: bug 66886817:32
ubot4Launchpad bug 668868 in desktopcouch (Ubuntu) (and 1 other project) "Move the SSO code out of desktopcouch (affects: 1) (heat: 84)" [Undecided,Confirmed] https://launchpad.net/bugs/66886817:32
facundobatistakklimonda1, to restart what?17:33
mandelnessita: the bug has to parts, remove it, which is done and add it somewhere, which is why we are talking :)17:33
nessitamandel: the add one I'm interested in17:33
kklimonda1facundobatista: to make ~/Pictures/ sync again :)17:33
facundobatistakklimonda1, I'm lost17:33
mandelnessita: we can add a new bug with the add one, and point to the original bug17:33
nessitakklimonda1: question: in the bug report you said you made a clean natty install. Does that involves a newly created home? did you keep the syncdaemon metadata untouched?17:33
mandelnessita: we have to decide the best location for this code17:34
kklimonda1facundobatista: ok, from the beginning - I've moved my $HOME to /home/BACKUP and installed natty from scratch17:34
nessitamandel: the new bug should be in ubuntuoneclient17:34
mandelnessita: as you consider more appropiate17:34
facundobatistakklimonda1, when you moved your $HOME, you were logged as you? was ubuntuone-syncdaemon running?17:34
nessitamandel: u1client for sure, then we need to decide where in u1client17:34
kklimonda1facundobatista: no, I've done it from the install cd when /home was mounted inside /target/17:35
nessitamandel: when dobey comes back, I want his opinion on putting that with the soontobeborn module to provide dedicated u1 auth17:35
facundobatistakklimonda1, ok17:35
mandelnessita: ok, he had an idea of what to do, so talk with him too and decide17:35
kklimonda1nessita: no - I've started with a new profile and only copied few files back (~/.mozilla, evolution config)17:35
facundobatistakklimonda1, you installed natty, and then what? moved stuff back? or added the machine to ubuntuone and downloaded everything again?17:35
mandelnessita: then let me know if you want me to help in that or not, but I'm kind of overloaded atm17:35
kklimonda1facundobatista: No, I've just added the machine to ubuntuone and tried to download files again17:36
mandelnessita: do you want me to file the bug, add an explanation and assign it to you?17:36
nessitamandel: please file the bug and assign it to me. Please add some detail (the kind of detail we discussed here), since I may erad the report later and don't remember what was about17:36
facundobatistakklimonda1, and at that point what happened? they did download?17:36
nessitamandel: yes!17:36
kklimonda1facundobatista: then, this saturday I've noticed that files weren't downloaded (~/Pictures/ was empty) so I decided to uncheck and check again "Synchronize this folder" in nautilus)17:36
mandelnessita: deseos == ordenes ;)17:37
nessitawow17:37
nessita:-)17:37
=== zyga is now known as zyga-gone
kklimonda1facundobatista: after that I've felt cold sweat run down ma back, I've logged into one.ubuntu.com and saw that the Pictures share isn't even there17:37
facundobatistakklimonda1, Pictures was not a share, right?17:38
facundobatistakklimonda1, and what beuno restored to you?17:38
kklimonda1facundobatista: erm, no - normal folder, not shared with anyone. My bad17:38
kklimonda1facundobatista: I keep there some pictures I've snapped with the camera and they were restored.17:39
kklimonda1facundobatista: but I also keep some other files and they were not17:39
facundobatistakklimonda1, ok17:39
kklimonda1facundobatista: my photos were in the Photos/ subfolder and it's restored completely17:40
=== zyga is now known as zyga-vaio
mandelnessita: what is your lp username?17:46
nessitamandel: nataliabidart17:48
mandelnessita: dammed, I tried all the cominations of natty, nessita, natalia I could think of and I missed that one :P17:48
nessita:-D17:48
mandelnessita: let me know if you need more info bug 68977217:49
ubot4Launchpad bug 689772 in ubuntuone-client "Desktopcouch and Ubuntu One pairing is missing (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/68977217:49
mandelnessita: I tried to get as much history about the bug as possible, that conde has been jumping from one project to another for quite some time17:50
nessitamandel: I'll read it asap, one sec17:50
mandelnessita: np17:52
facundobatistakklimonda1, I really don't know what could have happened, all basics work here... and it's not possible to do post-mortem debug without the logs, :(17:52
nessitamandel: the bug is clear though you should re-read it and fix some typos (something you use positive sentences when meaning negative ones)17:54
mandelnessita: ups, I'll read it too see what happen, although I'm quite a positive person17:55
nessitajeje17:58
dobeynessita: what's up?18:04
nessitadobey: remember when mterry asked about how to authenticate a 3rd party service against U1? and we said that we should provide a u1-specific credentials service?18:05
kklimonda1facundobatista: bummers, I was afraid you would say that - it did look like some weird corner case. I've hoped that maybe there is something in server logs that wiuld at least state what has happened18:05
nessitadobey: I've been working on that though my branch is not finished yet. I'm bringing this up because I think that mandel's pairing code should go into that same module18:05
nessitadobey: and before moving on with that, I wanted to know what you think18:06
dobeynessita: well there are two parts to the problem18:06
nessitakklimonda1: you sure you didn't copy the ubuntuone metadata?18:06
dobeynessita: there are the bits that need to be passed to ubuntu-sso-client for authenticating to U1, and there are the parts that use the resulting credentials and do other things than simply authenticating18:07
nessitakklimonda1: the other thing I can think of is that in natty, folder autosubscribe is off by default, so your Pictures/Photos folder  wasn't synchronized at startup. Did you check u1sdtool --list-folders?18:07
nessitadobey: yes18:07
dobeynessita: and the marjority of the desktopcouch code in question falls under that second category i think, and should probably stay inside desktopcouch18:07
nessitadobey: but the fact that U1 needs pairing with dc seems a u1 problem, not a desktpocouch problem18:08
nessitadobey: that is tied directly to getting new credentials18:08
nessita(not even getting credentials but *new* credentials)18:08
dobeynessita: the real problem is that the architecture isn't really designed to deal with this problem18:08
nessitadobey: which architecture?18:09
dobeynessita: the "get new credentials" stuff should be initializable from withing desktopcouch18:09
kklimonda1nessita: I'm sure I didn't copy it. I didn't check u1sdtool --list-folders, I just went over all the folders I keep on U1 and checked the "synchronize this folder" checkbox - I see that both Music and Documents are on u1sdtool --list-folders list18:09
dobeynessita: ubuntu one18:09
nessitakklimonda1: and pictures wasn't... weird. Sounds like the problem happened right before the update, maybe18:10
nessitakklimonda1: don't you have logs in your old home?18:10
nessitadobey: ok, so if I'm following you correctly, I'm proposing to add a new module to u118:10
nessitadobey: that will take care of auth + on new credetials will pair dc service18:10
nessitacredentials*18:11
kklimonda1nessita: I know that Pictures wasn't deleted from U1 before saturday as I've published a file from it at friday evening18:11
dobeynessita: i think those two acts should be separate18:11
nessitadobey: how would you separate them?18:11
kklimonda1nessita: I should still have logs from my old home if you think they may help18:12
nessitadobey: 2 different modules? the problem is that a separated module will not know if the credentials are new or not...18:12
nessitakklimonda1: I do!18:12
dobeynessita: to sync desktopcouch to u1, i shouldn't have to deal with files syncing to be able to do it, if i don't want to sync files18:12
dobeynessita: currently, i have to set up files sync, and then let it set up desktopcouch replication, and then somehow manage to disable files sync18:12
nessitadobey: but I never proposed mix this file sync18:12
dobeyit is a very weird architecture18:12
nessitadobey: I'm proposing a separated module, independent from file sync18:13
nessitalike ubuntuone.credentials18:13
nessitano need at all to have file sync enabled...18:13
nessitaor disabled or even running18:13
dobeynessita: yes, but authenticating to u1, and setting up desktopcouch to sync to u1 are separate actions. they should be doable in an independent manner18:13
kklimonda1nessita: attached to the bug 68976018:14
ubot4Launchpad bug 689760 in ubuntuone-client (Ubuntu) "files gone from the server (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/68976018:14
nessitadobey: are you sure? let me share what I'm thinking on:18:14
nessitadobey: suppose a 3rd party app requests tokens for U1, and they don't exist18:14
nessitadobey: when SSO creates the new set of tokens, the pairing should happen immediately18:15
dobeynessita: u1cp should do both. but i should be able to take both actions independently without the consequence of having the other necessarily be a requirement18:15
nessitadobey: u1cp should not be mandatory to operate with u118:15
dobeyi'm not saying it should be18:15
nessitadobey: but if u1cp handles the pairing... and u1cp is not mandatory...18:16
nessitahow would you setup pairing without u1cp?18:16
dobeynessita: but lets say i am a third party app18:16
nessitalet's18:16
dobeyif i want to sync a file to u1, my requesting credentials should not suddenly cause desktopcouch to be paired with u118:16
nessitadobey: hum point18:16
dobeywell, presumably desktopcouch-pair can set up pairing.18:17
nessitadobey: what's desktopcouch-pair ?18:17
dobeyalthough currently, it only deals with the LAN side of pairing couchdb18:17
dobeynessita: it's the tool to pair desktopcouch instances on your network18:17
dobeyvia avahi18:17
nessitadobey: but that's within dc project?18:18
dobeyyes18:18
nessitaI think that u1 should not "appear" in dc18:18
nessitabut the other way around18:18
dobeywell this is why the u1 bits should be inside a plug-in and we stick them in a desktopcouch-ubuntuone binary package18:19
dobeybut they are in the desktopcouch source tree18:19
nessitadobey: right, the bug report is to remove it from there and add it somewhere in u1client18:19
dobeyit shouldn't be in u1client18:19
nessitadobey: the question is where within u1client18:19
nessitano?18:19
nessitadobey: where then? (you're loosing me a bit)18:19
dobeyit should be in desktopcouch18:20
nessitadobey: you're confusing me... you said that right now those bits "are in the desktopcouch source tree"18:21
nessitaand should not be there18:21
dobeyi didn't say they should not be there18:21
nessitadobey: but you agreed that u1 bits should not be in dc, right?18:21
dobeyno18:21
nessitadobey: so you think that u1 bits should be in dc?18:22
dobeyi don't see any good reason to not have the little bit of code for pairing with ubuntuone in desktopcouch18:22
nessitadobey: separation of concerns, of course!18:23
nessitau1 bits should not be inside dc, that's for sure, Just like u1 bits should not be in sso18:23
nessitau1 bits belongs to u1client (or a u1 specific project)18:24
nessitaralsina: I'm curious, are you following this conversation?18:24
ralsinaYes18:24
ralsinaI am a bit confused, though18:24
nessitaralsina: I'm very skilled with destopcouch, you should know18:24
dobeyas am i apparently18:25
nessitaI'm not*18:25
nessita:-D18:25
ralsina:-D18:25
ralsinaok, then18:25
nessitaralsina, dobey: I'm confused too! :-)18:25
dobeyeh, the skill level of desktopcouch code is irrelevent18:25
ralsinawhen you say separation of concerns, you mean "desktopcouch should not depend on ubuntuone" pr something else?18:25
nessitaralsina: kinda, more like "desktopcouch should not be u1 aware"18:26
ralsinanessita: right18:26
ralsinadobey: I thought moving those bits into a separate package was your idea :-)18:26
dobeythat doesn't make any sense to me18:26
dobeyralsina: package yes; project no18:26
ralsinayes, I said package18:26
dobeyu1client != desktopcouch18:27
ralsinain what PROJECT are they now, and where are they being proposed to be moved?18:27
dobeyand it only moves the same exact problem to another place18:27
dobeymerely the exact opposite18:27
ralsinadesktopcouch => u1client, right?18:27
nessitaralsina: they are right now on desktopcouch project, I'm proposing moving them out. Not sure where to tough18:27
dobeythat is basically what nessita is proposing, yes18:27
nessitathough*18:27
nessitaralsina: actually, mandel wants to move it, and I think it makes sense18:28
ralsinawell, since it's about u1 auth it makes sense (to me) that they be moved to the u1 project18:28
ralsinadobey: explain briefly why that move is a bad idea18:28
dobeyi am proposing that the primary concern is the user experience, and that where the code lives is secondary18:28
ralsinadobey: it's either unimportant to you (and it moves to u1-client), or it's important to you and you can explain it :-)18:29
dobeyralsina: moving the desktopcouch pairing code to u1client simply reverses the problem; but it's still the same problem18:29
ralsinain what way does the problem persist? In that paiting desktopcouch nowe reuires u1?18:29
dobeyif it is moved to u1-client; how would i pair desktopcouch to ubuntuone, without installing the filesysnc stuff?18:29
ralsinaMaybe the filesync stuff should be moved to a separate package eventually18:30
dobeythe real problem is that the way it currently works is just totally wrong18:30
dobeyand moving the code doesn't fix that; it'd still be totally wrong18:30
dobeyralsina: file sync stuff is the only thing in ubuntuone-client18:30
ralsinadobey: not anymore after this change18:30
ralsinadobey: u1-client would become "file sync stuff and pairing to u1 accounts"18:31
dobeyralsina: well moving 30 lines of python into the file sync code, and then moving all the file sync code somewhere else, seems like a dumb thing to do :)18:31
ralsinaThat doesn't sounf like a stretch to me ;-)18:31
=== teknico is now known as teknico_away
dobeyeach service should be able to operate independently of the others18:32
nessitadobey, ralsina: u1client also has the nautilus plugin, the icons, the libsyncdaemon code18:32
dobeyputting everything in u1client, will not achieve that18:32
nessitathe seitgesit code18:32
nessitathe zeitgesit code18:32
dobeynessita: yes, but that's all related to the file syncing18:32
ralsinadobey: for pairing to u1 you need the u1 client. That shouldn't surprise the user, if the concern is for the user experience.18:32
nessitathe gsd plugin18:32
dobeyralsina: ubuntuone-client is perhaps a misleading name for that project now18:32
dobeyralsina: 2 years ago, we only had file syncing service :)18:33
ralsinadobey: could be. Not changing it right now, either ;-)18:33
dobeyreally, ubuntuone-client would be "all the services"18:33
dobeybut that's not what it is18:33
dobeythe music store plug-ins are in there. the notes stuff isn't in there. the evolution bits aren't in there18:33
ralsinadobey: that's ok, noone says everything is perfect. We are discussing a small thing, don't think so wide18:34
ralsinaIn this specific case, the change in the user experience is "If I want to sync couchdb to u1, I now need to install u1-client"18:34
ralsinaThat doesn't sound bad to me.18:34
dobeyralsina: well it's a bit hard not to, when we have been having the other discussion of "move stuff stuff out of u1-client" and now this one where it's proposed to move something into it18:35
dobeyit is if you consider what installing u1-client means18:35
ralsinadobey: why?18:35
dobeybecause, as i said, the name is misleading in that respect. and it would violate the "separation of concerns"18:36
dobeyit just moves the concern to another place where it's not separate18:36
ralsinadobey: it breaks separation of concerns on both places18:36
dobeynow, if ubuntuone-client was simply low level stuff and only dealt with authentication or something, that might be a different story18:36
dobeybut it isn't18:37
ralsinaOTOH I think way too much time is being wasted discussing a small change that has very little  visible effect in the end.18:37
nessitadobey: suppose we all agree that u1 bits should not be in desktopcouch source code. Where would you put it, if not in u1-client?18:38
dobeywell as i said, i think it makes sense to allow connecting desktopcouch to ubuntuone without installing all of syncdaemon/zeitgeist/gnome/etc/etc18:38
ralsinadobey: then generate a separate package for these 30 LOC18:39
ralsinaAnd don't make it depend on any of those.18:39
dobeyralsina: you're conflating package and project in that statement18:39
ralsinaBut put it in the u-client project, because it's the project that deals with u1, not on desktopcouch18:40
ralsinadobey: nope, not really, I think18:40
dobeyi see no good reason to not keep the code on the desktopcouch side and generate the second package from there18:40
dobeyinstead of generating a mostly unrelated package from u1-client18:40
nessitadobey: the good reason is like you're mixing apples with oranges. By having the u1-dc bits on u1client, we're only mixing read apples with green apples18:41
ralsinadobey: desktopcouch is not about ubuntu118:41
dobeynessita: not really18:41
nessitadobey: because...18:41
dobeynessita: because nothing in u1-client uses desktopcouch18:42
nessitadobey: the u1 service uses it18:42
ralsinadobey: that's not a very good reason, really.18:43
dobeybackwards18:43
* ralsina considers just deciding ;-)18:43
dobeythat's like saying the google service uses firefox18:43
nessitano is not... but hey, ralsina is right, too much time in this :-(18:43
ralsinadobey: u1-client will also become the source of API for 3rd parties. That's a good argument to provide it there.18:43
dobeynessita:, alecu: is there a bug about the dbus issue in the cp tests?18:43
ralsinaAt least the source of SOME api for SOME 3rd parties18:44
nessitadobey: nopes, I can create one18:44
dobeyralsina: which api?18:44
dobeyexactly18:44
dobeythe files sync api18:44
dobeyand it's already there18:44
ralsinadobey: to be determined eventually. Not just the sync files API18:44
dobeythe desktopcouch api is elsewhere :)18:44
ralsinaYes, but that's not the api to sync desktopcouch to u118:44
ralsinaAs you said you can use desktopcouch without u1. That's desktopcouch API18:45
dobeyyes18:45
ralsinaIf you put it in a separate package, the dependencies argument doesn't hold water and it can be moved back to desktopcouch if it seems like a good idea some day in the future.18:45
dobeyand i can use u1 without desktopcouch18:45
ralsinadobey: and you can use u1-client without installing this optional, separate package created from its tree.18:46
ralsinaRemember that the user doesn't see projects, he sees packages. And really, we can move it back if this solution sucks without ay ill effects.18:47
ralsinaEveryone semi-convinced? Enough to stop arguing at least? ;-)18:47
dobeymoving code around sucks18:47
dobeyespecially if the argument is "we can move it back later if we think this solution sucks"18:48
nessitadobey: bug #68980018:48
ubot4Launchpad bug 689800 in ubuntuone-dev-tools "Dbus services are not isolated from session dbus (affects: 1) (heat: 6)" [High,Confirmed] https://launchpad.net/bugs/68980018:48
nessitadobey: I don't think we'll be moving it back, we may move it to a more specific u1-place in the future. A place that we don't know yet.18:48
dobeyit doesn't matter18:49
nessitabut right now, this code is bugging desktopcouch fellows18:49
ralsina+1 to what nessita says.18:49
dobeythe point is that every time we move code, it sucks18:49
dobeywhy is the code bugging them?18:49
ralsinadobey: I promise you we won't move it again for a while. Really.18:49
thisfredI think we are spending too much time on this too, but I agree with dobey that u1 specific desktopcouch code is not out of place in the d-c project, as long as it is not in the desktopcouch package itself18:49
dobeyand i thought thisfred and i already agreed on this like 4 hours ago18:50
thisfredin fact, there is other u1 specific code in there already18:50
nessitathisfred: which one?18:50
thisfrednessita: the replication service18:50
ralsinathisfred: ok, didn't know that18:50
nessitame neither18:50
nessitathisfred: does that need to be moved as well?18:50
thisfredwell, in *theory* that could be made to replicate somewhere else18:51
ralsinaIn that case, the separatio of concerns there doesn't break by keeping the code, or that code moves too. Hopefully the first option ;-)18:51
dobeythisfred: oh right; though i was thinking mandel was suggesting it was removed as well18:51
thisfredbut there are no other servers that implement our API18:51
dobeybut either way it makes sense for that to be plug-in style code, and for the u1 service bits to be the default example plug-in18:51
thisfreddobey: I don't think so, but even if we move that as well, I don't see a problem with desktopcouch.ubuntuone as part of the source tree/project18:51
dobeythisfred: well, anyone could implement their own authentication/pairing API similar to ours, and have their own replication service18:52
nessitaI think that ubuntuone.desktopcouh makes more sense, but as long as those u1 bits are not in the dc package, I can settle18:52
thisfreddobey: sure, but as long as that hasn't happened yet, I'm skeptical about the genericity of the code18:52
dobeythisfred: well i think the code is pluggable generally, there18:53
ralsinagood18:53
thisfredwhat we call it I'm agnostic on, but I think for now the desktopcouch project is the best place for it18:53
dobeybut u1 is the only service so far yes18:53
thisfredyeah it was built to be pluggable, and I don't know that it's not, I think it's probably 99% there18:54
thisfredanyway, that's a side issue18:54
thisfredsorry for injecting that18:55
Chipacamandel: pong18:55
ralsinaoooooooooook. So. It turns out there already is u1 code in dc. I don't see the urgency to move this code then.18:56
ralsinaI do feel a separate package from the dc project is a good idea though?18:57
thisfred+118:57
nessitaralsina: yes, let me confirm with mandel18:57
ralsinaAnd ask the dc devels for opinions for much later in the future.18:57
nessitamandel: is there a current issue with leaving the u1 pairing bits on dc source code but putting those on a separated binary package?18:57
nessitaralsina, thisfred, dobey: as per mandel's report (bug #689772), seems like u1 pairing code is nowhere right now?19:10
ubot4Launchpad bug 689772 in ubuntuone-client "Desktopcouch and Ubuntu One pairing is missing (affects: 1) (heat: 6)" [Undecided,New] https://launchpad.net/bugs/68977219:10
ralsinanessita: looks like it19:11
nessitathisfred: can you confirm/deny this?19:12
thisfrednessita: yeah, could be, I thought it had been moved, didn't realize we ended up removing it from everywhere instead :(19:12
thisfredI'll look at trunk19:12
thisfrednessita:  desktopcouch/application/replication_services/ubuntuone.py still exists19:13
thisfredbut that doesn't do the initial pairing I think19:13
thisfrednessita: oh wait no:19:14
thisfreddesktopcouch/application/pair/couchdb_pairing/ubuntuone_pairing.py still exists19:14
* nessita checks19:15
thisfrednessita: but nothing except tests call it19:15
nessitathisfred: and who/what should be also calling it to make it run?19:16
nessitathisfred: also, there is a19:16
nessita./desktopcouch/pair/couchdb_pairing/ubuntuone_pairing.py19:16
nessitaand a19:16
nessita./desktopcouch/application/pair/couchdb_pairing/ubuntuone_pairing.py19:16
nessita?19:16
thisfrednessita: I have no idea. I assume it should be triggered by signing up for the service, or adding the machine19:17
thisfrednessita: one is deprecated19:17
thisfrednessita: it imports the newer one19:17
nessitathisfred: but the code that connects callbacks to the SSO auth service is ran?19:17
nessitaah19:17
thisfrednessita: that I don't know. mandel worked on that part19:17
nessitaok, I'll re ping him19:18
nessitathisfred: thanks!19:18
thisfrednessita: note it's past his EOD most likely19:18
nessitayes19:18
thisfredit's 8:15 PM in the old country19:18
nessitayeah...19:18
ralsinaok, this can wait until mandel is here, I'll catch him early :-)19:19
nessitaralsina: thanks!19:20
dobeynessita: hrmm, something is very weird with the u1cp integration tests19:22
nessitadobey: for example? alecu built that part, he may be able to help us19:23
dobeynessita: i have no idea yet, but i can't reproduce the problem with a simpler test in ubuntuone-dev-tools directly19:24
karniverterok: is volumeId + nodeId unique for an element (node) in the storage? in other words, can it happen that a Share and a UDF have same volumeId and nodeId, and only differ by volume type (Share vs UDF) ?19:24
nessitadobey: how is your test setup?19:25
dobeynessita: http://pastebin.ubuntu.com/543229/19:25
verterokkarni: nope19:25
dobeynessita: and it passes every time19:25
verterokkarni: volume_id+node_id is an unique identifier for a node19:25
karniverterok: just to be clear. if we have a volumeId and a nodeId, we have pinpointed the file/dir ?19:25
karniverterok: thank you :)19:25
karniverterok: the code is in my +junk, but it should be more usable as soon as I squeeze in few more hours for it..19:26
dobeynessita: also pases using com.ubuntu.sso instead19:26
nessitadobey: can you please try it with com.ubuntu.sso?19:26
dobey:)19:26
nessitadobey: ah...19:26
karniverterok: /me codes the project now19:27
verterokkarni: cool, thx :)19:27
karni:)19:27
nessitadobey: is u1cp trunk failing when ussoc service is up and running?19:27
nessitadobey: and, can I have the full test source code to run it here?19:28
dobeynessita: yes it is19:28
nessitaah...19:28
dobeynessita: which full test source code?19:28
nessitadobey: the test case where the  test_dbus_session_is_private is running19:28
dobeynessita: i added it to the ubuntuone/devtools/services/tests/test_dbus.py in a branch of ubuntuone-dev-tools trunk where i'm trying to figure out the problem19:29
dobeynessita: so just copy/paste it there. i just put it in there real quick to try and create a minimal failure case19:30
nessitahum19:30
dobeybut it passed instead19:31
dobeynessita: but what's weird, is that in u1cp, even if NONE of the integration tests are run, the system syncdaemon still gets started19:32
dobeynessita: so all it's doing at that point is importing the test_foo.py for integration tests19:32
nessitadobey: any idea how to debug further?19:33
dobeynot really. there's no easy way to tell what exactly is causing it to happen19:33
nessitaalecu: would you have some pointers/ideas? ^19:34
alecunessita, dobey: pong.19:34
alecunessita, dobey: sorry, I was logged in as another user, testing zeitgeist.19:34
nessitaalecu: need a summary?19:34
alecucatching up.19:35
nessitadobey: why you added the DBusGMainLoop(set_as_default=True)?19:35
dobeyweird19:35
nessitadobey: FYI, docstring should have triple double quotes, not '''19:35
dobeynessita: because the DBusClientTestCase in u1cp does it19:36
dobeyalthough, weird19:36
dobeybecause i just ran the tests again and it didn't start the system sd19:36
nessitadobey: in u1cp, the system SD is started one time yes, one time no19:37
nessitawhich yes, is even odder19:38
dobeynessita: well so far, it has happened every time for me, until now19:38
alecudobey, nessita: do you have a branch to test this, or is this just u1cp trunk?19:38
dobeytrunk19:38
nessitaalecu: u1cp trunk19:38
=== ChrisWoollard1 is now known as ChrisWoollard
nessitadobey: hum... can you try replicating the19:39
nessita     28         name = bus.request_name('com.ubuntu.sso',19:39
nessita     29                                 dbus.bus.NAME_FLAG_DO_NOT_QUEUE)19:39
nessita     30         self.assertNotEqual(name, dbus.bus.REQUEST_NAME_REPLY_EXISTS)19:39
nessitaso the test actually fails?19:39
nessitabecause here it doesn't fail even calling request_name 2 times in a row19:40
dobeyhuh19:43
dobeynessita: replicating it where?19:43
dobeynessita: that code in a test in devtools passes every time19:44
nessitadobey: in the same test, if we call request_name 2 times, the second one, the assert should fail, no?19:44
dobeyoh, maybe19:44
nessitadobey: this should fail, right? http://pastebin.ubuntu.com/543240/19:44
nessitabut is not failing for me19:45
dobeynessita: weird, it's not failing here either :(19:46
dobeywtf19:46
nessitadobey: something is odd19:47
dobeyvery19:47
joshuahoovernessita: ping19:51
nessitajoshuahoover: 1/8 pong19:52
joshuahoovernessita: have you heard of users adding their computer to u1 on their maverick computers and the computer showing up twice in u1-prefs?19:52
nessitajoshuahoover: yes, bug #68752319:52
ubot4Launchpad bug 687523 in ubuntu-sso-client (and 1 other project) "SSO service creates two tokens for one request (affects: 1) (heat: 6)" [High,Confirmed] https://launchpad.net/bugs/68752319:52
joshuahoovernessita: ah, thanks!19:53
nessita:-)19:53
dobeywtf is going on with dbus here20:01
dobeyhrmm20:06
dobeyi bet something somewhere is doing some nasty on import20:06
dobeynessita: found it!20:11
nessitadobey: what is it?!?!?!20:11
dobey-def publish_backend(backend=ControlBackend()):20:14
dobey+def publish_backend(backend=None):20:14
nessitadobey: that called my attention as well, but I don't understand what the problem is20:14
dobeynessita: because it's not the class name that is the default, but the initalized object, it is getting initialized when the file gets imported20:17
nessitaargh!20:17
dobeynessita: and u1trial imports the test_foo.py (which in turn imports their things), to be able to determine what processes need to be run20:18
dobeynessita: and since that is done before the private dbus session is started, it connects to the one it's finding :)20:18
nessitadobey: right... awesome catch, really20:18
nessitadobey: wanna propose a branch? mark the bug as invalid in dev tools and put it on u1cp20:19
dobeynessita: yes am about to do that right now. though i did find another issue in devtools in the process, which i'll also fix :)20:19
* ralsina reminds everyone that mutable default arguments in python are evil20:19
karniverterok: i'm not sure if it's best to ask you, but do you know how U1 knows where to dowload a file? say, during initial synchronization, how it constructs the path - does it recurse down directories and thus know the path?20:22
verterokkarni: the path is in the metadata20:22
karni:O xDDD20:22
verterokkarni: volume path + node path20:22
karniverterok: seriously xD?20:22
karninode path is in the meta? hahahahah20:22
verterokkarni: the volume path is the only thing defined by the client20:23
karniGod I get to know new things with you every day ;D20:23
karni(every day I code)20:23
karnihahah... oh man :)20:23
verterokkarni: e.g: for UDFs it's the suggested_path20:23
karniverterok: oh, that's what you mean.20:23
karnino no, what I mean is:20:23
verterokkarni: for shares is a bit more complex, share_name + 'from' + user_visible_name20:23
karnisay, you have a file ~/Ubuntu One/foo/bar/star20:23
verterokkarni: but that is defined by the client itself20:24
karnihow does U1 know where to download 'star' during initial sync?20:24
verterokkarni: "~/Ubuntu One/" is the root volume path20:24
karnidoes it pull first ~/Ubuntu One/*, then contents of foo/*, then bar/*20:24
verterokkarni: foo/bar/star is in the metadata of the node "star"20:24
karnioh man.. so it's in the meta20:24
karniverterok: has it been there always.. ?20:25
verterokkarni: hmm, let double check :)20:25
karniverterok: I constructed the path of the file in AU1 based on where the user navigated to.20:26
verterokkarni: sorry, the path isn't in the metadata from the server20:26
karnioh ;<20:26
karniand I already was so happy ;)20:26
verterokkarni: but in a delta, you have the node_id and the parent_id20:26
dobeynessita: https://code.launchpad.net/~dobey/ubuntuone-control-panel/fix-689800/+merge/4356720:26
karniyes20:26
verterokkarni: and you get the contents in the delta in order20:27
karniso, should I recurese up? and construct the path?20:27
nessitadobey: review queued20:27
verterokkarni: so, you always process from parent -> child20:27
karniin order20:27
karniaha, ok20:27
karniverterok: ok, thank you :)20:27
karniverterok: that's helpful20:27
verterokkarni: do you have a checkout of client/syncdaemon code?20:27
dobeynessita: btw, i just noticed; why are the u1cp branches private?20:27
verterokkarni: take a look to ubuntuone/syncdaemon/sync.py @ line 104620:28
verterokkarni: that's how the client process deltas20:28
nessitadobey: they shouldn't be, I asked a losa to make public the default20:28
ralsinadobey nessita: I approve20:28
karniverterok: ok, thank you. will do20:28
karniverterok: nice, thanks!20:29
dobeynessita: and https://code.edge.launchpad.net/~dobey/ubuntuone-dev-tools/fix-689851/+merge/43571 to fix the other issue i found in devtools20:38
nessitadobey: u1cp branch approved. SInce we're at it, can you add u1cp to be landed by tarmac please? veridy_command should be ./run-tests20:40
dobeyok20:43
nessitadobey: thanks20:43
dobeyi guess i need to set up nightlies of that too20:44
dobeynessita: tarmac is set up now20:46
nessitadobey: yes please, all the packaging bits are ready, so it should not be a problem20:46
* dobey really needs an EPOC20:48
* ralsina is going away now. Anyone needs anything?20:50
dobeyice perhaps20:51
ralsinaI could mail you some, but that's impractical :-)20:51
nessitadobey: devtools branch approved20:53
dobeyheh20:54
dobeyindeed. it would be water by the time it got here20:54
dobeyand water mixed with bourbon isn't exactly what i was going for :)20:54
dobeyof course, an EPOC that works on linux would be nice too20:55
dobeyand emacs/firefox/X not crashing all the time20:55
dobeyand cake20:55
dobeynessita: thanks20:56
dobeyok, quick break after all that crazy typing20:56
ralsinaI'll try to do something about the cake whenever we meet in person :-)20:56
ralsinaHave a nice evening everyone.20:56

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