MarcGueury / oci-starter

Oracle Cloud Infrastructure - OCI Starter
https://www.ocistarter.com
Other
3 stars 5 forks source link

No compartment in command: Error messages: NotAuthorizedOrNotFound #14

Open mgueury opened 1 year ago

mgueury commented 1 year ago

Even if it works, it creates error messages during the creation like:

ServiceError: { "code": "NotAuthorizedOrNotFound", "message": "Authorization failed or requested resource not found. Please visit https://docs.oracle.com/en-us/iaas/Content/API/References/apierrors.htm to learn more about this error code", "opc-request-id": "E72031A6B50B4065B8DD05CD17080A0D/8F6D8A46F7BCDF65307AA8504BA4E141/10F0FC75FC5FA5CB827A138131C79989", "status": 404 }

Follow internal slack. Seems to be ""not a bug"". Need to work-around of follow up.

MarcGueury commented 1 year ago

Fixed with a bad work-around in the code. Checking if I see the NotAuthorizedOrNotFound to wait 2 secs in a loop. Todo: Chase the dev.

mikarinneoracle commented 1 year ago

in which part of the code this appears ? any link to code ?

MarcGueury commented 1 year ago

In bin/autoenv.sh, please look for "WARNING: compartment_ocid is not defined." And below. (about line 88)

https://github.com/MarcGueury/oci-starter/blob/main/basis/bin/auto_env.sh