Page MenuHomePhabricator

Failing to create magnum template with terraform in eqiad1
Closed, ResolvedPublic

Description

Getting the following error when attempting to create with terraform:

│ Error: Error creating openstack_containerinfra_clustertemplate_v1: Bad request with: [POST https://openstack.eqiad1.wikimediacloud.org:29511/v1/clustertemplates], error message: {"errors": [{"request_id": "", "code": "client", "status": 400, "title": "Cluster type (vm, Unset, kubernetes) not supported", "detail": "Cluster type (vm, Unset, kubernetes) not supported.", "links": []}]}

Seems to work when created manually. The same code is successful in creating a cluster template in codfw1dev. @Andrew mentions in T328560 that if given a bad image name it gives the above error, though I believe it is the correct image name. I tried matching up the variables to an existing template, though could not find any differences, it wouldn't be the first time that I've missed something like that though.

Event Timeline

Tried reducing the resource to:

resource "openstack_containerinfra_clustertemplate_v1" "template_123" {
  name                  = "foo"
  coe                   = "kubernetes"
  image                 = "magnum-fedora-coreos-34"
}

Though I'm getting the same error in eqiad1.

I feel like this same error appeared once before from, what appeared to be, a newline issue. Though I don't know that the same would happen here, as, I would assume, the same version of terraform (1.4.2) would do the same thing in both codfw1dev and eqiad1. Difference between the openstack deploys?

rook moved this task from Backlog to Dysfunction on the Openstack-Magnum board.