r0b2g1t/k3s-cluster-on-oracle-cloud-infrastructure

Error: shape VM.Standard.E2.1.Micro not found

Closed this issue · 2 comments

mannp commented

I am getting the following error after updating the ubuntu image to the one for the region -> eu-frankfurt-1

module.compute.oci_core_instance.worker[1]: Creating...
module.compute.oci_core_instance.worker[0]: Creating...
╷
│ Error: 404-NotAuthorizedOrNotFound 
│ Provider version: 4.69.0, released on 2022-03-23.  
│ Service: Core Instance 
│ Error Message: shape VM.Standard.E2.1.Micro not found 
│ OPC request ID: f0e16950924de78391d594d1481FF2194F/DF250747F204905D2CE7474649978B15 
│ Suggestion: Either the resource has been deleted or service Core Instance need policy to access this resource. Policy reference: https://docs.oracle.com/en-us/iaas/Content/Identity/Reference/policyreference.htm
│ 
│ 
│   with module.compute.oci_core_instance.worker[0],
│   on compute/main.tf line 68, in resource "oci_core_instance" "worker":
│   68: resource "oci_core_instance" "worker" {
│ 
╵

This is the worker node config I have;

  worker_instance_config = {
    shape_id = "VM.Standard.E2.1.Micro"
    ocpus    = 1
    ram      = 1
    // Canonical-Ubuntu-20.04-2022.03.02-0
    source_id   = "ocid1.image.oc1.eu-frankfurt-1.aaaaaaaavcrpbwmm75t6azhxgepxah6vigiwwvruti3gj2frhuxnvhzn3e5a"
    source_type = "image"
    worker_ip_0 = "10.0.0.21"
    worker_ip_1 = "10.0.0.22"
    // release: v0.21.5-k3s2r1
    k3os_image = "https://github.com/rancher/k3os/releases/download/v0.21.5-k3s2r1/k3os-amd64.iso"
    metadata = {
      "ssh_authorized_keys" = join("\n", var.ssh_authorized_keys)
    }
  }

The two server nodes VM.Standard.A1.Flex are up and running fine.

I am stuck unfortunately and any help would be gratefully received :)

Also, are starting and destroying instances chargeable :)

It looks like the shape VM.Standard.E2.1.Micro isn't available in your region.
You can check it by:
Go to Home > Governance > Limits, Quotas and Usage to see where your VM.Standard.E2.1.Micro shapes are available.

mannp commented

It looks like the shape VM.Standard.E2.1.Micro isn't available in your region. You can check it by: Go to Home > Governance > Limits, Quotas and Usage to see where your VM.Standard.E2.1.Micro shapes are available.

I have manually created one in the oracle gui;

instance-20220330-1601Always Free |  
-- | --

[instance-20220330-1601](https://cloud.oracle.com/compute/instances/ocid1.instance.oc1.eu-frankfurt-1.antheljt2ilbuqycx3v3femmmk52b7qlqqjimc3iz4k4lxatvqi4zksi47ea) Always Free
	
Running	144.24.181.118	10.0.0.21	VM.Standard.E2.1.Micro	1	1	AD-2	FD-1	Wed, Mar 30, 2022, 15:02:51 UTC

I should add my region (the same as the default I believe)

Germany Central (Frankfurt) - Home Region
Region Identifier: eu-frankfurt-1