[Bug 2064121] [NEW] Example provided in classic image definition doesn't build

Damian Zaręba 2064121 at bugs.launchpad.net
Mon Apr 29 13:48:41 UTC 2024


Public bug reported:

OS: Ubuntu Unity 24.04
Ubuntu-image version: 3.4+snap1

When using example provided under this link:
https://github.com/canonical/ubuntu-
image/blob/main/internal/imagedefinition/README.rst

Image doesn't build at all.

Error:

```yaml
Error: yaml: unmarshal errors:
  line 8: cannot unmarshal !!map into string
```

When editing this like from

```yaml
kernel:
  name: linux-raspi
```

to:
```yaml
kernel: linux-raspi
```

Then ubuntu-image returns following error:

```
WARNING: rootfs.sources-list-deb822 was not set. Please explicitly set the format desired for sources list in your image definition.
WARNING: rootfs.sources-list-deb822 is set to false. The deprecated format will be used to manage sources list. Please if possible adopt the new format.
Error: Schema validation failed: [ModelAssertion: Does not match format 'uri']
```

** Affects: ubuntu-image
     Importance: Undecided
         Status: New


** Tags: classic raspberry-pi

** Attachment added: "image definition after applying changes written in description"
   https://bugs.launchpad.net/bugs/2064121/+attachment/5772488/+files/image_definition.yaml

** Description changed:

  OS: Ubuntu Unity 24.04
- Ubuntu-image version: 3.4+snap1\
+ Ubuntu-image version: 3.4+snap1
  
  When using example provided under this link:
  https://github.com/canonical/ubuntu-
  image/blob/main/internal/imagedefinition/README.rst
  
  Image doesn't build at all.
  
  Error:
  
  ```yaml
  Error: yaml: unmarshal errors:
-   line 8: cannot unmarshal !!map into string
+   line 8: cannot unmarshal !!map into string
  ```
  
  When editing this like from
  
  ```yaml
  kernel:
-   name: linux-raspi
+   name: linux-raspi
  ```
  
  to:
  ```yaml
  kernel: linux-raspi
  ```
  
  Then ubuntu-image returns following error:
  
  ```
  WARNING: rootfs.sources-list-deb822 was not set. Please explicitly set the format desired for sources list in your image definition.
  WARNING: rootfs.sources-list-deb822 is set to false. The deprecated format will be used to manage sources list. Please if possible adopt the new format.
  Error: Schema validation failed: [ModelAssertion: Does not match format 'uri']
  ```

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to Ubuntu Image.
https://bugs.launchpad.net/bugs/2064121

Title:
  Example provided in classic image definition doesn't build

Status in Ubuntu Image:
  New

Bug description:
  OS: Ubuntu Unity 24.04
  Ubuntu-image version: 3.4+snap1

  When using example provided under this link:
  https://github.com/canonical/ubuntu-
  image/blob/main/internal/imagedefinition/README.rst

  Image doesn't build at all.

  Error:

  ```yaml
  Error: yaml: unmarshal errors:
    line 8: cannot unmarshal !!map into string
  ```

  When editing this like from

  ```yaml
  kernel:
    name: linux-raspi
  ```

  to:
  ```yaml
  kernel: linux-raspi
  ```

  Then ubuntu-image returns following error:

  ```
  WARNING: rootfs.sources-list-deb822 was not set. Please explicitly set the format desired for sources list in your image definition.
  WARNING: rootfs.sources-list-deb822 is set to false. The deprecated format will be used to manage sources list. Please if possible adopt the new format.
  Error: Schema validation failed: [ModelAssertion: Does not match format 'uri']
  ```

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-image/+bug/2064121/+subscriptions




More information about the foundations-bugs mailing list