Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-62233

Python plugin for Git config template fails to run

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 4.20
    • Two Node Fencing
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 0
    • Low
    • None
    • QA
    • None
    • None
    • OCPEDGE Sprint 277
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

          On two-node-toolbox there is a specialized lookup plugin that checks the hypervisor's Git config. It fails to find a certain Python class, stopping the installation

      Version-Release number of selected component (if applicable):

          

      How reproducible:

          From a fresh installation of components on MacOS, it happens every time. Might be related to Python version on local ansible runner, so it's not consistent

      Steps to Reproduce:

          1. Follow dependency installation and configuration on two-node-toolbox READMEs
          2. Provision an hypervisor or use an existing one
          3. Run "make fencing-ipi"
          

      Actual results:

          TASK [git-user : Install gitconfig] ***************************************************************************************************************************
      [ERROR]: Task failed: The lookup plugin 'gitconfig' failed: name 'CalledProcessError' is not defined
      Task failed.
      Origin: /Users/suppawar/Supriya_TNF/two-node-toolbox/deploy/openshift-clusters/roles/git-user/tasks/main.yml:19:3
      17     dest: "{{configgit.path}}/attributes"
      18     src: attributes
      19 - name: Install gitconfig
           ^ column 3
      <<< caused by >>>
      The lookup plugin 'gitconfig' failed.
      Origin: /Users/suppawar/Supriya_TNF/two-node-toolbox/deploy/openshift-clusters/roles/git-user/templates/config.j2
      <<< caused by >>>
      name 'CalledProcessError' is not defined
      fatal: [ec2-user@3.230.246.91]: FAILED! => {
          "changed": false
      }
      MSG:
      Task failed: The lookup plugin 'gitconfig' failed: name 'CalledProcessError' is not defined

      Expected results:

          - No error -

      Additional info:

          

       

              rh-ee-pfontani Pablo Fontanilla
              rh-ee-pfontani Pablo Fontanilla
              None
              None
              Douglas Hensel Douglas Hensel
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: