Migrating to a new server via backup/restore changes the default branch where 'master' is not the default branch and other branches exist
Support Request for the Gitaly Team
The goal is to keep these requests public. However, if customer information is required to the support request, please be sure to mark this issue as confidential.
This request template is part of Gitaly Team's intake process.
Customer Information
Salesforce Link: https://gitlab.my.salesforce.com/00161000011y6IaAAI
Zendesk Ticket: https://gitlab.zendesk.com/agent/tickets/425613
Installation Size:
Architecture Information:
single virtual machine in on-prem infrastructure (VMware vSphere) running a single instance of gitlab. https://docs.gitlab.com/ee/administration/reference_architectures/#standalone-non-ha
Slack Channel:
Additional Information:
Support Request
Related to gitlab#416107 (closed)
Requested by @mbruemmer:
The customer is also planning to migrate their main instance with much more projects, so it would be good to avoid this on that instance.
Severity
S2 (same as related issue) per this comment on the related issue.
Problem Description
After successful migration of Omnibus instance by using backup/restore, default branches are set randomly. This only affects repositories where 'master' was not default branch and where other branches exist.
Steps to reproduce
- Create a project and create some branches.
- Set default branch to a branch other than
master
ormain
. - Follow the instructions in Migrate to a new server.
- The project from Step 1 does not have the default branch set correctly.
Troubleshooting Performed
gitlab#416107 (comment 1457300354)
What specifically do you need from the Gitaly team
The customer will migrate their main instance with many projects and want to see if there is an automated way to identify and prevent this issue from happening.
Author Checklist
-
Customer information provided -
Severity realistically set -
Clearly articulated what is needed from the Gitaly team to support your request by filling out the What specifically do you need from the Gitaly team
/cc @mjwood @andrashorvath @jcaigitlab @john.mcdonnell @gerardo