[one-users] VM in opennebula failing

Sudeep Narayan Banerjee snbanerjee at iitgn.ac.in
Tue Jun 24 04:22:24 PDT 2014


Dear Stefan,

Thanks for the reply!.

////
As oneadmin user (su - oneadmin), can you "touch" anything in
/var/lib/one/datastores/0?

[oneadmin at front 0]$ pwd
/var/lib/one/datastores/0
[oneadmin at front 0]$
[oneadmin at front 0]$ touch file
[oneadmin at front 0]$
[oneadmin at front 0]$ ls -l file
-rw-rw-r-- 1 oneadmin oneadmin 0 Jun 24 16:46 file
[oneadmin at front 0]$
[oneadmin at front 0]$ cd ..

/////
What are the permissions on /var/lib/one (ls -larth)?

[oneadmin at front ~]$ pwd
/var/lib/one
[oneadmin at front ~]$
[oneadmin at front ~]$ ls -larth
total 2.8M
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Nov 12  2010 .gnome2
-rw-r--r--.  1 oneadmin oneadmin  500 May  7  2013 .emacs
-rw-r--r--.  1 oneadmin oneadmin  124 Jul 18  2013 .bashrc
-rw-r--r--.  1 oneadmin oneadmin  176 Jul 18  2013 .bash_profile
-rw-r--r--.  1 oneadmin oneadmin   18 Jul 18  2013 .bash_logout
drwxr-xr-x. 70 root     root     4.0K Jun 21 19:07 ..
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Jun 21 19:20 .one
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Jun 21 19:23 sunstone_vnc_tokens
drwx------.  2 oneadmin oneadmin 4.0K Jun 21 19:30 .ssh
-rw-rw-r--.  1 oneadmin oneadmin  135 Jun 21 22:34 mynetwork.one
drwxr-x---.  6 oneadmin oneadmin 4.0K Jun 22 01:39 datastores
drwxr-xr-x.  3 oneadmin oneadmin 4.0K Jun 22 02:29 .libvirt
drwxr-xr-x.  4 oneadmin oneadmin 4.0K Jun 22 04:01 .mozilla
drwxr-x---.  9 oneadmin oneadmin 4.0K Jun 23 20:11 remotes
-rw-rw-r--   1 oneadmin oneadmin 8.0K Jun 23 20:20 front_23June2014
-rw-rw-r--   1 oneadmin oneadmin 7.5K Jun 23 20:22 nc1_23June2014
-rw-------.  1 oneadmin oneadmin 7.4K Jun 24 12:52 .bash_history
-rw-------   1 oneadmin oneadmin 4.9K Jun 24 12:57 .viminfo
-rw-rw-r--.  1 oneadmin oneadmin 2.4K Jun 24 16:18 config
drwxr-x---. 23 oneadmin oneadmin 4.0K Jun 24 16:29 vms
-rw-r--r--.  1 oneadmin oneadmin 2.6M Jun 24 16:47 one.db
-rw-r--r--   1 oneadmin oneadmin 4.6K Jun 24 16:47 one.db-journal
drwx------. 11 oneadmin oneadmin 4.0K Jun 24 16:47 .
[oneadmin at front ~]$

/////
Are you using nfsv4 (grep nfs4 /proc/mounts)?

[oneadmin at front ~]$ grep nfs4 /proc/mounts
[oneadmin at front ~]$

/////

Are the permissions the same on the frontend and the hosts?

Yes, I guess so.

