<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:05:00 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>[REDFISH-1] Not copying ssh key files to RC from Build server</title>
                <link>https://jira.akraino.org/browse/REDFISH-1</link>
                <project id="10105" key="REDFISH">Redfish</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;We are trying to setup RC from Build server. we ran install_server_os.sh file as per the instructions provided under Akraino wiki. While running this script, everything is going smoothly but when copying the ssh key files from build server to RC node those are not copying properly and we got an error. Please see the below error:&lt;/p&gt;

&lt;p&gt;Getting new host keys for &lt;span class=&quot;error&quot;&gt;&amp;#91;10.51.34.230&amp;#93;&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;10.51.34.230:22 SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.7&lt;br/&gt;
 copying user key to &lt;span class=&quot;error&quot;&gt;&amp;#91;root@10.51.34.230&amp;#93;&lt;/span&gt;&lt;br/&gt;
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: &quot;/home/ubuntu/.ssh/id_rsa.pub&quot;&lt;br/&gt;
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;/usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br/&gt;
ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @&lt;br/&gt;
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br/&gt;
ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br/&gt;
ERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br/&gt;
ERROR: It is also possible that a host key has just been changed.&lt;br/&gt;
ERROR: The fingerprint for the ECDSA key sent by the remote host is&lt;br/&gt;
ERROR: SHA256:AT19rCR6FK/a+5lQcXpb0UCIphRchjcFS3mCad1f6Ng.&lt;br/&gt;
ERROR: Please contact your system administrator.&lt;br/&gt;
ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.&lt;br/&gt;
ERROR: Offending ECDSA key in /root/.ssh/known_hosts:1&lt;br/&gt;
ERROR: remove with:&lt;br/&gt;
ERROR: ssh-keygen -f &quot;/root/.ssh/known_hosts&quot; -R 10.51.34.230&lt;br/&gt;
ERROR: ECDSA host key for 10.51.34.230 has changed and you have requested strict checking.&lt;br/&gt;
ERROR: Host key verification failed.&lt;/p&gt;

&lt;p&gt;Running first boot script&lt;br/&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br/&gt;
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @&lt;br/&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br/&gt;
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;br/&gt;
Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;br/&gt;
It is also possible that a host key has just been changed.&lt;br/&gt;
The fingerprint for the ECDSA key sent by the remote host is&lt;br/&gt;
SHA256:AT19rCR6FK/a+5lQcXpb0UCIphRchjcFS3mCad1f6Ng.&lt;br/&gt;
Please contact your system administrator.&lt;br/&gt;
Add correct host key in /root/.ssh/known_hosts to get rid of this message.&lt;br/&gt;
Offending ECDSA key in /root/.ssh/known_hosts:1&lt;br/&gt;
 remove with:&lt;br/&gt;
 ssh-keygen -f &quot;/root/.ssh/known_hosts&quot; -R 10.51.34.230&lt;br/&gt;
ECDSA host key for 10.51.34.230 has changed and you have requested strict checking.&lt;br/&gt;
Host key verification failed.&lt;br/&gt;
FAILED: Unable to run firstboot script on new server&lt;/p&gt;

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

&lt;p&gt;By understanding install_server_os.sh script that, it suppose to copy ssh key files automatically from build server to RC node, but here in this case it is not. Ran this script from scratch multiple times and same issue came up again. Please see the attached logs for quick reference. Please take a look at the error and let me know.&lt;/p&gt;</description>
                <environment></environment>
        <key id="10224">REDFISH-1</key>
            <summary>Not copying ssh key files to RC from Build server</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="davidplunkett">David Plunkett</assignee>
                                    <reporter username="Indumathi">Indumathi Buddi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Apr 2019 16:28:37 +0000</created>
                <updated>Thu, 11 Apr 2019 19:23:35 +0000</updated>
                            <resolved>Thu, 11 Apr 2019 19:23:35 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="10112" author="indumathi" created="Thu, 11 Apr 2019 19:23:23 +0000"  >&lt;p&gt;Thanks FYI, David. The provided solution resolved the issue.&lt;/p&gt;</comment>
                            <comment id="10111" author="davidplunkett" created="Thu, 11 Apr 2019 18:00:13 +0000"  >&lt;p&gt;Based on your logs, you are using sudo/su in a way that did not set your environmental variables such as $HOME to the correct settings for the root user.&#160; You can see in the logs that you are running as user root, but the $HOME variable is still set to /home/ubunut.&#160; The logs also show that the $HOME/.ssh/ files are owned by a mix of root and ubuntu.&#160; Because $HOME is not correctly set, the wrong files are being used by the ssh key commands.&#160; Specifically the install is failing to update the authorized_keys file which is owned by ubuntu.&#160; There are many ways to address this.&#160; If you are using sudo th change to root, then use sudo -i to create a new interactive shell with the correct environment variables.&lt;/p&gt;

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

&lt;p&gt;Relevant log entries:&lt;/p&gt;

&lt;p&gt;Setting up ssh keys for user &lt;span class=&quot;error&quot;&gt;&amp;#91;root&amp;#93;&lt;/span&gt; with home &lt;span class=&quot;error&quot;&gt;&amp;#91;/home/ubuntu&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160; Removing any old host keys for &lt;span class=&quot;error&quot;&gt;&amp;#91;10.51.34.230&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;total 16&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw&lt;/del&gt;------ 1 ubuntu ubuntu&#160; 402 Apr&#160; 9 12:57 authorized_keys&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw&lt;/del&gt;------ 1 root&#160;&#160; root&#160;&#160; 1675 Apr 10 15:07 id_rsa&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root&#160;&#160; root&#160;&#160;&#160; 399 Apr 10 15:07 id_rsa.pub&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 root&#160;&#160; root&#160;&#160; 1548 Apr 11 16:11 known_hosts&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Host 10.51.34.230 found: line 4&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;/home/ubuntu/.ssh/known_hosts updated.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10003" name="MobaXterm_ubuntu@build-servervarlogakraino_20190411_120831.rtf" size="158514" author="Indumathi" created="Thu, 11 Apr 2019 16:23:19 +0000"/>
                    </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|i000an:</customfieldvalue>

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