Comment 13 for bug 2106671

Revision history for this message
Jacopo Rota (r00ta) wrote :

You can either create a simplestream mirror and remove the problematic image or add `/var/snap/maas/current/preseeds/curtin_userdata`

```
#cloud-config
debconf_selections:
 maas: |
  {{for line in str(curtin_preseed).splitlines()}}
  {{line}}
  {{endfor}}
late_commands:
  maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']
   cloud_init: ["curtin", "in-target", "--", "apt-get", "install", "-y", "--allow-downgrades", "cloud-init=<last working version>"]
```

if you have a <last working version> still available in the archives. Otherwise you can use the daily build but it's not guaranteed that something else gets broken in the meantime

```
#cloud-config
debconf_selections:
 maas: |
  {{for line in str(curtin_preseed).splitlines()}}
  {{line}}
  {{endfor}}
late_commands:
  maas: [wget, '--no-proxy', {{node_disable_pxe_url|escape.json}}, '--post-data', {{node_disable_pxe_data|escape.json}}, '-O', '/dev/null']
  cloud_init_00: ["curtin", "in-target", "--", "add-apt-repository", "-y", "ppa:cloud-init-dev/daily"]
  cloud_init_01: ["curtin", "in-target", "--", "apt-get", "install", "-y", "cloud-init"]
```