Ticket #7765 (new defect)

Opened 6 years ago

Last modified 4 years ago

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
Action Needed: design Verified: no
Deployments affected: Blocked By:
Blocking:

Description (last modified by gregorio) (diff)

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

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

Change History

Changed 6 years ago by kimquirk

  • cc mstone, gregorio added
  • owner set to erikos

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.

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?

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.

Changed 6 years ago by erikos

Fully agree with eben here!

Changed 6 years ago by marco

  • next_action changed from never set to code

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

"sugar-control-panel something"

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

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?

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

Changed 6 years ago by erikos

  • keywords r? added
  • next_action changed from code to review

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.

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.

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

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

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.

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

Changed 6 years ago by gregorio

  • description modified (diff)

Changed 6 years ago by kimquirk

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

This is the long term solution, moving to 9.1.

Changed 5 years ago by erikos

  • next_action changed from review to design
  • spec_stage set to unknown
  • spec_reviewed set to 0

Changed 4 years ago by sridhar

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