GoogleCloudPlatform / GoogleCloudPlatform/eda-examples

centos-cloud/centos-7 images are not available anymore

Open
#40 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
24
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Multiple TF files deploy centos-7 VMs, which don't deploy. Example:

```
google_compute_instance.license-server: Creating...

│ Error: Error resolving image name 'centos-cloud/centos-7': Could not find image or family centos-cloud/centos-7

│ with google_compute_instance.license-server,
│ on main.tf line 21, in resource "google_compute_instance" "license-server":
│ 21: resource "google_compute_instance" "license-server" {

```

Why? centos-7 is not available on Google Cloud anymore. Too old.
https://cloud.google.com/compute/docs/images/os-details#centos

It affects the following files:

```
terraform/licensing/main.tf: license_server_os_image = "centos-cloud/centos-7"
terraform/standalone-compute/main.tf: master_os_image = "centos-cloud/centos-7"
third_party/slurm-gcp/tf/modules/controller/main.tf: image = "centos-cloud/centos-7"
third_party/slurm-gcp/tf/modules/compute/main.tf: image = "centos-cloud/centos-7"
third_party/slurm-gcp/tf/modules/login/main.tf: image = "centos-cloud/centos-7"
```

I tried to use `centos-cloud/centos-stream-9` and `rocky-linux-cloud/rocky-linux-8-optimized-gcp` instead. VMs deploy, but the startup script at https://github.com/GoogleCloudPlatform/eda-examples/blob/main/third_party/slurm-gcp/scripts/startup.sh hangs, because it insists on installing yum packages which aren't available on the newer distributions anymore:

```
startup-script: Error: Unable to find a match: lua-devel man2html mariadb-devel munge-devel rrdtool-devel pdsh
```

Am I doing something very wrong, or can this repo not be deployed anymore?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.