This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Description
Periodic recontextualization check for #185 doesn't happen on FreeBSD, as the cronjob triggers the service one-context-reconfigure first with start action and fallbacks to onestart (required on FreeBSD) only if first one fails.
|
* * * * * root if [ "$(virt-what 2>/dev/null)" = 'vmware' ]; then service one-context-reconfigure start >/dev/null 2>&1 || service one-context-reconfigure onestart >/dev/null 2>&1; fi |
Unfortunately, on FreeBSD the run with start doesn't exit as failure even if the service doesn't run.
Solution is to swap the order of calls, run first with onestart and if fails fallback to just common start.
Remove skip in tests when fixed:
https://github.com/OpenNebula/development/blob/40f72c61ee248bd1451bf1c60491df9b9ee4f5ba/readiness/spec/context/linux/network.rb#L251