Comment 0 for bug 1597324

Revision history for this message
Matthew Rees (matthew-rees) wrote :

Hi there

I am testing MAAS 2.0 in a proof of concept environment, and my networking configuration looks like this:

eno1: MAAS PXE interface, untagged, MAAS DHCP managed
eno2: Office/Internet facing interface, untagged, external DHCP
bond0: Multiple tagged VLAN interfaces for workload segregation, all managed by MAAS DHCP

This naming and configuration is shared by the MAAS node and by the nodes it manages. By default after acquiring, commissioning and deploying a node, eno1 is set as the default gateway interface but I would like eno2 to be the default.

Attached is the output of "maas xxx interfaces read 4y3h7q" where "4y3h7q" is one of the nodes managed by MAAS, but the output for eno2 specifically is:

    {
        "params": "",
        "mac_address": "bc:30:5b:d7:39:3a",
        "links": [
            {
                "subnet": {
                    "resource_uri": "/MAAS/api/2.0/subnets/11/",
                    "name": "192.168.32.0/22",
                    "space": "maas-external",
                    "allow_proxy": true,
                    "vlan": {
                        "name": "untagged",
                        "resource_uri": "/MAAS/api/2.0/vlans/5013/",
                        "mtu": 1500,
                        "id": 5013,
                        "fabric": "fabric-5",
                        "dhcp_on": false,
                        "vid": 0,
                        "primary_rack": null,
                        "external_dhcp": "192.168.32.3",
                        "secondary_rack": null
                    },
                    "id": 11,
                    "rdns_mode": 2,
                    "cidr": "192.168.32.0/22",
                    "gateway_ip": "192.168.32.2",
                    "dns_servers": []
                },
                "id": 101,
                "mode": "dhcp",
                "ip_address": "192.168.34.117"
            }
        ],
        "tags": [],
        "resource_uri": "/MAAS/api/2.0/nodes/4y3h7q/interfaces/43/",
        "effective_mtu": 1500,
        "vlan": {
            "name": "untagged",
            "resource_uri": "/MAAS/api/2.0/vlans/5013/",
            "mtu": 1500,
            "id": 5013,
            "fabric": "fabric-5",
            "dhcp_on": false,
            "vid": 0,
            "primary_rack": null,
            "external_dhcp": "192.168.32.3",
            "secondary_rack": null
        },
        "name": "eno2",
        "discovered": [
            {
                "subnet": {
                    "resource_uri": "/MAAS/api/2.0/subnets/11/",
                    "name": "192.168.32.0/22",
                    "space": "maas-external",
                    "allow_proxy": true,
                    "vlan": {
                        "name": "untagged",
                        "resource_uri": "/MAAS/api/2.0/vlans/5013/",
                        "mtu": 1500,
                        "id": 5013,
                        "fabric": "fabric-5",
                        "dhcp_on": false,
                        "vid": 0,
                        "primary_rack": null,
                        "external_dhcp": "192.168.32.3",
                        "secondary_rack": null
                    },
                    "id": 11,
                    "rdns_mode": 2,
                    "cidr": "192.168.32.0/22",
                    "gateway_ip": "192.168.32.2",
                    "dns_servers": []
                },
                "ip_address": "192.168.34.117"
            }
        ],
        "type": "physical",
        "children": [],
        "id": 43,
        "parents": [],
        "enabled": true
    },

Attempting to set the default gateway interface of the node via "maas XXX interface set-default-gateway 4y3h7q 43" results in the following: {"__all__": ["This interface has no usable gateways."]}

Attempting to provide the link_id via "maas XXX interface set-default-gateway 4y3h7q 43 link_id=101" results in: {"link_id": ["'101' is not a valid link_id. It should be one of: ."], "__all__": ["This interface has no usable gateways."]}

If you need any further debugging, logs or info please let me know, and thanks!
Matthew