stor2rrd container in OpenShift (as nonroot user)

hi,

in our OpenShift environment we are not able to deploy an image as a root user. Is there any tweak how to make Stor2RRD image work as a nonroot user.


The deployement fails with the following:

/startup.sh: line 6: /etc/rsyslog.conf: Permission denied

Running for the first time.. need to configure...

ln: /etc/apache2/conf.d/stor2rrd.conf: Permission denied

/startup.sh: line 15: /etc/apache2/conf.d/mod_cgi.conf: Permission denied

mv: can't rename '/usr/share/vendor_perl/RRDp.pm': Permission denied

chown: /home/stor2rrd/hds: Operation not permitted

chown: /home/stor2rrd/hds: Operation not permitted

chown: /home/stor2rrd: Operation not permitted

chown: /home/stor2rrd: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/Copyright.txt: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/README: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/files.sum: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/install.sh: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/perl_aix_ssl.tar.Z: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/scripts/install.sh: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/scripts/update.sh: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/scripts: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/scripts: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/stor2rrd.tar.Z: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/update.sh: Operation not permitted

chown: /tmp/stor2rrd-7.80-1/version.txt: Operation not permitted

chown: /tmp/stor2rrd-7.80-1: Operation not permitted

chown: /tmp/stor2rrd-7.80-1: Operation not permitted

su: must be suid to work properly

cp: can't stat '/home/stor2rrd/stor2rrd/html/.htaccess': No such file or directory

cp: can't stat '/home/stor2rrd/stor2rrd/html/.htaccess': No such file or directory

su: must be suid to work properly

rm: can't remove '/tmp/stor2rrd-7.80-1/Copyright.txt': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/README': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/files.sum': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/install.sh': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/perl_aix_ssl.tar.Z': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/scripts/install.sh': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/scripts/update.sh': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/stor2rrd.tar.Z': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/update.sh': Permission denied

rm: can't remove '/tmp/stor2rrd-7.80-1/version.txt': Permission denied

su: must be suid to work properly

/startup.sh: line 79: /etc/timezone: Permission denied

chmod: /etc/timezone: No such file or directory

ln: /etc/localtime: Permission denied

crontab: must be suid to work properly

chown: /home/stor2rrd/hds: Operation not permitted

ln: /opt/hds: Permission denied

rm: can't remove '/firstrun': Permission denied

Error: Can't drop privilege as nonroot user

For help, use /usr/bin/supervisord -h

Comments

  • Hi,

    basically we have not too much experiences with openshift, only what we can do, is installalling openshift in our labs and try to find with help of google some solution for non root install.

    Could not you use Docker deployment instead?

  • thank you for response Pavel,

    Stor2RRD in Docker / Podman is working fine. But we need to migrate it into OpenShift and we are "stucked" in the above problems.

    Any help from your site is welcome.

  • as for now we (Xorux) are not able to provide you any solution, we will look at that in the future and prepare OpenShift deployment docu general available on our web sites

  • thank you a lot Pavel

Sign In or Register to comment.