![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||
Solution Type Problem Resolution Sure Solution 1960657.1 : Oracle ZFS Storage Appliance: On Upgrade to 2013.1.3.0, SSH/SFTP keys are not carried forward during upgrade
In this Document
Created from <SR 3-10107862021> Applies to:Oracle ZFS Storage ZS3-4 - Version All Versions to All Versions [Release All Releases]Oracle ZFS Storage ZS3-BA - Version All Versions to All Versions [Release All Releases] Sun ZFS Storage 7420 - Version All Versions to All Versions [Release All Releases] Sun ZFS Storage 7320 - Version All Versions to All Versions [Release All Releases] Oracle ZFS Storage ZS3-2 - Version All Versions to All Versions [Release All Releases] 7000 Appliance OS (Fishworks) SymptomsUsers unable to authenticate in the SFTP environment ChangesAny upgrade that takes the AK Code Version to 2013.1.3.0 (AK8.3.0) to version 2013.1.5.x (ak8.5.x) just completed. CauseBug 20346380 - Upgrade to 2013.1.3.0 sftp keys are not brought over from previous version. Bug 20395112 - ssh_authorized_keys are not saved during upgrade The /var/ak/keystores/SFTP/*/ssh_authorized_keys files are not copied during the code upgrade SolutionFixed in 2013.1.6.0. Please upgrade the Appliance Firmware Release 2013.1.6.2 (or later). NOTE: The follow statement is in the ak8.7.0 release notes: SSH Key-Based Authentication Bug 20395112 provides this workflow restore_sftp_keys.akwf to resolve. The workflow can be downloaded by clicking on the workflow name. Then this workflow can be downloaded on each array node needing the fix and run through the standard workflow process. Here are the instructions from the workflow for implementation of the fix: * This workflow is used to restore sftp keys which are missing after ------------------------------------------------------------------------------------------------------ The old workaround is listed below for reference: Currently the solution is this workaround listed below. It must be executed on both heads in a cluster. The workaround is to mount the previous code version directory where the information is located and manually copy this information over. An example is given below. The following example will copy forward the ssh keys, the second example is for the SFTP keys: zs3-2-array / # \uname -a zs3-2-array / # awk -F: '{print $6}' /var/ak/etc/passwd | sort -u | grep home zs3-2-array / # ls -l /var/ak/home/*/.ssh/* zs3-2-array / # zfs list -o name -r system | grep home zs3-2-array / # df -h /var/ak/home zs3-2-array / # mount -F zfs system/ak-nas-2013.06.05.2.6_1-2.2.1.1/running/home /mnt zs3-2-array / # ls -l /var/ak/home/*/.ssh/* /mnt/*/.ssh/* zs3-2-array / # ( cd /mnt; find */.ssh -type f -name authorized_keys | while read f; do cp -p $f /var/ak/home/$f; done ) zs3-2-array / # ls -l /var/ak/home/*/.ssh/* /mnt/*/.ssh/* zs3-2-array / # umount /mnt zs3-2-array / # exit ------------------------------------------------- upgrading from 2013.x to 2013.1.3.0 does not copy the /var/ak/keystores/SFTP/*/ssh_authorized_keys files s7120-b# ls -l /var/ak/keystores/SFTP/*/ssh* s7120-b# ls -l /mnt/ak/keystores/SFTP/*/ s7120-b# umount /mnt References<BUG:20346380> - SSH AUTHORIZED_KEYS ARE NOT SAVED DURING UPGRADE TO 2013.1.3.0<BUG:20395112> - /VAR/AK/KEYSTORES/SFTP/*/SSH_AUTHORIZED_KEYS ARE NOT SAVED DURING UPGRADE Attachments This solution has no attachment |
||||||||||||||||||||
|