Opened 6 years ago

Last modified 4 years ago

#7765 new defect

Reset registration for school server; long term fix

Reported by: kimquirk Owned by: erikos
Priority: blocker Milestone: 9.1.0-cancelled
Component: sugar Version: not specified
Keywords: Cc: mstone, gregorio, Eben, marco, sayamindu, sridhar
Blocked By: Blocking:
Deployments affected: Action Needed: design
Verified: no

Description (last modified by gregorio)

Currently there is no way to force a laptop to re-register to a new school server. This is especially important for all our testing and when we roll this out to a country they, too, need to test and everyone will make mistakes and need to re-register at some point.

This trac item is asking for the 'quick and dirty' re-registration which simply deletes two lines: [Server] and [backup] in the file: /home/olpc/.sugar/default/config

This can be done in the terminal.

Please see the long term feature request that will recommend doing this all behind the scenes with some smart scripts, #7764.

Attachments (1)

7765-reset.patch (1.8 KB) - added by erikos 6 years ago.
cp command to clear the registration

Download all attachments as: .zip

Change History (21)

comment:1 Changed 6 years ago by kimquirk

  • Cc mstone gregorio added
  • Owner set to erikos

comment:2 Changed 6 years ago by erikos

  • Cc Eben marco added
  • Component changed from not assigned to sugar

Let's discuss an UI for that with Eben and marco.

comment:3 Changed 6 years ago by erikos

one more thing to consider: what does happen on the server side when the client unregister? Should't there be a command as well?

comment:4 Changed 6 years ago by Eben

Yes, there was definitely prior discussion about adding an "Unregister" option, and we didn't add it to the UI because it required (in our eyes) an unregister command on the school server so that the DB stays in sync. I think, as a short term solution (until we have school servers represented in the neighborhood view), we should just change the 'Register' item of the Home XO palette to 'Unregister' as appropriate, and have that invoke the necessary actions on the XO and the XS.

Bringing the control panel into this isn't the right course of action.

comment:5 Changed 6 years ago by erikos

Fully agree with eben here!

comment:6 Changed 6 years ago by marco

  • Action Needed changed from never set to code

We decided to make it a CLI thing in the status meeting.

"sugar-control-panel something"

comment:7 Changed 6 years ago by gregorio

  • Keywords blocks:8.2.0 added

Changing to blocks 8.2.0 per Kim's e-mail.

Thanks,

Greg S

comment:8 Changed 6 years ago by erikos

hmm we wanted options you can get and set in the control panel. To unregister from the school server it would be a clear/unregister option. Adding a clear command possibility for that 'sugar-control-panel -c school_server_registration'? Something like 'sugar-control-panel -s backup_server "" ' sounds wrong to me. I know it is meant to be a workaround but it all sounds really hacky to me.

Did we take into account now that there should be as well an unregister command on the school server?

comment:9 Changed 6 years ago by marco

This is just a short time hack. I wouldn't spend too much time to make it generic/clean. A simple special case option passed to sugar-control-panel will do imo.

Changed 6 years ago by erikos

cp command to clear the registration

comment:10 Changed 6 years ago by erikos

  • Action Needed changed from code to review
  • Keywords r? added

comment:11 Changed 6 years ago by erikos

The patch attached which adds the -c (clear) option does allow the 'clear network config' #7480 to work from the command line.

comment:12 Changed 6 years ago by erikos

|TestCase|

Register with a schoolserver. Use the command 'sugar-control-panel -c registration' to reset the registration. You should be able to connect now again with the school server.

comment:13 Changed 6 years ago by gregorio

  • Cc sayamindu added

Hi Erik,

That's a good start but I think Kim wants it in the GUI: "This should be done through the control panel, Network Settings."

Can you synch up with Eben/sugar and add a simple interface there for this? Let's also make sure to tell Localization team that we may break the string freeze for this.

Thanks,

Greg S

comment:14 Changed 6 years ago by erikos

We discussed in the last meeting with kim that we only make it a command line interface. http://dev.laptop.org/ticket/7765#comment:6

Best,

Simon

comment:15 Changed 6 years ago by marco

Greg, I think you are confused. Kim wants UI for the network manager clear thing. She said in the status meeting that command line is fine for this one.

comment:16 Changed 6 years ago by gregorio

  • Description modified (diff)

You're right! I was mixing the register and network manager clear. Sorry for the churn.

I edited the description on this one too.

Thanks,

Greg S

comment:17 Changed 6 years ago by gregorio

  • Description modified (diff)

comment:18 Changed 6 years ago by kimquirk

  • Keywords blocks:8.2.0 r? removed
  • Milestone changed from 8.2.0 (was Update.2) to 9.1.0
  • Summary changed from Reset registration for school server; short term fix to Reset registration for school server; long term fix

This is the long term solution, moving to 9.1.

comment:19 Changed 6 years ago by erikos

  • Action Needed changed from review to design
  • spec_reviewed set to 0
  • spec_stage set to unknown

comment:20 Changed 4 years ago by sridhar

  • Cc sridhar added
Note: See TracTickets for help on using tickets.