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

migration module: add ability to copy to pool group w/o specifying the target #7623

Open
DmitryLitvintsev opened this issue Jul 25, 2024 · 1 comment
Assignees
Labels
pool Targeting the pool

Comments

@DmitryLitvintsev
Copy link
Member

Many a times a pool needs to be drained to be decomissioned. Typically the replicas need to go to the same pool group this pool belongs to. Currently you have to explicitly specify:

... -target=pgroup PoolGroupName

It would be nice just drop this extra parameters and by default

migration copy

would copy replicas to pool group(s) the pool belongs to.

NB: pool may belong to multiple pool groups. Mabe alpha version of this functionality should refuse migration (fail) if pool belongs to multiple pool groups with clear message.

@DmitryLitvintsev DmitryLitvintsev added the pool Targeting the pool label Jul 25, 2024
@DmitryLitvintsev
Copy link
Member Author

DmitryLitvintsev commented Aug 9, 2024

The behavior has to be backward compatible in the folllowing way:

migration copy ..... foo

Assumes, as before, that foo is destination pool

Whereas :

migration copy ... -target=pgroup

without specifying pool group name triggers this migration into the same pool group

invoked w/o -target and without pool name arguments

migration copy ... 

has to fail just like it does now (this is somethig I have changed my mind about since Tuesday). I think this is safer as provides exact same behavior as before.

greenc-FNAL added a commit that referenced this issue Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pool Targeting the pool
Projects
None yet
Development

No branches or pull requests

2 participants