Code Monkey home page Code Monkey logo

Comments (2)

Auser448 avatar Auser448 commented on May 28, 2024 1

Thank you @james-munson, when I ran the command kubectl get daemonset -n longhorn-system longhorn-manager -o yaml , I saw the following output in the longhorn-manager container spec:

spec:
      containers:
      - command:
        - longhorn-manager
        - -d
        - daemon
        - --engine-image
        - longhornio/longhorn-engine:v1.5.3
        - --instance-manager-image
        - longhornio/longhorn-instance-manager:v1.5.3
        - --share-manager-image
        - longhornio/longhorn-share-manager:v1.5.3
        - --backing-image-manager-image
        - longhornio/backing-image-manager:v1.5.3
        - --support-bundle-manager-image
        - longhornio/support-bundle-kit:v0.0.27
        - --manager-image
        - longhornio/longhorn-manager:v1.5.3
        - --service-account
        - longhorn-service-account
      ...
      <OUTPUT_OMITTED>
      ...
      image:<COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-manager:v1.5.3

Our company Artifactory registry FQDN was specified in the image section but not in the command section. After adding it also to the command section, the output becomes as follows and the Longhorn installation succeeds !

spec:
      containers:
      - command:
        - longhorn-manager
        - -d
        - daemon
        - --engine-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-engine:v1.5.3
        - --instance-manager-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-instance-manager:v1.5.3
        - --share-manager-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-share-manager:v1.5.3
        - --backing-image-manager-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/backing-image-manager:v1.5.3
        - --support-bundle-manager-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/support-bundle-kit:v0.0.27
        - --manager-image
        - <COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-manager:v1.5.3
        - --service-account
        - longhorn-service-account
      ...
      <OUTPUT_OMITTED>
      ...
      image:<COMPANY_ARTIFACTORY_REGISTRY>/longhornio/longhorn-manager:v1.5.3

from longhorn.

james-munson avatar james-munson commented on May 28, 2024

Agree with your analysis. The question is, where does the manager image name come from that is compared to the discovered container.Image? Following the trail backwards, it seems to be here that upgrade.Upgrade() is called:
https://github.com/longhorn/longhorn-manager/blob/8919746dcfd7929dd4dcff4813ce37e4379cc5d8/app/daemon.go#L173

In that module, it was passed in as a flag to the longhorn-manager app's command line:
https://github.com/longhorn/longhorn-manager/blob/8919746dcfd7929dd4dcff4813ce37e4379cc5d8/app/daemon.go#L123
https://github.com/longhorn/longhorn-manager/blob/8919746dcfd7929dd4dcff4813ce37e4379cc5d8/app/daemon.go#L37-L48

So although it is not possible for you to attach a support bundle, it might be interesting to see the output of kubectl get daemonset longhorn-manager -o yaml to look at the arguments.

from longhorn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.