<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:新細明體;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:細明體;
panose-1:2 2 5 9 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@新細明體";
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:"\@細明體";
panose-1:2 2 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"新細明體",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
tt
{mso-style-priority:99;
font-family:細明體;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"新細明體",serif;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.pl-en
{mso-style-name:pl-en;}
span.pl-k
{mso-style-name:pl-k;}
span.EmailStyle23
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-TW" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Hi Евгений,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">We also met the same issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">```<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: ioctl failed for SIOCGIFHWADDR:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: terminate called after throwing an instance of 'sdbusplus::xyz::openbmc_project::Common::Error::InternalFailure'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: what(): xyz.openbmc_project.Common.Error.InternalFailure: The operation failed internally.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Jan 03 16:56:37 ast2500evb phosphor-network-manager[1881]: The operation failed internally.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">```<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">The exception were introduced in the following code segment:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><a href="https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf">https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf</a></span><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Is there any patch we could apply for this issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif">Troy Lee<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Calibri",sans-serif"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> openbmc <openbmc-bounces+troy.lee=vertiv.com@lists.ozlabs.org>
<b>On Behalf Of </b>???????<br>
<b>Sent:</b> Tuesday, November 26, 2019 3:15 PM<br>
<b>To:</b> openbmc@lists.ozlabs.org<br>
<b>Subject:</b> [ExternalEmail] VLAN can not be created<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p><span lang="EN-US" style="font-family:"Helvetica",sans-serif">Hello,</span><span lang="EN-US"><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Helvetica",sans-serif">I want to create VLAN interface using the commands described here:</span><span lang="EN-US"><o:p></o:p></span></p>
<p><span lang="EN-US"><a href="https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Network"><span style="font-family:"Helvetica",sans-serif">https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/xyz/openbmc_project/Network</span></a><o:p></o:p></span></p>
<p><span lang="EN-US" style="font-family:"Helvetica",sans-serif">but I get an error.</span><span lang="EN-US"><o:p></o:p></span></p>
<p><tt><span lang="EN-US">kury@kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data":["eth1", 101] }'
</span></tt><span lang="EN-US"><a href="https://$"><span style="font-family:細明體">https://$</span></a></span><tt><span lang="EN-US">{bmc}/xyz/openbmc_project/network/action/VLAN</span></tt><span lang="EN-US" style="font-family:細明體"><br>
<tt>{</tt><br>
<tt> "data": {</tt><br>
<tt> "description": "org.freedesktop.DBus.Error.NoReply"</tt><br>
<tt> },</tt><br>
<tt> "message": "Remote peer disconnected",</tt><br>
<tt> "status": "error"</tt><br>
<tt>}</tt></span><span lang="EN-US" style="font-family:"Helvetica",sans-serif"><br>
<br>
or using bustl</span><span lang="EN-US"><o:p></o:p></span></p>
<p><tt><span lang="EN-US">kury@kury-ubuntu-1604:~$ ssh 192.168.4.186 -l root</span></tt><span lang="EN-US" style="font-family:細明體"><br>
</span><span lang="EN-US"><a href="mailto:root@192.168.4.186"><span style="font-family:細明體">root@192.168.4.186</span></a></span><tt><span lang="EN-US">'s password:
</span></tt><span lang="EN-US" style="font-family:細明體"><br>
<tt>root@tiogapas2:~# busctl call xyz.openbmc_project.Network /xyz/openbmc_project/network xyz.openbmc_project.Network.VLAN.Create VLAN su "eth1" 101</tt><br>
<tt>Remote peer disconnected</tt></span><span lang="EN-US"><o:p></o:p></span></p>
<p><span lang="EN-US">Perhaps the syntax has changed? Or do I need to change the build settings?<br>
Enumarate works correctly<o:p></o:p></span></p>
<p><tt><span lang="EN-US">kury@kury-ubuntu-1604:~$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X GET
</span></tt><span lang="EN-US"><a href="https://$"><span style="font-family:細明體">https://$</span></a></span><tt><span lang="EN-US">{bmc}/xyz/openbmc_project/network/enumerate</span></tt><span lang="EN-US" style="font-family:細明體"><br>
<tt>{</tt><br>
<tt> "data": {</tt><br>
<tt> "/xyz/openbmc_project/network/config": {</tt><br>
<tt> "DefaultGateway": "192.168.4.1",</tt><br>
<tt> "DefaultGateway6": "",</tt><br>
<tt> "HostName": "tiogapas2"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/config/dhcp": {</tt><br>
<tt> "DNSEnabled": true,</tt><br>
<tt> "HostNameEnabled": true,</tt><br>
<tt> "NTPEnabled": true,</tt><br>
<tt> "SendHostNameEnabled": true</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth0": {</tt><br>
<tt> "AutoNeg": false,</tt><br>
<tt> "DHCPEnabled": true,</tt><br>
<tt> "DomainName": [],</tt><br>
<tt> "IPv6AcceptRA": false,</tt><br>
<tt> "InterfaceName": "eth0",</tt><br>
<tt> "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",</tt><br>
<tt> "MACAddress": "a6:1f:e2:d4:fc:20",</tt><br>
<tt> "NTPServers": [],</tt><br>
<tt> "Nameservers": [],</tt><br>
<tt> "Speed": 0</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth0/ipv4/48f8ed70": {</tt><br>
<tt> "Address": "192.168.4.186",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",</tt><br>
<tt> "PrefixLength": 24,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth0/ipv4/ee4bea56": {</tt><br>
<tt> "Address": "169.254.5.72",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",</tt><br>
<tt> "PrefixLength": 16,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth0/ipv6/60f50253": {</tt><br>
<tt> "Address": "fe80::a41f:e2ff:fed4:fc20",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",</tt><br>
<tt> "PrefixLength": 64,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth1": {</tt><br>
<tt> "AutoNeg": false,</tt><br>
<tt> "DHCPEnabled": true,</tt><br>
<tt> "DomainName": [],</tt><br>
<tt> "IPv6AcceptRA": false,</tt><br>
<tt> "InterfaceName": "eth1",</tt><br>
<tt> "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",</tt><br>
<tt> "MACAddress": "d6:92:52:7d:5:c8",</tt><br>
<tt> "NTPServers": [],</tt><br>
<tt> "Nameservers": [],</tt><br>
<tt> "Speed": 0</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth1/ipv4/42f65a13": {</tt><br>
<tt> "Address": "192.168.4.187",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.DHCP",</tt><br>
<tt> "PrefixLength": 24,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth1/ipv4/4f48d4d1": {</tt><br>
<tt> "Address": "169.254.241.120",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",</tt><br>
<tt> "PrefixLength": 16,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/eth1/ipv6/7fc4e2e8": {</tt><br>
<tt> "Address": "fe80::d492:52ff:fe7d:5c8",</tt><br>
<tt> "Gateway": "",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.LinkLocal",</tt><br>
<tt> "PrefixLength": 64,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv6"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/host0/intf": {</tt><br>
<tt> "MACAddress": "00:00:00:00:00:00"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/host0/intf/addr": {</tt><br>
<tt> "Address": "0.0.0.0",</tt><br>
<tt> "Gateway": "0.0.0.0",</tt><br>
<tt> "Origin": "xyz.openbmc_project.Network.IP.AddressOrigin.Static",</tt><br>
<tt> "PrefixLength": 0,</tt><br>
<tt> "Type": "xyz.openbmc_project.Network.IP.Protocol.IPv4"</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/sit0": {</tt><br>
<tt> "AutoNeg": false,</tt><br>
<tt> "DHCPEnabled": true,</tt><br>
<tt> "DomainName": [],</tt><br>
<tt> "IPv6AcceptRA": false,</tt><br>
<tt> "InterfaceName": "sit0",</tt><br>
<tt> "LinkLocalAutoConf": "xyz.openbmc_project.Network.EthernetInterface.LinkLocalConf.both",</tt><br>
<tt> "MACAddress": "0:0:0:0:0:0",</tt><br>
<tt> "NTPServers": [],</tt><br>
<tt> "Nameservers": [],</tt><br>
<tt> "Speed": 0</tt><br>
<tt> },</tt><br>
<tt> "/xyz/openbmc_project/network/snmp/manager": {}</tt><br>
<tt> },</tt><br>
<tt> "message": "200 OK",</tt><br>
<tt> "status": "ok"</tt><br>
<tt> "status": "ok"</tt></span><span lang="EN-US"><o:p></o:p></span></p>
</div>
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.
</body>
</html>