<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:06:51 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>[VAL-42] Login with ssh key fails</title>
                <link>https://jira.akraino.org/browse/VAL-42</link>
                <project id="10308" key="VAL">Validation</project>
                    <description>&lt;p&gt;Found a situation where bluval script login with ssh key fails in every case, even when the exact same login works otherwise (without running bluval script) from outside and inside the container.&lt;/p&gt;

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

&lt;p&gt;Error message:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Login with public key failed for user &apos;root&apos;.&lt;/em&gt;&lt;/p&gt;

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

&lt;p&gt;Necessary workaround: needed to modify robot file that is used for the login (such as cyclictest.robot) by commenting line:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;# Login With Public Key ${USERNAME} ${HOME}/.ssh/id_rsa&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;and appending line:&lt;/p&gt;

&lt;p&gt; &lt;em&gt;LOGIN ${USERNAME} ${PASSWORD}&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;and also appending password into the variables.yaml file, forcing password login instead of ssh key login.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10578">VAL-42</key>
            <summary>Login with ssh key fails</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="jukosone">Juha Kosonen</assignee>
                                    <reporter username="tsarkk">Tapio S&#228;rkk&#228;</reporter>
                        <labels>
                    </labels>
                <created>Tue, 20 Aug 2019 11:04:00 +0000</created>
                <updated>Fri, 23 Aug 2019 11:31:19 +0000</updated>
                            <resolved>Fri, 23 Aug 2019 11:31:19 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="10389" author="jukosone" created="Fri, 23 Aug 2019 11:30:37 +0000"  >&lt;p&gt;In general, please do not edit data (like variables.yaml here) already attached in the JIRA, that complicates following the case. Just copy a new data.&lt;/p&gt;

&lt;p&gt;The problem here is some sort of SSH key issue in paramiko related RFC4716 format &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;. I generated PEM formatted key and copied it to 10.22.109.44. This enabled robot to access the node via SSH.&lt;/p&gt;

&lt;p&gt;And once passwordless sudo for user &apos;nokia&apos; on 10.22.109.44 was enabled, test can be executed successful.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;nokia@linux-bekd:~&amp;gt; sudo docker run -ti -v $HOME/.ssh:/root/.ssh -v $HOME/.kube/config:/root/.kube/config -v $HOME/juha/variables.yaml:/opt/akraino/validation/tests/variables.yaml -v $HOME/results:/opt/akraino/results -v $HOME/juha/cyclictest.robot:/opt/akraino/validation/tests/os/cyclictest/cyclictest.robot --name akr-juha akraino/validation:os-latest bin/sh -c &lt;span class=&quot;code-quote&quot;&gt;&apos;cd /opt/akraino/validation/ &amp;amp;&amp;amp; python bluval/bluval.py -l os rec&apos;&lt;/span&gt; 
## Layer os
_OPTIONAL_ALSO False
Executing testcase cyclictest
show_stopper False
Invoking [&lt;span class=&quot;code-quote&quot;&gt;&apos;robot&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;-V&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/opt/akraino/validation/tests/variables.yaml&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;-d&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/opt/akraino/results/os/cyclictest&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/opt/akraino/validation/tests/os/cyclictest&apos;&lt;/span&gt;] 
==============================================================================
Cyclictest
==============================================================================
Cyclictest.Cyclictest :: Cyclic latency test
==============================================================================
Latency Test | PASS |
------------------------------------------------------------------------------
Cyclictest.Cyclictest :: Cyclic latency test | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Cyclictest | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: /opt/akraino/results/os/cyclictest/output.xml
Log: /opt/akraino/results/os/cyclictest/log.html
Report: /opt/akraino/results/os/cyclictest/report.html
nokia@linux-bekd:~&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://github.com/paramiko/paramiko/issues/1135&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/paramiko/paramiko/issues/1135&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10387" author="tsarkk" created="Thu, 22 Aug 2019 06:50:10 +0000"  >&lt;p&gt;Sorry, I pasted the file incorrectly. The problem persists with both accounts &apos;nokia&apos; and &apos;root&apos;.&lt;/p&gt;</comment>
                            <comment id="10386" author="jukosone" created="Thu, 22 Aug 2019 06:46:32 +0000"  >&lt;p&gt;Here Robot test is using &apos;root&apos; as a user as defined in variables.yaml. Please modify this (and docker command accordindly) since you&apos;re using different user.&lt;/p&gt;</comment>
                            <comment id="10385" author="tsarkk" created="Thu, 22 Aug 2019 06:28:54 +0000"  >&lt;p&gt;The bug occurs with a basic setup. Docker command to run the script:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;sudo docker run -ti -v $HOME/.ssh:/root/.ssh -v $HOME/.kube/config:/root/.kube/config -v $VALIDATION_HOME/tests/variables.yaml:/opt/akraino/validation/tests/variables.yaml -v $AKRAINO_HOME/results:/opt/akraino/results -v $VALIDATION_HOME/tests/os/cyclictest:/opt/akraino/validation/tests/os/cyclictest akraino/validation:os-latest bin/sh -c &apos;cd /opt/akraino/validation/ &amp;amp;&amp;amp; python bluval/bluval.py -l os rec&apos;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Variables.yaml -file:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&apos;host&apos;: &apos;10.22.109.44&apos;, &apos;username&apos;: &apos;nokia&apos;, &apos;home&apos;: &apos;/root&apos;, &apos;ssh_keyfile&apos;: &apos;~/.ssh/id_rsa&apos;,&#160; &apos;sysinfo&apos;: &apos;PowerEdge R740xd&apos;, &apos;bios_revision&apos;: 1.3, &apos;base_uri&apos;: &apos;https://10.22.109.44/redfish/v1/&apos;, &apos;ipmiuser&apos;: &apos;nokia&apos;, &apos;ipmipwrd&apos;: &apos;&apos;, &apos;host_mr&apos;: &apos;10.22.109.44&apos;, &apos;host_wr1&apos;: &apos;worker_host_ip&apos;, &apos;host_wr2&apos;: &apos;worker_host_ip&apos;, &apos;host_wr3&apos;: &apos;worker_host_ip&apos;, &apos;host_wr4&apos;: &apos;worker_host_ip&apos;, &apos;macaddr&apos;: &apos;46:d4:58:40:c0:52&apos;, &apos;chassis&apos;: &apos;serial_number&apos;, &apos;idracip&apos;: &apos;10.22.109.45&apos;, &apos;bootseq&apos;: &apos;boot_input&apos;, &apos;biosver&apos;: &apos;bios_version&apos;, &apos;firmware&apos;: &apos;firmware_version&apos;, &apos;nodename&apos;: &apos;targetnode&apos;, &apos;rootuser&apos;: &apos;root&apos;, &apos;rootpswd&apos;: &apos;&apos;, &apos;log_path&apos;: &apos;/opt/akraino/results/k8s/conformance&apos;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Login with ssh key regularly (&lt;em&gt;ssh nokia@10.22.109.44)&lt;/em&gt; works both from inside and outside the container, but not with the robot.&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="10381" author="jukosone" created="Wed, 21 Aug 2019 13:30:56 +0000"  >&lt;p&gt;Could you provide a more detailed description of the scenario and parameters you are using? Just executed cyclictest and it passed ok:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(validation) jukosone@ratel:~/omat/akraino/git/validation/bluval$ python bluval.py -l os rec
## Layer os
_OPTIONAL_ALSO False
Executing testcase cyclictest
show_stopper False
Invoking [&lt;span class=&quot;code-quote&quot;&gt;&apos;robot&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;-V&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/home/jukosone/omat/akraino/git/validation/tests/variables.yaml&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;-d&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/home/jukosone/omat/akraino/git/results/os/cyclictest&apos;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&apos;/home/jukosone/omat/akraino/git/validation/tests/os/cyclictest&apos;&lt;/span&gt;]
==============================================================================
Cyclictest 
==============================================================================
Cyclictest.Cyclictest :: Cyclic latency test 
==============================================================================
Latency Test | PASS |
------------------------------------------------------------------------------
Cyclictest.Cyclictest :: Cyclic latency test | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Cyclictest | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output: /home/jukosone/omat/akraino/git/results/os/cyclictest/output.xml
Log: /home/jukosone/omat/akraino/git/results/os/cyclictest/log.html
Report: /home/jukosone/omat/akraino/git/results/os/cyclictest/report.html
(validation) jukosone@ratel:~/omat/akraino/git/validation/bluval${code}
&#160;
{code:java}
diff --git a/tests/variables.yaml b/tests/variables.yaml
index 42d6425..f01b0c5 100644
--- a/tests/variables.yaml
+++ b/tests/variables.yaml
@@ -24,9 +24,9 @@
 # &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;.
 
 ### Input variables cluster&apos;s master host
-host: aknode109 # cluster&apos;s master host address
-username: mm747b # user credentials
-home: /home/mm747b # Public keys location
+host: 10.22.109.9 # cluster&apos;s master host address
+username: cloudadmin # user credentials
+home: /home/jukosone/foo # Public keys location
 ssh_keyfile: ~/.ssh/id_rsa # Identity file &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; authentication
 
 ### Input variables &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; bios_version_dell.robot
(validation) jukosone@ratel:~/omat/akraino/git/validation/tests/os/cyclictest$ &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <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|i0019r:</customfieldvalue>

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