Re: [Users] Ovirt 3.3 Fedora 19 add gluster storage permissions error

2013-09-20 Thread Deepak C Shetty

Either you can use the volume set .. option as mentioned in the wikipage
--or --
If the Gluster volume is added / managed to the oVirt UI.. go to 
Volumes tab, select the gluster volume and
click on Optimize for virt. store. That should also set the volume 
options in addition to few other things


thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How can oVirt use glusterfs ?

2013-08-16 Thread Deepak C Shetty

On 08/16/2013 08:56 AM, Marcelo Barbosa wrote:

Hi Higkoo,

   Two good links for you:

http://www.ovirt.org/images/5/59/Ovirt-fosdem2013-gluster.pdf


This talks about 2 things...
1) How to use existing Posix Storage domain of oVirt to consume 
GlusterFS as a posix compliant data store.

2) How to manage GlusterFS storage clusters using oVirt


   and
http://www.youtube.com/watch?v=0iIuHCz8L04


This video talks abt GlsuterFS as a native storage domain (unlike Posix).
This has inherent perf. advantages over using Posix storage domain.

For more details see
http://www.ovirt.org/Features/GlusterFS_Storage_Domain#Detailed_Description

GlusterFS native storage domain is planned for the upcoming oVirt 3.3 
release


So depending on your need, there are diff ways in which you can 
use/manage/consume

GlusterFS from oVirt

thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to create an ISO storage domain on an ovirt host

2013-08-01 Thread Deepak C Shetty


ISO Domain is for the entire Datacentre... Since you already set it up, 
it must be visible under the Storage tab, does it ? There is nothing 
like ISO domain for engine and host side.. there is just ISO domain, 
which once setup, should be able to host your .iso images which you can 
use as part of VM creation.. HTH


thanx,
deepak



On 08/02/2013 03:16 AM, Zhang, Hongyi wrote:


Hello,

I try to configure the NFS data domain and the ISO domain on a Fedora 
18 ovirt host. From the Quick Start Guide, I only learned how to use 
engine-seup to set up a local ISO domain on the ovirt engine. Then 
how can I configure the ISO domain on my ovirt host side?


Also from the admin portal GUI, when I click the Storage tab, and 
click New Domain, I only see one Domain Function/Starage Type, i.e., 
Data/NFS. Thus I cannot configure an ISO domain from the admin portal GUI.


Please help me and let me know how to configure an remote ISO domain 
on the ovirt host side.


Thanks,

Hongyi



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] tech talk on KVM and oVirt !!

2013-07-29 Thread Deepak C Shetty

Udayendu,
 Nice effort. One suggestion...
It looks like you referred to some old oVirt ... because features 
such as live storage migration, hotplug, live snapshots are already in 
ovirt 3.2
but you slides denotes them as upcoming (ON the horizon). You might want 
to update them :)


thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] ovirt.org not working

2013-03-21 Thread Deepak C Shetty

for any page i open.. i see this...


 Database error

A database query syntax error has occurred. This may indicate a bug in 
the software. The last attempted database query was:


   |(SQL query hidden)|

from within function |SqlBagOStuff::set|. Database returned error 
1114: The table 'mw_objectcache' is full (127.7.52.129).
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] vfs_type not being sent by engine to VDSM for GLUSTER DOMAIN case

2013-03-18 Thread Deepak C Shetty

Hi All,
I am validating GLUSTERFS Storage domain engine patches (worked on 
by Sharad, in Cc) as posted here...

http://gerrit.ovirt.org/#/q/status:open+project:ovirt-engine+branch:master+topic:glusterfs,n,z
against VDSM Glusterfs domain support (already upstream in VDSM)

I see the below issue as part of me creatign a new Gluster Storage 
DOmain in the UI


Engine logs...

2013-03-18 13:27:29,149 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] 
(http--0.0.0.0-8700-1) [4b751967] START, 
ConnectStorageServerVDSCommand(HostName = vm-vdsm-de-1, HostId = 
c0ff5edc-4e30-4553-9125-2d1cee9f19ec, storagePoolId = 
----, storageType = GLUSTERFS, 
connectionList = [{ id: null, connection: vm-vdsm-de-1:dpkvol4, iqn: 
null, vfsType: glusterfs, mountOptions: null, nfsVersion: null, 
nfsRetrans: null, nfsTimeo: null };]), log id: f88d42d


VDSM Logs...

Thread-77::INFO::2013-03-18 
13:32:35,541::logUtils::44::dispatcher::(wrapper) Run and protect: 
connectStorageServer(domType=7, 
spUUID='----', conList=[{'connection': 
'vm-vdsm-de-1:dpkvol4', 'iqn': '', 'portal': '', 'user': '', 'password': 
'**', 'id': '----', 'port': ''}], 
options=None)*-- Notice no vfs_type here !!!*


VDSM doesn't recv. the vfs_type in the conList dict !!!

I had this small chat with Saggi of VDSM, just to confirm that there 
isn't a possibility that VDSM might be stripping args that are recd. 
from Engine.. and it doesn't.



-
deepakcs saggi, Hi
saggi deepakcs: hi

deepakcs saggi, Is it possible that VDSM might strip down some of the 
connparams that are recd. as part of connectStorageServer ?
deepakcs saggi, In engine log for GLUSTERFS_DOMAIN i see vfsType being 
passed, but connectStorageServer log doesn't show vfs_type in the params 
dict
deepakcs saggi, so wodering where vfs_type is getting dropped in this 
whole process

saggi Probably not being sent
saggi if it's not being logged
deepakcs saggi, engine log has this
deepakcs 2013-03-18 13:27:29,149 INFO 
[org.ovirt.engine.core.vdsbroker.vdsbroker.ConnectStorageServerVDSCommand] 
(http--0.0.0.0-8700-1) [4b751967] START, 
ConnectStorageServerVDSCommand(HostName = vm-vdsm-de-1, HostId = 
c0ff5edc-4e30-4553-9125-2d1cee9f19ec, storagePoolId = 
----, storageType = GLUSTERFS, 
connectionList = [{ id: null, connection: vm-vdsm-de-1:dpkvol4, iqn: 
null, vfsType: glusterfs, mountOptions: null, nfsVersion: nul

deepakcs l, nfsRetrans: null, nfsTimeo: null };]), log id: f88d42d
deepakcs saggi,  on VDSM side i see this...
deepakcs Thread-77::INFO::2013-03-18 
13:32:35,541::logUtils::44::dispatcher::(wrapper) Run and protect: 
connectStorageServer(domType=7, 
spUUID='----', conList=[{'connection': 
'vm-vdsm-de-1:dpkvol4', 'iqn': '', 'portal': '', 'user': '', 'password': 
'**', 'id': '----', 'port': ''}], 
options=None) -- Notice no vfs_type here !!!

saggi Then you are not sending the correct connection type

deepakcs saggi, 'you' means the engine side of code ? engine patches 
is being done by Sharad, and I amtrying to work with them on this issue


deepakcs saggi, domType=7 is GLUSTERFS_DOMAIN, so its correct on that 
front
saggi If it show nfsRetrans you are using nfs which doesn't have a 
vfs_type argument

deepakcs saggi, but engine log says storageType = GLUSTERFS
deepakcs saggi, maybe i can send mail to users@ovirt list to see if 
anybody can provide more clues
deepakcs saggi, but definitely this doesn't looks like a vdsm side of 
issue rite ?

saggi We log the params as we get them

deepakcs saggi, right, thats what i also see.. just wanted to confirm 
once with you, before i sent mail to ovirt folks


-


Can someone help provide any clues on what might be the issue here ?
Because VDSM doesn't see vfs_type, the connectStorageServer fails and 
hence new SD cannot be created !


thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] setupNetworks failure - Host non-operational

2013-01-22 Thread Deepak C Shetty

Hi All,
I have a multi-VM setup, where I have ovirt engine on one VM and 
VDSM host on another.
Discovering the host from the engine puts the host in Unassigned state, 
with the error saying 'ovirtmgmt' network not found.


When i select setupNetworks and drag-drop the ovirtmgmt to setup over 
eth0, i see the below error in VDSM  host goes to non-operataional state.


I tried the steps mentioned by Alon in 
http://lists.ovirt.org/pipermail/users/2012-December/011257.html

but still see the same error

= dump from vdsm.log 

MainProcess|Thread-23::ERROR::2013-01-22 
18:25:53,496::configNetwork::1438::setupNetworks::(setupNetworks) 
Requested operation is not valid: cannot set autostart for transient network

Traceback (most recent call last):
  File /usr/share/vdsm/configNetwork.py, line 1420, in setupNetworks
implicitBonding=True, **d)
  File /usr/share/vdsm/configNetwork.py, line 1030, in addNetwork
configWriter.createLibvirtNetwork(network, bridged, iface)
  File /usr/share/vdsm/configNetwork.py, line 208, in 
createLibvirtNetwork

self._createNetwork(netXml)
  File /usr/share/vdsm/configNetwork.py, line 192, in _createNetwork
net.setAutostart(1)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 2148, in 
setAutostart
if ret == -1: raise libvirtError ('virNetworkSetAutostart() 
failed', net=self)
libvirtError: Requested operation is not valid: cannot set autostart for 
transient network
MainProcess|Thread-23::ERROR::2013-01-22 
18:25:53,502::supervdsmServer::77::SuperVdsm.ServerCallback::(wrapper) 
Error in setupNetworks

Traceback (most recent call last):
  File /usr/share/vdsm/supervdsmServer.py, line 75, in wrapper
return func(*args, **kwargs)
  File /usr/share/vdsm/supervdsmServer.py, line 170, in setupNetworks
return configNetwork.setupNetworks(networks, bondings, **options)
  File /usr/share/vdsm/configNetwork.py, line 1420, in setupNetworks
implicitBonding=True, **d)
  File /usr/share/vdsm/configNetwork.py, line 1030, in addNetwork
configWriter.createLibvirtNetwork(network, bridged, iface)
  File /usr/share/vdsm/configNetwork.py, line 208, in 
createLibvirtNetwork

self._createNetwork(netXml)
  File /usr/share/vdsm/configNetwork.py, line 192, in _createNetwork
net.setAutostart(1)
  File /usr/lib64/python2.7/site-packages/libvirt.py, line 2148, in 
setAutostart
if ret == -1: raise libvirtError ('virNetworkSetAutostart() 
failed', net=self)
libvirtError: Requested operation is not valid: cannot set autostart for 
transient network



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] setupNetworks failure - Host non-operational

2013-01-22 Thread Deepak C Shetty

On 01/22/2013 06:37 PM, Alex Leonhardt wrote:
I'm not sure whether it's the same, but in the past (with v3.1) when 
configuring the hosts network, it changed it automatically from static 
- dhcp, everytime i change network settings i have to ensure to 
re-tick the static address assignment and tick the box to save the 
settings (scrolling down) ... hope it helps ..
If you mean click on the save network setting checkbox while 
configuring host network from engine, I am doing that.
I think what is happenign here is libvirt is failing to set autostart on 
the ovirtmgmt network, IIUC


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [vdsm] setupNetworks failure - Host non-operational

2013-01-22 Thread Deepak C Shetty

On 01/22/2013 07:13 PM, Antoni Segura Puimedon wrote:

Which version of vdsm is it running? Once I know I'll try to see why
does this happen.

I am working on a git version of VDSM. let me know if u need more info.

rpm -qa| grep vdsm
vdsm-debug-plugin-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-debuginfo-4.10.3-0.75.git87b668d.fc17.x86_64
vdsm-jsonrpc-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-4.10.3-0.75.git87b668d.fc17.x86_64
vdsm-xmlrpc-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-gluster-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-tests-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-cli-4.10.3-0.75.git87b668d.fc17.noarch
vdsm-python-4.10.3-0.75.git87b668d.fc17.x86_64


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Feature page for GLUSTERFS_DOMAIN support is now available.

2012-10-22 Thread Deepak C Shetty

Hi list,
I created a wiki page for GLUSTERFS_DOMAIN support.
Comments/Suggestions are welcome.

http://wiki.ovirt.org/wiki/Features/GlusterFS_Storage_Domain

thanx,
deepak




___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to configure sharedFS ?

2012-06-17 Thread Deepak C Shetty

On 03/19/2012 03:07 PM, Dan Kenigsberg wrote:

On Wed, Mar 14, 2012 at 07:04:47PM +0530, Deepak C Shetty wrote:

On 02/29/2012 08:06 PM, Dan Kenigsberg wrote:

Let us know if you need further assistance..
If you have that python script working for LOCALFS, I'd suggest you try
making it work for SHAREDFS too.



I was able to use the VDSM_Standalone example, and modify it to use SHAREDFS
and export glusterfs as a DATA_DOMAIN and invoke VM backed by
gluster storage.

I edited http://www.ovirt.org/wiki/Vdsm_Standalone (scroll below)
added it as
a SHAREDFS example.

Thanks! It is great news that all you need is O_DIRECT in fuse, and that
Vdsm's SHAREDFS interface works as it is for gluster.

Regards,
Dan.



Hello,
Got more questions on this, now that I am re-visiting this.
The last time i tried using SHAREDFS, i started from createStorageDomain 
verb, and it works fine.


But now we have connectStorageServer verb... which i believe is the new 
way of doing things ?
If i start from connectStorageServer verb to mount using SHAREDFS ( 
which goes via PosixFs... MountConnection flow), that won't help me 
entirely here, right ?
Because it only mounts based on the dict sent, but does not do anything 
with the image and metadata stuff ( which createStorageDomain flow did ).


I am wondering if its too early to start using connectStorageServer ? If 
not, how can i re-write the above vdsm standalone example using 
connectStorageServer instead of createStorageDomain flow ?



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to configure sharedFS ?

2012-06-17 Thread Deepak C Shetty

On 06/17/2012 07:06 PM, Yair Zaslavsky wrote:

On 06/17/2012 03:50 PM, Deepak C Shetty wrote:

On 03/19/2012 03:07 PM, Dan Kenigsberg wrote:

On Wed, Mar 14, 2012 at 07:04:47PM +0530, Deepak C Shetty wrote:

On 02/29/2012 08:06 PM, Dan Kenigsberg wrote:

Let us know if you need further assistance..
If you have that python script working for LOCALFS, I'd suggest you try
making it work for SHAREDFS too.



I was able to use the VDSM_Standalone example, and modify it to use
SHAREDFS
and export glusterfs as a DATA_DOMAIN and invoke VM backed by
gluster storage.

I edited http://www.ovirt.org/wiki/Vdsm_Standalone (scroll below)
added it as
a SHAREDFS example.

Thanks! It is great news that all you need is O_DIRECT in fuse, and that
Vdsm's SHAREDFS interface works as it is for gluster.

Regards,
Dan.


Hello,
 Got more questions on this, now that I am re-visiting this.
The last time i tried using SHAREDFS, i started from createStorageDomain
verb, and it works fine.

But now we have connectStorageServer verb... which i believe is the new
way of doing things ?
If i start from connectStorageServer verb to mount using SHAREDFS (
which goes via PosixFs... MountConnection flow), that won't help me
entirely here, right ?
Because it only mounts based on the dict sent, but does not do anything
with the image and metadata stuff ( which createStorageDomain flow did ).

I am wondering if its too early to start using connectStorageServer ? If
not, how can i re-write the above vdsm standalone example using
connectStorageServer instead of createStorageDomain flow ?

Will a solution via engine (i.e - create PosixFS storage domain) be good
for you?


Well, no. I kind of mis-interpreted the problem. My Q stands canceled.
The right way indeed is to use createStorageServer followed by 
createStorageDomain, which i was confused initially a bit, but now its 
cleared.



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] oVirt support for backup/restore

2012-05-29 Thread Deepak C Shetty

Hi All,
I was advised on #ovirt IRC to send a mail to know more on the new 
changes happening in the oVirt backup / restore area. Below is the IRC 
chatlog for reference.


/deepakcs Hello, i was looking for info on how VM backups work in 
ovirt env.  From the docs, it seems one has to export the VM to the 
export domain and then backup from there ?
deepakcs Exporting VM to export domain does a full copy of the vm 
image, is it possible to do backup from a snapshot if i had one, in 
ovirt setup ?


lpeer deepakcs: hey, we do not have direct backup from snapshot

deepakcs lpeer, but that means.. anytime we need to backup, we are 
creating a full copy which is taking much more space.. having backups 
from snapshot is more preferred, space and timewise, ?


lpeer deepakcs: yes you are right we are working on a backup solution
lpeer deepakcs: abaron ping

lpeer deepakcs: abaron can give you more information on the backup API 
we are working on


deepakcs lpeer, okay, is there any wiki page on this on ovirt wiki ?

lpeer deepakcs: I can't find one but it is better to write a question 
to the users mailling list

deepakcs lpeer, thanks
/

I was wondering if anyone has more info on what being proposed and/or 
changed in the backup/restore area, what to look forward to ?


thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] (potential bug) After I create a virtual disk I am unable to start a VM - Permissions issue ? The node seems to have no write access to the directory on the NFS server...

2012-03-27 Thread Deepak C Shetty

On 03/27/2012 04:08 PM, Morgan Cox wrote:

Hi

http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues

- This seems to refer to setup on a redhat based system

The fies it refers to do not exist on Debian - i.e

/etc/sysconfig/nfs and/etc/nfsmount.conf - they do not exist...

Do you know the equivalent on Debian ?



Sorry, i use fedora, and I dont know the equivalent of Debain.
Maybe asking the big brain(google) might help. There should be an
equivalent way of doing the same on debian.

Also in my case v4 was not a issue, as much as the perms and uid:gid
were, so look further to see perms and selinux booleans are
set correctly in your setup.


Regards


On 27 March 2012 07:07, Deepak C Shetty deepa...@linux.vnet.ibm.com 
mailto:deepa...@linux.vnet.ibm.com wrote:


On 03/26/2012 05:28 PM, Morgan Cox wrote:

Hi.

Still not actually managed to test a vm... I can start a VM (and
use spice) without a virtual disk.

However as soon as I add a virtual disk the VM no longer starts



Go thru this and see if it helps...
http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues



example error message


---
VM ddf is down. Exit message internal error process exited while
connecting to monitor: qemu-kvm: -drive

file=/rhev/data-center/b2b2e054-66b2-11e1-bda3-1728f784de9e/2f7ee7bc-09b3-42ba-af91-40d79293e360/images/c507a2bc-38c5-498e-88c0-7cce8169cf67/6c36c8e4-6618-42f3-9cc4-06d2bccdc9cf,if=none,id=drive-virtio-disk0,format=raw,serial=c507a2bc-38c5-498e-88c0-7cce8169cf67,cache=none,werror=stop,rerror=stop,aio=threads:
could not open disk image

/rhev/data-center/b2b2e054-66b2-11e1-bda3-1728f784de9e/2f7ee7bc-09b3-42ba-af91-40d79293e360/images/c507a2bc-38c5-498e-88c0-7cce8169cf67/6c36c8e4-6618-42f3-9cc4-06d2bccdc9cf:
Permission denied .

---

I have noticed that the
directory /rhev/data-center/b2b2e054-66b2-11e1-bda3-1728f784de9e/
is not writable via the ovirt node server.

I am using a separate NFS server for storage.

Is this a bug ?

Does anyone know how to fix this ?

shall I report it ?

Many regards !


___
Users mailing list
Users@ovirt.org  mailto:Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users





___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to configure sharedFS ?

2012-03-14 Thread Deepak C Shetty

On 02/29/2012 08:06 PM, Dan Kenigsberg wrote:

On Wed, Feb 29, 2012 at 07:42:15PM +0530, Deepak C Shetty wrote:

On 02/27/2012 04:55 AM, Ayal Baron wrote:

Any help on documenting this so people would not have to dig into the code 
would be greatly appreciated.


Great, let me start and get back if i land up into issues.
thanks for the pointer.

Let us know if you need further assistance..



If you have that python script working for LOCALFS, I'd suggest you try
making it work for SHAREDFS too.




I was able to use the VDSM_Standalone example, and modify it to use SHAREDFS
and export glusterfs as a DATA_DOMAIN and invoke VM backed by gluster 
storage.


I edited http://www.ovirt.org/wiki/Vdsm_Standalone (scroll below)  
added it as

a SHAREDFS example.


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Unable to import template across DC

2012-03-12 Thread Deepak C Shetty

Hi,
I have 2 DC's, nfs based and localfs based.

On the nfs dc:
1) I created a nfs export domain, and exported the VM template ( 
precreated) to my nfs export domain


2) I detached the export domain from nfs dc

On the localfs dc:
1) I attached the export domain to the localfs dc

2) When i select  export-domain on the Storage tab, under Details - 
template-import, i see the
template, but i don't see any option of import there.  Basically cannot 
import the template.


3) When i go to Template tab, the template is seen, but under Cluster 
column, it still shows
the nfs-cluster to which it belongs, not to the localfs cluster. When i 
try to edit the template,
it does not allow me to select the DC, its disabled/greyed and stays as 
nfs-dc. So even if the template

is seen under localfs dc, i cannot use it to create a VM

4) When i try to create a new server / desktop VM, only when i select 
nfsdc, i get the option of selecting my template, if i select localfs 
dc, my template is not seen in the drop down box


So unable to use the template to create a new VM in the destination dc.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Q on ovirt datacentre and host storage types

2012-02-29 Thread Deepak C Shetty

Hi, got few basic Qs in my mind. Appreciate a response.

1) Why is it that the data domains must be of the same type as that of 
datacentre ? What is the goal behind having
this constraint ? It seems useful to have a datacentre w/o having any 
storage restrictions.. i should be able to add
hosts w/o worrying abt the storage types... why is it not so... looking 
to understand the reason behind this design

decision.

2) If i have a set of host systems all connected to shared FC storage, 
is there a way for me to configure LUNs
exclusively for each host, meaning have ability to control what LUN each 
hosts sees ? Can this be done using oVirt today ? My understanding is 
that this cannot be done via ovirt, zoning of LUNs to host has to be 
done separately and not via ovirt, is that correct ?


3) If i have to create and run 1000 VMs (say), how can i automate that 
using ovirt, what is the best way to do that ?


thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] How to configure sharedFS ?

2012-02-29 Thread Deepak C Shetty

On 02/29/2012 08:06 PM, Dan Kenigsberg wrote:

On Wed, Feb 29, 2012 at 07:42:15PM +0530, Deepak C Shetty wrote:

On 02/27/2012 04:55 AM, Ayal Baron wrote:

Any help on documenting this so people would not have to dig into the code 
would be greatly appreciated.


Great, let me start and get back if i land up into issues.
thanks for the pointer.

Let us know if you need further assistance..

This is how I plan to attack it... using vdscli, let me know if my
steps are correct ?

1) Use createStorageDomain to create a SHAREDFS_DOMAIN of domTypes
data  iso
2) Use  createStoragePool and associate the above sd's with this pool.
3) How to copy .iso into the newly create iso dom ?
engine-iso-uploader won't know abt it, rite ?

I would've used `cp` (chown to make sure vdsm can read it when needed).

engine-iso-uploader create the needed dir structure (metadata, images, 
dom_md etc)
and put the .iso in the right dir. Using `cp` I will have to do that 
myself, rite ?

4) create a volume to represent my vm disk
5) Use create to create a VM and run it

Is this the recommended way ( to use individual vdscli cmds) or the
way its done in
http://www.ovirt.org/wiki/Vdsm_Standalone ?


For human-triggered setup, running vdsClient from bash may be easier.
But the suggested python script is expected to take you slightly further
on the road to reproducible testable application on top of Vdsm.

If you have that python script working for LOCALFS, I'd suggest you try
making it work for SHAREDFS too.



Thanks, will try using the python script itself. When i use the script
and create LOCALFS (and SHAREDFS in future) will these domains
and hence VMs created on top of these domains be visible and manageable
from OE side ?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Remove and Add host does not work

2012-02-28 Thread Deepak C Shetty

Hi,
I had a host managed via OE, completely working fine. Was even able 
to create and run VMs off it.
I tried removing the host from the OE (put host into maint. mode and 
then remove) and when i re-discover

the same host, OE just keeps seeing it as Non-responsive.

I am able to ssh into the host and see that none of the vdsm processes 
have been started.
I tried doing Confirm host has been rebooted on the OE, did not help. 
I tried putting

host into maint. mode and re-activating the host, just doesn't help

I waited for ~45 mins thinking OE might connect to the host, start vdsm 
and get me the Up status

but it failed.

Do i need to manually start vdsm in such a scenario on the host ?
Are there ways or methods to have OE forcibly start vdsm on the host ?

thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [vdsm] Remove and Add host does not work

2012-02-28 Thread Deepak C Shetty

On 02/28/2012 06:46 PM, Itamar Heim wrote:

