MaaS repositories

Hello everyone,

I hope you’re doing fine !

I am not sure what just happened and if it is really linked to the action I’ve just done.
But our MaaS is in lockdown…
I tried to change the default repositories to our mirrors but then trying to deploy machines I got :

Failed to render preseed: 'NoneType' object has no attribute 'url'

So I tried to revert back like this :

ubuntu@maas:~$   maas $PROFILE package-repositories read
Success.
Machine-readable output follows:
[
    {
        "name": "Ubuntu archive",
        "url": "http://archive.ubuntu.com/ubuntu",
        "distributions": [],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": true,
        "components": [],
        "arches": [
            "amd64",
            "i386"
        ],
        "key": "",
        "enabled": true,
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/package-repositories/1/"
    },
    {
        "name": "Ubuntu extra architectures",
        "url": "http://ports.ubuntu.com/ubuntu-ports",
        "distributions": [],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": true,
        "components": [],
        "arches": [
            "amd64",
            "i386"
        ],
        "key": "",
        "enabled": true,
        "id": 2,
        "resource_uri": "/MAAS/api/2.0/package-repositories/2/"
    }
]

Could someone tell me if my repos have been correctly reverted back cause I forgot to take a backup…

And also how it could be possible for us to debug this curtin ? issues ?

Thanks in avance,
Have a nice day,
Best Regards,
Mickaël.

Ouch, sorry, using my memory I got it right, like this :

ubuntu@maas2:~$   maas $PROFILE package-repositories read
Success.
Machine-readable output follows:
[
    {
        "name": "Ubuntu archive",
        "url": "http://archive.ubuntu.com/ubuntu",
        "distributions": [],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": false,
        "components": [],
        "arches": [
            "amd64",
            "i386"
        ],
        "key": "",
        "enabled": true,
        "id": 1,
        "resource_uri": "/MAAS/api/2.0/package-repositories/1/"
    },
    {
        "name": "Ubuntu extra architectures",
        "url": "http://ports.ubuntu.com/ubuntu-ports",
        "distributions": [],
        "disabled_pockets": [],
        "disabled_components": [],
        "disable_sources": false,
        "components": [],
        "arches": [
            "armhf",
            "arm64",
            "ppc64el",
            "s390x"
        ],
        "key": "",
        "enabled": true,
        "id": 2,
        "resource_uri": "/MAAS/api/2.0/package-repositories/2/"
    }
]
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.