Skip to content

Multiple revisions in DEPLOYED state. #7274

Closed

Description

@avarabyeu

Multiple revisions in DEPLOYED state.
The issue appeared after upgrade to Helm 3. Tried complete re-installation of the chart with deleting all helm-related secrets, but after some number of deploys, the issues appears again

image

Output of helm version:
version.BuildInfo{Version:"v3.0.1", GitCommit:"7c22ef9ce89e0ebeb7125ba2ebf7d421f3e82ffa", GitTreeState:"clean", GoVersion:"go1.13.4"}
Output of kubectl version:
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-13T11:52:32Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.8-gke.12", GitCommit:"188432a69210ca32cafded81b4dd1c063720cac0", GitTreeState:"clean", BuildDate:"2019-11-07T19:27:01Z", GoVersion:"go1.12.11b4", Compiler:"gc", Platform:"linux/amd64"}
Cloud Provider/Platform (AKS, GKE, Minikube etc.): GKE

Activity

  1. bacongobbler commented on Dec 19, 2019

    @bacongobbler
    Member

    Hi @avarabyeu. Can you demonstrate how one can reproduce this locally?

  2. added
    bug
    on Dec 19, 2019
  3. jason-liew commented on Dec 20, 2019

    @jason-liew
    kubectl get secret -l owner=helm,status=deployed,name=test
    

    In my case, there are 1 big release always has 4 revisions in deployed state.
    the earliest deployed revisions became superseded after news deploys.
    but other releases has 1 deployed revision.
    sometime developers upgrade the big release in the same time.

  4. avarabyeu commented on Dec 20, 2019

    @avarabyeu
    Author

    @bacongobbler unfortunately, i do not have exact steps to reproduce it locally, but it definitely happens on concurrent upgrade with --wait flag enabled

  5. vkobets commented on Dec 27, 2019

    @vkobets

    I have caught the same bug.
    @avarabyeu --wait does not affect
    @bacongobbler To reproduce try run helm upgrade on the different environments(in my case it is gitlab-ci runner's pods) in one time to upgrade the same release

  6. cristiklein commented on Jan 1, 2020

    @cristiklein

    I believe the users in #6031 stumbled across the same root cause (albeit in Helm 2). In certain cases, multiple Releases may show up as DEPLOYED, which may cause various problems.

  7. cristiklein commented on Jan 1, 2020

    @cristiklein

    I managed to reproduce this bug with Helm (v3.0.2) as follows:

    helm create foo
    cd foo
    helm upgrade foo . --install --wait
    sed -i -e 's/^replicaCount: .*/replicaCount: 3/' values.yaml
    helm upgrade foo . --install --wait
    

    While the last command executes, in a different terminal, wait for pending-upgrade status, then type:

    helm upgrade foo . --install --wait
    

    The two helm upgrade commands must run in parallel. helm history foo will look as follows:

    $ helm history foo
    REVISION	UPDATED                 	STATUS         	CHART    	APP VERSION	DESCRIPTION      
    1       	Wed Jan  1 23:28:25 2020	deployed       	foo-0.1.0	1.16.0     	Install complete 
    2       	Wed Jan  1 23:30:23 2020	pending-upgrade	foo-0.1.0	1.16.0     	Preparing upgrade
    $ helm history foo
    REVISION	UPDATED                 	STATUS         	CHART    	APP VERSION	DESCRIPTION      
    1       	Wed Jan  1 23:28:25 2020	deployed       	foo-0.1.0	1.16.0     	Install complete 
    2       	Wed Jan  1 23:30:23 2020	pending-upgrade	foo-0.1.0	1.16.0     	Preparing upgrade
    3       	Wed Jan  1 23:30:28 2020	pending-upgrade	foo-0.1.0	1.16.0     	Preparing upgrade
    $ helm history foo
    REVISION	UPDATED                 	STATUS    	CHART    	APP VERSION	DESCRIPTION     
    1       	Wed Jan  1 23:28:25 2020	superseded	foo-0.1.0	1.16.0     	Install complete
    2       	Wed Jan  1 23:30:23 2020	deployed  	foo-0.1.0	1.16.0     	Upgrade complete
    3       	Wed Jan  1 23:30:28 2020	deployed  	foo-0.1.0	1.16.0     	Upgrade complete
    
  8. added a commit that references this issue on Jan 1, 2020
    a614990
  9. added a commit that references this issue on Jul 13, 2020
    9a4f4ec
  10. added a commit that references this issue on Sep 30, 2020
    440cc77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions