<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 4/12/2016 3:40 PM, Martin Kletzander
      wrote:<br>
    </div>
    <blockquote cite="mid:20160412194008.GA4234@wheatley" type="cite">[
      I would be way easier to reply if you didn't top-post ]
      <br>
      <br>
      On Tue, Apr 12, 2016 at 12:07:50PM -0400, TomK wrote:
      <br>
      <blockquote type="cite">Hey John,
        <br>
        <br>
        Hehe, I got the right guy then.  Very nice!  And very good ideas
        but I
        <br>
        may need more time to reread and try them out later tonight. 
        I'm fully
        <br>
        in agreement about providing more details.  Can't be accurate in
        a
        <br>
        diagnosis if there isn't much data to go on.  This pool option
        is new to
        <br>
        me.  Please tell me more on it.  Can't find it in the file below
        but
        <br>
        maybe it's elsewhere?
        <br>
        <br>
        ( <pool type="fs"> ) perhaps rather than the "NFS" pool (
        e.g. <pool type="netfs"> )
        <br>
        <br>
        <br>
        Allright, here's the details:
        <br>
        <br>
        [root@mdskvm-p01 ~]# rpm -aq|grep -i libvir
        <br>
        libvirt-daemon-driver-secret-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-network-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-lxc-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-nwfilter-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-interface-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-config-network-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-client-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-qemu-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-storage-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-python-1.2.17-2.el7.x86_64
        <br>
        libvirt-glib-0.1.9-1.el7.x86_64
        <br>
        libvirt-daemon-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-config-nwfilter-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-driver-nodedev-1.2.17-13.el7_2.4.x86_64
        <br>
        libvirt-daemon-kvm-1.2.17-13.el7_2.4.x86_64
        <br>
        [root@mdskvm-p01 ~]# cat /etc/release
        <br>
        cat: /etc/release: No such file or directory
        <br>
        [root@mdskvm-p01 ~]# cat /etc/*release*
        <br>
        NAME="Scientific Linux"
        <br>
        VERSION="7.2 (Nitrogen)"
        <br>
        ID="rhel"
        <br>
        ID_LIKE="fedora"
        <br>
        VERSION_ID="7.2"
        <br>
        PRETTY_NAME="Scientific Linux 7.2 (Nitrogen)"
        <br>
        ANSI_COLOR="0;31"
        <br>
        CPE_NAME="cpe:/o:scientificlinux:scientificlinux:7.2:GA"
        <br>
        HOME_URL=<a class="moz-txt-link-rfc2396E" href="http://www.scientificlinux.org//">"http://www.scientificlinux.org//"</a>
        <br>
        BUG_REPORT_URL=<a class="moz-txt-link-rfc2396E" href="mailto:scientific-linux-devel@listserv.fnal.gov">"mailto:scientific-linux-devel@listserv.fnal.gov"</a>
        <br>
        <br>
        REDHAT_BUGZILLA_PRODUCT="Scientific Linux 7"
        <br>
        REDHAT_BUGZILLA_PRODUCT_VERSION=7.2
        <br>
        REDHAT_SUPPORT_PRODUCT="Scientific Linux"
        <br>
        REDHAT_SUPPORT_PRODUCT_VERSION="7.2"
        <br>
        Scientific Linux release 7.2 (Nitrogen)
        <br>
        Scientific Linux release 7.2 (Nitrogen)
        <br>
        Scientific Linux release 7.2 (Nitrogen)
        <br>
        cpe:/o:scientificlinux:scientificlinux:7.2:ga
        <br>
        [root@mdskvm-p01 ~]#
        <br>
        <br>
        [root@mdskvm-p01 ~]# mount /var/lib/one
        <br>
        [root@mdskvm-p01 ~]# su - oneadmin
        <br>
        Last login: Sat Apr  9 10:39:25 EDT 2016 on pts/0
        <br>
        Last failed login: Tue Apr 12 12:00:57 EDT 2016 from
        opennebula01 on
        <br>
        ssh:notty
        <br>
        There were 9584 failed login attempts since the last successful
        login.
        <br>
        i[oneadmin@mdskvm-p01 ~]$ id oneadmin
        <br>
        uid=9869(oneadmin) gid=9869(oneadmin)
        <br>
        groups=9869(oneadmin),992(libvirt),36(kvm)
        <br>
        [oneadmin@mdskvm-p01 ~]$ pwd
        <br>
        /var/lib/one
        <br>
        [oneadmin@mdskvm-p01 ~]$ ls -altriR|grep -i root
        <br>
        134320262 drwxr-xr-x. 45 root     root        4096 Apr 12 07:58
        ..
        <br>
        [oneadmin@mdskvm-p01 ~]$
        <br>
        <br>
        <br>
        <br>
        [oneadmin@mdskvm-p01 ~]$ cat
        /var/lib/one//datastores/0/38/deployment.0
        <br>
        <domain type='kvm'
        xmlns:qemu='<a class="moz-txt-link-freetext" href="http://libvirt.org/schemas/domain/qemu/1.0">http://libvirt.org/schemas/domain/qemu/1.0</a>'>
        <br>
                <name>one-38</name>
        <br>
                <vcpu>1</vcpu>
        <br>
                <cputune>
        <br>
                        <shares>1024</shares>
        <br>
                </cputune>
        <br>
                <memory>524288</memory>
        <br>
                <os>
        <br>
                        <type arch='x86_64'>hvm</type>
        <br>
                        <boot dev='hd'/>
        <br>
                </os>
        <br>
                <devices>
        <br>
        <emulator>/usr/libexec/qemu-kvm</emulator>
        <br>
                        <disk type='file' device='disk'>
        <br>
                                <source
        <br>
        file='/var/lib/one//datastores/0/38/disk.0'/>
        <br>
                                <target dev='hda'/>
        <br>
                                <driver name='qemu' type='qcow2'
        cache='none'/>
        <br>
                        </disk>
        <br>
                        <disk type='file' device='cdrom'>
        <br>
                                <source
        <br>
        file='/var/lib/one//datastores/0/38/disk.1'/>
        <br>
                                <target dev='hdb'/>
        <br>
                                <readonly/>
        <br>
                                <driver name='qemu' type='raw'/>
        <br>
                        </disk>
        <br>
                        <interface type='bridge'>
        <br>
                                <source bridge='br0'/>
        <br>
                                <mac address='02:00:c0:a8:00:64'/>
        <br>
                        </interface>
        <br>
                        <graphics type='vnc' listen='0.0.0.0'
        port='5938'/>
        <br>
                </devices>
        <br>
                <features>
        <br>
                        <acpi/>
        <br>
                </features>
        <br>
        </domain>
        <br>
        <br>
        [oneadmin@mdskvm-p01 ~]$ cat
        <br>
        /var/lib/one//datastores/0/38/deployment.0|grep -i nfs
        <br>
        [oneadmin@mdskvm-p01 ~]$
        <br>
        <br>
        <br>
        <br>
        Cheers,
        <br>
        Tom K.
        <br>
-------------------------------------------------------------------------------------
        <br>
        <br>
        Living on earth is expensive, but it includes a free trip around
        the sun.
        <br>
        <br>
        On 4/12/2016 11:45 AM, John Ferlan wrote:
        <br>
        <blockquote type="cite">
          <br>
          On 04/12/2016 10:58 AM, TomK wrote:
          <br>
          <blockquote type="cite">Hey Martin,
            <br>
            <br>
            Thanks very much.  Appreciate you jumping in on this thread.
            <br>
          </blockquote>
          Can you provide some more details with respect to which
          libvirt version
          <br>
          you have installed. I know I've made changes in this space in
          more
          <br>
          recent versions (not the most recent). I'm no root_squash
          expert, but I
          <br>
          was the last to change things in the space so that makes me
          partially
          <br>
          fluent ;-) in NFS/root_squash speak.
          <br>
          <br>
        </blockquote>
      </blockquote>
      <br>
      I'm always lost in how do we handle *all* the corner cases that
      are not
      <br>
      even used anywhere at all, but care about the conditions we have
      in the
      <br>
      code.  Especially when it's constantly changing.  So thanks for
      jumping
      <br>
      in.  I only replied because nobody else did and I had only the
      tiniest
      <br>
      clue as to what could happen.
      <br>
      <br>
      <blockquote type="cite">
        <blockquote type="cite">Using root_squash is very "finicky" (to
          say the least)... It wasn't
          <br>
          really clear from what you posted how you are attempting to
          reference
          <br>
          things. Does the "/var/lib/one//datastores/0/38/deployment.0"
          XML file
          <br>
          use a direct path to the NFS volume or does it use a pool? If
          a pool,
          <br>
          then what type of pool? It is beneficial to provide as many
          details as
          <br>
          possible about the configuration because (so to speak) those
          that are
          <br>
          helping you won't know your environment (I've never used
          OpenNebula) nor
          <br>
          do I have a 'oneadmin' uid:gid.
          <br>
          <br>
          What got my attention was the error message "initializing FS
          storage
          <br>
          file" with the "file:" prefix to the name and 9869:9869 as the
          uid:gid
          <br>
          trying to access the file (I assume that's oneadmin:oneadmin
          on your
          <br>
          system).
          <br>
          <br>
        </blockquote>
      </blockquote>
      <br>
      I totally missed this.  So the only thing that popped on my mind
      now was
      <br>
      checking the whole path:
      <br>
      <br>
       ls -ld /var{,/lib{,/one{,/datastores{,/0{,/38{,/disk.1}}}}}}
      <br>
      <br>
      You can also run it as root and oneadmin, however after reading
      through
      <br>
      all the info again, I don't think that'll help.
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
libvir-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:libvir-list@redhat.com">libvir-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/libvir-list">https://www.redhat.com/mailman/listinfo/libvir-list</a></pre>
    </blockquote>
    <br>
    I top post by default in thunderbird and we have same setup at work
    with M$ LookOut.  Old habits are to blame I guess.  I'll try to
    reply  like this instead.  But yeah it's terrible for mailing lists
    to top post.  Here's the output and thanks again:<br>
    <br>
    [oneadmin@mdskvm-p01 ~]$ ls -ld
    /var{,/lib{,/one{,/datastores{,/0{,/38{,/disk.1}}}}}}<br>
    drwxr-xr-x. 21 root     root       4096 Apr 11 07:10 /var<br>
    drwxr-xr-x. 45 root     root       4096 Apr 12 07:58 /var/lib<br>
    drwxr-x---  12 oneadmin oneadmin   4096 Apr 12 15:50 /var/lib/one<br>
    drwxrwxr-x   6 oneadmin oneadmin     46 Mar 31 02:44
    /var/lib/one/datastores<br>
    drwxrwxr-x   6 oneadmin oneadmin     42 Apr  5 00:20
    /var/lib/one/datastores/0<br>
    drwxrwxr-x   2 oneadmin oneadmin     68 Apr  5 00:20
    /var/lib/one/datastores/0/38<br>
    -rw-r--r--   1 oneadmin oneadmin 372736 Apr  5 00:20
    /var/lib/one/datastores/0/38/disk.1<br>
    [oneadmin@mdskvm-p01 ~]$<br>
    <br>
    That's the default setting but I think I see what you're getting at
    that permissions get inherited?<br>
    <br>
    <div class="moz-signature">Cheers,<br>
      Tom K.<br>
      -------------------------------------------------------------------------------------
      <br>
      <br>
      Living on earth is expensive, but it includes a free trip around
      the sun.<br>
    </div>
    <br>
  </body>
</html>