summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sota.bbclass: Translate old prov recipe names into the new versions.refactor/rocko/renaming-secondaries-etcPatrick Vacek2019-06-051-0/+14
| | | | | | | This should help ease the transition so that no one is surprised when their provisioning suddenly stops working. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Remove executable access control bits from aktualizr recipe.Patrick Vacek2019-06-051-0/+0
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Rename provisioning methods.Patrick Vacek2019-06-0520-107/+106
| | | | | | | | | | | | "Autoprovisioning" or "automatic provisioning" is now known as "shared credential provisioning". "Implicit provisioning" is now known as "device credential provisioning". "HSM provisioning" was always a misnomer, so it is now refered to as "device credential provisioning with an HSM". This includes a bump of the aktualizr version as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: bump garage sign to version 0.7.0-3-gf5ba640.Patrick Vacek2019-06-051-3/+3
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Switch to Aktualizr's version that supports IP Secondaries ↵Mike Sul2019-06-051-1/+1
| | | | | | | preconfig and its tests Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: IP Secondary tests (oe-selftest)Mike Sul2019-06-052-66/+138
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Use local.conf's variables to configure Primary with ↵Mike Sul2019-06-0510-13/+86
| | | | | | | Secondary(ies) and vice versa Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Use MPL-2.0 license for recipes-test's recipesMike Sul2019-06-057-7/+10
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Add suffix '-sndry' to a default HW_ID for Secondary. Ability to ↵Mike Sul2019-06-057-7/+40
| | | | | | | define IP and Port in local.conf Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Remove Secondary's socket service. Use a regular systemd service ↵Mike Sul2019-06-053-11/+6
| | | | | | | to start Seconadry daemon Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Static IP address on Primary's and Secondary's internal NICMike Sul2019-06-059-8/+69
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Network configuration on IP/Posix SecondaryMike Sul2019-06-051-0/+8
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr-polling-interval: new config fragment.Patrick Vacek2019-06-053-0/+32
| | | | | | | | | Can be used for testing purposes after we increase the default polling interval in aktualizr. We no longer recommend anything less than an hour for production use cases, but it's still convenient to poll more frequently while testing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* sota.bbclass: move sota to DISTROOVERRIDESMing Liu2019-06-051-1/+1
| | | | | | | | | | | Move sota to DISTROOVERRIDES from OVERRIDES, it should be a distro overrides. This change also let 'sota' to be in front of 'forcevariable' in OVERRIDES, since 'forcevariable' should always be the last overrides. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2606: Renaming provisioning methodsMerlin Carter2019-06-051-1/+1
| | | | | | | Removing unnecessary square brackets Signed-off-by: Merlin Carter <merlin.carter@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2606: Renaming provisioning methodsmerltron2019-06-051-1/+1
| | | | | | | | Updating links to documentation with proper terminology rather than aktualiz repo topics (aktualizr repo also now has a mirror of the same topic). Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #514 from advancedtelematic/fix/rocko/backportPatrick Vacek2019-05-2038-404/+904
|\ | | | | Fix/rocko/backport
| * Mention oe-selftest usage of ptest.fix/rocko/backportPatrick Vacek2019-05-171-0/+2
| | | | | | | | | | | | | | Despite that it is not fully supported in rocko/sumo because of valgrind/openssl and timeout issues. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Fix bad ptest printing of failuresLaurent Bonnans2019-05-171-1/+1
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Make aktualizr-ptest depend on python3-miscLaurent Bonnans2019-05-171-1/+1
| | | | | | | | | | | | Some of our tests use pathlib which ends up in there... Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * More robust aktualizr-ptest printing of errorsLaurent Bonnans2019-05-171-2/+2
| | | | | | | | | | | | | | If ctest is interrupted (e.g. timeout), its partial output will be in /tmp/aktualizr-ptest.log.tmp Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * aktualizr: fix cmake compilation for ptest.Patrick Vacek2019-05-071-1/+2
| | | | | | | | | | | | | | | | | | The cmake recipe in rocko doesn't support the build function that later release branches use, and by default it just compiles the default target (instead of 'all'). This fix will compile everything the same way as is done in the later release branches, but we have to be much more explicit about it. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: do not require openssl-bin.Patrick Vacek2019-05-031-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * selftest: retry aktualizr failure check due to resource constraints.Patrick Vacek2019-05-031-2/+9
| | | | | | | | | | | | | | For some reason it now often fails if you don't briefly pause first, so just retry it if it fails a few times. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Remove aktualizr-check-discovery dependency.Patrick Vacek2019-04-291-2/+1
| | | | | | | | | | | | It no longer exists. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Bump to latest for recovery fixes.Patrick Vacek2019-04-291-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * selftest: Remove test_secondary_listening.Patrick Vacek2019-04-291-5/+0
| | | | | | | | | | | | | | The secondary discovery mechanism is being overhauled and that tool no longer exists. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Bump aktualizr and garage toolsLaurent Bonnans2019-04-291-4/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Use PARALLEL_MAKE when building aktualizr-ptestLaurent Bonnans2019-04-291-1/+1
| | | | | | | | | | | | | | The trick to add it in do_compile from cmake.bbclass does not work with do_compile_ptest_base Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Parametrizable AKTUALIZR_PTEST_PARALLEL_LEVELLaurent Bonnans2019-04-291-2/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add openssl-bin as a aktualizr-ptest requirementLaurent Bonnans2019-04-291-1/+1
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Fix problem with lshw for aktualizr ptestLaurent Bonnans2019-04-291-2/+2
| | | | | | | | | | | | | | lshw is installed in `/usr/sbin` which does not appear when a command is launched outside a non-login shell. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add oe-selftest for aktualizr ptest run on qemuLaurent Bonnans2019-04-292-2/+54
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * OTA-2418: Remove example.com URL from automated garage-sign usageMykhaylo Sul2019-04-292-2/+7
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
| * Cleanup (not) provisioned checks in oe-selftestLaurent Bonnans2019-04-293-62/+33
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Solve qemu long rng initialization problemLaurent Bonnans2019-04-291-0/+2
| | | | | | | | | | | | Expose a fake hardware rng on the guest, linked to the host's /dev/urandom. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add resource control testLaurent Bonnans2019-04-291-0/+45
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Fix in oe-selftests/qemu_launchLaurent Bonnans2019-04-292-20/+5
| | | | | | | | | | | | Should build `imagename` and not 'core-image-minimal' in all cases Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Split oe-selftests by target machinesLaurent Bonnans2019-04-296-271/+307
| | | | | | | | | | | | To allow for more targeted testing Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Document aktualizr-resource-controlLaurent Bonnans2019-04-291-0/+14
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add aktualizr-resource-controlLaurent Bonnans2019-04-292-1/+31
| | | | | | | | | | | | For controlling systemd cgroups configuration of the aktualizr daemon Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Set 'allarch' to aktualizr config recipesLaurent Bonnans2019-04-2910-1/+20
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Save space in deployed aktualizr ptestLaurent Bonnans2019-04-291-2/+5
| | | | | | | | | | | | | | | | | | * remove whole RIOT repo * remove intermediary static libraries, only useful during build Should be around 500MB saving in total Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Document ptest for aktualizrLaurent Bonnans2019-04-291-0/+13
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * oe-selftest: look for expected error in stderr.Patrick Vacek2019-04-291-1/+1
| | | | | | | | | | | | The output was moved from stdout to stderr in a recent aktualizr commit. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Patch valgrind for rpi runsLaurent Bonnans2019-04-292-0/+254
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Depend on python3-modules and curl for aktualizr-ptestLaurent Bonnans2019-04-291-1/+1
| | | | | | | | | | | | | | For python: less headaches, it's already huge anyway. Curl is needed by some shell-backed tests. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Disable ptest for aktualizr by defaultLaurent Bonnans2019-04-291-0/+4
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * Add working ptest suite for aktualizrLaurent Bonnans2019-04-292-1/+33
| | | | | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * aktualizr: draft of enabling ptestPatrick Vacek2019-04-291-1/+6
| | | | | | | | | | | | | | | | | | Original work from Patrick. Laurent: dropped a patch for a change in aktualizr we now support directly Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>