Skip to content

helm status stopped showing containers #6896

Closed

Description

@mshakhmaykin

Couldn't find it in the latest changelog, but:

before upgrade to 2.16, it used to show more detailed information about running pods. Now I need to run kubectl -n get pods -l app=<app-name> to find out if my containers started and passed the Liveness probes. Previously I could just do helm status <release>. Any chances to return to the original behavior?

Output of helm version:
Client: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.0", GitCommit:"e13bc94621d4ef666270cfbe734aaabf342a49bb", GitTreeState:"clean"}

Output of kubectl version:
kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.2", GitCommit:"c97fe5036ef3df2967d086711e6c0c405941e14b", GitTreeState:"clean", BuildDate:"2019-10-15T23:41:55Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.7-eks-e9b1d0", GitCommit:"e9b1d0551216e1e8ace5ee4ca50161df34325ec2", GitTreeState:"clean", BuildDate:"2019-09-21T08:33:01Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"linux/amd64"}

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
EKS

Activity

  1. added
    bug
    v2.x
    on Nov 6, 2019
  2. added this to the 2.16.1 milestone on Nov 6, 2019
  3. hayorov commented on Nov 7, 2019

    @hayorov

    After this change, helm status is ridiculously useless command, it requires to do kubectl get next.

    LAST DEPLOYED: Wed Nov  6 20:22:21 2019
    NAMESPACE: default
    STATUS: DEPLOYED
    
    RESOURCES:
    ==> v1/ConfigMap
    NAME                 AGE
    hlf-ord--ord         15h
    hlf-orderer-genesis  15h
    
    ==> v1/Deployment
    NAME     AGE
    hlf-ord  15h
    
    ==> v1/PersistentVolumeClaim
    NAME     AGE
    hlf-ord  15h
    
    ==> v1/Pod(related)
    NAME                      AGE
    hlf-ord-655f9d5856-tscnz  2m15s
    
    ==> v1/Secret
    NAME                   AGE
    hlf-orderer-admincert  15h
    hlf-orderer-cacert     15h
    hlf-orderer-cert       15h
    hlf-orderer-key        15h
    
    ==> v1/Service
    NAME     AGE
    hlf-ord  15h
    
    ==> v1beta1/Ingress
    NAME     AGE
    hlf-ord  15h
    
  4. bacongobbler commented on Nov 7, 2019

    @bacongobbler
    Member

    fixed via #6897 which will be available in 2.16.1.

  5. mshakhmaykin commented on Nov 15, 2019

    @mshakhmaykin
    Author

    This didn't help unfortunately.

    $ helm version
    Client: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
    Server: &version.Version{SemVer:"v2.16.1", GitCommit:"bbdfe5e7803a12bbdf97e94cd847859890cf4050", GitTreeState:"clean"}
    
    $ helm status service-app
    LAST DEPLOYED: Mon Oct 14 17:40:40 2019
    NAMESPACE: default
    STATUS: DEPLOYED
    
    RESOURCES:
    ==> v1/Deployment
    NAME        AGE
    service-app  31d
    
    ==> v1/Pod(related)
    NAME                         AGE
    service-app-687549b68d-k4wk6  21m
    service-app-687549b68d-kz5jp  30d
    
    ==> v1/Service
    NAME        AGE
    service-app  31d
    
  6. bacongobbler commented on Nov 15, 2019

    @bacongobbler
    Member

    weird; bbdfe5e is part of the 2.16.1 branch. Perhaps the printer on Kubernetes' end changed again. Did you deploy the app with 2.16.1?

    Re-opening for further investigation.

  7. modified the milestones: 2.16.1, 2.16.2 on Nov 15, 2019
  8. thuandt commented on Nov 15, 2019

    @thuandt

    @bacongobbler I have same issue with 2.16.1

    My application used to helm v2.14.3, then I upgraded helm to v2.16.1 pods status has been gone

  9. cridam commented on Nov 29, 2019

    @cridam

    Deployment, and Service columns have also disappeared. Will 2.16.2 fix ?
    i.e
    before 2.16.x
    ==> v1/Service
    NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
    mymicroservice ClusterIP xxx 8443/TCP 25d
    after
    ==> v1/Service
    NAME AGE
    mymicroservice 25d

  10. liurd commented on Dec 13, 2019

    @liurd

    Are you going to build 2.16.2 to fix the issue?

  11. thuandt commented on Dec 18, 2019

    @thuandt

    It should be fix by #7196

  12. bacongobbler commented on Dec 18, 2019

    @bacongobbler
    Member

    I don't believe #7196 was intended to fix this issue, however if you can demonstrate that #7196 does indeed fix the issue, we'd love to understand why.

  13. nickdgriffin commented on Jan 17, 2020

    @nickdgriffin

    I'm anxiously awaiting 2.16.2 for #7319, is this issue still in scope for the release?

  14. modified the milestones: 2.16.2, 2.16.4 on Feb 13, 2020
  15. bacongobbler commented on Mar 5, 2020

    @bacongobbler
    Member

    I'm still seeing the issue present with the HEAD of dev-v2 with a Kubernetes 1.17 cluster.

    I'm anxiously awaiting 2.16.2 for #7319, is this issue still in scope for the release?

    #7319 is irrelevant to this ticket, but yes, It should be in the next patch release.

    To get a better understanding of the issue here: helm status relies on the same APIs that kubectl get relies upon. k8s.io/kubernetes has broken backwards compatibility in the past, so it's quite possible it's happened again.

    I'm currently looking into why it keeps breaking, and assess whether we need to replace it with some other API.

  16. bacongobbler commented on Mar 6, 2020

    @bacongobbler
    Member

    So... kubernetes did indeed break backwards compatibility. You now have to generate a metav1.Table if you want the endpoint to render the same as kubectl get. This broke somewhere around kubernetes 1.16, right when this bug popped up.

    If someone wants to take a closer look at this, I started diving deeper into how kubectl get prints objects now in #7728. I don't have time to follow through and fix the issue, but hopefully this helps someone looking at fixing this.

  17. self-assigned this
    on Mar 19, 2020
  18. mattfarina commented on Mar 19, 2020

    @mattfarina
    Collaborator

    I have a PR coming with a fix for this. It works. Just need to try and clean up the code some more and figure out how to explain the change.

  19. added 3 commits that reference this issue on Mar 19, 2020
    3547bd7
    0889b97
    e8396c9
  20. mattfarina commented on Mar 20, 2020

    @mattfarina
    Collaborator

    PR just landed that fixes this. Should be in the next 2.16 release.

  21. added a commit that references this issue on Mar 23, 2020
    fe4ffcf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugv2.x

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions