External Sunstone tmpdir bug?

(Spencer) #1

I have an external sunstone server that I am uploading images to. It is the default Sinatra sunstone server. When I configure tmpdir from the default directory, the upload occurs in /tmp and not the configured directory. I’d be happy to make a bug report, though I wanted to see if other people had a similar issue or could replicate this, first.

I executed:

chmod 777 /root; vi /etc/one/sunstone-server.conf; systemctl restart opennebula-sunstone

journalctl -xe:

May 07 11:05:50 sun2 ruby[7931]: Server configuration
May 07 11:05:50 sun2 ruby[7931]: --------------------------------------
May 07 11:05:50 sun2 ruby[7931]: {:tmpdir=>"/root",

[root@sun2 one]# ls -alh /root

drwxrwxrwx.  5 root root  174 May  2 11:24 .
dr-xr-xr-x. 17 root root  244 May  1 13:43 ..
-rw-------.  1 root root 1.3K May  1 06:56 anaconda-ks.cfg
-rw-------.  1 root root 3.6K May  6 12:21 .bash_history
-rw-r--r--.  1 root root   18 Dec 28  2013 .bash_logout
-rw-r--r--.  1 root root  176 Dec 28  2013 .bash_profile
-rw-r--r--.  1 root root  176 Dec 28  2013 .bashrc
drwxr-xr-x   3 root root   19 May  2 11:24 .bundle
-rw-r--r--.  1 root root  100 Dec 28  2013 .cshrc
drwxr-xr-x   4 root root   31 May  2 10:12 .gem
drwxr-----   3 root root   19 May  2 09:31 .pki
-rw-r--r--.  1 root root  129 Dec 28  2013 .tcshrc

[root@sun2 one]# ls -alh /tmp

drwxrwxrwt.  8 root     root     4.0K May  7 11:15 .
dr-xr-xr-x. 17 root     root      244 May  1 13:43 ..
-rw-r--r--   1 oneadmin oneadmin 460M May  7 11:15 962592768-CentOS-7-x86_64-Minimal-1810iso
drwxrwxrwt.  2 root     root        6 May  1 06:51 .font-unix
drwxrwxrwt.  2 root     root        6 May  1 06:51 .ICE-unix
-rwx------.  1 root     root      836 May  1 06:56 ks-script-8T8cCV
-rw-------   1 oneadmin oneadmin  10M May  7 11:15 RackMultipart20190507-7931-1v5fv07
drwx------   3 root     root       17 May  6 12:14 systemd-private-35d649eb48ed45b4afdb5f32e8a12b09-chronyd.service-EWciSR
drwxrwxrwt.  2 root     root        6 May  1 06:51 .Test-unix
-rw-------   1 oneadmin oneadmin 4.0M May  7 11:15 thin-body20190507-7931-1efj1zw
-rw-------   1 oneadmin oneadmin  11M May  7 11:15 thin-body20190507-7931-1lup4nl
-rw-------   1 oneadmin oneadmin 8.1M May  7 11:15 thin-body20190507-7931-to0g0f
drwxrwxrwt.  2 root     root        6 May  1 06:51 .X11-unix
drwxrwxrwt.  2 root     root        6 May  1 06:51 .XIM-unix
-rw-------.  1 root     root        0 May  1 06:49 yum.log