Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

FreeBSD doesn't periodically recontextualize on vCenter #250

Open
vholer opened this issue Oct 27, 2021 · 0 comments
Open

FreeBSD doesn't periodically recontextualize on vCenter #250

vholer opened this issue Oct 27, 2021 · 0 comments

Comments

@vholer
Copy link
Contributor

vholer commented Oct 27, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant