Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for automatic updates in lepidopter #57

Closed
hellais opened this issue Jul 10, 2016 · 6 comments
Closed

Add support for automatic updates in lepidopter #57

hellais opened this issue Jul 10, 2016 · 6 comments

Comments

@hellais
Copy link
Member

hellais commented Jul 10, 2016

There should be a way to automatically update the image of lepidopter.

Currently the only thing that is being updated is ooniprobe itself and this is done via pip.

The update system should support doing more advanced things as well such as:

  • Updating configuration files
  • Making changes to the period scripts that get run
  • Installing additional software that is needed for newer version of lepidopter/ooniprobe
  • Configuring ooniprobe to run in different ways
@hellais
Copy link
Member Author

hellais commented Aug 3, 2016

Other things that come to mind that will be necessary include:

  • Setting up a init script for running certain system services (ooniprobe-agent)
  • Configuring a wifi network and altering other network settings

Moreover if we want to be ambitious it would be ideal to also support:

  • Upgrading the firmware
  • Upgrading the OS

@anadahz
Copy link
Member

anadahz commented Aug 12, 2016

Categorizing the requirements for the automatic update process:

  • Update system/ooniprobe configuration files (this includes altering the period scripts get run and configuration of ooniprobe to run in different ways, set up an init script for running certain system services)
  • Add/remove software

Configuring a wifi network and altering other network settings

Modifying network configuration of a running (24/7) headless embedded server is usually not a good idea.
@hellais can you elaborate a bit more of how did you think of it as something that could be useful?

Upgrading the firmware

This is quite trivial to be done but given the nature of lepidopter distribution being a headless server we will not gain much by regularly upgrading the firmware, instead if something goes wrong during the process or after rebooting the RasPi for the firmware updates to take effect we can end up with a non-bootable or unresponsive RasPi.

Upgrading the OS

Lepidopter uses Debian Jessie that is going to be fully supported up to ~June 6th 2018 and Debian has planned to offer long term support from May 2018 to end of April/May 2020.

Given the fact that we are going to have the ability to add/remove software in future versions of lepidopter we can still trigger (upon extensive testing) a distribution (OS) upgrade.

Does this makes sense?

@darkk
Copy link
Member

darkk commented Aug 18, 2016

xref: #69 — Add OTAU2 specification draft

@anadahz anadahz removed this from the lepidopter 0.3.0-beta release milestone Aug 28, 2016
@anadahz
Copy link
Member

anadahz commented Aug 28, 2016

Given that OTA upgrades is a complex implementation we will need to dedicate more time for testing and deployment, it makes sense to move this ticket in later version of Lepidopter.

@hellais
Copy link
Member Author

hellais commented Dec 5, 2016

I think we can consider this at this point closed?

@hellais
Copy link
Member Author

hellais commented Apr 5, 2017

I am going to say this is done with lepidopter-updater

@hellais hellais closed this as completed Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants