<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="Helvetica, Arial, sans-serif">Hello,</font></p>
<p><tt>You have wrote<br>
</tt></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif" lang="EN-US"><tt>"</tt>The
exception were introduced in the following code segment:</span></p>
<span lang="EN-US"><a
href="https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf">https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf</a></span>
<p><font face="Helvetica, Arial, sans-serif">I am removing the code
from this patch, it does not affect.</font></p>
<p><br>
</p>
<p><font face="Helvetica, Arial, sans-serif">I added a patch to find
out the name of the interface.</font></p>
<p><font face="Helvetica, Arial, sans-serif">After the request for
the creation of VLAN journalctl issues such a message:</font></p>
<p><tt>$ curl -c cjar -b cjar -k -H "Content-Type: application/json"
-X POST -d '{"data":["eth0", 101] }' </tt><tt><a
class="moz-txt-link-freetext" href="https://$">https://$</a></tt><tt>{bmc}/xyz/openbmc_project/network/action/VLAN</tt><font
face="Helvetica, Arial, sans-serif"><br>
</font> </p>
<font face="Helvetica, Arial, sans-serif">
</font>
<p><font face="Helvetica, Arial, sans-serif"> </font><tt>
MESSAGE=ioctl failed for SIOCGIFHWADDR:</tt><tt><br>
</tt><tt>
ERROR=No such device; interface name=eth0.101</tt></p>
<p><tt>It may be necessary to configure the I210 chip? How to do
this from the host side or from the BMC side?</tt></p>
<br>
<p><font face="Helvetica, Arial, sans-serif">PATCH<br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">@@ -286,7 +287,7 @@<br>
if (ioctl(sock, SIOCGIFHWADDR, &ifr) != 0)<br>
{<br>
log<level::ERR>("ioctl failed for
SIOCGIFHWADDR:",<br>
- entry("ERROR=%s", strerror(errno)));<br>
+ entry("ERROR=%s; interface name=%s",
strerror(errno),ifr.ifr_name));<br>
elog<InternalFailure>();<br>
}</font></p>
<p><font face="Helvetica, Arial, sans-serif"><br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">REQUEST<br>
</font></p>
<p><tt>$ curl -c cjar -b cjar -k -H "Content-Type: application/json"
-X POST -d '{"data":["eth0", 101] }' </tt><tt><a
class="moz-txt-link-freetext" href="https://$">https://$</a></tt><tt>{bmc}/xyz/openbmc_project/network/action/VLAN</tt><font
face="Helvetica, Arial, sans-serif"><tt><br>
</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt><br>
</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt>OUTPUT</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt>#> journalctl
--system --no-pager -o verbose<br>
</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt>Fri 2019-11-29
13:32:33.155055 UTC
[s=aa2f1931bf3a48f796ccfdcc9bfdd239;i=42e;b=c797c7925aab43048c9c7ce31b8e6df0;m=67107e44a;t=5987c4321124d;x=8ce7499c8bc03f18]<br>
_TRANSPORT=journal<br>
_UID=0<br>
_GID=0<br>
_CAP_EFFECTIVE=3fffffffff<br>
_BOOT_ID=c797c7925aab43048c9c7ce31b8e6df0<br>
_MACHINE_ID=36a71765a6b64369bcf11ca4cc6181f4<br>
_HOSTNAME=neptun2<br>
_SYSTEMD_SLICE=system.slice<br>
PRIORITY=3<br>
CODE_LINE=76<br>
CODE_FUNC=helper_log<br>
CODE_FILE=/usr/src/debug/phosphor-network/1.0+gitAUTOINC+cb42fe26fe-r1/recipe-sysroot/usr/include/phosphor-logging/log.hpp<br>
SYSLOG_IDENTIFIER=phosphor-network-manager<br>
_COMM=phosphor-networ<br>
_EXE=/usr/bin/phosphor-network-manager<br>
_CMDLINE=phosphor-network-manager<br>
_SYSTEMD_CGROUP=/system.slice/xyz.openbmc_project.Network.service<br>
_SYSTEMD_UNIT=xyz.openbmc_project.Network.service<br>
MESSAGE=ioctl failed for SIOCGIFHWADDR:<br>
ERROR=No such device; interface name=eth0.101<br>
_PID=518<br>
_SYSTEMD_INVOCATION_ID=b5cf12d81ba844e48c2d1a59a223c064<br>
TRANSACTION_ID=2449749800<br>
_SOURCE_REALTIME_TIMESTAMP=1575034353155055</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt><br>
</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"><tt><br>
</tt></font></p>
<p><font face="Helvetica, Arial, sans-serif"></font><br>
</p>
<div class="moz-cite-prefix">28.11.2019 11:24, <a class="moz-txt-link-abbreviated" href="mailto:Troy.Lee@vertiv.com">Troy.Lee@vertiv.com</a>
пишет:<br>
</div>
<blockquote type="cite"
cite="mid:MWHPR13MB1360162F4FF24662001FCF0BED470@MWHPR13MB1360.namprd13.prod.outlook.com">
<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]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">Hi Евгений,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">We also met the same issue.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">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
style="font-family:"Calibri",sans-serif"
lang="EN-US">```<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">Jan 03 16:56:37 ast2500evb
phosphor-network-manager[1881]: ioctl failed for
SIOCGIFHWADDR:<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">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
style="font-family:"Calibri",sans-serif"
lang="EN-US">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
style="font-family:"Calibri",sans-serif"
lang="EN-US">Jan 03 16:56:37 ast2500evb
phosphor-network-manager[1881]: The operation failed
internally.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">```<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">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"
moz-do-not-send="true">https://github.com/openbmc/phosphor-networkd/commit/7ed1b286ae1620dd629d8cee8ae33ac4f7c53ecf</a></span><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">Is there any patch we could apply for this
issue?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US">Troy Lee<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-family:"Calibri",sans-serif"
lang="EN-US"><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
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US">From:</span></b><span
style="font-size:11.0pt;font-family:"Calibri",sans-serif"
lang="EN-US"> openbmc
<a class="moz-txt-link-rfc2396E" href="mailto:openbmc-bounces+troy.lee=vertiv.com@lists.ozlabs.org"><openbmc-bounces+troy.lee=vertiv.com@lists.ozlabs.org></a>
<b>On Behalf Of </b>???????<br>
<b>Sent:</b> Tuesday, November 26, 2019 3:15 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><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 style="font-family:"Helvetica",sans-serif"
lang="EN-US">Hello,</span><span lang="EN-US"><o:p></o:p></span></p>
<p><span style="font-family:"Helvetica",sans-serif"
lang="EN-US">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"
moz-do-not-send="true"><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 style="font-family:"Helvetica",sans-serif"
lang="EN-US">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://$"
moz-do-not-send="true"><span style="font-family:細明體">https://$</span></a></span><tt><span
lang="EN-US">{bmc}/xyz/openbmc_project/network/action/VLAN</span></tt><span
style="font-family:細明體" lang="EN-US"><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
style="font-family:"Helvetica",sans-serif"
lang="EN-US"><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
style="font-family:細明體" lang="EN-US"><br>
</span><span lang="EN-US"><a href="mailto:root@192.168.4.186"
moz-do-not-send="true"><span style="font-family:細明體">root@192.168.4.186</span></a></span><tt><span
lang="EN-US">'s password:
</span></tt><span style="font-family:細明體" lang="EN-US"><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://$"
moz-do-not-send="true"><span style="font-family:細明體">https://$</span></a></span><tt><span
lang="EN-US">{bmc}/xyz/openbmc_project/network/enumerate</span></tt><span
style="font-family:細明體" lang="EN-US"><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.
</blockquote>
</body>
</html>