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

[booth] consider in-one-go optimization for "new resource under a ticket": pcs resource create NAME SPEC OPTS... --ticket TICKET #227

Open
jnpkrn opened this issue Dec 10, 2019 · 1 comment

Comments

@jnpkrn
Copy link
Contributor

jnpkrn commented Dec 10, 2019

When knowinly creating a resource for multi-site clustering in one
cluster, it may be undesirable such a newly created resource would
come up on its own, even less so when running such commands in parallel
amongst the interconnected cluster (sites).

For instance, you don't want to (intermittently) confuse the network
with allowing the same virtual IP to come up in various clusters,
given this address shares the same network segment amongst the
clusters.

Workaround would to be create the resource with --disabled (not
detailed in the help message for create), but then, once you
have the ticket constraint defined, you would need to enable
that resource again. It'd be more smart and smooth to allow to
create the resource with --ticket TICKET. It would create
the respective ticket constraint along, meaning that, given
the circumstances, such resource would either stay down for
not having a ticket, or would be started, but at a single site
only (subject to mutual exclusion logic in booth).

IOW., in our motivation example, said confusion in the network
would be prevented while the configuration means at pcs side
would remain lightweight.

@tomjelinek
Copy link
Member

Even though this may be a nice to have simplification, I don't see it getting done anytime soon due to its low severity compared to other tasks and an existence of a sufficient workaround (pcs resource create --disabled, pcs constraint ticket add, pcs resource enable).

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

No branches or pull requests

2 participants