canonical / maas-ui

The UI for MAAS (metal-as-a-service)
https://maas.io
Other
49 stars 48 forks source link

Unable to modify link speed if higher than the interface speed #3837

Closed webteam-app closed 2 years ago

webteam-app commented 2 years ago

Bug originally filed by mastier1 at https://bugs.launchpad.net/bugs/1940632

Intel card reporting higher link speed thank Interface speed. But it would be ok, issue with the speed reporting, maybe firmware update would help, but I cannot change the speed in the GUI interface. Once it gathered these value, the save button is greyed out (see the screenshots)

0000:3b:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)
0000:3b:00.1 Ethernet controller: Intel Corporation Ethernet Controller 10G X550T (rev 01)

$ ethtool -i eno7
driver: enic
version: 2.3.0.53
firmware-version: 5.1(3a)
expansion-rom-version:
bus-info: 0000:1d:00.4
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

$ ethtool eno7
Settings for eno7:
Supported ports: [ FIBRE ]
Supported link modes: 10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes: 10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 20000Mb/s ##################################<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000000 (0)

    Link detected: yes                                                                                                                                                                              

Work around for it is to use CLI

$ maas admin interface update ggt43c 174 link_speed=10000 Success. Machine-readable output follows: { "link_connected": true, "children": [], "id": 174, "discovered": null, "mac_address": "3c:13:cc:14:fa:30", "parents": [], "vendor": "Cisco Systems Inc", "product": "VIC Ethernet NIC", "enabled": true, "effective_mtu": 1500, "links": [ { "id": 916, "mode": "link_up" } ], "numa_node": 0, "firmware_version": "5.1(3a)", "name": "eno7", "system_id": "ggt43c", "type": "physical", "interface_speed": 10000, "sriov_max_vf": 0, "vlan": { "vid": 0, "mtu": 1500, "dhcp_on": true, "external_dhcp": null, "relay_vlan": null, "space": "oam-space", "primary_rack": "gpsdcf", "id": 5003, "secondary_rack": "nsfe6e", "fabric_id": 0, "fabric": "fabric-0", "name": "untagged", "resource_uri": "/MAAS/api/2.0/vlans/5003/" }, "link_speed": 10000, "tags": [], "params": "", "resource_uri": "/MAAS/api/2.0/nodes/ggt43c/interfaces/174/" }

$ maas admin interface read ggt43c 174 Success. Machine-readable output follows: { "sriov_max_vf": 0, "link_speed": 10000, "product": "VIC Ethernet NIC", "mac_address": "3c:13:cc:14:fa:30", "discovered": null, "links": [ { "id": 916, "mode": "link_up" } ], "vlan": { "vid": 0, "mtu": 1500, "dhcp_on": true, "external_dhcp": null, "relay_vlan": null, "secondary_rack": "nsfe6e", "fabric_id": 0, "primary_rack": "gpsdcf", "fabric": "fabric-0", "space": "oam-space", "id": 5003, "name": "untagged", "resource_uri": "/MAAS/api/2.0/vlans/5003/" }, "effective_mtu": 1500, "type": "physical", "enabled": true, "id": 174, "tags": [], "name": "eno7", "parents": [], "params": "", "vendor": "Cisco Systems Inc", "system_id": "ggt43c", "link_connected": true, "numa_node": 0, "firmware_version": "5.1(3a)", "interface_speed": 10000, "children": [], "resource_uri": "/MAAS/api/2.0/nodes/ggt43c/interfaces/174/" }

huwshimi commented 2 years ago

Closing as this has been fixed in recent versions of the UI. Can reopen if further details are provided.