Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • magnum magnum
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 12
    • Issues 12
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Jira
    • Jira
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • kuberneteskubernetes
  • magnummagnum
  • Merge requests
  • !213

Use helm upgrade instead of install

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Diogo Filipe Tomas Guerra requested to merge helm-upgrade into cern/train Aug 22, 2022
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

This allows to skip the helm install error:

helm -n kube-system install cern-magnum releases/cern-magnum --wait --version 0.11.0 --values /opt/magnum/install-cern-magnum-values.yaml
Error: cannot re-use a name that is still in use

Installation of the CERN helm chart occurs when cluster is created. https://gitlab.cern.ch/kubernetes/magnum/-/blob/cern/train/magnum/drivers/k8s_fedora_coreos_v1/templates/kubecluster.yaml#L1510 After a while if the job dosen't finish (due to heavy load on master node) the cern-metachart job will create a new install pod. There is a chance that a new chart installation might be tried while there is a chart mid installation. So the release exists but is not complete. By using helm install installations that might end up being successfull will fail subsequently, while helm upgrade will 'upgrade' and pick up any leftover to-dos.

Change-Id: I2c18624e343d109891b9d19b67b4961e917ebe37

Edited Sep 12, 2022 by Diogo Filipe Tomas Guerra
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: helm-upgrade