Question:

User Actionadmin@Direct-Branch-1-cli> request security security-package install status


Error : install-status [Error installing security package version 999 on control plane(Invalid tar archive)]


Solution : Check the folder permission of /tmp directory from shell prompt of Versa FlexVNF

                    

admin@Direct-Branch-1:/$ ls -lrt /


total 77
drwxr-xr-x   2 root  root   4096 Feb 18  2015 srv
drwx------   2 root  root  16384 Jul 17 20:12 lost+found
drwxr-xr-x  10 root  root   4096 Jul 17 20:12 usr
drwxr-xr-x   4 root  root   4096 Jul 17 20:12 media
lrwxrwxrwx   1 root  root     30 Jul 17 20:12 vmlinuz.old -> boot/vmlinuz-3.16.0-30-generic
lrwxrwxrwx   1 root  root     33 Jul 17 20:12 initrd.img.old -> boot/initrd.img-3.16.0-30-generic
drwxr-xr-x   2 root  root   4096 Jul 17 20:16 lib64
drwxr-xr-x  21 root  root   4096 Jul 17 20:16 lib
lrwxrwxrwx   1 root  root     33 Jul 17 20:17 initrd.img -> boot/initrd.img-3.16.0-77-generic
lrwxrwxrwx   1 root  root     30 Jul 17 20:17 vmlinuz -> boot/vmlinuz-3.16.0-77-generic
drwxr-xr-x   4 root  root   1024 Jul 17 20:18 boot
drwxr-xr-x  12 versa versa  4096 Jul 17 20:18 var
drwxr-xr-x   3 versa versa  4096 Jul 17 20:18 opt
drwxr-xr-x   5 root  root   4096 Jul 17 20:18 home
drwxr-xr-x   3 root  root   4096 Jul 17 20:18 mnt
drwxr-xr-x   2 root  root   4096 Jul 17 20:18 bin
drwxr-xr-x   2 root  root   4096 Jul 17 20:19 sbin
drwx------   3 root  root   4096 Jul 17 20:26 root
dr-xr-xr-x 177 root  root      0 Aug 29 03:17 proc
drwxr-xr-x  92 versa versa  4096 Aug 29 03:17 etc
drwxrwxr-x   5 root  versa  4096 Aug 29 03:17 org
drwxr-xr-x  16 root  root   4300 Aug 29 03:17 dev
-rw-r--r--   1 versa versa     0 Aug 29 03:21 recorded_mappings.txt
drwxr-xr-x  19 root  root    820 Sep  6 00:50 run
dr-xr-xr-x  13 root  root      0 Sep  6 00:57 sys
drwxrwxr-x  12 root  root   4096 Sep  6 01:00 tmp

admin@Direct-Branch-1:/$


If the folder permissions looks like above , i.e. " no write " permission for other user group


Please perform the following


admin@Direct-Branch-1:/$ sudo chmod 777 /tmp/
[sudo] password for admin:


admin@Direct-Branch-1:/$ ls -lrt /
total 77
drwxr-xr-x 2 root root 4096 Feb 18 2015 srv
drwx------ 2 root root 16384 Jul 17 20:12 lost+found
drwxr-xr-x 10 root root 4096 Jul 17 20:12 usr
drwxr-xr-x 4 root root 4096 Jul 17 20:12 media
lrwxrwxrwx 1 root root 30 Jul 17 20:12 vmlinuz.old -> boot/vmlinuz-3.16.0-30-generic
lrwxrwxrwx 1 root root 33 Jul 17 20:12 initrd.img.old -> boot/initrd.img-3.16.0-30-generic
drwxr-xr-x 2 root root 4096 Jul 17 20:16 lib64
drwxr-xr-x 21 root root 4096 Jul 17 20:16 lib
lrwxrwxrwx 1 root root 33 Jul 17 20:17 initrd.img -> boot/initrd.img-3.16.0-77-generic
lrwxrwxrwx 1 root root 30 Jul 17 20:17 vmlinuz -> boot/vmlinuz-3.16.0-77-generic
drwxr-xr-x 4 root root 1024 Jul 17 20:18 boot
drwxr-xr-x 12 versa versa 4096 Jul 17 20:18 var
drwxr-xr-x 3 versa versa 4096 Jul 17 20:18 opt
drwxr-xr-x 5 root root 4096 Jul 17 20:18 home
drwxr-xr-x 3 root root 4096 Jul 17 20:18 mnt
drwxr-xr-x 2 root root 4096 Jul 17 20:18 bin
drwxr-xr-x 2 root root 4096 Jul 17 20:19 sbin
drwx------ 3 root root 4096 Jul 17 20:26 root
dr-xr-xr-x 177 root root 0 Aug 29 03:17 proc
drwxr-xr-x 92 versa versa 4096 Aug 29 03:17 etc
drwxrwxr-x 5 root versa 4096 Aug 29 03:17 org
drwxr-xr-x 16 root root 4300 Aug 29 03:17 dev
-rw-r--r-- 1 versa versa 0 Aug 29 03:21 recorded_mappings.txt
drwxr-xr-x 19 root root 820 Sep 6 00:50 run
dr-xr-xr-x 13 root root 0 Sep 6 00:57 sys
drwxrwxrwx  12 root  root   4096 Sep  6 01:00 tmp


Note :While installing security package, versa-spack will extract tar file into /tmp directory and this might failing due to permission issue. After giving permission as prescribed above the security package installation should succeed.