On 02/28/2012 02:48 PM, Deepak C Shetty wrote:

Hi,
I had a host managed via OE, completely working fine. Was even able to
create and run VMs off it.
I tried removing the host from the OE (put host into maint. mode and
then remove) and when i re-discover
the same host, OE just keeps seeing it as Non-responsive.


what do you mean by re-discover?



I just meant that i removed the host and re-added it by selecting New 
on the Hosts tab

and putting the IP and hostname.



I am able to ssh into the host and see that none of the vdsm processes
have been started.
I tried doing Confirm host has been rebooted on the OE, did not help.
I tried putting
host into maint. mode and re-activating the host, just doesn't help


did you do any change to the host?
just removing it from engine shouldn't cause vdsm to know/care and 
should work just like before.




Nothing changed on the host. In fact when i removed and added the host back
it says everything is installed so does nothing but reboots the host, 
post reboot
vdsm does not start automatically and host status is non-responsive 
on OE




I waited for ~45 mins thinking OE might connect to the host, start vdsm
and get me the Up status
but it failed.

Do i need to manually start vdsm in such a scenario on the host ?
Are there ways or methods to have OE forcibly start vdsm on the host ?

thanx,
deepak

___
vdsm-devel mailing list
vdsm-de...@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/vdsm-devel





___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [vdsm] Remove and Add host does not work

2012-02-28 Thread Deepak C Shetty

On 02/28/2012 07:11 PM, Itamar Heim wrote:

On 02/28/2012 03:31 PM, Deepak C Shetty wrote:

On 02/28/2012 06:57 PM, Itamar Heim wrote:

On 02/28/2012 03:22 PM, Deepak C Shetty wrote:

On 02/28/2012 06:46 PM, Itamar Heim wrote:

On 02/28/2012 02:48 PM, Deepak C Shetty wrote:

Hi,
I had a host managed via OE, completely working fine. Was even 
able to

create and run VMs off it.
I tried removing the host from the OE (put host into maint. mode and
then remove) and when i re-discover
the same host, OE just keeps seeing it as Non-responsive.


what do you mean by re-discover?



I just meant that i removed the host and re-added it by selecting 
New

on the Hosts tab
and putting the IP and hostname.



I am able to ssh into the host and see that none of the vdsm 
processes

have been started.
I tried doing Confirm host has been rebooted on the OE, did not
help.
I tried putting
host into maint. mode and re-activating the host, just doesn't help


did you do any change to the host?
just removing it from engine shouldn't cause vdsm to know/care and
should work just like before.



Nothing changed on the host. In fact when i removed and added the
host back
it says everything is installed so does nothing but reboots the host,
post reboot
vdsm does not start automatically and host status is 
non-responsive

on OE


if vdsm does not start, OE is correct...
does vdsm try to start and fails (and if so, log excerpt?)


Right, but I dont see any traces of vdsm trying to start. Nothing in the
vdsm.log
thats relevant to this. I just did chkconfig --list and don't see vdsmd
in that, could
that be the reason.

On the host I manually did `service vdsmd restart` and then everythign
works
fine.







you are basically saying re-installing a host causes vdsm to not 
start by default.
reproducing this again to make sure and opening a bug seems the right 
course.
trying to trace the install flow to provide root cause or even a patch 
would help more to fix this


Are you saying that vdsmd service should start by default post reboot 
and its entry

should be listed as part of chkconfig --list ?


Found this examining the vds bootstrap complete py log

2012-02-28 23:45:32,022 DEBUGdeployUtil 707 _updateFileLine: return: 
True

2012-02-28 23:45:32,022 DEBUGdeployUtil 228 setVdsConf: ended.
2012-02-28 23:45:32,022 DEBUGdeployUtil 103 ['/bin/systemctl', 
'reconfigure', 'vdsmd.service']

2012-02-28 23:45:32,026 DEBUGdeployUtil 107
2012-02-28 23:45:32,026 DEBUGdeployUtil 108 Unknown operation 
reconfigure


2012-02-28 23:45:32,026 DEBUGdeployUtil 103 ['/sbin/reboot']
2012-02-28 23:45:32,325 DEBUGdeployUtil 107



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] [vdsm] Remove and Add host does not work

2012-02-28 Thread Deepak C Shetty

On 02/28/2012 10:38 PM, Douglas Landgraf wrote:

On 02/28/2012 11:01 AM, Douglas Landgraf wrote:

On 02/28/2012 08:49 AM, Deepak C Shetty wrote:

On 02/28/2012 07:11 PM, Itamar Heim wrote:

On 02/28/2012 03:31 PM, Deepak C Shetty wrote:

On 02/28/2012 06:57 PM, Itamar Heim wrote:

On 02/28/2012 03:22 PM, Deepak C Shetty wrote:

On 02/28/2012 06:46 PM, Itamar Heim wrote:

On 02/28/2012 02:48 PM, Deepak C Shetty wrote:

Hi,
I had a host managed via OE, completely working fine. Was even 
able to

create and run VMs off it.
I tried removing the host from the OE (put host into maint. 
mode and

then remove) and when i re-discover
the same host, OE just keeps seeing it as Non-responsive.


what do you mean by re-discover?



I just meant that i removed the host and re-added it by 
selecting New

on the Hosts tab
and putting the IP and hostname.



I am able to ssh into the host and see that none of the vdsm 
processes

have been started.
I tried doing Confirm host has been rebooted on the OE, did not
help.
I tried putting
host into maint. mode and re-activating the host, just doesn't 
help


did you do any change to the host?
just removing it from engine shouldn't cause vdsm to know/care and
should work just like before.



Nothing changed on the host. In fact when i removed and added the
host back
it says everything is installed so does nothing but reboots the 
host,

post reboot
vdsm does not start automatically and host status is 
non-responsive

on OE


if vdsm does not start, OE is correct...
does vdsm try to start and fails (and if so, log excerpt?)


Right, but I dont see any traces of vdsm trying to start. Nothing 
in the

vdsm.log
thats relevant to this. I just did chkconfig --list and don't see 
vdsmd

in that, could
that be the reason.

On the host I manually did `service vdsmd restart` and then 
everythign

works
fine.







you are basically saying re-installing a host causes vdsm to not 
start by default.
reproducing this again to make sure and opening a bug seems the 
right course.
trying to trace the install flow to provide root cause or even a 
patch would help more to fix this


