我正在尝试将 vlan 接口添加到我的一个已委托节点。但是,添加接口时,我收到“NoneType”对象没有属性“fabric_id”,我已在物理接口和绑定(所需接口)上尝试此操作。两者都失败了。这是 maas 版本和数据。
这是一个错误吗?或者有人知道如何修复吗?
user@us-a-maas:~$ maas admin version read
Success.
Machine-readable output follows:
{"version": "2.3.0", "subversion": "6434-gd354690-0ubuntu1~16.04.1",
"capabilities": ["networks-management", "static-ipaddresses", "ipv6-
deployment-ubuntu", "devices-management", "storage-deployment-ubuntu",
"network-deployment-ubuntu", "bridging-interface-ubuntu", "bridging-
automatic-ubuntu", "authenticate-api"]}
#
user@us-a-maas:~$ maas admin node read h6g7w8
Success.
Machine-readable output follows:
{
"status": 4,
"node_type": 0,
{
"enabled": true,
"name": "ens3f0",
"children": [],
"system_id": "h6g7w8",
"links": [],
"discovered": null,
"vlan": null,
"tags": [
"sriov"
],
"params": "",
"mac_address": "14:02:ec:82:66:78",
"effective_mtu": 1500,
"id": 98,
"type": "physical",
"resource_uri": "/MAAS/api/2.0/nodes/h6g7w8/interfaces/98/",
"parents": []
},
#
{
"enabled": true,
"name": "tenant-bond",
"children": [],
"system_id": "h6g7w8",
"links": [],
"discovered": null,
"vlan": null,
"tags": [],
"params": {
"bond_lacp_rate": "fast",
"bond_downdelay": 0,
"bond_mode": "802.3ad",
"bond_miimon": 100,
"bond_updelay": 0,
"bond_xmit_hash_policy": "layer3+4"
},
################################
user@us-a-maas:~$ maas admin vlan read 1 14
Success.
Machine-readable output follows:
{
"primary_rack": "m3ppf4",
"name": "os-tenant-net",
"secondary_rack": null,
"mtu": 9000,
"fabric": "OpenStack-Nets",
"vid": 14,
"space": "tenant-net-api",
"relay_vlan": null,
"dhcp_on": true,
"id": 5008,
"external_dhcp": null,
"fabric_id": 1,
"resource_uri": "/MAAS/api/2.0/vlans/5008/"
}
答案1
为了向接口添加别名或 VLAN,必须首先将接口分配给正确的结构。
为此,请使用适当的结构、未标记的接口(如果有)和 IP 地址更新接口。
一旦完成,我就可以继续前进了。