<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:02:09 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Akraino JIRA</title>
    <link>https://jira.akraino.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.5</version>
        <build-number>940005</build-number>
        <build-date>11-04-2023</build-date>
    </build-info>


<item>
            <title>[IEC-16] [IEC][SEBA][PONSim] ONU has been validated - Authentication denied</title>
                <link>https://jira.akraino.org/browse/IEC-16</link>
                <project id="10201" key="IEC">Integrated Edge Cloud</project>
                    <description>&lt;p&gt;Running the tests for SEBA-in-a-Box with PONSim will fail with Authentication denied on aarch64 pods. There is no clear indication as to the cause, but there are several logs in ONOS that need to be checked&lt;/p&gt;</description>
                <environment></environment>
        <key id="10521">IEC-16</key>
            <summary>[IEC][SEBA][PONSim] ONU has been validated - Authentication denied</summary>
                <type id="10004" iconUrl="https://jira.akraino.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.akraino.org/images/icons/priorities/medium.svg">Medium</priority>
                        <status id="10001" iconUrl="https://jira.akraino.org/" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="ciprian.barbu.enea">Ciprian Barbu</assignee>
                                    <reporter username="ciprian.barbu.enea">Ciprian Barbu</reporter>
                        <labels>
                            <label>Release_2</label>
                    </labels>
                <created>Thu, 25 Jul 2019 16:11:04 +0000</created>
                <updated>Wed, 23 Oct 2019 14:12:07 +0000</updated>
                            <resolved>Fri, 20 Sep 2019 13:28:02 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="10546" author="ciprian.barbu.enea" created="Fri, 20 Sep 2019 13:30:16 +0000"  >&lt;p&gt;This was in effect fixed by this change, which updates the commit id in iecedge/seba_charts:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gerrit.akraino.org/r/#/c/iec/+/1549/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gerrit.akraino.org/r/#/c/iec/+/1549/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10413" author="ciprian.barbu.enea" created="Fri, 30 Aug 2019 14:31:46 +0000"  >&lt;p&gt;I managed to test with a modified Docker image based on the iecedge/freeradius:2.2.8. I simply commented out the sql option in the post-auth section and I was able to pass the authentication step.&lt;/p&gt;

&lt;p&gt;I pushed a change to the corresponding repo:&lt;br/&gt;
&lt;a href=&quot;https://github.com/iecedge/freeradius/commit/0d7310f8d631ff0c921752e013fa27e82e39c56c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/iecedge/freeradius/commit/0d7310f8d631ff0c921752e013fa27e82e39c56c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also pushed the modified docker image, overwriting the old version:&lt;br/&gt;
&lt;a href=&quot;https://hub.docker.com/r/iecedge/freeradius/tags&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://hub.docker.com/r/iecedge/freeradius/tags&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There might still be an issue with the DHCP request step, I will have to investigate it further, maybe create a new card as well.&lt;/p&gt;</comment>
                            <comment id="10400" author="ciprian.barbu.enea" created="Mon, 26 Aug 2019 19:35:15 +0000"  >&lt;p&gt;Looking at the freeradius config file /etc/freeradius/sites-enabled/default, the post-auth section has the sql option enabled, unlike on the x86 pod, where is commented. So perhaps the Mysql error does have a role, but in this case indicates it does not belong there.&lt;/p&gt;

&lt;p&gt;I will need to track down where the config is generated and modify it in order to test.&lt;/p&gt;</comment>
                            <comment id="10399" author="ciprian.barbu.enea" created="Mon, 26 Aug 2019 19:30:02 +0000"  >&lt;p&gt;On the freeradius side, on x86 we have:&lt;br/&gt;
rad_recv: Access-Request packet from host 100.100.0.73 port 1812, id=2, length=61rad_recv: Access-Request packet from host 100.100.0.73 port 1812, id=2, length=61 User-Name = &quot;user&quot; NAS-IP-Address = 10.128.9.244 EAP-Message = 0x020100090175736572 Message-Authenticator = 0xc8326151a000a08cf154a104937a4136# Executing section authorize from file /etc/freeradius/sites-enabled/default+group authorize &lt;/p&gt;
{
.......
+}
&lt;p&gt; # group authenticate = ok+} # group authenticate = okLogin OK: &lt;span class=&quot;error&quot;&gt;&amp;#91;user&amp;#93;&lt;/span&gt; (from client 0.0.0.0/0 port 0)# Executing section post-auth from file /etc/freeradius/sites-enabled/default+group post-auth {+&lt;ins&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;exec&amp;#93;&lt;/span&gt; = noop&lt;/ins&gt;} # group post-auth = noopSending Access-Accept of id 3 to 100.100.0.73 port 1812 EAP-Message = 0x03020004 Message-Authenticator = 0x00000000000000000000000000000000 User-Name = &quot;user&quot;Finished request 1.Going to the next request&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;On the aarch64 pod:&lt;/p&gt;

&lt;p&gt;rad_recv: Access-Request packet from host 100.100.236.199 port 1812, id=2, length=61rad_recv: Access-Request packet from host 100.100.236.199 port 1812, id=2, length=61 User-Name = &quot;user&quot; NAS-IP-Address = 10.128.9.244 EAP-Message = 0x020100090175736572 Message-Authenticator = 0x8a260065a4e048cfbbe8297ebf204b1d# Executing section authorize from file /etc/freeradius/sites-enabled/default+group authorize &lt;/p&gt;
{
........
+}
&lt;p&gt; # group authenticate = ok+} # group authenticate = okLogin OK: &lt;span class=&quot;error&quot;&gt;&amp;#91;user&amp;#93;&lt;/span&gt; (from client 0.0.0.0/0 port 0)# Executing section post-auth from file /etc/freeradius/sites-enabled/default+group post-auth {&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; expand: %&lt;/p&gt;
{User-Name}
&lt;p&gt; -&amp;gt; user&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; sql_set_user escaped user --&amp;gt; &apos;user&apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; expand: %{User-Password} -&amp;gt;&#160;&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; ... expanding second conditional&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; expand: %{Chap-Password} -&amp;gt;&#160;&lt;span class=&quot;error&quot;&gt;&amp;#91;sql&amp;#93;&lt;/span&gt; expand: INSERT INTO radpostauth&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;(username, pass, reply, authdate, mac)&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;VALUES (&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;%{User-Name}&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;%{%&lt;/p&gt;
{User-Password}
&lt;p&gt;:-%{Chap-Password}}&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;%{reply:Packet-Type}&apos;, &apos;%S&apos;, &apos;%{Calling-Station-Id}&apos;) -&amp;gt; INSERT INTO radpostauth&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;(username, pass, reply, authdate, mac)&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;VALUES (&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;user&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;Access-Accept&apos;, &apos;2019-08-26 17:15:24&apos;, &apos;&apos;)rlm_sql (sql) in sql_postauth: query is INSERT INTO radpostauth&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;(username, pass, reply, authdate, mac)&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;VALUES (&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;user&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;&apos;,&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&apos;Access-Accept&apos;, &apos;2019-08-26 17:15:24&apos;, &apos;&apos;)rlm_sql (sql): Trying to (re)connect unconnected handle 31..rlm_sql (sql): Attempting to connect rlm_sql_mysql #31rlm_sql_mysql: Starting connect to MySQL server for #31rlm_sql_mysql: Couldn&apos;t connect socket to MySQL server radius@localhost:radiusrlm_sql_mysql: Mysql error &apos;Can&apos;t connect to local MySQL server through socket &apos;/var/run/mysqld/mysqld.sock&apos; (2)&apos;rlm_sql (sql): Failed to connect DB handle #31rlm_sql (sql): Ignoring unconnected handle 31..&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;So something is different when executing the post-auth section. The Mysql error might nor might not be meaningful, the socket doesn&apos;t seem to exist on the x86 pod either.&lt;/p&gt;</comment>
                            <comment id="10398" author="ciprian.barbu.enea" created="Mon, 26 Aug 2019 19:14:52 +0000"  >&lt;p&gt;Update.&lt;/p&gt;

&lt;p&gt;I haven&apos;t been able to make much progress on this because I kept getting into other issues with either SEBA or even PONSim, some of which I will detail in other related cards.&lt;/p&gt;

&lt;p&gt;However, today I managed to spend some quality time on a pod which has deployed correctly and I managed to get some interesting information, also by comparing against a working x86 pod.&lt;/p&gt;

&lt;p&gt;First of all here is the onos log showing logs from AAA:&lt;br/&gt;
onos&amp;gt; log:tail | grep opencord.aaa&lt;br/&gt;
2019-08-26 17:15:24,235 | INFO | 00.230.146:42080 | StateMachine | 187 - org.opencord.aaa - 1.8.0 | Creating a new state machine for of:0000aabbccddeeff128&lt;br/&gt;
2019-08-26 17:15:24,236 | INFO | 00.230.146:42080 | StateMachine$Idle | 187 - org.opencord.aaa - 1.8.0 | Moving from IDLE state to STARTED state.&lt;br/&gt;
2019-08-26 17:15:24,239 | INFO | 00.230.146:42080 | AaaManager | 187 - org.opencord.aaa - 1.8.0 | Auth event STARTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-26 17:15:24,240 | INFO | 00.230.146:42080 | StateMachine | 187 - org.opencord.aaa - 1.8.0 | Current State 1&lt;br/&gt;
2019-08-26 17:15:24,503 | INFO | 00.230.146:42080 | StateMachine$Started | 187 - org.opencord.aaa - 1.8.0 | Moving from STARTED state to PENDING state.&lt;br/&gt;
2019-08-26 17:15:24,505 | INFO | 00.230.146:42080 | AaaManager | 187 - org.opencord.aaa - 1.8.0 | Auth event REQUESTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-26 17:15:24,506 | INFO | 00.230.146:42080 | StateMachine | 187 - org.opencord.aaa - 1.8.0 | Current State 2&lt;br/&gt;
2019-08-26 17:15:25,708 | WARN | AAA-radius-0 | AaaManager | 187 - org.opencord.aaa - 1.8.0 | Send EAP failure message to supplicant 0A:58:0A:16:00:03&lt;br/&gt;
2019-08-26 17:15:25,711 | INFO | AAA-radius-0 | StateMachine$Pending | 187 - org.opencord.aaa - 1.8.0 | Moving from PENDING state to UNAUTHORIZED state.&lt;br/&gt;
2019-08-26 17:15:25,712 | INFO | AAA-radius-0 | StateMachine | 187 - org.opencord.aaa - 1.8.0 | Current State 4&lt;br/&gt;
2019-08-26 17:15:25,714 | INFO | AAA-radius-0 | AaaManager | 187 - org.opencord.aaa - 1.8.0 | Auth event DENIED for of:0000aabbccddeeff/128&lt;/p&gt;

&lt;p&gt;By comparison, on the x86 pod:&lt;br/&gt;
2019-08-14 15:25:19,096 | INFO | p-app-activation | SocketBasedRadiusCommunicator | 188 - org.opencord.aaa - 1.8.0 | Remote RADIUS Server: /10.128.10.4:1812&lt;br/&gt;
2019-08-14 15:25:19,098 | INFO | p-app-activation | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Started&lt;br/&gt;
2019-08-14 15:25:19,100 | INFO | p-app-activation | ApplicationManager | 130 - org.onosproject.onos-core-net - 1.13.5 | Application org.opencord.aaa has been activated&lt;br/&gt;
2019-08-14 15:25:19,097 | INFO | AAA-radius-0 | SocketBasedRadiusCommunicator | 188 - org.opencord.aaa - 1.8.0 | UDP listener thread starting up&lt;br/&gt;
2019-08-20 13:59:19,920 | WARN | tive-installer-3 | PacketManager | 130 - org.onosproject.onos-core-net - 1.13.5 | Failed to install packet request DefaultPacketRequest{selector=DefaultTrafficSelector&lt;/p&gt;
{criteria=[ETH_TYPE:eapol]}
&lt;p&gt;, priority=40000, appId=DefaultApplicationId{id=169, name=org.opencord.aaa}, nodeId=100.100.0.73, applies to=all} to of:0000aabbccddeeff: BADPARAMS&lt;br/&gt;
2019-08-20 16:25:14,392 | INFO | 0.100.0.86:34122 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Creating a new state machine for of:0000aabbccddeeff128&lt;br/&gt;
2019-08-20 16:25:14,392 | INFO | 0.100.0.86:34122 | StateMachine$Idle | 188 - org.opencord.aaa - 1.8.0 | Moving from IDLE state to STARTED state.&lt;br/&gt;
2019-08-20 16:25:14,393 | INFO | 0.100.0.86:34122 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event STARTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-20 16:25:14,393 | INFO | 0.100.0.86:34122 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 1&lt;br/&gt;
2019-08-20 16:25:14,475 | INFO | 0.100.0.86:34122 | StateMachine$Started | 188 - org.opencord.aaa - 1.8.0 | Moving from STARTED state to PENDING state.&lt;br/&gt;
2019-08-20 16:25:14,475 | INFO | 0.100.0.86:34122 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event REQUESTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-20 16:25:14,475 | INFO | 0.100.0.86:34122 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 2&lt;br/&gt;
2019-08-20 16:25:14,570 | INFO | AAA-radius-0 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Send EAP success message to supplicant 0A:58:0A:16:00:02&lt;br/&gt;
2019-08-20 16:25:14,570 | INFO | AAA-radius-0 | StateMachine$Pending | 188 - org.opencord.aaa - 1.8.0 | Moving from PENDING state to AUTHORIZED state.&lt;br/&gt;
2019-08-20 16:25:14,570 | INFO | AAA-radius-0 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 3&lt;br/&gt;
2019-08-20 16:25:14,570 | INFO | AAA-radius-0 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event APPROVED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-20 18:11:16,452 | INFO | 0.100.0.86:34122 | StateMachine$Authorized | 188 - org.opencord.aaa - 1.8.0 | Moving from AUTHORIZED state to STARTED state.&lt;br/&gt;
2019-08-20 18:11:16,452 | INFO | 0.100.0.86:34122 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event STARTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-20 18:11:16,452 | INFO | 0.100.0.86:34122 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 1&lt;br/&gt;
2019-08-20 18:11:16,598 | INFO | 0.100.0.86:34122 | StateMachine$Started | 188 - org.opencord.aaa - 1.8.0 | Moving from STARTED state to PENDING state.&lt;br/&gt;
2019-08-20 18:11:16,598 | INFO | 0.100.0.86:34122 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event REQUESTED for of:0000aabbccddeeff/128&lt;br/&gt;
2019-08-20 18:11:16,598 | INFO | 0.100.0.86:34122 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 2&lt;br/&gt;
2019-08-20 18:11:16,648 | INFO | AAA-radius-0 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Send EAP success message to supplicant 0A:58:0A:16:00:02&lt;br/&gt;
2019-08-20 18:11:16,649 | INFO | AAA-radius-0 | StateMachine$Pending | 188 - org.opencord.aaa - 1.8.0 | Moving from PENDING state to AUTHORIZED state.&lt;br/&gt;
2019-08-20 18:11:16,649 | INFO | AAA-radius-0 | StateMachine | 188 - org.opencord.aaa - 1.8.0 | Current State 3&lt;br/&gt;
2019-08-20 18:11:16,649 | INFO | AAA-radius-0 | AaaManager | 188 - org.opencord.aaa - 1.8.0 | Auth event APPROVED for of:0000aabbccddeeff/128&lt;/p&gt;


&lt;p&gt;Then I also looked in the freeradius pod logs:&lt;/p&gt;

&lt;p&gt;rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked&lt;br/&gt;
rlm_sql (sql): Attempting to connect to radius@localhost:3306/radius&lt;br/&gt;
rlm_sql (sql): starting 0&lt;br/&gt;
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0&lt;br/&gt;
rlm_sql_mysql: Starting connect to MySQL server for #0&lt;br/&gt;
rlm_sql_mysql: Couldn&apos;t connect socket to MySQL server radius@localhost:radius&lt;br/&gt;
rlm_sql_mysql: Mysql error &apos;Can&apos;t connect to local MySQL server through socket &apos;/var/run/mysqld/mysqld.sock&apos; (2)&apos;&lt;br/&gt;
rlm_sql (sql): Failed to connect DB handle #0&lt;br/&gt;
rlm_sql (sql): starting 1&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;So for now the freeradius logs look interesting, I will continue on this track.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="10700">IEC-23</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10105" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i000zr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>