Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds longhorn-manager command patch #16

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

claudiubelu
Copy link
Contributor

The original longhorn-manager image doesn't have an entrypoint, only a CMD. This means that when the image is launched, it will run the CMD directly. Basically, the CMD is the ENTRYPOINT (binary + arguments). That works fine with the current deployments.

longhorn-manager will create the daemonset.apps/longhorn-csi-plugin, which will have a longhorn-manager container, which doesn't override the entrypoint, only the args (aka CMD).
But in our rock scenario, Pebble is the entrypoint, which will get those arguments and pass them on onto the service defined above. This results in an invalid command being run, something like:

longhorn-manager -d daemon longhorn-manager -d csi --nodeid=...

This patch updates the mentioned container args to command, overriding the Pebble entrypoint, avoiding this problem.

The original longhorn-manager image doesn't have an entrypoint, only a CMD.
This means that when the image is launched, it will run the CMD directly. Basically, the
CMD is the ENTRYPOINT (binary + arguments). That works fine with the current deployments.

longhorn-manager will create the daemonset.apps/longhorn-csi-plugin, which will
have a longhorn-manager container, which doesn't override the entrypoint, only the
args (aka CMD).
But in our rock scenario, Pebble is the entrypoint, which will get those arguments and pass them
on onto the service defined above. This results in an invalid command being run, something like:
longhorn-manager -d daemon longhorn-manager -d csi --nodeid=...

This patch updates the mentioned container args to command, overriding the Pebble entrypoint,
avoiding this problem.
@claudiubelu claudiubelu requested a review from a team as a code owner September 10, 2024 12:49
@berkayoz berkayoz merged commit e15dd97 into canonical:main Sep 11, 2024
5 of 6 checks passed
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.

2 participants