hitrov / oci-arm-host-capacity

This script allows to bypass Oracle Cloud Infrastructure 'Out of host capacity' error immediately when additional OCI capacity will appear in your Home Region / Availability domain.
MIT License
986 stars 496 forks source link

Issues with Creating OCI Instances: “Out of Host Capacity” and “Shape VM.Standard.A1.Flex not Found” #142

Open ppmdz opened 3 months ago

ppmdz commented 3 months ago

I’m trying to create instances using my script, but I’m encountering a peculiar issue where it’s either successful or fails. What could be the reason behind this alternating success and failure? (Extracted from parts of oci.log).

{ "code": "InternalError", "message": "Out of host capacity." } { "code": "NotAuthorizedOrNotFound", "message": "shape VM.Standard.A1.Flex not found" } { "code": "InternalError", "message": "Out of host capacity." } { "code": "NotAuthorizedOrNotFound", "message": "shape VM.Standard.A1.Flex not found" } { "code": "InternalError", "message": "Out of host capacity." } { "code": "NotAuthorizedOrNotFound", "message": "shape VM.Standard.A1.Flex not found" }

melonges commented 3 months ago

the same problem

ppmdz commented 3 months ago

the same problem

What area are you in? I'm UK

melonges commented 3 months ago

the same problem

What area are you in? I'm UK

i'm too

ppmdz commented 3 months ago

the same problem

What area are you in? I'm UK

I'm too

Then I tentatively suspect a UK problem.

melonges commented 3 months ago

the same problem

What area are you in? I'm UK

I'm too

Then I tentatively suspect a UK problem.

The reason of this error its voKL:UK-LONDON-1-AD-2 domain. You can skip this domain by changes of this line: getenv('OCI_AVAILABILITY_DOMAIN') ?: ['voKL:UK-LONDON-1-AD-1', 'voKL:UK-LONDON-1-AD-3'], // null or '' or 'jYtI:PHX-AD-1' or ['jYtI:PHX-AD-1','jYtI:PHX-AD-2'] in index.php

ppmdz commented 3 months ago

the same problem

What area are you in? I'm UK

I'm too

Then I tentatively suspect a UK problem.

The reason of this error its voKL:UK-LONDON-1-AD-2 domain. You can skip this domain by changes of this line: getenv('OCI_AVAILABILITY_DOMAIN') ?: ['voKL:UK-LONDON-1-AD-1', 'voKL:UK-LONDON-1-AD-3'], null or '' or 'jYtI:PHX-AD-1' or ['jYtI:PHX-AD-1','jYtI:PHX-AD-2'] in index.php

Professionalism bro, thanks a lot!

azapater commented 3 months ago

Just in case it helps anyone, I'm in UK South (London) and for me the domains are:

getenv('OCI_AVAILABILITY_DOMAIN') ?: ['sXPO:UK-LONDON-1-AD-1', 'sXPO:UK-LONDON-1-AD-2'],