summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reusable meta-updater pipeline suiteBackport/sumo/secondariesLaurent Bonnans2019-07-177-45/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed: * Oe-selftest GitLab pipeline stage * Use credentials for CI's oe-selftest * Setup kvm trick for docker on CI The gid of the kvm group needs to match the one from the host * Run ci scripts from Docker images * Template out jobs and split .gitlab-ci.yml To be easily reused in other branches and projects Rely on this gitlab feature: https://docs.gitlab.com/ee/ci/yaml/#extends * More flexible checkout script for CI - can work without $CURRENT_PROJECT (checks out everything) - can take a list of pinned versions * Add optional CI jobs ptest and other oe-selftests * Publish bitbaked images as artifacts Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Gitlab pipeline for building core-image-minimalLaurent Bonnans2019-07-174-1/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | Including these points (initially as separate commits): * Try caching updater-repo in gitlab * Only patch aktualizr recipe in CI if needed * Run under user 4321 in bitbake docker image * Add ability to supply METADIR to envsetup.sh So that we can bypass the "relative path from the script" trick that doesn't work with symlinks. * Checkout the PR base branch * do not run on pushes * run on runners with "gitlab" tag * Print all revisions after repo checkout on CI * Pull CI image from the base branch instead of master * More robust checkout in CI * Only store updater-repo artifacts for one day * Use "stretch" instead of "stable" for Debian release in Dockerfile (in fact, stable just changed to buster) * Move UPDATER_REPO variable out of .gitlab-ci.yml To be defined in the project's settings * Make docker CI stage buildable on shared runners Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix ptest build after recent aktualizr changesLaurent Bonnans2019-07-171-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use 128M by default for qemu in oe-selftestsLaurent Bonnans2019-07-174-5/+9
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix race condition in oe-selftest HSM testLaurent Bonnans2019-07-171-7/+6
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Do not push ostree images during most of oe-selftestLaurent Bonnans2019-07-172-0/+10
| | | | | | One failure point less Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix some oe-selftest timeouts issuesLaurent Bonnans2019-07-172-8/+12
| | | | | | Was causing problems on CI Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Factor out ugly function in oe-selftestsLaurent Bonnans2019-07-175-67/+27
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix aktualizr-native run in oe-selftestLaurent Bonnans2019-07-173-24/+22
| | | | | | | | | | It did not work when using an empty build dir with sstate-cache, the proper working way is to bitbake build_sysroots. Also change the way we fetches some of the akautalizr package files which was broken too. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* OTA-2488: Remove SOTA_SECONDARY_CONFIG_DIR configuration variable (old way ↵Mike Sul2019-07-172-12/+2
| | | | | | to configure secondaries). Bump corresponding version of aktualizr. Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Increase time to wait for secondaries registration at PrimaryMike Sul2019-07-172-2/+2
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* softhsm-testtoken: add opensc to rdependsRicardo Salveti2019-07-171-1/+1
| | | | | | Add opensc to rdepends as it requires pkcs11-tool. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* libp11: remove recipe, prefer recipe from meta-oeRicardo Salveti2019-07-171-41/+0
| | | | | | | meta-oe now ships with libp11 0.4.10, which is newer than the revision used by this recipe. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* OTA-2294: Use WiFi on Primary (if enabled) to communicate with the backend ↵Mike Sul2019-07-174-4/+4
| | | | | | in case of RPi target Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Add copyright and reference license and DCO.Patrick Vacek2019-07-171-0/+6
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Add dependencies section.Patrick Vacek2019-07-171-6/+16
| | | | | | | | This can be found in the quickstart guide but is worth putting front and center here, especially for the things we don't mention in the quickstart. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: Primary and Secondary network configuration in case of RPiMike Sul2019-07-175-18/+32
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Add support for raspberrypi3-64Laurent Bonnans2019-07-172-1/+20
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add some sample configuration in default local.confLaurent Bonnans2019-07-172-2/+38
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add example recipe for systemd-journald configurationLaurent Bonnans2019-07-172-0/+23
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Remove some ancient recipesLaurent Bonnans2019-07-173-46/+0
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #527 from ↵Patrick Vacek2019-06-0736-212/+502
|\ | | | | | | | | advancedtelematic/refactor/sumo/renaming-secondaries-etc Refactor/sumo/renaming secondaries etc
| * sota.bbclass: Translate old prov recipe names into the new versions.refactor/sumo/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-0521-131/+130
| | | | | | | | | | | | | | | | | | | | | | | | "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 #515 from advancedtelematic/fix/sumo/backportPatrick Vacek2019-05-1738-405/+903
|\ | | | | Fix/sumo/backport
| * Mention oe-selftest usage of ptest.fix/sumo/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 syntax for make parallelization.Patrick Vacek2019-05-031-1/+1
| | | | | | | | | | | | | | | | Older release branches apparently require the -- to indicate flags passed from cmake to make. Newer branches apparently understand the intention with 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>