Are you saying that vdsmd service should start by default post 
reboot and its entry

should be listed as part of chkconfig --list ?


vdsm uses systemd.
http://fedoraproject.org/wiki/SysVinit_to_Systemd_Cheatsheet

Try to use chkconfig vdsm on, you will see a wrapper to systemd command.


Found this examining the vds bootstrap complete py log

2012-02-28 23:45:32,022 DEBUGdeployUtil 707 _updateFileLine: 
return: True

2012-02-28 23:45:32,022 DEBUGdeployUtil 228 setVdsConf: ended.
2012-02-28 23:45:32,022 DEBUGdeployUtil 103 ['/bin/systemctl', 
'reconfigure', 'vdsmd.service']

2012-02-28 23:45:32,026 DEBUGdeployUtil 107
2012-02-28 23:45:32,026 DEBUGdeployUtil 108 Unknown operation 
reconfigure


2012-02-28 23:45:32,026 DEBUGdeployUtil 103 ['/sbin/reboot']
2012-02-28 23:45:32,325 DEBUGdeployUtil 107


Which vdsm version are you using? If I am not wrong, I remember to 
see a patch for this report.. /me going to check..




From vdsm.spec:
===
* Sun Feb  5 2012 Dan Kenigsberg dan...@redhat.com - 4.9.3.3-0.fc16
snip
- BZ#773371 call `vdsmd reconfigure` after bootstrap
snip



Thanks douglas, I am on a bit older version of vdsm and can't readily update
as my lab system is not directly connected to the internet. So until i 
update,

'guess i will have to live with manual vdsmd restart.


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Uploaded ISO file doesn't show up in admin portal

2012-02-24 Thread Deepak C Shetty

Terry,
Did you try the getsebool and setsebool options I provided, just 
checking if u happened

to miss that mail ?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Problems attaching ISO Domain to second dc

2012-02-24 Thread Deepak C Shetty

On 02/24/2012 09:57 PM, Itamar Heim wrote:

On 02/24/2012 02:52 PM, Deepak C Shetty wrote:

On 02/23/2012 06:21 PM, Deepak C Shetty wrote:

Hi,
I had one iso domain attached to a DC (nfs based).
I had second DC (fc based) and wanted to share the same iso domain as
above.

When i tried to attach the same ISO domain to the fc dc, it failed and
all the other
storage domains (data and master, nfs based) present in the nfs dc,
went down/inactive.

for some time i could see the status as Contend ( dont remember if
it was against the
storage domains or dc overall)

ISO storage domains (backed by nfs) should be able to be attached to
more than 1
dc.. but it failed for me... what could be the reason ?



Hello, Is attaching 1 ISO to multiple DC's supported or not ?


supported

So i have 2 dc's NFS and FC based, i have a iso domain ( backed by nfs) 
currently attached
to NFS dc, but when i try to attach the same iso domain to fc dc, it 
appears on the UI , with Locked
as status for a while and then dissapears... is there something that i 
am missing ?


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] How to peek inside the XML-RPC

2012-02-21 Thread Deepak C Shetty

Hi,
Asking this on both the ovirt and vdsm mailing lists.

What is the right way to get a debug output or dump of the XML-RPC
that is being sent between ovirt and vdsm, either from the ovirt side
and/or from the vdsm side ?

Is there any way of dumping the xml-rpc being sent between ovirt-vdsm

Any pointers appreciated.

thanx,
deepak

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] ovirt VM start fails - Perm Denied error

2012-02-14 Thread Deepak C Shetty

On 02/14/2012 02:55 PM, Dan Kenigsberg wrote:

On Tue, Feb 14, 2012 at 10:36:39AM +0530, Deepak C Shetty wrote:

On 02/13/2012 03:16 PM, Dan Kenigsberg wrote:

On Sun, Feb 12, 2012 at 11:58:05PM +0530, Deepak C Shetty wrote:

Hi,
I have tried this multiple times and i hit the same error.

I have 3 storage domains  created (iso, data and export) all
connected to the DC with DC status as Up and
1 host with status as Up and the same (only) host acting as SPM.

I used the engine-iso-uploader utility to upload my .iso to the iso domain.
Created a new VM and attached a vdisk of type sparse (thin-prov) and
click on Run Once,
where i select Attach CD and select my .iso, and change boot order
to boot from CD, then disk.

But i get this error...

VM first-ovirt-vm is down. Exit message internal error process
exited while connecting to monitor: qemu-kvm: -drive 
file=/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw:
could not open disk image 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso:
Permission denied .

I am unable to figure out why.. bcos the user.group perms for the
.iso are fine.
In fact i logged into the system serving the nfs share and added 0777 perms
still i get the same error. Here is the snip of how the perms for
.iso look like...

ll 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. 1 vdsm kvm 3757047808 Feb 13 04:24 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso

would you try `ls -lZ` ? Does your /var/log/audit/audit.log shows an
selinux problem? What's `getenforce`? And `getsebool virt_use_nfs`?

Hi Dan,
 Thanks for the hint, after setting virt_use_nfs, it worked for me.
Strangely VDSM should have set it, not sure why it didn't.

I suppose this is related to the fact that your `semanage` hangs. Please
help us understand why.


Hello Dan,
This is what strace dumped, when i attached to the semanage process.
Note that i am only pasting the last few lines.. as the dump was large...
Let me know if you need to entire dump...

write(6, /usr/share/system-config-netboot..., 89) = 89
write(6, /usr/share/system-config-soundca..., 89) = 89
write(6, /usr/share/system-config-kdump/s..., 103) = 103
write(6, /usr/share/system-config-selinux..., 104) = 104
write(6, /usr/share/system-config-rootpas..., 95) = 95
write(6, /usr/share/system-config-securit..., 101) = 101
write(6, /usr/share/system-config-service..., 109) = 109
read(5, , 4096)   = 0
close(5)= 0
munmap(0x7f8291b3d000, 4096)= 0
close(6)= 0
close(7)= 0
open(/etc/selinux/targeted/modules/tmp/seusers.final, 
O_WRONLY|O_CREAT|O_TRUNC, 0600) = 5

write(5, system_u:system_u:s0-s0:c0.c1023..., 106) = 106
close(5)= 0
open(/etc/selinux/targeted/modules/tmp/users_extra, 
O_WRONLY|O_CREAT|O_TRUNC, 0600) = 5

