Fix installation activation bug
What does this MR do and why?
There is a bug when attempting installation's auto activation, and if connectivity issue occurs, a NoMethodError
would be raised. This is because the errors
can sometimes be a string instead of array.
How to set up and validate locally
- Stop CDot if it is already running
- Create a cloud license subscription on CDot, and obtain its activation code
- On SM instance, run
bundle exec rake gitlab:license:load GITLAB_ACTIVATION_CODE=foobar
The result should print out CONNECTIVITY_ERROR
without ruby exception.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to customers-gitlab-com#4646 (closed)
Edited by Mark Chao