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

Error: Cobbler Distro: Error Creating: Error updating mgmt_classes to . #29

Open
klin938 opened this issue Jul 7, 2024 · 0 comments
Open

Comments

@klin938
Copy link

klin938 commented Jul 7, 2024

Hi,

TF Code:

  url = var.cobbler_url # optionally use COBBLER_URL env var
  insecure = var.cobbler_insecure # optionally use COBBLER_INSECURE env var
}

resource "cobbler_distro" "distro" {
  name       = "pd-tf-basic-x86_64"
  breed      = "debian"
  os_version = "bookworm"
  arch       = "x86_64"
  kernel     = "/var/www/cobbler/distro_mirror/netinst-debian-12.5.0-x86_64/install.amd/vmlinuz"
  initrd     = "/var/www/cobbler/distro_mirror/netinst-debian-12.5.0-x86_64/install.amd/initrd.gz"
}

Excepted behavior

distro resource created successfully

Actual behavior:

  # cobbler_distro.distro will be created
  + resource "cobbler_distro" "distro" {
      + arch                = "x86_64"
      + boot_files          = (known after apply)
      + boot_loaders        = (known after apply)
      + breed               = "debian"
      + comment             = (known after apply)
      + fetchable_files     = (known after apply)
      + id                  = (known after apply)
      + initrd              = "/var/www/cobbler/distro_mirror/netinst-debian-12.5.0-x86_64/install.amd/initrd.gz"
      + kernel              = "/var/www/cobbler/distro_mirror/netinst-debian-12.5.0-x86_64/install.amd/vmlinuz"
      + kernel_options      = (known after apply)
      + kernel_options_post = (known after apply)
      + mgmt_classes        = (known after apply)
      + name                = "pd-tf-basic-x86_64"
      + os_version          = "bookworm"
      + owners              = (known after apply)
      + template_files      = (known after apply)
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Do you want to perform these actions?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

cobbler_distro.distro: Creating...
╷
│ Error: Cobbler Distro: Error Creating: Error updating mgmt_classes to .
│
│   with cobbler_distro.distro,
│   on main.tf line 8, in resource "cobbler_distro" "distro":
│    8: resource "cobbler_distro" "distro" {
│
╵

Version

Cobbler 3.4.0
  source: e207a9f9, Wed Jun 19 09:42:41 2024 +0200
  build time: Wed Sep 21 07:30:00 2022

terraform-provider-cobbler: 3.0.0

Other info

It seems that mgmt_classes has been removed from the newest Cobbler version (3.4.0), for distro, profile and system. I am not sure if it is official change or bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant