UI: Unable to deploy CentOS7 - centos/focal not a supported combination

Bug #1956766 reported by Wayne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Undecided
Unassigned
maas-ui
Fix Released
Unknown

Bug Description

Attempting deploy CentOS7 thru web console results in error 'contos/focal is not a supported operating system and release combination. Attempting CentOS8 succeeds with error 'One machine cannot be deployed. To proceed, update your selection'

Deploy of default OS 'centos' succeeds in deploying CentOS7 via python-libmaas

MAAS version is 3.1.0 installed via snap on 1/5

Tags: ui
Wayne (wgoodric)
description: updated
Revision history for this message
Christian Grabowski (cgrabowski) wrote :

Hi there, can you provide steps to reproduce? After a fresh image sync, I was able to deploy Centos7 on 3.1.

Changed in maas:
status: New → Incomplete
Revision history for this message
Wayne (wgoodric) wrote :

Commission a new machine in web interface
Start deploy in web interface with selection OS = CentOS Release = CentOS 7

Changed in maas:
status: Incomplete → New
Revision history for this message
Christian Grabowski (cgrabowski) wrote :

Hmm still not able to reproduce. Can you provide the output of `maas $PROFILE boot-resources read`?

Changed in maas:
status: New → Incomplete
Revision history for this message
Wayne (wgoodric) wrote :

[{'name': 'centos/8', 'architecture': 'amd64/generic', 'type': 'Synced', 'id': 12, 'resource_uri': '/MAAS/api/2.0/boot-resources/12/', 'subarches': 'generic'}, {'name': 'centos/centos70', 'architecture': 'amd64/generic', 'type': 'Synced', 'id': 11, 'resource_uri': '/MAAS/api/2.0/boot-resources/11/', 'subarches': 'generic'}, {'id': 7, 'resource_uri': '/MAAS/api/2.0/boot-resources/7/', 'name': 'grub-efi-signed/uefi', 'architecture': 'amd64/generic', 'type': 'Synced'}, {'id': 8, 'resource_uri': '/MAAS/api/2.0/boot-resources/8/', 'name': 'grub-efi/uefi', 'architecture': 'arm64/generic', 'type': 'Synced'}, {'id': 9, 'resource_uri': '/MAAS/api/2.0/boot-resources/9/', 'name': 'grub-ieee1275/open-firmware', 'architecture': 'ppc64el/generic', 'type': 'Synced'}, {'id': 10, 'resource_uri': '/MAAS/api/2.0/boot-resources/10/', 'name': 'pxelinux/pxe', 'architecture': 'i386/generic', 'type': 'Synced'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/ga-20.04', 'type': 'Synced', 'id': 1, 'resource_uri': '/MAAS/api/2.0/boot-resources/1/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,ga-18.10,ga-19.04,ga-19.10,ga-20.04'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/ga-20.04-lowlatency', 'type': 'Synced', 'id': 2, 'resource_uri': '/MAAS/api/2.0/boot-resources/2/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,ga-18.10,ga-19.04,ga-19.10,ga-20.04'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/hwe-20.04', 'type': 'Synced', 'id': 3, 'resource_uri': '/MAAS/api/2.0/boot-resources/3/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,ga-18.10,ga-19.04,ga-19.10,ga-20.04'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/hwe-20.04-edge', 'type': 'Synced', 'id': 4, 'resource_uri': '/MAAS/api/2.0/boot-resources/4/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,hwe-18.10,hwe-19.04,hwe-19.10,hwe-20.04'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/hwe-20.04-lowlatency', 'type': 'Synced', 'id': 5, 'resource_uri': '/MAAS/api/2.0/boot-resources/5/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,ga-18.10,ga-19.04,ga-19.10,ga-20.04'}, {'name': 'ubuntu/focal', 'architecture': 'amd64/hwe-20.04-lowlatency-edge', 'type': 'Synced', 'id': 6, 'resource_uri': '/MAAS/api/2.0/boot-resources/6/', 'subarches': 'generic,hwe-p,hwe-q,hwe-r,hwe-s,hwe-t,hwe-u,hwe-v,hwe-w,ga-16.04,ga-16.10,ga-17.04,ga-17.10,ga-18.04,hwe-18.10,hwe-19.04,hwe-19.10,hwe-20.04'}, {'name': 'rhel/7', 'architecture': 'amd64/generic', 'type': 'Uploaded', 'id': 14, 'resource_uri': '/MAAS/api/2.0/boot-resources/14/', 'title': 'RedHat Enterprise Linux 7', 'subarches': 'generic'}]

Revision history for this message
Wayne (wgoodric) wrote :

        "name": "centos/8",
        "name": "centos/centos70",
        "name": "grub-efi-signed/uefi",
        "name": "grub-efi/uefi",
        "name": "grub-ieee1275/open-firmware",
        "name": "pxelinux/pxe",
        "name": "ubuntu/focal",
        "name": "ubuntu/focal",
        "name": "ubuntu/focal",
        "name": "ubuntu/focal",
        "name": "ubuntu/focal",
        "name": "ubuntu/focal",
        "name": "rhel/7",

Revision history for this message
Alberto Donato (ack) wrote :

Hi, could you please attach regiond.log and rackd.log from around the time when the issue happens?

Changed in maas:
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Wayne (wgoodric) wrote (last edit ):

Logs attached, grabbed right after an attempt that generated same error

Revision history for this message
Alberto Donato (ack) wrote :

Thanks, could you please also attach the output for `maas $profile machine read $system_id` for that machine?

Changed in maas:
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Wayne (wgoodric) wrote :

Attached machine read output

Revision history for this message
Alberto Donato (ack) wrote :

Could you please perform this test:

1) open the browser inspector
2) reload the maas UI
3) select to deploy the machine with centos
4) in the network tab of the inspector, find the websocket connection request (you can filter by the WS type, there should be only one active)
5) in the response section, there should be a number of request/responses over the WS connection including one request for the "machine.action" deploy action, which looks something like this:

{"method":"machine.action","type":0,"params":{"action":"deploy","extra":{"osystem":"centos","distro_series":"centos70","hwe_kernel":""},"system_id":"w4qyr6"},"request_id":22}

Could you please paste the content of the request in your case?

Changed in maas:
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Wayne (wgoodric) wrote :

{'type': 0, 'request_id': 15, 'method': 'machine.action', 'params': {'action': 'deploy', 'system_id': 'wkm8sd', 'extra': {'hwe_kernel': '', 'osystem': 'centos', 'distro_series': 'focal'}}}

Alberto Donato (ack)
tags: added: ui
Revision history for this message
Alberto Donato (ack) wrote :

It looks like the UI is passing the wrong distro_series for some reason.

Changed in maas:
status: Incomplete → New
Changed in maas-ui:
importance: Undecided → Unknown
Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

Hi there, are you able to check whether deploying is successful if you change the release to CentOS8 then back to CentOS7 without closing the form? The issue might be with the form initialisation.

Also, similarly to the above with the `machine.action` websocket request, there should be a request for `general.osinfo` that looks like:

{"method":"general.osinfo","type":0,"request_id":8}

Are you able to paste the contents of the response? It should have a type of "1" and a request_id that matches the original "general.osinfo" request_id.

Revision history for this message
Wayne (wgoodric) wrote :

That fixed it. I had to change tabs and then back to settings to make it take

{"method":"general.osinfo","type":0,"request_id":4}

I couldn't get it to populate any real info about the OS here

Revision history for this message
Caleb Ellis (caleb-ellis) wrote :

Sorry, I wasn't clear in my initial message now that I've reread it (apologies). You've provided the request message but I'm looking for the response message, which will have the same request_id (in your case that would have been 4) but a type of 1 (instead of 0). It should look something like:

{
  "type": 1,
  "request_id": 8,
  "rtype": 0,
  "result": {
    "osystems": [
      ["centos", "CentOS"],
      ["ubuntu", "Ubuntu"]
    ],
    "releases": [
      ["centos/centos70", "CentOS 7"],
      ["centos/8", "CentOS 8"],
      ["ubuntu/bionic", "Ubuntu 18.04 LTS \"Bionic Beaver\""],
      ["ubuntu/focal", "Ubuntu 20.04 LTS \"Focal Fossa\""]
    ],
    "kernels": {
      "ubuntu": {
        "bionic": [
          ["ga-18.04", "bionic (ga-18.04)"],
          ["ga-18.04-lowlatency", "bionic (ga-18.04-lowlatency)"],
          ["hwe-18.04", "bionic (hwe-18.04)"],
          ["hwe-18.04-edge", "bionic (hwe-18.04-edge)"],
          ["hwe-18.04-lowlatency", "bionic (hwe-18.04-lowlatency)"],
          ["hwe-18.04-lowlatency-edge", "bionic (hwe-18.04-lowlatency-edge)"]
        ],
        "focal": [
          ["ga-20.04", "focal (ga-20.04)"],
          ["ga-20.04-lowlatency", "focal (ga-20.04-lowlatency)"],
          ["hwe-20.04", "focal (hwe-20.04)"],
          ["hwe-20.04-edge", "focal (hwe-20.04-edge)"],
          ["hwe-20.04-lowlatency", "focal (hwe-20.04-lowlatency)"],
          ["hwe-20.04-lowlatency-edge", "focal (hwe-20.04-lowlatency-edge)"]
        ]
      }
    },
    "default_osystem": "ubuntu",
    "default_release": "focal"
  }
}

I'm mainly wondering if the default_osystem and default_release are being set correctly

Revision history for this message
Wayne (wgoodric) wrote :

{'result': {'osystems': [['centos', 'CentOS'], ['rhel', 'Redhat Enterprise Linux'], ['ubuntu', 'Ubuntu']], 'kernels': {'ubuntu': {'focal': [['ga-20.04', 'focal (ga-20.04)'], ['ga-20.04-lowlatency', 'focal (ga-20.04-lowlatency)'], ['hwe-20.04', 'focal (hwe-20.04)'], ['hwe-20.04-edge', 'focal (hwe-20.04-edge)'], ['hwe-20.04-lowlatency', 'focal (hwe-20.04-lowlatency)'], ['hwe-20.04-lowlatency-edge', 'focal (hwe-20.04-lowlatency-edge)']]}}, 'releases': [['centos/centos70', 'CentOS 7'], ['centos/8', 'CentOS 8'], ['rhel/7', 'RedHat Enterprise Linux 7'], ['ubuntu/focal', 'Ubuntu 20.04 LTS "Focal Fossa"']], 'default_release': 'centos70', 'default_osystem': 'centos'}, 'rtype': 0, 'request_id': 7, 'type': 1}

Bill Wear (billwear)
summary: - Unable to deploy CentOS7 - centos/focal not a supported combination
+ UI: Unable to deploy CentOS7 - centos/focal not a supported combination
Changed in maas-ui:
status: New → Fix Released
Changed in maas:
status: New → Fix Committed
Changed in maas:
milestone: none → 3.3.0
Changed in maas:
milestone: 3.3.0 → 3.3.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.