[oneadmin at front ~]$ ls -larth
total 2.8M
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Nov 12  2010 .gnome2
-rw-r--r--.  1 oneadmin oneadmin  500 May  7  2013 .emacs
-rw-r--r--.  1 oneadmin oneadmin  124 Jul 18  2013 .bashrc
-rw-r--r--.  1 oneadmin oneadmin  176 Jul 18  2013 .bash_profile
-rw-r--r--.  1 oneadmin oneadmin   18 Jul 18  2013 .bash_logout
drwxr-xr-x. 70 root     root     4.0K Jun 21 19:07 ..
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Jun 21 19:20 .one
drwxr-xr-x.  2 oneadmin oneadmin 4.0K Jun 21 19:23 sunstone_vnc_tokens
drwx------.  2 oneadmin oneadmin 4.0K Jun 21 19:30 .ssh
-rw-rw-r--.  1 oneadmin oneadmin  135 Jun 21 22:34 mynetwork.one
drwxr-x---.  6 oneadmin oneadmin 4.0K Jun 22 01:39 datastores
drwxr-xr-x.  3 oneadmin oneadmin 4.0K Jun 22 02:29 .libvirt
drwxr-xr-x.  4 oneadmin oneadmin 4.0K Jun 22 04:01 .mozilla
drwxr-x---.  9 oneadmin oneadmin 4.0K Jun 23 20:11 remotes
-rw-rw-r--   1 oneadmin oneadmin 8.0K Jun 23 20:20 front_23June2014
-rw-rw-r--   1 oneadmin oneadmin 7.5K Jun 23 20:22 nc1_23June2014
-rw-------.  1 oneadmin oneadmin 7.4K Jun 24 12:52 .bash_history
-rw-------   1 oneadmin oneadmin 4.9K Jun 24 12:57 .viminfo
-rw-rw-r--.  1 oneadmin oneadmin 2.4K Jun 24 16:18 config
drwxr-x---. 23 oneadmin oneadmin 4.0K Jun 24 16:29 vms
-rw-r--r--.  1 oneadmin oneadmin 2.6M Jun 24 16:47 one.db
-rw-r--r--   1 oneadmin oneadmin 4.6K Jun 24 16:47 one.db-journal
drwx------. 11 oneadmin oneadmin 4.0K Jun 24 16:47 .
[oneadmin at front ~]$ grep nfs4
^C
[oneadmin at front ~]$ grep nfs4 /proc/mounts
[oneadmin at front ~]$
[oneadmin at front ~]$
[oneadmin at front ~]$ df -kh
df: `/root/.gvfs': Permission denied
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_front-lv_root
                       50G   21G   27G  44% /
tmpfs                 1.9G  228K  1.9G   1% /dev/shm
/dev/sda2             485M   64M  397M  14% /boot
/dev/sda1             200M  260K  200M   1% /boot/efi
/dev/mapper/vg_front-lv_home
                      405G  199M  385G   1% /home
[oneadmin at front ~]$
[oneadmin at front ~]$ ls -alrt
total 2760
drwxr-xr-x.  2 oneadmin oneadmin    4096 Nov 12  2010 .gnome2
-rw-r--r--.  1 oneadmin oneadmin     500 May  7  2013 .emacs
-rw-r--r--.  1 oneadmin oneadmin     124 Jul 18  2013 .bashrc
-rw-r--r--.  1 oneadmin oneadmin     176 Jul 18  2013 .bash_profile
-rw-r--r--.  1 oneadmin oneadmin      18 Jul 18  2013 .bash_logout
drwxr-xr-x. 70 root     root        4096 Jun 21 19:07 ..
drwxr-xr-x.  2 oneadmin oneadmin    4096 Jun 21 19:20 .one
drwxr-xr-x.  2 oneadmin oneadmin    4096 Jun 21 19:23 sunstone_vnc_tokens
drwx------.  2 oneadmin oneadmin    4096 Jun 21 19:30 .ssh
-rw-rw-r--.  1 oneadmin oneadmin     135 Jun 21 22:34 mynetwork.one
drwxr-x---.  6 oneadmin oneadmin    4096 Jun 22 01:39 datastores
drwxr-xr-x.  3 oneadmin oneadmin    4096 Jun 22 02:29 .libvirt
drwxr-xr-x.  4 oneadmin oneadmin    4096 Jun 22 04:01 .mozilla
drwxr-x---.  9 oneadmin oneadmin    4096 Jun 23 20:11 remotes
-rw-rw-r--   1 oneadmin oneadmin    8177 Jun 23 20:20 front_23June2014
-rw-rw-r--   1 oneadmin oneadmin    7674 Jun 23 20:22 nc1_23June2014
-rw-------.  1 oneadmin oneadmin    7533 Jun 24 12:52 .bash_history
-rw-------   1 oneadmin oneadmin    4945 Jun 24 12:57 .viminfo
-rw-rw-r--.  1 oneadmin oneadmin    2443 Jun 24 16:18 config
drwxr-x---. 23 oneadmin oneadmin    4096 Jun 24 16:29 vms
-rw-r--r--.  1 oneadmin oneadmin 2718720 Jun 24 16:50 one.db
drwx------. 11 oneadmin oneadmin    4096 Jun 24 16:50 .
[oneadmin at front ~]$
[oneadmin at front ~]$ cat /etc/exports
/var/lib/one/ *(rw,sync,no_subtree_check,root_squash)

[oneadmin at front ~]$ ssh nc1                                // navigating to
the worker node without password//
Warning: Permanently added 'nc1,192.168.9.97' (RSA) to the list of known
hosts.
Last login: Mon Jun 23 08:42:19 2014 from front.iitgn.ac.in
[oneadmin at nc1 ~]$
[oneadmin at nc1 ~]$ ls -alrt
total 2760
drwxr-xr-x.  2 oneadmin oneadmin    4096 Nov 12  2010 .gnome2
-rw-r--r--.  1 oneadmin oneadmin     500 May  7  2013 .emacs
-rw-r--r--.  1 oneadmin oneadmin     124 Jul 18  2013 .bashrc
-rw-r--r--.  1 oneadmin oneadmin     176 Jul 18  2013 .bash_profile
-rw-r--r--.  1 oneadmin oneadmin      18 Jul 18  2013 .bash_logout
drwxr-xr-x. 41 root     root        4096 Jun 21 07:47 ..
drwxr-xr-x.  2 oneadmin oneadmin    4096 Jun 21 19:20 .one
drwxr-xr-x.  2 oneadmin oneadmin    4096 Jun 21 19:23 sunstone_vnc_tokens
drwx------.  2 oneadmin oneadmin    4096 Jun 21 19:30 .ssh
-rw-rw-r--.  1 oneadmin oneadmin     135 Jun 21 22:34 mynetwork.one
drwxr-x---.  6 oneadmin oneadmin    4096 Jun 22 01:39 datastores
drwxr-xr-x.  3 oneadmin oneadmin    4096 Jun 22 02:29 .libvirt
drwxr-xr-x.  4 oneadmin oneadmin    4096 Jun 22 04:01 .mozilla
drwxr-x---.  9 oneadmin oneadmin    4096 Jun 23 20:11 remotes
-rw-rw-r--.  1 oneadmin oneadmin    8177 Jun 23 20:20 front_23June2014
-rw-rw-r--.  1 oneadmin oneadmin    7674 Jun 23 20:22 nc1_23June2014
-rw-------.  1 oneadmin oneadmin    7533 Jun 24  2014 .bash_history
-rw-------.  1 oneadmin oneadmin    4945 Jun 24  2014 .viminfo
-rw-rw-r--.  1 oneadmin oneadmin    2443 Jun 24  2014 config
drwxr-x---. 23 oneadmin oneadmin    4096 Jun 24  2014 vms
-rw-r--r--.  1 oneadmin oneadmin 2718720 Jun 24  2014 one.db
drwx------. 11 oneadmin oneadmin    4096 Jun 24  2014 .
[oneadmin at nc1 ~]$
[oneadmin at nc1 ~]$ cat /etc/fstab | grep one
192.168.9.95:/var/lib/one/  /var/lib/one/      nfs
soft,intr,rsize=8192,wsize=8192,noauto


On Tue, Jun 24, 2014 at 4:45 PM, Stefan Kooman <stefan at bit.nl> wrote:

> Quoting Sudeep Narayan Banerjee (snbanerjee at iitgn.ac.in):
> > Dear Sir,
> >
> > This is in response to the subject that I posted on June-21, but still no
> > response.
> >
> > I have tried to improve little bit from there but still no the VM is
> > failing; but now throwing new error.
> >
> > I am posting some output of the configuration files, please have a look
> and
> > kindly8 respond.
>
> > [root at nc1 ~]# grep -vE '^($|#)' /etc/default/libvirt-bin
> > grep: /etc/default/libvirt-bin: No such file or directory
> >
> > [oneadmin at front ~]$ onehost list
> >   ID NAME            CLUSTER   RVM      ALLOCATED_CPU      ALLOCATED_MEM
> > STAT
> >    3 nc1             -           0       0 / 800 (0%)     0K / 3.6G (0%)
> on
> >
> > [oneadmin at front ~]$ oneimage list
> >   ID USER       GROUP      NAME            DATASTORE     SIZE TYPE PER
> STAT
> > RVMS
> >    0 oneadmin   oneadmin   CentOS-6.5_x86_ default       267M OS    No
> > rdy     0
> >
> > [oneadmin at front ~]$ onetemplate list
> >   ID USER            GROUP           NAME
> > REGTIME
> >    0 oneadmin        oneadmin        CentOS-6.5                   06/21
> > 23:09:56
> >
> > Output of one <VM-id>.log file
> > ---------------------------------------------
> > [oneadmin at front ~]$ cat /var/log/one/15.log
> > Tue Jun 24 13:19:31 2014 [DiM][I]: New VM state is ACTIVE.
> > Tue Jun 24 13:19:31 2014 [LCM][I]: New VM state is PROLOG.
> > Tue Jun 24 13:20:48 2014 [LCM][I]: New VM state is BOOT
> > Tue Jun 24 13:20:48 2014 [VMM][I]: Generating deployment file:
> > /var/lib/one/vms/15/deployment.0
> > Tue Jun 24 13:20:49 2014 [VMM][I]: ExitCode: 0
> > Tue Jun 24 13:20:49 2014 [VMM][I]: Successfully execute network driver
> > operation: pre.
> > Tue Jun 24 13:20:49 2014 [VMM][I]: Command execution fail: cat << EOT |
> > /var/tmp/one/vmm/kvm/deploy '/var/lib/one/datastores/0/15/deployment.0'
> > 'nc1' 15 nc1
> > Tue Jun 24 13:20:49 2014 [VMM][I]: error: Failed to create domain from
> > /var/lib/one/datastores/0/15/deployment.0
> > Tue Jun 24 13:20:49 2014 [VMM][I]: error: unable to set security context
> > 'unconfined_u:object_r:svirt_image_t:s0:c514,c893' on
> > '/var/lib/one/datastores/0/15/disk.0': Permission denied
> > Tue Jun 24 13:20:49 2014 [VMM][E]: Could not create domain from
> > /var/lib/one/datastores/0/15/deployment.0
>
> It looks like a permission issue. As oneadmin user (su - oneadmin), can
> you "touch" anything in /var/lib/one/datastores/0? What are the
> permissions on /var/lib/one (ls -larth)? Are you using nfsv4 (grep nfs4
> /proc/mounts)?  Are the permissions the same on the frontend and the
> hosts?
>
> Gr. Stefan
>
>
> --
> | BIT BV  http://www.bit.nl/        Kamer van Koophandel 09090351
> | GPG: 0xD14839C6                   +31 318 648 688 / info at bit.nl
>



-- 
Thanks & Regards,
Sudeep Narayan Banerjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140624/52bdcc8c/attachment-0001.htm>


More information about the Users mailing list