Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66355

OCI plugin does not retrive images; throws an auth error

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Exception from the Jenkins log when trying to create the OCI plugin configuration and retrieve images after creating OCI cloud env succesfully (requires OCI login credentials):
      Failed to get images list
      com.oracle.bmc.model.BmcException: (404, NotAuthorizedOrNotFound, false) Authorization failed or requested resource not found. (opc-request-id: FB8E027B0A7B47E88D4C7B81F53B98B4/734919FBA12D9371D643DEE013302D85/F3378EB9CA35697515AE8F7A5D89E76C)
      at com.oracle.bmc.http.internal.ResponseHelper.throwIfNotSuccessful(ResponseHelper.java:138)

        Attachments

          Activity

          Hide
          mikarinneoracle Mika added a comment - - edited

          This works fine from command line with the oci cli and same credentials (I copied them to Jenkins) 

          oci compute image list --compartment-id ocid1.compartment.oc1..aaaaaaaay7l4kfyhc47gvoxdy5zxycui7nun2wetjuunvgrvguj3aduh5vtq

          {
          "data": [
          {
          "agent-features": null,
          "base-image-id": null,
          "compartment-id": null,
          "create-image-allowed": true,
          "defined-tags": {},
          "display-name": "Windows-Server-2019-Standard-Edition-VM-Gen2-2021.07.01-0",
          "freeform-tags": {},
          "id": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaorysgjb32itcfuvz6zuanxidpyzgdkrkoqo5qsmvd5v65yjoqjoq",
          "launch-mode": "CUSTOM",
          "launch-options":

          { "boot-volume-type": "PARAVIRTUALIZED", "firmware": "UEFI_64", "is-consistent-volume-naming-enabled": false, "is-pv-encryption-in-transit-enabled": true, "network-type": "PARAVIRTUALIZED", "remote-data-volume-type": "PARAVIRTUALIZED" }

          ,
          "lifecycle-state": "AVAILABLE",
          "operating-system": "Windows",
          "operating-system-version": "Server 2019 Standard",
          "size-in-mbs": 262144,
          "time-created": "2021-07-15T02:43:20.015000+00:00"
          },
          {
          "agent-features": null,
          "base-image-id": null,
          "compartment-id": null,
          "create-image-allowed": true,
          "defined-tags": {},
          "display-name": "Windows-Server-2019-Standard-Edition-VM-Gen2-2021.05.12-0",
          "freeform-tags": {},
          "id": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa57fq2cvejw4dbhq5fdzpgwlph64plzuquuc4tr3l4vzjjipyc5nq",
          "launch-mode": "PARAVIRTUALIZED",
          "launch-options":

          { "boot-volume-type": "PARAVIRTUALIZED", "firmware": "UEFI_64", "is-consistent-volume-naming-enabled": false, "is-pv-encryption-in-transit-enabled": true, "network-type": "PARAVIRTUALIZED", "remote-data-volume-type": "PARAVIRTUALIZED" }

          ,
          "lifecycle-state": "AVAILABLE",
          "operating-system": "Windows",
          "operating-system-version": "Server 2019 Standard",
          "size-in-mbs": 262144,
          "time-created": "2021-05-27T16:36:20.923000+00:00"
          },

          ...

          Show
          mikarinneoracle Mika added a comment - - edited This works fine from command line with the oci cli and same credentials (I copied them to Jenkins)  oci compute image list --compartment-id ocid1.compartment.oc1..aaaaaaaay7l4kfyhc47gvoxdy5zxycui7nun2wetjuunvgrvguj3aduh5vtq { "data": [ { "agent-features": null, "base-image-id": null, "compartment-id": null, "create-image-allowed": true, "defined-tags": {}, "display-name": "Windows-Server-2019-Standard-Edition-VM-Gen2-2021.07.01-0", "freeform-tags": {}, "id": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaaorysgjb32itcfuvz6zuanxidpyzgdkrkoqo5qsmvd5v65yjoqjoq", "launch-mode": "CUSTOM", "launch-options": { "boot-volume-type": "PARAVIRTUALIZED", "firmware": "UEFI_64", "is-consistent-volume-naming-enabled": false, "is-pv-encryption-in-transit-enabled": true, "network-type": "PARAVIRTUALIZED", "remote-data-volume-type": "PARAVIRTUALIZED" } , "lifecycle-state": "AVAILABLE", "operating-system": "Windows", "operating-system-version": "Server 2019 Standard", "size-in-mbs": 262144, "time-created": "2021-07-15T02:43:20.015000+00:00" }, { "agent-features": null, "base-image-id": null, "compartment-id": null, "create-image-allowed": true, "defined-tags": {}, "display-name": "Windows-Server-2019-Standard-Edition-VM-Gen2-2021.05.12-0", "freeform-tags": {}, "id": "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaa57fq2cvejw4dbhq5fdzpgwlph64plzuquuc4tr3l4vzjjipyc5nq", "launch-mode": "PARAVIRTUALIZED", "launch-options": { "boot-volume-type": "PARAVIRTUALIZED", "firmware": "UEFI_64", "is-consistent-volume-naming-enabled": false, "is-pv-encryption-in-transit-enabled": true, "network-type": "PARAVIRTUALIZED", "remote-data-volume-type": "PARAVIRTUALIZED" } , "lifecycle-state": "AVAILABLE", "operating-system": "Windows", "operating-system-version": "Server 2019 Standard", "size-in-mbs": 262144, "time-created": "2021-05-27T16:36:20.923000+00:00" }, ...
          Hide
          mikarinneoracle Mika added a comment -

          Got this working

          Show
          mikarinneoracle Mika added a comment - Got this working
          Hide
          mikarinneoracle Mika added a comment - - edited

          Did not select the checkbox "Calling Services from Instance"

          Show
          mikarinneoracle Mika added a comment - - edited Did not select the checkbox "Calling Services from Instance"

            People

            Assignee:
            soumya_oracle Soumya
            Reporter:
            mikarinneoracle Mika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: