Skip to content

Conversation

@cvaroqui
Copy link
Member

No description provided.

/var/lib/opensvc/cache/addrinfo/<name> files contain the
resolved ipaddr. When the name resolution does not work, the
cache files content is trusted for 16m. After that duration,
the ip resource status is considered undef and we now longer
accept to stop or start the resource as we don't know the addr.
With micro-containers we used "nsenter -e" but this can hang
with certain /proc/<pid>/environ contents.

Parse the container process environ ourselves and pass the env
to the exec.Command. Don't use -e anymore.
So the secondary instance is ready to refetch when the up
instance status is next refreshed.

This patch fixes a case where the file was never refetched
when the admin removed the file from a secondary node in the
hope to demonstrate how opensvc handles resync automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant