[ExternalEmail] VLAN can not be created

Troy.Lee at vertiv.com Troy.Lee at vertiv.com
Thu Nov 28 19:24:36 AEDT 2019


Hi Евгений,

We also met the same issue.
There is an exception raised in phosphor-networkd which doesn't handle properly, so it turns out the phosphor-networkd crashed and restarted by systemd.
```
Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: ioctl failed for SIOCGIFHWADDR:
Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: terminate called after throwing an instance of 'sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure'
Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]:   what():  xyz.openbmc_project.Common.Error.InternalFailure: The operation failed internally.
Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: The operation failed internally.
```

The exception were introduced in the following code segment:
https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf

Is there any patch we could apply for this issue?


Thanks,
Troy Lee

From: openbmc <openbmc-bounces+troy.lee=vertiv.com at lists.ozlabs.org> On Behalf Of ???????
Sent: Tuesday, November 26, 2019 3:15 PM
To: openbmc at lists.ozlabs.org
Subject: [ExternalEmail] VLAN can not be created


Hello,

I want to create VLAN interface using the commands described here:

https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Network

but I get an error.

kury at kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":["eth1", 101] }' https://${bmc}/xyz/openbmc_project/network/action/VLAN
{
  "data": {
    "description": "org.freedesktop.DBus.Error.NoReply"
  },
  "message": "Remote peer disconnected",
  "status": "error"
}

or using bustl

kury at kury-ubuntu-1604:~$ ssh 192.168.4.186 -l root
root at 192.168.4.186<mailto:root at 192.168.4.186>'s password:
root at tiogapas2:~# busctl call xyz.openbmc_project.Network /xyz/openbmc_project/network xyz.openbmc_project.Network.VLAN.Create VLAN su "eth1" 101
Remote peer disconnected

Perhaps the syntax has changed? Or do I need to change the build settings?
Enumarate works correctly

kury at kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X GET https://${bmc}/xyz/openbmc_project/network/enumerate
{
  "data": {
    "/xyz/openbmc_project/network/config": {
      "DefaultGateway": "192.168.4.1",
      "DefaultGateway6": "",
      "HostName": "tiogapas2"
    },
    "/xyz/openbmc_project/network/config/dhcp": {
      "DNSEnabled": true,
      "HostNameEnabled": true,
      "NTPEnabled": true,
      "SendHostNameEnabled": true
    },
    "/xyz/openbmc_project/network/eth0": {
      "AutoNeg": false,
      "DHCPEnabled": true,
      "DomainName": [],
      "IPv6AcceptRA": false,
      "InterfaceName": "eth0",
      "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
      "MACAddress": "a6:1f:e2:d4:fc:20",
      "NTPServers": [],
      "Nameservers": [],
      "Speed": 0
    },
    "/xyz/openbmc_project/network/eth0/ipv4/48f8ed70": {
      "Address": "192.168.4.186",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",
      "PrefixLength": 24,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
    },
    "/xyz/openbmc_project/network/eth0/ipv4/ee4bea56": {
      "Address": "169.254.5.72",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
      "PrefixLength": 16,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
    },
    "/xyz/openbmc_project/network/eth0/ipv6/60f50253": {
      "Address": "fe80::a41f:e2ff:fed4:fc20",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
      "PrefixLength": 64,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"
    },
    "/xyz/openbmc_project/network/eth1": {
      "AutoNeg": false,
      "DHCPEnabled": true,
      "DomainName": [],
      "IPv6AcceptRA": false,
      "InterfaceName": "eth1",
      "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
      "MACAddress": "d6:92:52:7d:5:c8",
      "NTPServers": [],
      "Nameservers": [],
      "Speed": 0
    },
    "/xyz/openbmc_project/network/eth1/ipv4/42f65a13": {
      "Address": "192.168.4.187",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",
      "PrefixLength": 24,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
    },
    "/xyz/openbmc_project/network/eth1/ipv4/4f48d4d1": {
      "Address": "169.254.241.120",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
      "PrefixLength": 16,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
    },
    "/xyz/openbmc_project/network/eth1/ipv6/7fc4e2e8": {
      "Address": "fe80::d492:52ff:fe7d:5c8",
      "Gateway": "",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",
      "PrefixLength": 64,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"
    },
    "/xyz/openbmc_project/network/host0/intf": {
      "MACAddress": "00:00:00:00:00:00"
    },
    "/xyz/openbmc_project/network/host0/intf/addr": {
      "Address": "0.0.0.0",
      "Gateway": "0.0.0.0",
      "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.Static",
      "PrefixLength": 0,
      "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"
    },
    "/xyz/openbmc_project/network/sit0": {
      "AutoNeg": false,
      "DHCPEnabled": true,
      "DomainName": [],
      "IPv6AcceptRA": false,
      "InterfaceName": "sit0",
      "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",
      "MACAddress": "0:0:0:0:0:0",
      "NTPServers": [],
      "Nameservers": [],
      "Speed": 0
    },
    "/xyz/openbmc_project/network/snmp/manager": {}
  },
  "message": "200 OK",
  "status": "ok"
  "status": "ok"

CONFIDENTIALITY NOTICE: This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed and may contain confidential and privileged information protected by law. If you received this e-mail in error, any review, use, dissemination, distribution, or copying of the e-mail is strictly prohibited. Please notify the sender immediately by return e-mail and delete all copies from your system.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191128/6630da71/attachment-0001.htm>


More information about the openbmc mailing list