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

Full-ISO download fails for arch s390x

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • No
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:

      full-iso url is not functional for arch s390x as download of ISO fails.

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

      4.14

      How reproducible:

      Create infraenv and get the iso url and try to download

      Steps to Reproduce:

      1. Install MCE
      2. Create AgentServiceConfig
      3. Create HCP and InfraEnv
      4. Get the iso-url from infraenv
      # oc get infraenv -A -o wide
      NAMESPACE               NAME               ISO CREATED AT         ISO URL
      host-hosted-forwarder   hosted-forwarder   2023-08-24T15:19:16Z   https://assisted-image-service-multicluster-engine.apps.hcp414ec2.hcp414ec2.india/images/78b142eb-545a-4a65-b5de-45d315e29e68?api_key=eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbmZyYV9lbnZfaWQiOiI3OGIxNDJlYi01NDVhLTRhNjUtYjVkZS00NWQzMTVlMjllNjgifQ.Z20RdbRthibyZiC8W8DfctzoH-s6A4LNkZi_OPF4LGBU99Rjtl6zkHLQQk1cPmouL0YvurGzpjAJWEjdFvMv-w&arch=s390x&type=full-iso&version=4.14.0-ec.2
      5. Try to download the iso using the url 

       

       

      Actual results:

      ISO download failed

      Expected results:

      Iso should get downloaded

      Additional info:

      # oc logs assisted-image-service-0 -n multicluster-engine
      {"file":"/remote-source/app/pkg/imagestore/imagestore.go:198","func":"github.com/openshift/assisted-image-service/pkg/imagestore.(*rhcosStore).Populate.func1","level":"info","msg":"Downloading iso from https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/pre-release/latest-4.14/rhcos-4.14.0-ec.2-s390x-live.s390x.iso to /data/rhcos-full-iso-4.14.0-ec.2-414.92.202306100411-0-s390x.iso","time":"2023-08-24T04:45:56Z"}
      {"file":"/remote-source/app/pkg/servers/servers.go:98","func":"github.com/openshift/assisted-image-service/pkg/servers.(*ServerInfo).httpsListen","level":"info","msg":"Starting https handler on :8080...","time":"2023-08-24T04:45:56Z"}
      {"file":"/remote-source/app/pkg/servers/servers.go:91","func":"github.com/openshift/assisted-image-service/pkg/servers.(*ServerInfo).httpListen","level":"info","msg":"Starting http handler on :8081...","time":"2023-08-24T04:45:56Z"}
      {"file":"/remote-source/app/pkg/imagestore/imagestore.go:204","func":"github.com/openshift/assisted-image-service/pkg/imagestore.(*rhcosStore).Populate.func1","level":"info","msg":"Finished downloading for 4.14.0-ec.2-s390x (414.92.202306100411-0)","time":"2023-08-24T04:46:10Z"}
      {"file":"/remote-source/app/internal/handlers/readiness.go:40","func":"github.com/openshift/assisted-image-service/internal/handlers.(*ReadinessHandler).Enable","level":"info","msg":"API is enabled","time":"2023-08-24T04:46:10Z"}
      {"file":"/remote-source/app/internal/handlers/iso.go:80","func":"github.com/openshift/assisted-image-service/internal/handlers.(*isoHandler).ServeHTTP","level":"error","msg":"Error creating image stream: failed to create overwrite reader for ignition: Failed to open file /images/ignition.img: target file /images/ignition.img does not exist\n","time":"2023-08-24T05:14:50Z"}
      {"file":"/remote-source/app/internal/handlers/iso.go:80","func":"github.com/openshift/assisted-image-service/internal/handlers.(*isoHandler).ServeHTTP","level":"error","msg":"Error creating image stream: failed to create overwrite reader for ignition: Failed to open file /images/ignition.img: target file /images/ignition.img does not exist\n","time":"2023-08-24T05:16:31Z"}
      {"file":"/remote-source/app/internal/handlers/iso.go:80","func":"github.com/openshift/assisted-image-service/internal/handlers.(*isoHandler).ServeHTTP","level":"error","msg":"Error creating image stream: failed to create overwrite reader for ignition: Failed to open file /images/ignition.img: target file /images/ignition.img does not exist\n","time":"2023-08-24T15:22:44Z"}
      {"file":"/remote-source/app/internal/handlers/iso.go:80","func":"github.com/openshift/assisted-image-service/internal/handlers.(*isoHandler).ServeHTTP","level":"error","msg":"Error creating image stream: failed to create overwrite reader for ignition: Failed to open file /images/ignition.img: target file /images/ignition.img does not exist\n","time":"2023-08-25T05:25:37Z"}

       

      #oc get po assisted-image-service-0 -n multicluster-engine -o yaml
      apiVersion: v1
      kind: Pod
      metadata:
      annotations:
      k8s.ovn.org/pod-networks: '{"default":{"ip_addresses":["10.129.3.112/23"],"mac_address":"0a:58:0a:81:03:70","gateway_ips":["10.129.2.1"],"ip_address":"10.129.3.112/23","gateway_ip":"10.129.2.1"}}'
      k8s.v1.cni.cncf.io/network-status: |-
      [{
      "name": "ovn-kubernetes",
      "interface": "eth0",
      "ips": [
      "10.129.3.112"
      ],
      "mac": "0a:58:0a:81:03:70",
      "default": true,
      "dns": {}
      }]
      openshift.io/scc: restricted-v2
      seccomp.security.alpha.kubernetes.io/pod: runtime/default
      creationTimestamp: "2023-08-24T04:45:44Z"
      generateName: assisted-image-service-
      labels:
      app: assisted-image-service
      controller-revision-hash: assisted-image-service-f56f9f855
      statefulset.kubernetes.io/pod-name: assisted-image-service-0
      name: assisted-image-service-0
      namespace: multicluster-engine
      ownerReferences:
      
      apiVersion: apps/v1
      blockOwnerDeletion: true
      controller: true
      kind: StatefulSet
      name: assisted-image-service
      uid: 5241fa71-2f5d-4857-a087-7a7409ebf1d3
      resourceVersion: "20423918"
      uid: a69d65fe-1cc5-4432-9a30-814749b315ef
      spec:
      containers: env: name: LISTEN_PORT
      value: "8080" name: HTTP_LISTEN_PORT
      value: "8081" name: RHCOS_VERSIONS
      value: '[ {"cpu_architecture":"s390x","openshift_version":"4.14.0-ec.2","url":" [https://mirror.openshift.com/pub/openshift-v4/s390x/dependencies/rhcos/pre-release/latest-4.14/rhcos-4.14.0-ec.2-s390x-live.s390x.iso] ","version":"414.92.202306100411-0"}
      ]'
      
      name: HTTPS_CERT_FILE
      value: /etc/image-service/certs/tls.crt name: HTTPS_KEY_FILE
      value: /etc/image-service/certs/tls.key name: HTTPS_CA_FILE
      value: /etc/image-service/ca-bundle/service-ca.crt name: ASSISTED_SERVICE_SCHEME
      value: https name: ASSISTED_SERVICE_HOST
      value: assisted-service.multicluster-engine.svc:8090 name: IMAGE_SERVICE_BASE_URL
      value: 
      https://assisted-image-service-multicluster-engine.apps.hcp414ec2.hcp414ec2.india name: INSECURE_SKIP_VERIFY
      value: "false" name: DATA_DIR
      value: /data
      image: registry.redhat.io/multicluster-engine/assisted-image-service-rhel8@sha256:c2804f561d77f6c14426512efcef93c84a7a46f86c677cb73569ed858643a083
      imagePullPolicy: IfNotPresent
      livenessProbe:
      failureThreshold: 3
      httpGet:
      path: /live
      port: 8080
      scheme: HTTPS
      initialDelaySeconds: 30
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
      name: assisted-image-service
      ports: containerPort: 8080
      protocol: TCP containerPort: 8081
      protocol: TCP
      readinessProbe:
      failureThreshold: 3
      httpGet:
      path: /health
      port: 8080
      scheme: HTTPS
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
      resources:
      requests:
      cpu: 100m
      memory: 400Mi
      securityContext:
      allowPrivilegeEscalation: false
      capabilities:
      drop: ALL
      runAsNonRoot: true
      runAsUser: 1000800000
      terminationMessagePath: /dev/termination-log
      terminationMessagePolicy: File
      volumeMounts: mountPath: /etc/image-service/certs
      name: tls-certs mountPath: /etc/image-service/ca-bundle
      name: service-cabundle mountPath: /data
      name: image-service-data mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-cc92h
      readOnly: true
      dnsPolicy: ClusterFirst
      enableServiceLinks: true
      hostname: assisted-image-service-0
      imagePullSecrets: name: assisted-image-service-dockercfg-rnbqb
      nodeName: worker-2
      preemptionPolicy: PreemptLowerPriority
      priority: 0
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
      fsGroup: 1000800000
      seLinuxOptions:
      level: s0:c28,c22
      seccompProfile:
      type: RuntimeDefault
      serviceAccount: assisted-image-service
      serviceAccountName: assisted-image-service
      terminationGracePeriodSeconds: 30
      tolerations: effect: NoSchedule
      key: node-role.kubernetes.io/infra
      operator: Exists effect: NoSchedule
      key: dedicated
      operator: Exists effect: NoExecute
      key: node.kubernetes.io/not-ready
      operator: Exists
      tolerationSeconds: 300 effect: NoExecute
      key: node.kubernetes.io/unreachable
      operator: Exists
      tolerationSeconds: 300 effect: NoSchedule
      key: node.kubernetes.io/memory-pressure
      operator: Exists
      volumes: name: tls-certs
      secret:
      defaultMode: 420
      secretName: assisted-image-service configMap:
      defaultMode: 420
      name: assisted-image-service
      name: service-cabundle emptyDir: {}
      name: image-service-data name: kube-api-access-cc92h
      projected:
      defaultMode: 420
      sources: serviceAccountToken:
      expirationSeconds: 3607
      path: token configMap:
      items: key: ca.crt
      path: ca.crt
      name: kube-root-ca.crt downwardAPI:
      items: fieldRef:
      apiVersion: v1
      fieldPath: metadata.namespace
      path: namespace configMap:
      items: key: service-ca.crt
      path: service-ca.crt
      name: openshift-service-ca.crt
      status:
      conditions: lastProbeTime: null
      lastTransitionTime: "2023-08-24T04:45:44Z"
      status: "True"
      type: Initialized lastProbeTime: null
      lastTransitionTime: "2023-08-24T04:46:15Z"
      status: "True"
      type: Ready lastProbeTime: null
      lastTransitionTime: "2023-08-24T04:46:15Z"
      status: "True"
      type: ContainersReady lastProbeTime: null
      lastTransitionTime: "2023-08-24T04:45:44Z"
      status: "True"
      type: PodScheduled
      containerStatuses: containerID:
      [cri-o://219d9968755a85e97dc1fb2a5daf4baa5bdd32d1917b32eced4f76dd5c5cd56]
      b
      image: registry.redhat.io/multicluster-engine/assisted-image-service-rhel8@sha256:c2804f561d77f6c14426512efcef93c84a7a46f86c677cb73569ed858643a083
      imageID: registry.redhat.io/multicluster-engine/assisted-image-service-rhel8@sha256:c2804f561d77f6c14426512efcef93c84a7a46f86c677cb73569ed858643a083
      lastState: {}
      name: assisted-image-service
      ready: true
      restartCount: 0
      started: true
      state:
      running:
      startedAt: "2023-08-24T04:45:56Z"
      hostIP: 172.23.235.8
      phase: Running
      podIP: 10.129.3.112
      podIPs: ip: 10.129.3.112
      qosClass: Burstable
      startTime: "2023-08-24T04:45:44Z" 

              ncarboni@redhat.com Nick Carboni
              vijaynic2 Vikas Singh
              None
              None
              Lital Alon Lital Alon
              None
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: