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 Creating OpenNebula Images with Unsupported Remote Formats #6764

Open
3 tasks
shurkys opened this issue Oct 26, 2024 · 0 comments
Open
3 tasks

Error Creating OpenNebula Images with Unsupported Remote Formats #6764

shurkys opened this issue Oct 26, 2024 · 0 comments

Comments

@shurkys
Copy link

shurkys commented Oct 26, 2024

Description
I encountered an error while trying to create images in OpenNebula. The error indicates that the image format is unsupported, and this issue occurs both with and without using Terraform.

To Reproduce
With terraform

resource "opennebula_image" "talos" {
  datastore_id = data.opennebula_datastore.default.id
  description  = "Talos test"
  name         = "Talos 1.7.2 test"
  path         = "https://github.com/siderolabs/talos/releases/download/v1.7.7/opennebula-amd64.raw.xz"
  type         = "OS"
  lock         = "USE"
  persistent   = false
}

resource "opennebula_image" "ubuntu" {
  datastore_id = data.opennebula_datastore.default.id
  description  = "Ubuntu test"
  name         = "Ubntu 20.04.1"
  path         = "https://cdimage.ubuntu.com/ubuntu-base/releases/focal/release/ubuntu-base-20.04.1-base-amd64.tar.gz"
  type         = "OS"
  lock         = "USE"
  persistent   = false
}

OR manualy
For Talos:

Name: Talos 1.7.2 test
Path: https://github.com/siderolabs/talos/releases/download/v1.7.7/opennebula-amd64.raw.xz

For Ubuntu:

Name: Ubntu 20.04.1
Path: https://cdimage.ubuntu.com/ubuntu-base/releases/focal/release/ubuntu-base-20.04.1-base-amd64.tar.gz

Expected behavior
Images should be created successfully without any parsing errors.

Details

  • Affected Component: [Storage]
  • Hypervisor: [ KVM]
  • Version: [6.10.0]

Additional context
Error:

Acquiring state lock. This may take a few moments...
data.terraform_remote_state.infrastructure: Reading...
data.opennebula_datastore.default: Reading...
data.opennebula_image.talos_1_7_2: Reading...
opennebula_datastore.default: Refreshing state... [id=1]
data.opennebula_image.talos_1_7_2: Read complete after 0s [name=Talos 1.7.2]
data.opennebula_datastore.default: Read complete after 0s [name=default]
data.terraform_remote_state.infrastructure: Read complete after 1s

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # opennebula_image.talos will be created
  + resource "opennebula_image" "talos" {
      + datastore_id = 1
      + default_tags = (known after apply)
      + description  = "Talos test"
      + dev_prefix   = (known after apply)
      + driver       = (known after apply)
      + format       = (known after apply)
      + gid          = (known after apply)
      + gname        = (known after apply)
      + id           = (known after apply)
      + lock         = "USE"
      + name         = "Talos 1.7.2 test"
      + path         = "https://github.com/siderolabs/talos/releases/download/v1.7.7/opennebula-amd64.raw.xz"
      + permissions  = (known after apply)
      + persistent   = false
      + size         = (known after apply)
      + tags_all     = (known after apply)
      + target       = (known after apply)
      + timeout      = 20
      + type         = "OS"
      + uid          = (known after apply)
      + uname        = (known after apply)
    }

  # opennebula_image.ubuntu will be created
  + resource "opennebula_image" "ubuntu" {
      + datastore_id = 1
      + default_tags = (known after apply)
      + description  = "Ubuntu test"
      + dev_prefix   = (known after apply)
      + driver       = (known after apply)
      + format       = (known after apply)
      + gid          = (known after apply)
      + gname        = (known after apply)
      + id           = (known after apply)
      + lock         = "USE"
      + name         = "Ubntu 20.04.1"
      + path         = "https://cdimage.ubuntu.com/ubuntu-base/releases/focal/release/ubuntu-base-20.04.1-base-amd64.tar.gz"
      + permissions  = (known after apply)
      + persistent   = false
      + size         = (known after apply)
      + tags_all     = (known after apply)
      + target       = (known after apply)
      + timeout      = 20
      + type         = "OS"
      + uid          = (known after apply)
      + uname        = (known after apply)
    }

Plan: 2 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: 
opennebula_image.talos: Creating...
opennebula_image.ubuntu: Creating...

╷
│ Error: Failed to create the image
│ 
│   with opennebula_image.talos,
│   on image.tf line 37, in resource "opennebula_image" "talos":
│   37: resource "opennebula_image" "talos" {
│ 
│ OpenNebula error [INTERNAL]: [one.image.allocate] Cannot parse image SIZE:
│ Unsupported remote image format
╵
╷
│ Error: Failed to create the image
│ 
│   with opennebula_image.ubuntu,
│   on image.tf line 47, in resource "opennebula_image" "ubuntu":
│   47: resource "opennebula_image" "ubuntu" {
│ 
│ OpenNebula error [INTERNAL]: [one.image.allocate] Cannot parse image SIZE:
│ Unsupported remote image format
╵

exit status 1
20:07:32.696 ERROR  terraform invocation failed in . stderr=
╷
│ Error: Failed to create the image
│ 
│   with opennebula_image.talos,
│   on image.tf line 37, in resource "opennebula_image" "talos":
│   37: resource "opennebula_image" "talos" {
│ 
│ OpenNebula error [INTERNAL]: [one.image.allocate] Cannot parse image SIZE:
│ Unsupported remote image format
╵
╷
│ Error: Failed to create the image
│ 
│   with opennebula_image.ubuntu,
│   on image.tf line 47, in resource "opennebula_image" "ubuntu":
│   47: resource "opennebula_image" "ubuntu" {
│ 
│ OpenNebula error [INTERNAL]: [one.image.allocate] Cannot parse image SIZE:
│ Unsupported remote image format
╵

20:07:32.703 ERROR  1 error occurred:
        * [../storage] exit status 1

Log from oned.log

Sat Oct 26 20:17:42 2024 [Z0][ReM][D]: Req:6896 UID:0 one.system.version result SUCCESS, "6.10.0"
Sat Oct 26 20:17:42 2024 [Z0][ReM][D]: Req:6736 UID:0 IP:10.66.66.96 one.image.allocate invoked , "NAME="Talos 1.7.2 te...", 1
Sat Oct 26 20:17:42 2024 [Z0][ReM][D]: Req:8544 UID:0 IP:10.66.66.96 one.image.allocate invoked , "NAME="Ubntu 20.04.1"...", 1
Sat Oct 26 20:17:43 2024 [Z0][ReM][D]: Req:6592 UID:0 IP:127.0.0.1 one.zone.raftstatus invoked
Sat Oct 26 20:17:43 2024 [Z0][ReM][D]: Req:6592 UID:0 one.zone.raftstatus result SUCCESS, "<RAFT><SERVER_ID>-1<..."
Sat Oct 26 20:17:43 2024 [Z0][ReM][D]: Req:2464 UID:0 IP:127.0.0.1 one.vmpool.infoextended invoked , -2, -1, -1, -1
Sat Oct 26 20:17:43 2024 [Z0][ReM][D]: Req:2464 UID:0 one.vmpool.infoextended result SUCCESS, "<VM_POOL><VM><ID>52<..."
Sat Oct 26 20:17:45 2024 [Z0][ImM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/datastore/fs/stat 23
Sat Oct 26 20:17:45 2024 [Z0][ImM][I]: Unsupported remote image format
Sat Oct 26 20:17:45 2024 [Z0][ReM][E]: Req:6736 UID:0 one.image.allocate result FAILURE [one.image.allocate] Cannot parse image SIZE: Unsupported remote image format
Sat Oct 26 20:17:45 2024 [Z0][ImM][I]: Command execution failed (exit code: 255): /var/lib/one/remotes/datastore/fs/stat 24
Sat Oct 26 20:17:45 2024 [Z0][ImM][I]: Unsupported remote image format
Sat Oct 26 20:17:45 2024 [Z0][ReM][E]: Req:8544 UID:0 one.image.allocate result FAILURE [one.image.allocate] Cannot parse image SIZE: Unsupported remote image format

Progress Status

  • Code committed
  • Testing - QA
  • Documentation (Release notes - resolved issues, compatibility, known issues)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant