You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/01/13 11:22:58 UTC

[GitHub] [cloudstack] andrijapanicsb commented on issue #3800: [FOR TESTING ONLY - DO NOT MERGE] Revert "Extract systemvm.iso using bsdtar (#3536)"

andrijapanicsb commented on issue #3800: [FOR TESTING ONLY - DO NOT MERGE] Revert "Extract systemvm.iso using bsdtar (#3536)"
URL: https://github.com/apache/cloudstack/pull/3800#issuecomment-573617321
 
 
   @cl-k-takahashi we will have to revert the original PR #3536 , since it causes failures in the during upgrades.
   
   Please test by having i.e. 4.13 installation, and then upgrading to the version built from your PR.
   
   The problem seems to be in the existance (from the previous version) of "systemvm_mnt" folder, owned by root:root, so the script can't write it's files:
   
   > ls -lah /var/cloudstack/management/
   > drwxrwx---. 4 cloud cloud 36 Jan 10 09:12 .
   > drwxr-xr-x. 4 root  root  33 Jan 13 09:32 ..
   > drwx------. 2 cloud cloud 36 Jan 13 09:34 .ssh
   > drwxr-xr-x. 2 root  root   6 Jan 13 09:34 systemvm_mnt
   > 
   
   See below more details on the failure please:
   
   [root@trl-163-k-M7-bstoyanov-mgmt1 ~]# runuser -l  cloud -c "/bin/bash /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh /var/cloudstack/management/.ssh/id_rsa.pub /var/cloudstack/management/.ssh/id_rsa /usr/share/cloudstack-common/vms/systemvm.iso"
   + TMP=/tmp
   + MOUNTPATH=/var/cloudstack/management/systemvm_mnt
   + TMPDIR=/tmp/cloud/systemvm
   + umask 022
   + [[ 995 -ne 0 ]]
   + SUDO='sudo -n '
   + mkdir -p /var/cloudstack/management/systemvm_mnt
   + '[' 3 -ne 3 ']'
   + newpubkey=/var/cloudstack/management/.ssh/id_rsa.pub
   + newprivkey=/var/cloudstack/management/.ssh/id_rsa
   + systemvmpath=/usr/share/cloudstack-common/vms/systemvm.iso
   + '[' '!' -f /var/cloudstack/management/.ssh/id_rsa.pub ']'
   + '[' '!' -f /var/cloudstack/management/.ssh/id_rsa ']'
   + command -v mkisofs
   ++ command -v bsdtar
   + '[' '!' -x /bin/bsdtar ']'
   + inject_into_iso systemvm.iso /var/cloudstack/management/.ssh/id_rsa.pub
   + local isofile=/usr/share/cloudstack-common/vms/systemvm.iso
   + local newpubkey=/var/cloudstack/management/.ssh/id_rsa.pub
   + local tmpiso=/tmp/systemvm.iso
   + mkdir -p /var/cloudstack/management/systemvm_mnt
   + '[' '!' -f /usr/share/cloudstack-common/vms/systemvm.iso ']'
   + bsdtar -C /var/cloudstack/management/systemvm_mnt -xf /usr/share/cloudstack-common/vms/systemvm.iso
   .: Can't restore time
   **agent.zip: Can't create 'agent.zip'**
   **cloud-scripts.tgz: Can't create 'cloud-scripts.tgz'**
   **bsdtar: Error exit delayed from previous errors.**
   + '[' 1 -ne 0 ']'
   ++ basename /usr/share/cloudstack-common/scripts/vm/systemvm/injectkeys.sh
   + echo 'injectkeys.sh: Failed to extract original iso /usr/share/cloudstack-common/vms/systemvm.iso'
   injectkeys.sh: Failed to extract original iso /usr/share/cloudstack-common/vms/systemvm.iso
   + clean_up
   + rm -rf --preserve-root /var/cloudstack/management/systemvm_mnt
   + return 1
   + '[' 1 -ne 0 ']'
   + exit 5

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services