write(5, user user_u prefix user;\nuser st..., 101) = 101
close(5)= 0
open(/etc/selinux/targeted/modules/tmp/netfilter_contexts, 
O_WRONLY|O_CREAT|O_TRUNC, 0600) = 5

write(5, , 0) = 0
close(5)= 0



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] ovirt VM start fails - Perm Denied error

2012-02-13 Thread Deepak C Shetty

On 02/13/2012 03:16 PM, Dan Kenigsberg wrote:

On Sun, Feb 12, 2012 at 11:58:05PM +0530, Deepak C Shetty wrote:

Hi,
I have tried this multiple times and i hit the same error.

I have 3 storage domains  created (iso, data and export) all
connected to the DC with DC status as Up and
1 host with status as Up and the same (only) host acting as SPM.

I used the engine-iso-uploader utility to upload my .iso to the iso domain.
Created a new VM and attached a vdisk of type sparse (thin-prov) and
click on Run Once,
where i select Attach CD and select my .iso, and change boot order
to boot from CD, then disk.

But i get this error...

VM first-ovirt-vm is down. Exit message internal error process
exited while connecting to monitor: qemu-kvm: -drive 
file=/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw:
could not open disk image 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso:
Permission denied .

I am unable to figure out why.. bcos the user.group perms for the
.iso are fine.
In fact i logged into the system serving the nfs share and added 0777 perms
still i get the same error. Here is the snip of how the perms for
.iso look like...

ll 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. 1 vdsm kvm 3757047808 Feb 13 04:24 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso

would you try `ls -lZ` ? Does your /var/log/audit/audit.log shows an
selinux problem? What's `getenforce`? And `getsebool virt_use_nfs`?

What is `groups qemu`?
Does
su - qemu -s /bin/bash -c 'strings your.iso'
work for you?

Regards,
Dan.




Hello Dan,
Here is the output you requested...

[root@llm56 ~]# ls -lZ 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. vdsm kvm system_u:object_r:nfs_t:s0   
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso


[root@llm56 ~]# getenforce
Enforcing

[root@llm56 ~]# getsebool virt_use_nfs
virt_use_nfs -- off

[root@llm56 ~]# groups qemu
qemu : qemu kvm

Also `su - qemu -s /bin/bash -c 'strings your.iso'`

worked for me.. dumped loads of strings on the screen.

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Hey using NFS as my main datastore

2012-02-13 Thread Deepak C Shetty

On 02/10/2012 03:28 AM, Douglas Landgraf wrote:

Hi Dominic,

On 02/09/2012 01:49 PM, Dominic Kaiser wrote:
So I have fixed it!  Thanks Itamar!  It was chown -R 36:36 /path to 
my shared folder.  I should have looked at the ovirt wiki also: 
http://www.ovirt.org/wiki/Troubleshooting_NFS_Storage_Issues.  So all 
NFS shares up and my virtual servers are starting.


Hi Dominic,
I had the same perm denied issue even after having all the 
user.group stuff right.

It ended up as VDSM not setting the selinux policy.
It went away for me after running `setsebool virt_use_nfs 1`
Strangely, this is not mentioned in the above troubleshooting 
guide/link, let me see if i can add it.


Nice! Next time something similar happens, you might want to try 
nfs-check script:
http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=commitdiff;h=578cfe90239d5c3f6f11f1fc063c148606e991dc 



Thanks!



Hi Doug,
I saw the script, it just gives a hint to check selinux booleans, 
but doesn't go into specific
as to which booleans need to be set. Is there any other place in the 
ovirt wiki where
the selinux booleans are mentioned so that users can map it to their 
setup and make

changes accordingly to match it as mentioned in the wiki ?

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] ovirt VM start fails - Perm Denied error

2012-02-13 Thread Deepak C Shetty

On 02/13/2012 08:10 PM, Dan Kenigsberg wrote:

On Mon, Feb 13, 2012 at 08:57:23AM -0500, Keith Robertson wrote:

On 02/13/2012 08:33 AM, Deepak C Shetty wrote:

On 02/13/2012 03:16 PM, Dan Kenigsberg wrote:

On Sun, Feb 12, 2012 at 11:58:05PM +0530, Deepak C Shetty wrote:

Hi,
I have tried this multiple times and i hit the same error.

I have 3 storage domains  created (iso, data and export) all
connected to the DC with DC status as Up and
1 host with status as Up and the same (only) host acting as SPM.

I used the engine-iso-uploader utility to upload my .iso to
the iso domain.
Created a new VM and attached a vdisk of type sparse (thin-prov) and
click on Run Once,
where i select Attach CD and select my .iso, and change boot order
to boot from CD, then disk.

But i get this error...

VM first-ovirt-vm is down. Exit message internal error process
exited while connecting to monitor: qemu-kvm: -drive 
file=/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw:
could not open disk image 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso:
Permission denied .

I am unable to figure out why.. bcos the user.group perms for the
.iso are fine.
In fact i logged into the system serving the nfs share and
added 0777 perms
still i get the same error. Here is the snip of how the perms for
.iso look like...

ll 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. 1 vdsm kvm 3757047808 Feb 13 04:24 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso

would you try `ls -lZ` ? Does your /var/log/audit/audit.log shows an
selinux problem? What's `getenforce`? And `getsebool virt_use_nfs`?

What is `groups qemu`?
Does
su - qemu -s /bin/bash -c 'strings your.iso'
work for you?

Regards,
Dan.



Hello Dan,
Here is the output you requested...

[root@llm56 ~]# ls -lZ 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. vdsm kvm system_u:object_r:nfs_t:s0   
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso

[root@llm56 ~]# getenforce
Enforcing

[root@llm56 ~]# getsebool virt_use_nfs
virt_use_nfs --  off

Vdsm SHOULD configure this to on when it first starts, by running

 /usr/sbin/semanage  boolean -m -S targeted -F /dev/stdin  _EOF
virt_use_nfs=1
_EOF

This hangs... tho' i see the below msgs in /var/log/messages...

Feb 14 17:39:58 llm56 dbus[1170]: avc:  received policyload notice (seqno=5)
Feb 14 17:39:58 llm56 setsebool: The virt_use_nfs policy boolean was 
changed to 1 by root

Feb 14 17:39:58 llm56 dbus[1170]: [system] Reloaded configuration
Feb 14 17:39:58 llm56 dbus-daemon[1170]: dbus[1170]: avc:  received 
policyload notice (seqno=5)
Feb 14 17:39:58 llm56 dbus-daemon[1170]: dbus[1170]: [system] Reloaded 
configuration


I had to kill this from anotehr session, but using setsebool 
virt_use_nfs 1 worked for me.




/usr/sbin/setsebool virt_use_nfs on

Please try running this as root to understand why it failed. qemu cannot
use NFS when this is off and selinux is enforcing


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] ovirt VM start fails - Perm Denied error

2012-02-12 Thread Deepak C Shetty

Hi,
   I have tried this multiple times and i hit the same error.

I have 3 storage domains  created (iso, data and export) all connected 
to the DC with DC status as Up and

1 host with status as Up and the same (only) host acting as SPM.

I used the engine-iso-uploader utility to upload my .iso to the iso domain.
Created a new VM and attached a vdisk of type sparse (thin-prov) and 
click on Run Once,
where i select Attach CD and select my .iso, and change boot order to 
boot from CD, then disk.


But i get this error...

VM first-ovirt-vm is down. Exit message internal error process exited 
while connecting to monitor: qemu-kvm: -drive 
file=/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw: 
could not open disk image 
/rhev/data-center/4087fea7-b54a-4318-8d5c-828eff8846f4/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso: 
Permission denied .


I am unable to figure out why.. bcos the user.group perms for the .iso 
are fine.

In fact i logged into the system serving the nfs share and added 0777 perms
still i get the same error. Here is the snip of how the perms for .iso 
look like...


ll 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso
-rwxr-xr-x. 1 vdsm kvm 3757047808 Feb 13 04:24 
/tmp/iso1-domain/35f880f8-bd0c-4063-b171-2ddaa59e1212/images/----/Fedora-16-x86_64-DVD.iso


Here are some of the imp. logs from the engine.log... note that i tried 
multiple times, so there are multiple

entries of ERRORs for each of those tries...

2012-02-13 05:10:04,563 INFO  
[org.ovirt.engine.core.vdsbroker.UpdateVdsDynamicDataVDSCommand] 
(pool-5-thread-47) FINISH, UpdateVdsDynamicDataVDSCommand, log id: 549dfc2f
2012-02-13 05:10:04,612 INFO  
[org.ovirt.engine.core.bll.RunVmOnceCommand] (pool-5-thread-47) Running 
command: RunVmOnceCommand internal: false. Entities affected :  ID: 
c587bc8e-f800-4ce4-a35e-1dd43480cb58 Type: VM
2012-02-13 05:10:04,617 ERROR [org.ovirt.engine.core.bll.RunVmCommand] 
(pool-5-thread-47) Cant find VDS to run the VM 
c587bc8e-f800-4ce4-a35e-1dd43480cb58 on, so this VM will not be run.
2012-02-13 05:10:04,622 ERROR 
[org.ovirt.engine.core.bll.RunVmOnceCommand] (pool-5-thread-47) 
Transaction rolled-back for command: 
org.ovirt.engine.core.bll.RunVmOnceCommand.
2012-02-13 05:11:25,735 INFO  
[org.ovirt.engine.core.bll.DbUserCacheManager] 
(QuartzScheduler_Worker-10) DbUserCacheManager::refreshAllUserData() - 
entered
2012-02-13 05:11:52,648 WARN  
[org.ovirt.engine.core.bll.GetConfigurationValueQuery] 
(http--0.0.0.0-8080-1) calling GetConfigurationValueQuery with null 
version, using default general for version
2012-02-13 05:11:52,791 WARN  
[org.ovirt.engine.core.bll.GetConfigurationValueQuery] 
(http--0.0.0.0-8080-2) calling GetConfigurationValueQuery with null 
version, using default general for version
2012-02-13 05:11:55,828 WARN  
[org.ovirt.engine.core.bll.GetConfigurationValueQuery] 
(http--0.0.0.0-8080-8) calling GetConfigurationValueQuery with null 
version, using default general for version
2012-02-13 05:11:56,917 WARN  
[org.ovirt.engine.core.bll.GetConfigurationValueQuery] 
(http--0.0.0.0-8080-2) calling GetConfigurationValueQuery with null 
version, using default general for version
2012-02-13 05:12:11,611 INFO  
[org.ovirt.engine.core.bll.UpdateVmCommand] (http--0.0.0.0-8080-10) 
Running command: UpdateVmCommand internal: false. Entities affected :  
ID: c587bc8e-f800-4ce4-a35e-1dd43480cb58 Type: VM
2012-02-13 05:12:11,617 INFO  
[org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] 
(http--0.0.0.0-8080-10) START, IsValidVDSCommand(storagePoolId = 
4087fea7-b54a-4318-8d5c-828eff8846f4, ignoreFailoverLimit = false, 
compatabilityVersion = null), log id: 247cacfc
2012-02-13 05:12:11,619 INFO  
[org.ovirt.engine.core.vdsbroker.irsbroker.IsValidVDSCommand] 
(http--0.0.0.0-8080-10) FINISH, IsValidVDSCommand, return: true, log id: 
247cacfc
2012-02-13 05:12:11,632 INFO  
[org.ovirt.engine.core.vdsbroker.irsbroker.UpdateVMVDSCommand] 
(http--0.0.0.0-8080-10) START, UpdateVMVDSCommand(storagePoolId = 
4087fea7-b54a-4318-8d5c-828eff8846f4, ignoreFailoverLimit = false, 
compatabilityVersion = null, storageDomainId = 
----, infoDictionary.size = 1), log id: 
1294a3c3
2012-02-13 05:12:11,904 INFO  
[org.ovirt.engine.core.vdsbroker.irsbroker.UpdateVMVDSCommand] 
(http--0.0.0.0-8080-10) FINISH, UpdateVMVDSCommand, log id: 1294a3c3
2012-02-13 05:12:23,502 INFO  
[org.ovirt.engine.core.vdsbroker.irsbroker.IsoPrefixVDSCommand] 
(http--0.0.0.0-8080-1) START, IsoPrefixVDSCommand(storagePoolId = 
4087fea7-b54a-4318-8d5c-828eff8846f4, ignoreFailoverLimit = false, 
compatabilityVersion = null), log id: 201b9bfd
2012-02-13