Uploaded image for project: 'Red Hat OpenStack Services on OpenShift'
  1. Red Hat OpenStack Services on OpenShift
  2. OSPRH-8085

AEE job fails with "no such identity: /runner/env/ssh_key/ssh_key_openstack-edpm-ipam" when running repo-setup service

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • ?
    • ?
    • ?
    • ?
    • Important

      This was reported downstream but we don't see it upstream. Could be ansible-runner/ansible version.

      [zuul@controller-0 ~]$ oc logs repo-setup-edpm-deployment-openstack-edpm-ipam-z4bm6
      Identity added: /runner/artifacts/repo-setup-edpm-deployment-openstack-edpm-ipam/ssh_key_data (zuul@controller-0)
      [WARNING]: Invalid characters were found in group names but not replaced, use
      -vvvv to see detailsPLAY [all] *********************************************************************TASK [Gathering Facts] *********************************************************
      fatal: [edpm-compute-0]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '192.168.122.100' (ED25519) to the list of known hosts.\r\nno such identity: /runner/env/ssh_key/ssh_key_openstack-edpm-ipam: Not a directory\r\ncloud-admin@192.168.122.100: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", "unreachable": true}PLAY RECAP *********************************************************************
      edpm-compute-0       : ok=0  changed=0  unreachable=1  failed=0  skipped=0  rescued=0  ignored=0 
      [zuul@controller-0 ~]$ oc debug repo-setup-edpm-deployment-openstack-edpm-ipam-z4bm6 Warning: metadata.name: this is used in the Pod's hostname, which can result in surprising behavior; a DNS label is recommended: [must be no more than 63 characters] Starting pod/repo-setup-edpm-deployment-openstack-edpm-ipam-z4bm6-debug-xljfh ... Pod IP: 10.217.0.227 If you don't see a command prompt, try pressing enter. 
      sh-5.2$ ls -l /runner/env/ssh_key -rw-r--r--. 1 root 1000660000 3381 Jun 27 09:44 /runner/env/ssh_key
      sh-5.2$ ls -ld /runner/env/ssh_key -rw-r--r--. 1 root 1000660000 3381 Jun 27 09:44 /runner/env/ssh_key
      
      
      [zuul@controller-0 test]$ oc get osdps repo-setup -o yaml
      apiVersion: dataplane.openstack.org/v1beta1
      kind: OpenStackDataPlaneService
      metadata:
       annotations:
        kubectl.kubernetes.io/last-applied-configuration: |
         {"apiVersion":"dataplane.openstack.org/v1beta1","kind":"OpenStackDataPlaneService","metadata":{"annotations":{},"labels":{"app.kubernetes.io/created-by":"install_yamls","app.kubernetes.io/instance":"openstackdataplaneservice-repo-setup","app.kubernetes.io/managed-by":"kustomize","app.kubernetes.io/name":"openstackdataplaneservice","app.kubernetes.io/part-of":"openstack-operator"},"name":"repo-setup","namespace":"openstack"},"spec":{"label":"repo-setup","playbookContents":"- hosts: all\n strategy: linear\n tasks:\n  - name: Enable podified-repos\n   become: true\n   ansible.builtin.shell: |\n    set -euxo pipefail\n    pushd /var/tmp\n    curl -sL https://github.com/openstack-k8s-operators/repo-setup/archive/refs/heads/main.tar.gz | tar -xz\n    pushd repo-setup-main\n    python3 -m venv ./venv\n    PBR_VERSION=0.0.0 ./venv/bin/pip install ./\n    # This is required for FIPS enabled until trunk.rdoproject.org\n    # is not being served from a centos7 host, tracked by\n    # https://issues.redhat.com/browse/RHOSZUUL-1517\n    update-crypto-policies --set FIPS:NO-ENFORCE-EMS\n    ./venv/bin/repo-setup current-podified -b antelope\n    popd\n    rm -rf repo-setup-main\n"}}
       creationTimestamp: "2024-06-27T09:27:52Z"
       generation: 1
       labels:
        app.kubernetes.io/created-by: install_yamls
        app.kubernetes.io/instance: repo-setup
        app.kubernetes.io/managed-by: kustomize
        app.kubernetes.io/name: openstackdataplaneservice
        app.kubernetes.io/part-of: openstack-operator
       name: repo-setup
       namespace: openstack
       resourceVersion: "78157"
       uid: 65bca9d8-ffab-499d-b110-9670a944748d
      spec:
       addCertMounts: false
       edpmServiceType: repo-setup
       playbookContents: |
        - hosts: all
         strategy: linear
         tasks:
          - name: Enable podified-repos
           become: true
           ansible.builtin.shell: |
            set -euxo pipefail
            pushd /var/tmp
            curl -sL https://github.com/openstack-k8s-operators/repo-setup/archive/refs/heads/main.tar.gz | tar -xz
            pushd repo-setup-main
            python3 -m venv ./venv
            PBR_VERSION=0.0.0 ./venv/bin/pip install ./
            # This is required for FIPS enabled until trunk.rdoproject.org
            # is not being served from a centos7 host, tracked by
            # https://issues.redhat.com/browse/RHOSZUUL-1517
            update-crypto-policies --set FIPS:NO-ENFORCE-EMS
            ./venv/bin/repo-setup current-podified -b antelope
            popd
            rm -rf repo-setup-main 

            rhn-support-ramishra Rabi Mishra
            rhn-support-ramishra Rabi Mishra
            rhos-dfg-df
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: