You need to sign in or sign up before continuing.
The rake task migrate_to_hashed indicates the wrong amount of repos will be migrated when ID_FROM and ID_TO are specified
Summary
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# export ID_FROM=449600
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# export ID_TO=449700
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# gitlab-rake gitlab:storage:migrate_to_hashed
Enqueuing migration of 2714950 projects in batches of 200. Done!
What is the current bug behavior?
The rake does what is should, this is a UI bug where we simply have the wrong variable in place. As seen above, we should only enqueue 100 items. The rake task instead, shows the full count of legacy storage projects, regardless of what we specified above.
What is the expected correct behavior?
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# export ID_FROM=449600
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# export ID_TO=449700
root@console-01-sv-gstg.c.gitlab-staging-1.internal:~# gitlab-rake gitlab:storage:migrate_to_hashed
Enqueuing migration of 100 projects in batches of 200. Done!
Output of checks
stable branch of gitlab-ee
Possible fixes
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/lib/tasks/gitlab/storage.rake#L37