Giter Club home page Giter Club logo

Comments (3)

jafcrocker avatar jafcrocker commented on June 22, 2024

I can repro w/o using serviced or zenoss, just zendev cluster:

jcrocker@jcrocker-dev:~/src/dev$ zendev cluster ssh foo
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.13.0-24-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Jan 13 18:39:10 2015 from 10.0.2.2
zenoss@foo01:~/dev/$ docker run --rm -it -v /home/zenoss/dev/zenhome:/opt/xxx zenoss/core-unstable:5.0.0_2099 bash
[root@e80740a420cd /]# ls -ln /opt/xxx/etc/global.conf
-rw------- 1 900 900 516 Jan 13 18:57 /opt/xxx/etc/global.conf
[root@e80740a420cd /]# id zenoss
uid=1337(zenoss) gid=1206(zenoss) groups=1206(zenoss)
[zenoss@e80740a420cd ~]$ chown zenoss:zenoss /opt/xxx/etc/global.conf ; echo $?
0
[zenoss@e80740a420cd ~]$ ls -ln /opt/xxx/etc/global.conf
-rw------- 1 900 900 516 Jan 13 18:57 /opt/xxx/etc/global.conf

from zendev.

jafcrocker avatar jafcrocker commented on June 22, 2024

The problem seems to be in the virtualbox vboxsf mount type. It does not allow the chown to succeed. If I mount the same directory into the VM using nfs, I can mount it into the container and change the owner successfully. However, even without involving docker I cannot chown a file that was vboxsf mounted:

zenoss@foo01:~$ mount | grep zenhome
home_zenoss_dev_zenhome on /home/zenoss/dev/zenhome type vboxsf (uid=900,gid=900,rw)
zenoss@foo01:~$ ls -ln /home/zenoss/dev/zenhome/etc/global.conf
-rw------- 1 900 900 516 Jan 13 18:57 /home/zenoss/dev/zenhome/etc/global.conf
zenoss@foo01:~$ sudo chown 1000:1000 /home/zenoss/dev/zenhome/etc/global.conf
zenoss@foo01:~$ ls -ln /home/zenoss/dev/zenhome/etc/global.conf
-rw------- 1 900 900 516 Jan 13 18:57 /home/zenoss/dev/zenhome/etc/global.conf

from zendev.

jafcrocker avatar jafcrocker commented on June 22, 2024

Fixed by using nfs to mount zenhome

from zendev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.