Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCI image builds fail in goss on OS_VERSION key missing #1638

Open
eshneken opened this issue Nov 27, 2024 · 0 comments
Open

OCI image builds fail in goss on OS_VERSION key missing #1638

eshneken opened this issue Nov 27, 2024 · 0 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@eshneken
Copy link

Environment

  • Make target: make build-oci-ubuntu-2204
  • Run using container image? (Y/N): N
  • Environment vars:
OCI_TENANCY_ID=ocid1.tenancy.oc1..xxxy
OCI_USER_ID=ocid1.user.oc1..yyyy
OCI_CREDENTIALS_FINGERPRINT=aa:bb:cc:dd:ee
OCI_REGION=us-ashburn-1
OCI_CREDENTIALS_PASSPHRASE=
OCI_CREDENTIALS_KEY_B64=abcdefghijklmnop
  • Vars file:
{
  "compartment_ocid": "ocid1.compartment.oc1..xxxx",
  "subnet_ocid": "ocid1.subnet.oc1.iad.yyyy",
  "availability_domain": "zzz:US-ASHBURN-AD-1"
}

What steps did you take and what happened?

Upon attempting to run the build for multiple targets (Oracle Linux 8, Ubuntu 2204, etc) the image build errors out and terminates without completion with error: oracle-oci: could not read json data in goss/goss-package.yaml: template: test:62:26: executing "test" at <.Vars.OS_VERSION>: map has no entry for key "OS_VERSION"

Previous versions would also report this error but would proceed with build and image creation. In the latest version, this error stops the build and an image never gets created.

What did you expect to happen?

Previous versions, specifically v0.1.30, also encountered this goss failure but continued on and eventually complete the image creation. The latest version of the image-builder always fails and never completes image creation.

Relevant log output

Log Output
==> oracle-oci: Running goss tests...
==> oracle-oci: Running GOSS render command: cd /tmp/goss &&  /tmp/goss-0.3.16-linux-amd64 --gossfile goss/goss.yaml --vars /tmp/goss/goss-vars.yaml --vars-inline '{"ARCH":"amd64","OS":"oracle linux","PROVIDER":"oci","containerd_version":"1.7.20","kubernetes_cni_deb_version":"","kubernetes_cni_rpm_version":"","kubernetes_cni_source_type":"pkg","kubernetes_cni_version":"1.2.0","kubernetes_deb_version":"1.30.5-1.1","kubernetes_rpm_version":"1.30.5","kubernetes_source_type":"pkg","kubernetes_version":"1.30.5"}' render > /tmp/goss-spec.yaml
==> oracle-oci: could not read json data in goss/goss-package.yaml: template: test:62:26: executing "test" at <.Vars.OS_VERSION>: map has no entry for key "OS_VERSION"

Anything else you would like to add?


/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants