Re: [ovirt-users] How to return VM to Maunal Pool?

2014-07-22 Thread Omer Frenkel


- Original Message -
> From: "xiec fnst" 
> To: users@ovirt.org
> Sent: Wednesday, July 23, 2014 9:06:30 AM
> Subject: [ovirt-users] How to return VM to Maunal Pool?
> 
> 
> 
> Hi All:
> 
> 
> 
> Recently I am confused by how to take back the VMs in Maunal Pool assigned to
> User. In the admin guide manual there is only one sentense about it :
> 
> 
> 
> --
> 
> The administrator is responsible for explicitly returning the virtual machine
> to the pool
> 
> --
> 
> 
> 
> But I don't find how to return.
> 
> Does anybody find some useful way to do it?
> 

The admin need to remove the user permission from the vm:
in the webadmin, select the specific vm, go to the permissions sub-tab, remove 
the user permission.
i think vm needs to be down

> 
> 
> e.g.
> 
> this is my test about Manual Pool:
> 
> 
> 
> 
> 
> 1. a Manual Pool with one VM
> 
> 2. User-A / User-B (they all have priority to get VM in Pool)
> 
> 
> 
> when User-A get the VM, even User-A shutdown the VM after finish using,
> User-B still can't get VM.
> 
> 
> 
> 
> 
> ___
> 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: [ovirt-users] OVIRT single node/host install

2014-07-22 Thread Sandro Bonazzola
Il 13/07/2014 02:35, Rizwan Ashraf ha scritto:
> Greetings,
> 
> Been trying for a long time to install OVIRT 3.4.2 in a single 2U Server, 
> however OVIRT 3.4 requires 2 physical hosts.

Why do you need 2 physical hosts?
You can use a single host either by using ovirt-engine-setup-plugin-allinone or 
by using ovirt-hosted-engine-setup.
You can find more info about above type of setup in the wiki:
All-in-one:
 - http://www.ovirt.org/Feature/AllInOne
Hosted Engine:
 - http://www.ovirt.org/Features/Self_Hosted_Engine
 - http://www.ovirt.org/Hosted_Engine_Howto

> 
> Today tried to install OVIRT 3.5 nightly package, however All in one files 
> are missing to install OVIRT 3.5 in a single physical node.
> 
> Any help please?
> 
> Thank you,
> 
> Riz
> 
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt guest agent iso

2014-07-22 Thread Sandro Bonazzola
Il 14/07/2014 10:21, Tiemen Ruiten ha scritto:
> On 07/11/14 17:13, Bob Doolittle wrote:
>>
>> On 07/11/2014 11:12 AM, Bob Doolittle wrote:
>>> On 07/11/2014 10:55 AM, Tiemen Ruiten wrote:
 Hello,

 Is it possible/advisable to install the Windows Guest Agent tools 3.5
 ISO on a VM on a 3.4.2 oVirt cluster?
>>>
>>> Yes. I've done just that. Works great.
>>
>> Caveat - there was a bug related to not setting the Guest Agent to
>> autostart (at least for Windows 2008 R2). I think that's been fixed
>> but don't know if the fix has been pushed to the latest ISO yet.
>> Workaround - go into Services and change it from Manual to Automatic.
>>
>> -Bob
>>
> 
> Unfortunately, I get 'Unsupported Windows version' on Windows Server
> 2012 R2.
> 

Which release of the iso are you using?


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Misc architecture questions

2014-07-22 Thread Sandro Bonazzola
Il 23/07/2014 00:09, Itamar Heim ha scritto:
> On 07/17/2014 11:14 AM, Maël Lavault wrote:
>> Hi,
>>
>> I'm a student currently doing my final study project based around Ovirt.
>>
>> I played a lot with Ovirt to have an overview of what could or could not
>> be done, but I still have a few questions and stuff I want to clarify.
>>
>> My project consist of a HA architecture using Ovirt, powered by 8
>> reasonably powerful servers (4 x Quad core Opteron, 32Go RAM, 2x10k RPM
>> HDD) equipped with 2 NIC each.
>>
>> I followed this tutorial to use Ovirt with GlusterFS :
>>
>> http://community.redhat.com/blog/2014/05/ovirt-3-4-glusterized/
>>
>> Worked well !
>>
>> I installed 2 self hosted engine on 2 different servers and a GlusterFS
>> using 2 other servers.
>>
>> But since we had only 2 x 1Gb NIC per server, we decided to go with
>> bonding and VLAN to separate each networks inspired by this blog post :
>>
>> http://captainkvm.com/2013/04/maximizing-your-10gb-ethernet-in-rhev/
>>
>> Unfortunately, it seems like Ovirt 3.4 does not support installing
>> self-hosted engine on bond + vlan. I tried 3.5 but there were to much
>> bug to be usable and the project is set to be deployed in 2 months.
> 
> should be available via:
> http://gerrit.ovirt.org/#/c/29730/
> ?

Yes, it's available in 3.4.3[1]. However, looks like VDSM has some issue with 
the network [2][3]
So in order to use it you need to downgrade vdsm to previous version by calling
 # yum downgrade "vdsm*"
We're waiting a new build of vdsm packages fixing the issues.


[1] http://www.ovirt.org/OVirt_3.4.3_Release_Notes#oVirt_Hosted_Engine_Setup
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1121145
[3] https://bugzilla.redhat.com/show_bug.cgi?id=1121643

> 
>>
>> A colleague suggested me a workaround using OpenvSwitch between Ovirt
>> and NIC bond to "translate tagged packet into non tagged packet" and
>> hide the bond from Ovirt. Does this have a chance to work ?
>>
>> Since the GlusterFS is accessed by NFS, I was able to bond the two
>> servers.
>>
>> A few questions :
>>
>> - What is the purpose of ovirtmgmt network ? I did a lot of search by
>> haven't found any clear explanation. Does it need to be publicly
>> accessible or a private ip is fine too ?
> 
> just what engine used to communicate to hosts.
> also, by default, the display network and vm network.
> 
>>
>> - Is the display network used for SPICE/VNC connection ?
> 
> yes.
> 
>>
>> - How do Ovirt differentiate VM network from a storage network ? They
>> both have the same vm role in the interface. Both networks could
>> (should) be on private ip range right ?
> 
> that depends on you deploying them on different networks?
> 
>>
>> - How can I add the storage network after (or before, would be better)
>> self hosted engine is installed ? (Since self hosted engine is stored on
>> Gluster, I will loose connection to the engine)
> 
> configure it on host B. move hosted engine to host B. configure it on host A?
> 
>>
>> - Using self hosted engine, does all my nodes need to be installed with
>> hosted-engine --deploy, or can I have only 2 self hosted engine nodes
>> and 4 classic nodes ?
> 
> you can have 2 self hosted and 50 classic nodes as well.
> no need to match hosted engine to the entire cluster (nor is hosted engine 
> tested with being deployed on 50 hosts...)
> 
>>
>> - I'm trying to cleanly re-install the second hosted engine after some
>> experiments, but the behavior is strange :
>>
>> [ INFO  ] Stage: Transaction commit
>> [ INFO  ] Stage: Closing up
>>To continue make a selection from the options below:
>>(1) Continue setup - engine installation is complete
>>(2) Power off and restart the VM
>>(3) Abort setup
>> Isn't this supposed to give me information to connect to the vm so i can
>> install the engine ?
>
> sandro/didi?

if this is the install on the second host, you can just answer 1 and go on.
We've a bug opened [4] about this issue, setup should assume here that the 
engine is up and running without any question.

[4] https://bugzilla.redhat.com/show_bug.cgi?id=1106561


> 
> 
> 
>>
>> Thanks a lot for this truly well made software !
> 
> thank you for using it.

thank you for using it.

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


-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] How to return VM to Maunal Pool?

2014-07-22 Thread xiec.f...@cn.fujitsu.com
Hi All:

Recently I am confused by how to take back the VMs in Maunal Pool assigned to 
User. In the admin guide manual there is only one sentense about it :

--
The administrator is responsible for explicitly returning the virtual machine 
to the pool
--

But I don't find how to return.
Does anybody find some useful way to do it?

e.g.
this is my test about Manual Pool:


1. a Manual Pool with one VM
2. User-A / User-B (they all have priority to get VM in Pool)

when User-A get the VM, even User-A shutdown the VM after finish using, User-B 
still can't get VM.


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


Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread Sandro Bonazzola
Il 22/07/2014 22:46, Itamar Heim ha scritto:
> On 07/22/2014 07:55 PM, Chris Adams wrote:
>> Once upon a time, Chris Adams  said:
>>> Once upon a time, ybronhei  said:
 On 07/21/2014 01:45 AM, Jorick Astrego wrote:
> Hi,
>
> Some more info, I think this is the problem and I also have it on the
> node image:
>
> Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
> /etc/libvirt/passwd.db: No such file or directory
>
 Hey

 Did you check if libvirtd services is up?
 can you share libvirtd.conf file?
 I'm not sure what is exactly the issue, but you can try "vdsm-tool
 configure --module libvirt" command to see if you set the vdsm
 configuration for libvirt as required.
>>>
>>> I see the same thing with a new 3.5-beta install.  libvirtd is running;
>>> I ran the above vdsm-tool command, but that made no difference.
>>
>> The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py
>> (from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2
>> to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.
>>
>> I fixed that and manually set the password (and fixed the ovirt-ha* init
>> scripts), but still can't deploy a 3.5-beta hosted engine.  When
>> configuring the management bridge, it leaves the interface down (both
>> the bridge and the underlying interface); I brought them back up, but
>> the setup then hits this:
>>
>> [ INFO  ] Verifying sanlock lockspace initialization
>> [ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such 
>> file or directory
>>
>> I see this in the setup log:
>>
>> 
>> 2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method 
>> exception
>> Traceback (most recent call last):
>>File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in 
>> _executeMethod
>>  method['method']()
>>File 
>> "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py",
>>  line 163, in _misc
>>  lockspace + '.metadata': md_size,
>>File 
>> "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
>>  line 336, in create
>>  service_size=size)
>>File 
>> "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
>>  line 268, in create_volume
>>  raise RuntimeError(response["status"]["message"])
>> RuntimeError: [Errno 2] No such file or directory
>> 2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to 
>> execute stage 'Misc configuration': [Errno 2] No such file or directory
>> 
>>
>> Not sure what is happening there.
>>
> 
> is there a bug to track this?

Not sure, but it's already fixed in 3.4.3 GA, so it should also be fixed in 
today second beta build and in nightly snapshots.



-- 
Sandro Bonazzola
Better technology. Faster innovation. Powered by community collaboration.
See how it works at redhat.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Guest VM Console Creation/Access using REST API and noVNC

2014-07-22 Thread Shanil S
Hi Michal,

We are using 3.4.3 and we are able to access the console from the ovirt
panel. We don't want to use the ovirt engine portal for the webUI, we want
to use our own portal for user interface. We have installed websocket proxy
on the ovirt engine server and now we want to access the VM console from
our portal. How we can achieve this ? it is found that there is no direct
api function to create console, so how we can create console using our own
portal ?


-- 
Regards
Shanil


On Tue, Jul 22, 2014 at 7:15 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On Jul 22, 2014, at 13:34 , Shanil S  wrote:
>
> > Hi Michal,
> >
> > Thanks for your updates.
> >
> > I am unable to view the above post
> https://bugzilla.redhat.com/show_bug.cgi?id=838468 and getting an access
> denied error. I don't have the login to this, could you please paste the
> content here ?
>
> should be fixed now, sorry. try again
> NoVncImpl.java in review 13931 should explain some things… (or Franta can,
> if something's not clear:-)
>
> >
> >
> > --
> > Regards
> > Shanil
> >
> >
> > On Tue, Jul 22, 2014 at 12:53 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
> >
> > On 22 Jul 2014, at 09:02, Punit Dambiwal wrote:
> >
> >> Hi Michal,
> >>
> >> We want to access vm console by using noVNC and Rest api. We are using
> websocket proxy on the same machine where engine runs and we try to get the
> console access from the another server that is outside from this cluster.
> >>
> >> But when we try to connect the vnc_auto.html from the server using host
> ip, port and the password which we get from the ticket creation… it shows a
> Failed to connect to server (code: 1006).
> >
> > Hi Punit,
> > did you read about the modification we did for the noVNC package?
> http://www.ovirt.org/Features/noVNC_console
> >
> >
> >>
> >> The following are the codes which we use to create the ticket…
> host,port and the password will get from the ticket and with the same
> details (host,port & password) we are able to connect the console using the
> vnc clients(TigerVNC etc.)
> >
> > you mean the "ticket" call? that returns you the direct connection
> information
> > but you want to connect to websocket proxy(to engine:6100 indeed) and
> pass the above information as an signed encoded url path (where to connect
> to from proxy)
> > check https://bugzilla.redhat.com/show_bug.cgi?id=838468 and associated
> patches to see how it is being encoded
> >
> > Thanks,
> > michal
> >
> >>
> >> try {
> >> var host = WebUtil.getQueryVar('host', ' $host?>');
> >> var port = WebUtil.getQueryVar('port', ' $port?>');
> >>   var path = WebUtil.getQueryVar('path', 'websockify');
> >>
> >>   var password = '';
> >>
> >> if ((!host) || (!port)) {
> >> updateState('failed',
> >> "Must specify host and port in URL");
> >> return;
> >> }
> >>
> >> rfb = new RFB({'target':   $D('noVNC_canvas'),
> >>'encrypt':
>  WebUtil.getQueryVar('encrypt',
> >>
> >>  (window.location.protocol === "https:")),
> >>'true_color':
> WebUtil.getQueryVar('true_color', true),
> >>'local_cursor':
> WebUtil.getQueryVar('cursor', true),
> >>'shared':
> WebUtil.getQueryVar('shared', true),
> >>'view_only':
>  WebUtil.getQueryVar('view_only', false),
> >>'updateState':  updateState,
> >>'onPasswordRequired':  passwordRequired});
> >>rfb.connect(host, port, password, path);
> >> }catch(e) {alert(e);
> >>
> >>
> >> Could you please check if there any issues with it and guide me how to
> get rid of this failed to connect error?
> >>
> >> I have attached the screen shots for further reference…
> >>
> >> Thanks,
> >> Punit
> >>
> >>
> >>
> >> On Tue, Jul 22, 2014 at 2:54 PM, Shanil S 
> wrote:
> >> Hi All,
> >>
> >> We already updated with the logs and the clear picture about the issue.
> >>
> >> --
> >> Regards
> >> Shanil
> >>
> >>
> >> On Mon, Jul 21, 2014 at 5:54 PM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
> >>
> >> On Jul 21, 2014, at 04:33 , Punit Dambiwal  wrote:
> >>
> >> > Hi All,
> >> >
> >> > I am still waiting for the updates...is there any one have the clue
> to solve this problem ???
> >>
> >> Hi Punit,
> >> I'm afraid no one can help you  debug connectivity issues remotely,
> without describing precisely what are you doing and how, and include all
> the logs
> >>
> >> Thanks,
> >> michal
> >>
> >> >
> >> > Thanks,
> >> > Punit
> >> >
> >> >
> >> > On Fri, Jul 18, 2014 at 12:37 PM, Punit Dambiwal 
> wrote:
> >> > Hi All,
> >> >
> >> > We are also struggling with the same problemcan anybody mind to
> update here the resolution or suggest us the way to get rid of this "Failed
>

Re: [ovirt-users] Can we debug some truths/myths/facts about hosted-engine and gluster?

2014-07-22 Thread Jason Brooks


> > > RE your bug, what do you use for a mount point for the nfs storage?
> >
> > In the log you attached to your bug, it looks like you're using localhost
> as
> > the nfs mount point. I use a dns name that resolves to the virtual IP
> hosted
> > by ctdb. So, you're only ever talking to one nfs server at a time, and
> failover
> > between the nfs hosts is handled by ctdb.
> 
> I also tried your setup, but hit other complications. I used localhost
> ​in an old setup, ​
> previously as I was under the assumption when accessing anything gluster
> related,
> ​ the connection point only provides the volume info and you connect to any
> server in the volume group.​

As I understand it, with Gluster's nfs, the server you mount is the
only one you're accessing directly, which is why you need to use something 
else to distribute the load, like round robin dns, with gluster's nfs.

> 
> >
> > Anyway, like I said, my main testing rig is now using this configuration,
> > help me try and break it. :)
> 
> rm -rf /
> 
> Jokes aside, are you able to reboot a server without losing the VM ?
> ​ My experience with ctdb (based on your blog) was even with the
> "floating/virtual IP" it wasn't fast enough, or something in the gluster
> layer delayed the failover. Either way, the VM goes into paused state and
> can't be resumed.​

I have rebooted my hosts without issue. If I want to reboot the host
that's serving the nfs storage, I've stopped ctdb first on that host, 
to make it hand off the nfs -- I've done this out of caution, but I
should try just pulling the plug, too.

The main source of VM pausing I've seen is when you have two nodes, one
goes down, and the gluster quorum business goes into effect. With my 
current 3 node, replica 3 setup, gluster stays happy wrt quorum.

I'll be sure to post about it if I have problems, but it's been working
well for me.

Jason


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


Re: [ovirt-users] Can we debug some truths/myths/facts about hosted-engine and gluster?

2014-07-22 Thread Andrew Lau
On 23/07/2014 1:45 am, "Jason Brooks"  wrote:
>
>
>
> - Original Message -
> > From: "Jason Brooks" 
> > To: "Andrew Lau" 
> > Cc: "users" 
> > Sent: Tuesday, July 22, 2014 8:29:46 AM
> > Subject: Re: [ovirt-users] Can we debug some truths/myths/facts
about   hosted-engine and gluster?
> >
> >
> >
> > - Original Message -
> > > From: "Andrew Lau" 
> > > To: "users" 
> > > Sent: Friday, July 18, 2014 4:50:31 AM
> > > Subject: [ovirt-users] Can we debug some truths/myths/facts about
> > > hosted-engine and gluster?
> > >
> > > Hi all,
> > >
> > > As most of you have got hints from previous messages, hosted engine
won't
> > > work on gluster . A quote from BZ1097639
> > >
> > > "Using hosted engine with Gluster backed storage is currently
something we
> > > really warn against.
> >
> > My current setup is hosted engine, configured w/ gluster storage as
described
> > in my
> > blog post, but with three hosts and replica 3 volumes.
> >
> > Only issue I've seen is an errant message about the Hosted Engine being
down
> > following an engine migration. The engine does migrate successfully,
though.
​​That was fixed in 3.4.3 I believe, although when it happened to me my
engine didn't migrate it ju​st sat there.


> >
> > RE your bug, what do you use for a mount point for the nfs storage?
>
> In the log you attached to your bug, it looks like you're using localhost
as
> the nfs mount point. I use a dns name that resolves to the virtual IP
hosted
> by ctdb. So, you're only ever talking to one nfs server at a time, and
failover
> between the nfs hosts is handled by ctdb.

I also tried your setup, but hit other complications. I used localhost
​in an old setup, ​
previously as I was under the assumption when accessing anything gluster
related,
​ the connection point only provides the volume info and you connect to any
server in the volume group.​

>
> Anyway, like I said, my main testing rig is now using this configuration,
> help me try and break it. :)

rm -rf /

Jokes aside, are you able to reboot a server without losing the VM ?
​ My experience with ctdb (based on your blog) was even with the
"floating/virtual IP" it wasn't fast enough, or something in the gluster
layer delayed the failover. Either way, the VM goes into paused state and
can't be resumed.​

>
> >
> > Jason
> >
> >
> > >
> > >
> > > I think this bug should be closed or re-targeted at documentation,
> > > because there is nothing we can do here. Hosted engine assumes that
> > > all writes are atomic and (immediately) available for all hosts in the
> > > cluster. Gluster violates those assumptions.
> > >
> > > ​"
> > >
> > > ​Until the documentation gets updated, I hope this serves as a useful
> > > notice at least to save people some of the headaches I hit like
> > > hosted-engine starting up multiple VMs because of above issue.
> > > ​
> > >
> > > Now my question, does this theory prevent a scenario of perhaps
something
> > > like a gluster replicated volume being mounted as a glusterfs
filesystem
> > > and then re-exported as the native kernel NFS share for the
hosted-engine
> > > to consume? It could then be possible to chuck ctdb in there to
provide a
> > > last resort failover solution. I have tried myself and suggested it
to two
> > > people who are running a similar setup. Now using the native kernel
NFS
> > > server for hosted-engine and they haven't reported as many issues.
Curious,
> > > could anyone validate my theory on this?
> > >
> > > Thanks,
> > > Andrew
> > >
> > > ___
> > > 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
> >
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Odd messages on new node/hosted engine

2014-07-22 Thread Andrew Lau
Looks like the multipath rules ovirt seems to setup by default, not sure
why..
I just blacklist my (HDD) devices, otherwise my consoles get filled with a
similar message.

On Thu, Jul 17, 2014 at 5:41 AM, Chris Adams  wrote:

> I built a new node+hosted engine setup, using up-to-date 6.5 and oVirt
> 3.4.3-RC.  I see some odd messages, that I think are probably related:
>
> - In the hosted engine UI, I have an Alert that says "Failed to verify
>   Power Management configuration for Host hosted_engine_1."
>
> - On the node, I get the following chunk repeated every 10 seconds in
>   /var/log/messages:
>
> Jul 16 14:34:19 node0 kernel: device-mapper: table: 253:2: multipath:
> error getting device
> Jul 16 14:34:19 node0 kernel: device-mapper: ioctl: error adding target to
> table
> Jul 16 14:34:19 node0 kernel: device-mapper: table: 253:2: multipath:
> error getting device
> Jul 16 14:34:19 node0 kernel: device-mapper: ioctl: error adding target to
> table
> Jul 16 14:34:19 node0 multipathd: dm-2: remove map (uevent)
> Jul 16 14:34:19 node0 multipathd: dm-2: devmap not registered, can't remove
> Jul 16 14:34:19 node0 cpuspeed: Disabling performance cpu frequency
> scaling governor
> Jul 16 14:34:19 node0 multipathd: dm-2: remove map (uevent)
> Jul 16 14:34:19 node0 multipathd: dm-2: devmap not registered, can't remove
> Jul 16 14:34:19 node0 multipathd: dm-2: remove map (uevent)
> Jul 16 14:34:19 node0 multipathd: dm-2: devmap not registered, can't remove
> Jul 16 14:34:19 node0 multipathd: dm-2: remove map (uevent)
> Jul 16 14:34:19 node0 multipathd: dm-2: devmap not registered, can't remove
> Jul 16 14:34:20 node0 cpuspeed: Enabling performance cpu frequency scaling
> governor
>
> There is no dm-2; the system is installed on 2 SAS drives, mirrored
> using Linux md RAID1, using LVM (dm-0 is the root filesystem and dm-1 is
> swap).
>
> Here's the corresponding chunk of /var/log/vdsm/vdsm.log:
>
> Thread-128::DEBUG::2014-07-16
> 14:34:19,092::task::595::TaskManager.Task::(_updateState)
> Task=`6db0f7ed-ec65-4685-ae2d-604560349317`::moving from state init ->
> state preparing
> Thread-128::INFO::2014-07-16
> 14:34:19,092::logUtils::44::dispatcher::(wrapper) Run and protect:
> repoStats(options=None)
> Thread-128::INFO::2014-07-16
> 14:34:19,093::logUtils::47::dispatcher::(wrapper) Run and protect:
> repoStats, Return response: {'74cb6a07-5745-4b21-ba4b-d9012acb5cae':
> {'code': 0, 'version': 3, 'acquired': True, 'delay': '0.000485922',
> 'lastCheck': '9.4', 'valid': True}}
> Thread-128::DEBUG::2014-07-16
> 14:34:19,093::task::1185::TaskManager.Task::(prepare)
> Task=`6db0f7ed-ec65-4685-ae2d-604560349317`::finished:
> {'74cb6a07-5745-4b21-ba4b-d9012acb5cae': {'code': 0, 'version': 3,
> 'acquired': True, 'delay': '0.000485922', 'lastCheck': '9.4', 'valid':
> True}}
> Thread-128::DEBUG::2014-07-16
> 14:34:19,094::task::595::TaskManager.Task::(_updateState)
> Task=`6db0f7ed-ec65-4685-ae2d-604560349317`::moving from state preparing ->
> state finished
> Thread-128::DEBUG::2014-07-16
> 14:34:19,094::resourceManager::940::ResourceManager.Owner::(releaseAll)
> Owner.releaseAll requests {} resources {}
> Thread-128::DEBUG::2014-07-16
> 14:34:19,094::resourceManager::977::ResourceManager.Owner::(cancelAll)
> Owner.cancelAll requests {}
> Thread-128::DEBUG::2014-07-16
> 14:34:19,095::task::990::TaskManager.Task::(_decref)
> Task=`6db0f7ed-ec65-4685-ae2d-604560349317`::ref 0 aborting False
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,369::BindingXMLRPC::251::vds::(wrapper) client [127.0.0.1]
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,370::task::595::TaskManager.Task::(_updateState)
> Task=`44641295-7f85-40f9-ba71-6f587a96f387`::moving from state init ->
> state preparing
> Thread-2011::INFO::2014-07-16
> 14:34:19,371::logUtils::44::dispatcher::(wrapper) Run and protect:
> connectStorageServer(domType=1,
> spUUID='b15478ff-1ae1-4065-8e52-19c808d39597', conList=[{'port': '',
> 'connection': 'nfs.c1.api-digital.com:/vmstore/engine', 'iqn': '',
> 'portal': '', 'user': 'kvm', 'protocol_version': '4', 'password': '**',
> 'id': '7fb481a8-f7b2-4cf7-8862-8ff02acde48d'}], options=None)
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,376::hsm::2328::Storage.HSM::(__prefetchDomains) nfs local path:
> /rhev/data-center/mnt/nfs.c1.api-digital.com:_vmstore_engine
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,378::hsm::2352::Storage.HSM::(__prefetchDomains) Found SD uuids:
> ('74cb6a07-5745-4b21-ba4b-d9012acb5cae',)
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,379::hsm::2408::Storage.HSM::(connectStorageServer) knownSDs:
> {74cb6a07-5745-4b21-ba4b-d9012acb5cae: storage.nfsSD.findDomain}
> Thread-2011::INFO::2014-07-16
> 14:34:19,379::logUtils::47::dispatcher::(wrapper) Run and protect:
> connectStorageServer, Return response: {'statuslist': [{'status': 0, 'id':
> '7fb481a8-f7b2-4cf7-8862-8ff02acde48d'}]}
> Thread-2011::DEBUG::2014-07-16
> 14:34:19,379::task::1185::TaskManager.Task::(prepare)
> Task=`44641295-7f85-40f9-ba71-6f587a96f387`::fin

Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread Douglas Schilling Landgraf

On 07/22/2014 04:46 PM, Itamar Heim wrote:

On 07/22/2014 07:55 PM, Chris Adams wrote:

Once upon a time, Chris Adams  said:

Once upon a time, ybronhei  said:

On 07/21/2014 01:45 AM, Jorick Astrego wrote:

Hi,

Some more info, I think this is the problem and I also have it on the
node image:

Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
/etc/libvirt/passwd.db: No such file or directory


Hey

Did you check if libvirtd services is up?
can you share libvirtd.conf file?
I'm not sure what is exactly the issue, but you can try "vdsm-tool
configure --module libvirt" command to see if you set the vdsm
configuration for libvirt as required.


I see the same thing with a new 3.5-beta install.  libvirtd is running;
I ran the above vdsm-tool command, but that made no difference.


The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py
(from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2
to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.

I fixed that and manually set the password (and fixed the ovirt-ha* init
scripts), but still can't deploy a 3.5-beta hosted engine.  When
configuring the management bridge, it leaves the interface down (both
the bridge and the underlying interface); I brought them back up, but
the setup then hits this:

[ INFO  ] Verifying sanlock lockspace initialization
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No
such file or directory

I see this in the setup log:


2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152
method exception
Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142,
in _executeMethod
 method['method']()
   File
"/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py",
line 163, in _misc
 lockspace + '.metadata': md_size,
   File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
line 336, in create
 service_size=size)
   File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
line 268, in create_volume
 raise RuntimeError(response["status"]["message"])
RuntimeError: [Errno 2] No such file or directory
2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161
Failed to execute stage 'Misc configuration': [Errno 2] No such file
or directory


Not sure what is happening there.



is there a bug to track this?


Yes.

Host installation fails: sasl passwd.db missing - File 
"/usr/lib64/python2.6/site-packages/vdsm/tool/passwd.py", line 50, in 
set_saslpasswd

https://bugzilla.redhat.com/show_bug.cgi?id=1114993
Current Status: ON_QA

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


Re: [ovirt-users] backup.sh fails

2014-07-22 Thread Itamar Heim

On 07/14/2014 08:15 PM, Niklas Fondberg wrote:

Thanks! This did the trick.


maybe update the stale wiki for others to not fall the same way...



On 14/07/14 17:10, "Sven Kieske"  wrote:




Am 14.07.2014 16:55, schrieb Niklas Fondberg:

Hi all,
I might be of a tangent but I tried to follow the steps in
http://www.ovirt.org/User_talk:Stkeimond/Backing_Up_And_Restoring_OVirt
for a backup.
I get an error because of the postgres user password that I never set in
the installation of oVirt (as far as I know.)
Does anyone know of another way to backup or is this a bug/fault_by_me?
The command line and error is:

[root@dl380 dbscripts]# ./backup.sh -u postgres -l /mnt/msa60/backups/
Backup of database engine to
/mnt/msa60/backups//engine_Mon_Jul_14_16:50:45_CEST_2014.sql started...
pg_dump: [archiver (db)] connection to database "engine" failed: FATAL:
Ident authentication failed for user "postgres"
pg_dump: *** aborted because of error
Backup of database engine failed.


I'm pretty sure this procedure is obsolete.
You should use the provisioned engine-backup tool
to do backups and restore the ovirt-engine:

http://www.ovirt.org/Ovirt-engine-backup

HTH


--
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad
Oeynhausen
___
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



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


Re: [ovirt-users] Neutron - oVirt Integration

2014-07-22 Thread Itamar Heim

On 07/15/2014 03:53 PM, Moti Asayag wrote:



- Original Message -

From: "Udaya Kiran P" 
To: "users" 
Sent: Tuesday, July 15, 2014 1:22:15 PM
Subject: [ovirt-users] Neutron - oVirt Integration

Hi All,

I am working on the Nova - oVirt driver as mentioned in the blueprint -
https://blueprints.launchpad.net/nova/+spec/rhev-m-ovirt-clusters-as-compute-resources.

I am currently to integrate neutron with ovirt during a VM launch, for below
use case.

Use Case:-
1. Import the Neutron as external provider into oVirt.
2. VM is Launched in OpenStack - which launches VM on oVirt.


Does the vm has ports configured on neutron or nova ?
If so, it cannot be supported within ovirt.

I'm not familiar with that driver, but if the vm should be managed by the 
ovirt-engine,
the driver should have create vm interfaces for that vm within ovirt, and 
provide the
network/vnic profile of the external network.

If that network has a subnet (could be configured on ovirt-engine), an IP will 
be allocated
to that port.

There is no fixed IP assignment in the current ovirt-neutron integration.


another option would be to implement a neutron driver wrapping ovirt 
engine (i.e., doing this using the engine rest api)?





3. Assign the IP assigned by the OpenStack to the oVirt VM and connect to the
imported OpenStack Network.

I have completed Step 1 and Step 2.

Can anyone help me with possible approaches to Step 3?

Thank You,

Regards,
Udaya Kiran

___
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



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


Re: [ovirt-users] Snapshots auto generated for live Storage

2014-07-22 Thread Itamar Heim

On 07/15/2014 06:27 PM, André Freitas wrote:

Hi,

after i had successfully migrated the disks to a different nfs
datastore, i now have a vm with 3 snapshots: 1 current with the
description "Active VM" and 2 more with the description "Auto-generated
for Live Storage". For what i have been reading online, i can only
delete snapshots with the vm offline. is this true? Second, should i
commit the live storage snapshots before i delete them or its safe to
delete them without commit?


commit iirc is post 'preview', which would revet to them.
you can just delete.
yes, only cold delete supported in 3.4.
3.5 brings live merge, but will require a supporting libvirt/qemu-kvm 
version providing that feature (still in development)



Best regards,
--

André Freitas   *André Freitas*

System & Network Administrator | (+351) 234 484 466




ISO 9001 CMMI Level 2
Ubiwhere
Copyright © Ubiwhere. 2014. All rights reserved. Content for exclusive
use of their rightful recipients. Dissemination, copy or use of
information by third parties is prohibited. If you are not an authorised
recipient and received this message, please notify the sender and then
delete it without copying the text and attachments nor distributing or
disclosing its contents.








___
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: [ovirt-users] MS Cluster Services suppot

2014-07-22 Thread Itamar Heim

On 07/15/2014 10:31 PM, Maurice James wrote:

Does oVirt/RHEV have support for Microsoft Clustering services? Can I
run cluster members across the RHEV/oVirt cluster?


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



I think there is still some gap around virtio-scsi, but don't remember 
of the top of my head.

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


Re: [ovirt-users] planning ovirt for production

2014-07-22 Thread Itamar Heim

On 07/16/2014 06:46 PM, Demeter Tibor wrote:

Hi,

We have a production environment with KVM+centos6 and we want to switch
to ovirt.
At this moment we have 12 VM on three independent server.
This VMs uses the local disks of servers, we don't have a central storage.

currently we have for ovirt

- Two Dell R710 with 128 gigs of ram.
- A third dell server for ovirt-engine.
- four 1 gb/sec NICs/ server.
- Smart GB switch

we would like make an ovirt environment with

- clusterized, redundant filesystem, data loss protection
- If a host goes to down the VMs could made a restart on the remain host
- LACP/bonding (mode 6) for fast I/O beetwen gluster hosts, we don't
have 10Gbe nics
- 8 TB of disk capacity for VMs

we don't want:

- using hw raid on servers, because we need free disk tray for more capacity

My questions.

- Which glusterfs method is the best for us for performance?


vijay?


- Can I make a real "performance" disk i/o  by 4-4 NICs  ? Or I need 10
Gbe nic for this?
- How much disk need for good redundancy/performance? 4/server or
2/server ?
- What will the weak point our project?


make sure to use gluster with replica 3, which needs 3 servers?
maybe use hosted engine to remove need for dedicated server for it?



Thanks in advance.

Tibor







___
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: [ovirt-users] Misc architecture questions

2014-07-22 Thread Itamar Heim

On 07/17/2014 11:14 AM, Maël Lavault wrote:

Hi,

I'm a student currently doing my final study project based around Ovirt.

I played a lot with Ovirt to have an overview of what could or could not
be done, but I still have a few questions and stuff I want to clarify.

My project consist of a HA architecture using Ovirt, powered by 8
reasonably powerful servers (4 x Quad core Opteron, 32Go RAM, 2x10k RPM
HDD) equipped with 2 NIC each.

I followed this tutorial to use Ovirt with GlusterFS :

http://community.redhat.com/blog/2014/05/ovirt-3-4-glusterized/

Worked well !

I installed 2 self hosted engine on 2 different servers and a GlusterFS
using 2 other servers.

But since we had only 2 x 1Gb NIC per server, we decided to go with
bonding and VLAN to separate each networks inspired by this blog post :

http://captainkvm.com/2013/04/maximizing-your-10gb-ethernet-in-rhev/

Unfortunately, it seems like Ovirt 3.4 does not support installing
self-hosted engine on bond + vlan. I tried 3.5 but there were to much
bug to be usable and the project is set to be deployed in 2 months.


should be available via:
http://gerrit.ovirt.org/#/c/29730/
?



A colleague suggested me a workaround using OpenvSwitch between Ovirt
and NIC bond to "translate tagged packet into non tagged packet" and
hide the bond from Ovirt. Does this have a chance to work ?

Since the GlusterFS is accessed by NFS, I was able to bond the two
servers.

A few questions :

- What is the purpose of ovirtmgmt network ? I did a lot of search by
haven't found any clear explanation. Does it need to be publicly
accessible or a private ip is fine too ?


just what engine used to communicate to hosts.
also, by default, the display network and vm network.



- Is the display network used for SPICE/VNC connection ?


yes.



- How do Ovirt differentiate VM network from a storage network ? They
both have the same vm role in the interface. Both networks could
(should) be on private ip range right ?


that depends on you deploying them on different networks?



- How can I add the storage network after (or before, would be better)
self hosted engine is installed ? (Since self hosted engine is stored on
Gluster, I will loose connection to the engine)


configure it on host B. move hosted engine to host B. configure it on 
host A?




- Using self hosted engine, does all my nodes need to be installed with
hosted-engine --deploy, or can I have only 2 self hosted engine nodes
and 4 classic nodes ?


you can have 2 self hosted and 50 classic nodes as well.
no need to match hosted engine to the entire cluster (nor is hosted 
engine tested with being deployed on 50 hosts...)




- I'm trying to cleanly re-install the second hosted engine after some
experiments, but the behavior is strange :

[ INFO  ] Stage: Transaction commit
[ INFO  ] Stage: Closing up
   To continue make a selection from the options below:
   (1) Continue setup - engine installation is complete
   (2) Power off and restart the VM
   (3) Abort setup
Isn't this supposed to give me information to connect to the vm so i can
install the engine ?


sandro/didi?





Thanks a lot for this truly well made software !


thank you for using it.





___
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: [ovirt-users] Reclaim/Trim/issue_discards : how to inform my LUNs about disk space waste?

2014-07-22 Thread Itamar Heim

On 07/22/2014 07:21 PM, Nicolas Ecarnot wrote:

Le 22/07/2014 14:23, Federico Simoncelli a écrit :

In my hosts, I see that /etc/lvm/lvm.conf shows :

issue_discards = 0

Can I enable it to 1 ?

Thank you?


You can change it but it's not going to affect the lvm behavior in VDSM
since we don't use the host lvm config file.

This will be probably addressed as part of bz1017284 as we're considering
to extend discard also to vdsm images (and not direct luns only).

https://bugzilla.redhat.com/show_bug.cgi?id=1017284


I tried with and without my RH subscription, but I'm not allowd to read
this bug...



fixed, but its currently mostly a place holder titled:

Bug 1017284 - [RFE] Add SCSI discard support for DirectLUN disks sitting 
on a virtio-scsi controller

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


Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread Itamar Heim

On 07/22/2014 07:55 PM, Chris Adams wrote:

Once upon a time, Chris Adams  said:

Once upon a time, ybronhei  said:

On 07/21/2014 01:45 AM, Jorick Astrego wrote:

Hi,

Some more info, I think this is the problem and I also have it on the
node image:

Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
/etc/libvirt/passwd.db: No such file or directory


Hey

Did you check if libvirtd services is up?
can you share libvirtd.conf file?
I'm not sure what is exactly the issue, but you can try "vdsm-tool
configure --module libvirt" command to see if you set the vdsm
configuration for libvirt as required.


I see the same thing with a new 3.5-beta install.  libvirtd is running;
I ran the above vdsm-tool command, but that made no difference.


The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py
(from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2
to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.

I fixed that and manually set the password (and fixed the ovirt-ha* init
scripts), but still can't deploy a 3.5-beta hosted engine.  When
configuring the management bridge, it leaves the interface down (both
the bridge and the underlying interface); I brought them back up, but
the setup then hits this:

[ INFO  ] Verifying sanlock lockspace initialization
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file 
or directory

I see this in the setup log:


2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method 
exception
Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in 
_executeMethod
 method['method']()
   File 
"/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py",
 line 163, in _misc
 lockspace + '.metadata': md_size,
   File 
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
 line 336, in create
 service_size=size)
   File 
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
 line 268, in create_volume
 raise RuntimeError(response["status"]["message"])
RuntimeError: [Errno 2] No such file or directory
2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to 
execute stage 'Misc configuration': [Errno 2] No such file or directory


Not sure what is happening there.



is there a bug to track this?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread Chris Adams
Once upon a time, Chris Adams  said:
> Once upon a time, ybronhei  said:
> > On 07/21/2014 01:45 AM, Jorick Astrego wrote:
> > >Hi,
> > >
> > >Some more info, I think this is the problem and I also have it on the
> > >node image:
> > >
> > >Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
> > >/etc/libvirt/passwd.db: No such file or directory
> > >
> > Hey
> > 
> > Did you check if libvirtd services is up?
> > can you share libvirtd.conf file?
> > I'm not sure what is exactly the issue, but you can try "vdsm-tool
> > configure --module libvirt" command to see if you set the vdsm
> > configuration for libvirt as required.
> 
> I see the same thing with a new 3.5-beta install.  libvirtd is running;
> I ran the above vdsm-tool command, but that made no difference.

The problem is that /usr/lib64/python2.6/site-packages/vdsm/constants.py
(from vdsm-python-4.16.0-3.git601f786.el6.x86_64) sets EXT_SASLPASSWD2
to /sbin/saslpasswd2, but the binary is actually in /usr/sbin.

I fixed that and manually set the password (and fixed the ovirt-ha* init
scripts), but still can't deploy a 3.5-beta hosted engine.  When
configuring the management bridge, it leaves the interface down (both
the bridge and the underlying interface); I brought them back up, but
the setup then hits this:

[ INFO  ] Verifying sanlock lockspace initialization
[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file 
or directory

I see this in the setup log:


2014-07-22 11:27:39 DEBUG otopi.context context._executeMethod:152 method 
exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in 
_executeMethod
method['method']()
  File 
"/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/sanlock/lockspace.py",
 line 163, in _misc
lockspace + '.metadata': md_size,
  File 
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
 line 336, in create
service_size=size)
  File 
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/storage_backends.py",
 line 268, in create_volume
raise RuntimeError(response["status"]["message"])
RuntimeError: [Errno 2] No such file or directory
2014-07-22 11:27:39 ERROR otopi.context context._executeMethod:161 Failed to 
execute stage 'Misc configuration': [Errno 2] No such file or directory


Not sure what is happening there.
-- 
Chris Adams 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Reclaim/Trim/issue_discards : how to inform my LUNs about disk space waste?

2014-07-22 Thread Nicolas Ecarnot

Le 22/07/2014 14:23, Federico Simoncelli a écrit :

In my hosts, I see that /etc/lvm/lvm.conf shows :

issue_discards = 0

Can I enable it to 1 ?

Thank you?


You can change it but it's not going to affect the lvm behavior in VDSM
since we don't use the host lvm config file.

This will be probably addressed as part of bz1017284 as we're considering
to extend discard also to vdsm images (and not direct luns only).

https://bugzilla.redhat.com/show_bug.cgi?id=1017284


I tried with and without my RH subscription, but I'm not allowd to read 
this bug...


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


Re: [ovirt-users] Can we debug some truths/myths/facts about hosted-engine and gluster?

2014-07-22 Thread Jason Brooks


- Original Message -
> From: "Jason Brooks" 
> To: "Andrew Lau" 
> Cc: "users" 
> Sent: Tuesday, July 22, 2014 8:29:46 AM
> Subject: Re: [ovirt-users] Can we debug some truths/myths/facts   about   
> hosted-engine and gluster?
> 
> 
> 
> - Original Message -
> > From: "Andrew Lau" 
> > To: "users" 
> > Sent: Friday, July 18, 2014 4:50:31 AM
> > Subject: [ovirt-users] Can we debug some truths/myths/facts about
> > hosted-engine and gluster?
> > 
> > Hi all,
> > 
> > As most of you have got hints from previous messages, hosted engine won't
> > work on gluster . A quote from BZ1097639
> > 
> > "Using hosted engine with Gluster backed storage is currently something we
> > really warn against.
> 
> My current setup is hosted engine, configured w/ gluster storage as described
> in my
> blog post, but with three hosts and replica 3 volumes.
> 
> Only issue I've seen is an errant message about the Hosted Engine being down
> following an engine migration. The engine does migrate successfully, though.
> 
> RE your bug, what do you use for a mount point for the nfs storage?

In the log you attached to your bug, it looks like you're using localhost as
the nfs mount point. I use a dns name that resolves to the virtual IP hosted
by ctdb. So, you're only ever talking to one nfs server at a time, and failover
between the nfs hosts is handled by ctdb.

Anyway, like I said, my main testing rig is now using this configuration, 
help me try and break it. :)

> 
> Jason
> 
> 
> > 
> > 
> > I think this bug should be closed or re-targeted at documentation,
> > because there is nothing we can do here. Hosted engine assumes that
> > all writes are atomic and (immediately) available for all hosts in the
> > cluster. Gluster violates those assumptions.
> > 
> > ​"
> > 
> > ​Until the documentation gets updated, I hope this serves as a useful
> > notice at least to save people some of the headaches I hit like
> > hosted-engine starting up multiple VMs because of above issue.
> > ​
> > 
> > Now my question, does this theory prevent a scenario of perhaps something
> > like a gluster replicated volume being mounted as a glusterfs filesystem
> > and then re-exported as the native kernel NFS share for the hosted-engine
> > to consume? It could then be possible to chuck ctdb in there to provide a
> > last resort failover solution. I have tried myself and suggested it to two
> > people who are running a similar setup. Now using the native kernel NFS
> > server for hosted-engine and they haven't reported as many issues. Curious,
> > could anyone validate my theory on this?
> > 
> > Thanks,
> > Andrew
> > 
> > ___
> > 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
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Backup solutions for Ovirt

2014-07-22 Thread Federico Alberto Sayd

On 22/07/14 11:52, Itamar Heim wrote:

On 07/22/2014 05:26 PM, Jiří Sléžka wrote:

Dne 18.7.2014 9:27, saurabh napsal(a):

It would be great as any of you provide any pointer on this issue.


Hello,

I believe there is currently no backup solution for oVirt. You can do
backups inside of vms or you can simply power-off vm and then export it
to the export storage. There is work underway on the backup API -
http://www.ovirt.org/Features/Backup-Restore_API_Integration


the backup api is implemented in 3.3 or 3.4 already. now backup 
solutions need to provide integration with it (or open source backup 
solutions - not familiar with these)



http://www.ovirt.org/Features/Backup-Restore_API_Integration
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Can we debug some truths/myths/facts about hosted-engine and gluster?

2014-07-22 Thread Jason Brooks


- Original Message -
> From: "Andrew Lau" 
> To: "users" 
> Sent: Friday, July 18, 2014 4:50:31 AM
> Subject: [ovirt-users] Can we debug some truths/myths/facts about 
> hosted-engine and gluster?
> 
> Hi all,
> 
> As most of you have got hints from previous messages, hosted engine won't
> work on gluster . A quote from BZ1097639
> 
> "Using hosted engine with Gluster backed storage is currently something we
> really warn against.

My current setup is hosted engine, configured w/ gluster storage as described 
in my 
blog post, but with three hosts and replica 3 volumes. 

Only issue I've seen is an errant message about the Hosted Engine being down 
following an engine migration. The engine does migrate successfully, though.

RE your bug, what do you use for a mount point for the nfs storage?

Jason


> 
> 
> I think this bug should be closed or re-targeted at documentation,
> because there is nothing we can do here. Hosted engine assumes that
> all writes are atomic and (immediately) available for all hosts in the
> cluster. Gluster violates those assumptions.
> 
> ​"
> 
> ​Until the documentation gets updated, I hope this serves as a useful
> notice at least to save people some of the headaches I hit like
> hosted-engine starting up multiple VMs because of above issue.
> ​
> 
> Now my question, does this theory prevent a scenario of perhaps something
> like a gluster replicated volume being mounted as a glusterfs filesystem
> and then re-exported as the native kernel NFS share for the hosted-engine
> to consume? It could then be possible to chuck ctdb in there to provide a
> last resort failover solution. I have tried myself and suggested it to two
> people who are running a similar setup. Now using the native kernel NFS
> server for hosted-engine and they haven't reported as many issues. Curious,
> could anyone validate my theory on this?
> 
> Thanks,
> Andrew
> 
> ___
> 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: [ovirt-users] Ovirt Reporting Portal not Working

2014-07-22 Thread Yaniv Dary
Your DNS name is not resolvable to IP. 
This is a requirement for installing engine and all plugins. 

Yaniv 

- Original Message -

> From: "Anish Mohan1" 
> To: "Yaniv Dary" , "Yedidyah Bar David" ,
> users@ovirt.org
> Sent: Monday, July 21, 2014 12:29:45 PM
> Subject: Re: [ovirt-users] Ovirt Reporting Portal not Working

> Hello All

> Please find the attached Logs . I am getting Error " Failed to execute stage
> 'Misc configuration' " .

> CentOS version : 2.6.32-431.20.3.el6.x86_64.

> I have installed ovirt-engine, ovirt-engine-dwh and ovirt-engine-reports and
> started installation with engine-setup command

> Regards / Anish

> From: Yaniv Dary 
> To: Anish Mohan1 
> Cc: Yedidyah Bar David , users@ovirt.org
> Date: 07/16/2014 12:19 PM
> Subject: Re: [ovirt-users] Ovirt Reporting Portal not Working

> Please attach logs.

> From: "Anish Mohan1" 
> To: "Yedidyah Bar David" , "Yaniv Dary" ,
> users@ovirt.org
> Sent: Tuesday, July 1, 2014 2:53:35 PM
> Subject: Re: [ovirt-users] Ovirt Reporting Portal not Working

> Hello All

> We have installed dom4j rpm and error related to Package ovirt-engine-dwh is
> solved.

> Now we are getting new error, Failed to execute stage 'Misc configuration':
> Command './js-ant' failed to execute

> Can anyone help in solving this issue

> Thanks In Advance

> Best Regards
> Anish Mohan

> From: Yedidyah Bar David 
> To:   Yaniv Dary 
> Cc:   Anish Mohan1 , users@ovirt.org
> Date: 07/01/2014 03:18 PM
> Subject:  Re: [ovirt-users] Ovirt Reporting Portal not Working

> - Original Message -
> > From: "Yaniv Dary" 
> > To: "Yedidyah Bar David" 
> > Cc: "Anish Mohan1" , users@ovirt.org
> > Sent: Tuesday, July 1, 2014 12:36:25 PM
> > Subject: Re: [ovirt-users] Ovirt Reporting Portal not Working
> >
> >
> >
> > - Original Message -
> > > From: "Yedidyah Bar David" 
> > > To: "Anish Mohan1" 
> > > Cc: users@ovirt.org
> > > Sent: Tuesday, July 1, 2014 12:31:03 PM
> > > Subject: Re: [ovirt-users] Ovirt Reporting Portal not Working
> > >
> > > - Original Message -
> > > > From: "Anish Mohan1" 
> > > > To: users@ovirt.org
> > > > Sent: Monday, June 30, 2014 6:41:44 PM
> > > > Subject: [ovirt-users] Ovirt Reporting Portal not Working
> > > >
> > > > Hello All,
> > > >
> > > > We are facing issue while configuring Ovirt Reporting Portal .
> > > >
> > > > We are going to setup Ovirt in our environment .
> > > > I have installed ovirt-engine and ovirt-engine-reports packages on
> > > > Manager
> > > > (
> > > > CentOS ) Server.
> > > > After that we have executed engine-setup command, but it is giving
> > > > below
> > > > error.
> > > >
> > > > Please refer the attached putty Logs for error details.
> > > >
> > > >
> > > > Can anyone help in sloving this issue
> > >
> > > Can you please try to manually install also ovirt-engine-dwh? It seems
> > > like
> > > setup fails doing that for some reason.
> >
> > This is not a solution. If we release an update he won't get it unless we
> > resolve this issue.
> > I would rerun setup and if not works, check yum configuration.

> The setup log just says that the package can't be found. setup can't do much
> about that. I just guess it's easier to debug such problems directly with yum
> than with setup.
> --
> Didi

> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you

> [attachment "mime.gif" deleted by Anish Mohan1/MUM/TCS]
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Backup solutions for Ovirt

2014-07-22 Thread Itamar Heim

On 07/22/2014 05:26 PM, Jiří Sléžka wrote:

Dne 18.7.2014 9:27, saurabh napsal(a):

It would be great as any of you provide any pointer on this issue.


Hello,

I believe there is currently no backup solution for oVirt. You can do
backups inside of vms or you can simply power-off vm and then export it
to the export storage. There is work underway on the backup API -
http://www.ovirt.org/Features/Backup-Restore_API_Integration


the backup api is implemented in 3.3 or 3.4 already. now backup 
solutions need to provide integration with it (or open source backup 
solutions - not familiar with these)



Jiri Slezka





Regards,


On Tuesday 15 July 2014 02:35 PM, saurabh wrote:

Hi All,

I am using Ovirt for my QA environment almost 15 virtual servers, and
it is working as expected. The only thing I am worried about is the
backup solutions in case of failure or system crash.

I tried looking into the LVM structure that is created by Ovirt but it
seems a bit complex.
Please let me know the proper solution (if there is any) for backing
up my environment in case of failure.


Best Regards,







___
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: [ovirt-users] Backup solutions for Ovirt

2014-07-22 Thread Jiří Sléžka

Dne 18.7.2014 9:27, saurabh napsal(a):

It would be great as any of you provide any pointer on this issue.


Hello,

I believe there is currently no backup solution for oVirt. You can do 
backups inside of vms or you can simply power-off vm and then export it 
to the export storage. There is work underway on the backup API - 
http://www.ovirt.org/Features/Backup-Restore_API_Integration


Jiri Slezka





Regards,


On Tuesday 15 July 2014 02:35 PM, saurabh wrote:

Hi All,

I am using Ovirt for my QA environment almost 15 virtual servers, and
it is working as expected. The only thing I am worried about is the
backup solutions in case of failure or system crash.

I tried looking into the LVM structure that is created by Ovirt but it
seems a bit complex.
Please let me know the proper solution (if there is any) for backing
up my environment in case of failure.


Best Regards,





<>

smime.p7s
Description: Elektronicky podpis S/MIME
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Steve Dainard
I just saw the "your device can perform faster" warning again in Windows
and decided to check it out.

Should the USB device be showing under an Intel controller? Is the RH
controller only for spice?


​


On Tue, Jul 22, 2014 at 10:12 AM, Dan Kenigsberg  wrote:

> On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
> >
> > On Jul 22, 2014, at 15:49 , Steve Dainard 
> wrote:
> >
> > > Hi Michal,
> > >
> > > How can I generate libvirt xml from rhevm?
> >
> > "virsh -r dumpxml " on the host
>
> Or dig into vdsm.log (in case the VM is no longer there)
>
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Steve Dainard
The USB section is the same on both guests:


  
  



  



  
  


I thought it might be a Windows issue, I've tried on both Win7 64 and
2008R2 64 with the same result. At one point there was a notification
bubble that the USB device can run faster - which I thought might mean the
Windows guest was provided a USB v1 controller.

I've attached both the xml's if you think there might be something I'm not
seeing.

Thanks,
Steve


On Tue, Jul 22, 2014 at 9:50 AM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On Jul 22, 2014, at 15:49 , Steve Dainard  wrote:
>
> > Hi Michal,
> >
> > How can I generate libvirt xml from rhevm?
>
> "virsh -r dumpxml " on the host
>
> Thanks,
> michal
>
> >
> > Thanks,
> > Steve
> >
> >
> > On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek <
> michal.skriva...@redhat.com> wrote:
> >
> > On 21 Jul 2014, at 20:54, Steve Dainard wrote:
> >
> >> I should mention I can mount this usb drive in a CentOS 6.5 VM without
> any problems.
> >
> > Hi,
> > there should be no difference configuration-wise. well, please compare
> libvirt's xml to be sure and confirm
> > If it's the case then it might be a problem of qemu/kvm and/or windows
> >
> > Thanks,
> > michal
> >
> >>
> >>
> >> On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard 
> wrote:
> >> I'm using the hostusb hook on RHEV 3.4 trial.
> >>
> >> The usb device is passed through to the VM, but I'm getting errors in a
> Windows VM when the device driver is loaded.
> >>
> >> I started with a simple usb drive, on the host it is listed as:
> >>
> >> Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
> >>
> >> Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
> >>
> >> In Windows I get an error in device manager:
> >> USB Mass Storage Device "This device cannot start. (Code 10)"
> >> Properties/General Tab: Device type: Universal Serial Bus Controllers,
> Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
> >>
> >> Under hardware Ids:
> >> USB\VID_05DC&PID_C75C&REV_0102
> >> USB\VID_05DC&PID_C75C
> >>
> >> So it looks like the proper USB device ID is passed to the VM.
> >>
> >> I don't see any error messages in event viewer, and I don't see
> anything in VDSM logs either.
> >>
> >> Any help is appreciated.
> >>
> >> Steve
> >>
> >> ___
> >> Users mailing list
> >> Users@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/users
> >
> >
>
>
CentOS 6.5 VM


  steve-test
  deabe801-bc66-43c9-9d99-ecd852c3ac6e
  2097152
  2097152
  
2097152
  
  160
  
1020
  
  

  Red Hat
  RHEV Hypervisor
  6Server-6.5.0.1.el6
  ----002590DE3912
  deabe801-bc66-43c9-9d99-ecd852c3ac6e

  
  
hvm

  
  

  
  
SandyBridge

  
  

  
  destroy
  restart
  destroy
  
/usr/libexec/qemu-kvm

  
  

  
  
  
  
  
  
  


  
  

  
  
  6edab781-7f9b-4c4d-beb2-1bf197f325d1
  
  
  


  
  


  
  


  
  


  
  


  
  
  
  
  
  
  
  


  
  
  


  
  
  
  


  
  
  
  


  
  
  



  
  
  
  
  
  
  
  
  


  
  
  


  



  
  


  
  

  
  
system_u:system_r:svirt_t:s0:c254,c932
system_u:object_r:svirt_image_t:s0:c254,c932
  


  usb-test
  44856291-3729-485d-8426-e0b05410202f
  4194304
  4194304
  
4194304
  
  160
  
1020
  
  

  Red Hat
  RHEV Hypervisor
  6Server-6.5.0.1.el6
  ----002590DE3912
  44856291-3729-485d-8426-e0b05410202f

  
  
hvm

  
  

  
  
SandyBridge

  
  

  
  destroy
  restart
  destroy
  
/usr/libexec/qemu-kvm

  
  
  
  
  
  
  


  
  

  
  
  58837ddf-ba30-4dce-aa1f-de1d0a9eb27a
  
  
  


  
  


  
  


  
  


  
  


  
  
  
  
  
  
  
  


  
  
  


  
  
  
  


  
  
  
  


  
  
  



  
  
  
  
  
  
  
  
  


  
  


  
  
  


  



  
  


  
  

  
  
system_u:system_r:svirt_t:s0:c126,c784
system_u:object_r:svirt_image_t:s0:c126,c784
  

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

Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Dan Kenigsberg
On Tue, Jul 22, 2014 at 03:50:59PM +0200, Michal Skrivanek wrote:
> 
> On Jul 22, 2014, at 15:49 , Steve Dainard  wrote:
> 
> > Hi Michal,
> > 
> > How can I generate libvirt xml from rhevm?
> 
> "virsh -r dumpxml " on the host

Or dig into vdsm.log (in case the VM is no longer there)
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Misaligned Disk after resize

2014-07-22 Thread Neil
Hi Daniel,

Correct, we are using FC as primary storage. The VM itself was a
Server 2003 VM, so the only resources we could get were from the task
manager, the CPU resources in Task Manager showed the load spiking to
100% usage.

The backup VM (prior to extending) is currently being restored from
the export domain and the extended VM is shutdown currently, so I
won't be able to give you the info until I boot it up again.

My apologies, another technician is actually working on this problem
and he's just gone ahead trying to restore.

Thanks for coming back to me though.

Much appreciated.

Regards.

Neil Wilson.


On Tue, Jul 22, 2014 at 3:27 PM, Daniel Helgenberger
 wrote:
> Hi Neil,
>
> To severely impact iops with a single nonaligned VM - image the is
> rather unusual.
>
> Can you please be more specific:
> IIRC, to run into the misalignment scenario you need block backed
> storage for your VM. So FC / Posix / iSCSI but not NFS.
> - The CPU load of the visualization host or the VM?
> - Can you confirm (eg. with top) that you have constant a high IO Wait
> (>20%) there?
>
> Cheers,
>
>
>
> On Di, 2014-07-22 at 14:47 +0200, Neil wrote:
>> Hi guys,
>>
>> We re-sized (expanded) a Server 2003 VM a few weeks back and since
>> then the CPU load seems to be rather excessive. Also in the oVirt GUI
>> it reports the disk is misaligned, I've done a bit of reading and it
>> sounds like the only way to correct the alignment again is to
>> re-install, is this the only option?
>>
>> Thank you.
>>
>> Regards.
>>
>> Neil Wilson.
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
> --
>
> Daniel Helgenberger
> m box bewegtbild GmbH
>
> P: +49/30/2408781-22
> F: +49/30/2408781-10
>
> ACKERSTR. 19
> D-10115 BERLIN
>
>
> www.m-box.de  www.monkeymen.tv
>
> Geschäftsführer: Martin Retschitzegger / Michaela Göllner
> Handeslregister: Amtsgericht Charlottenburg / HRB 112767
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Michal Skrivanek

On Jul 22, 2014, at 15:49 , Steve Dainard  wrote:

> Hi Michal,
> 
> How can I generate libvirt xml from rhevm?

"virsh -r dumpxml " on the host

Thanks,
michal

> 
> Thanks,
> Steve
> 
> 
> On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek 
>  wrote:
> 
> On 21 Jul 2014, at 20:54, Steve Dainard wrote:
> 
>> I should mention I can mount this usb drive in a CentOS 6.5 VM without any 
>> problems.
> 
> Hi,
> there should be no difference configuration-wise. well, please compare 
> libvirt's xml to be sure and confirm
> If it's the case then it might be a problem of qemu/kvm and/or windows
> 
> Thanks,
> michal
> 
>> 
>> 
>> On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard  
>> wrote:
>> I'm using the hostusb hook on RHEV 3.4 trial.
>> 
>> The usb device is passed through to the VM, but I'm getting errors in a 
>> Windows VM when the device driver is loaded.
>> 
>> I started with a simple usb drive, on the host it is listed as:
>> 
>> Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc. 
>> 
>> Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
>> 
>> In Windows I get an error in device manager:
>> USB Mass Storage Device "This device cannot start. (Code 10)"
>> Properties/General Tab: Device type: Universal Serial Bus Controllers, 
>> Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
>> 
>> Under hardware Ids: 
>> USB\VID_05DC&PID_C75C&REV_0102
>> USB\VID_05DC&PID_C75C
>> 
>> So it looks like the proper USB device ID is passed to the VM.
>> 
>> I don't see any error messages in event viewer, and I don't see anything in 
>> VDSM logs either.
>> 
>> Any help is appreciated.
>> 
>> Steve
>> 
>> ___
>> 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: [ovirt-users] cloud-init options under python-sdk

2014-07-22 Thread Amedeo Salvati
many thanks Juan it works!

best regards
a



Da: "Juan Hernandez" jhern...@redhat.com
A: "Amedeo Salvati" ame...@oscert.net, users@ovirt.org
Cc: 
Data: Tue, 22 Jul 2014 15:32:45 +0200
Oggetto: Re: [ovirt-users] cloud-init options under python-sdk


> On 07/22/2014 02:55 PM, Amedeo Salvati wrote:
> > hi Juan|guys,
> > 
> > thanks for hints! but unfortunatly it seems wont works, because I've
> > launched vm with this simple code:
> > 
> > action =
> > params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name="rheltest014")
> > vm.start( action )
> > 
> > but after boot the VM, cloud-init service hasn't set hostname and on
> > cloud-init.log and cloud-init-output.log I cannot find any entry for
> > setting hostname, instead if I use web ui it work's fine...
> > 
> > there are any ways to debug cloud-init jobs?
> > the params params.Host is right for CloudInit host or is intended for
> > host / hypervisor?
> > 
> > Best regards
> > Amedeo Salvati
> > 
> 
> To change the hostname you have to use the "address" property of the
> "Host" class:
> 
>   host=params.Host(
>   address="myhostname.example.com"
>   )
> 
> The "Host" class is used for many things, including CloudInit and
> hypervisors. But in this context it is just a container for the host name.
> 
> To debug cloud-init start the VM (with the GUI or with the RESTAPI),
> then go to the hypervisor where it is actually running, and look for the
> corresponding qemu-kvm process:
> 
>   # ps -ef | grep qemu-kvm | grep myvm
> 
> The qemu-kvm command line will have a parameter indicating the file that
> contains the cloud-init data:
> 
>   -drive file=/var/run/vdsm/payload/...img
> 
> Copy that file somewhere, then mount it and inspect the content:
> 
>   # cp /var/run/vdsm/payload/...img /tmp/my.img
>   # mount -o loop,ro /tmp/my.img /mnt
>   # find /mnt
>   ...
>   # umount /mnt
> 
> 
> > Da: "Juan Hernandez" jhern...@redhat.com
> > A: "Amedeo Salvati" ame...@oscert.net, users@ovirt.org
> > Cc:
> > Data: Tue, 22 Jul 2014 12:21:01 +0200
> > Oggetto: Re: [ovirt-users] cloud-init options under python-sdk
> > 
> >> On 07/22/2014 11:48 AM, Amedeo Salvati wrote:
> >> > hello guys!
> >> >
> >> > I'm writing some python code to start VMs, and based on operating system
> >> > (at this moment centos6 nad centos7), I would like to use cloud-init
> >> > options (available on web ui at run-once) to start them and resetting
> >> > root password, change hostname and write some configuration files by
> >> > using yaml semantics, but at this moment I was unable to find a way to
> >> > do it...
> >> >
> >> > somebody know a way (or could send me some hints) using python-sdk to
> >> > start A VM and pass to it cloud-init options?
> >> >
> >> > e.g. the portion of code I would like to change is vm.start() under
> > rhel6|7:
> >> >
> >> > try:
> >> > osVersion = vm.get_os().get_type()
> >> > if (osVersion == "rhel_6x64" or osVersion == "rhel_6" or
> >> > osVersion == "rhel_7x64") and CLOUDINIT == "yes":
> >> > print "Starting VM: " + vm.name + " with cloud-init
> >> > options"
> >> > > vm.start() <-- > else:
> >> > print "Starting VM " + vm.name
> >> > vm.start()
> >> > while vmstat != 'down':
> >> > sleep(1)
> >> > vmstat = vm.get_status().state
> >> > except Exception, err:
> >> > print "Error on starting VM"
> >> > print err
> >> >
> >> >
> >> > Best regards
> >> > Amedeo Salvati
> >> >
> >>
> >> It should be something like this:
> >>
> >> from ovirtsdk.xml import params
> >>
> >> action = params.Action(
> >> vm=params.VM(
> >> initialization=params.Initialization(
> >> cloud_init=params.CloudInit(
> >> host=params.Host(
> >> name="myvm"
> >> ),
> >> users=...,
> >> files=...,
> >> ...
> >> )
> >> )
> >> )
> >> )
> >>
> >> vm.start(action)
> >>
> >>
> >> --
> >> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> >> 3ºD, 28016 Madrid, Spain
> >> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
> 
> 
> -- 
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Steve Dainard
Hi Michal,

How can I generate libvirt xml from rhevm?

Thanks,
Steve


On Tue, Jul 22, 2014 at 4:12 AM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On 21 Jul 2014, at 20:54, Steve Dainard wrote:
>
> I should mention I can mount this usb drive in a CentOS 6.5 VM without any
> problems.
>
>
> Hi,
> there should be no difference configuration-wise. well, please compare
> libvirt's xml to be sure and confirm
> If it's the case then it might be a problem of qemu/kvm and/or windows
>
> Thanks,
> michal
>
>
>
> On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard 
> wrote:
>
>> I'm using the hostusb hook on RHEV 3.4 trial.
>>
>> The usb device is passed through to the VM, but I'm getting errors in a
>> Windows VM when the device driver is loaded.
>>
>> I started with a simple usb drive, on the host it is listed as:
>>
>> Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc.
>>
>> Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
>>
>> In Windows I get an error in device manager:
>> USB Mass Storage Device "This device cannot start. (Code 10)"
>> Properties/General Tab: Device type: Universal Serial Bus Controllers,
>> Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
>>
>> Under hardware Ids:
>> USB\VID_05DC&PID_C75C&REV_0102
>> USB\VID_05DC&PID_C75C
>>
>> So it looks like the proper USB device ID is passed to the VM.
>>
>> I don't see any error messages in event viewer, and I don't see anything
>> in VDSM logs either.
>>
>> Any help is appreciated.
>>
>> Steve
>>
>
> ___
> 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: [ovirt-users] Guest VM Console Creation/Access using REST API and noVNC

2014-07-22 Thread Michal Skrivanek

On Jul 22, 2014, at 13:34 , Shanil S  wrote:

> Hi Michal,
> 
> Thanks for your updates.
> 
> I am unable to view the above post 
> https://bugzilla.redhat.com/show_bug.cgi?id=838468 and getting an access 
> denied error. I don't have the login to this, could you please paste the 
> content here ?

should be fixed now, sorry. try again
NoVncImpl.java in review 13931 should explain some things… (or Franta can, if 
something's not clear:-)

> 
> 
> -- 
> Regards 
> Shanil
> 
> 
> On Tue, Jul 22, 2014 at 12:53 PM, Michal Skrivanek 
>  wrote:
> 
> On 22 Jul 2014, at 09:02, Punit Dambiwal wrote:
> 
>> Hi Michal,
>> 
>> We want to access vm console by using noVNC and Rest api. We are using 
>> websocket proxy on the same machine where engine runs and we try to get the 
>> console access from the another server that is outside from this cluster.  
>>  
>> But when we try to connect the vnc_auto.html from the server using host ip, 
>> port and the password which we get from the ticket creation… it shows a 
>> Failed to connect to server (code: 1006). 
> 
> Hi Punit,
> did you read about the modification we did for the noVNC package? 
> http://www.ovirt.org/Features/noVNC_console
> 
> 
>>  
>> The following are the codes which we use to create the ticket… host,port and 
>> the password will get from the ticket and with the same details (host,port & 
>> password) we are able to connect the console using the vnc clients(TigerVNC 
>> etc.)  
> 
> you mean the "ticket" call? that returns you the direct connection information
> but you want to connect to websocket proxy(to engine:6100 indeed) and pass 
> the above information as an signed encoded url path (where to connect to from 
> proxy)
> check https://bugzilla.redhat.com/show_bug.cgi?id=838468 and associated 
> patches to see how it is being encoded
> 
> Thanks,
> michal
> 
>>  
>> try { 
>> var host = WebUtil.getQueryVar('host', '> $host?>'); 
>> var port = WebUtil.getQueryVar('port', '> $port?>'); 
>>   var path = WebUtil.getQueryVar('path', 'websockify'); 
>>  
>>   var password = ''; 
>>  
>> if ((!host) || (!port)) { 
>> updateState('failed', 
>> "Must specify host and port in URL"); 
>> return; 
>> } 
>>  
>> rfb = new RFB({'target':   $D('noVNC_canvas'), 
>>'encrypt':  WebUtil.getQueryVar('encrypt', 
>>   
>>  (window.location.protocol === "https:")), 
>>'true_color':   WebUtil.getQueryVar('true_color', 
>> true), 
>>'local_cursor': WebUtil.getQueryVar('cursor', 
>> true), 
>>'shared':   WebUtil.getQueryVar('shared', 
>> true), 
>>'view_only':WebUtil.getQueryVar('view_only', 
>> false), 
>>'updateState':  updateState, 
>>'onPasswordRequired':  passwordRequired}); 
>>rfb.connect(host, port, password, path); 
>> }catch(e) {alert(e); 
>>  
>>  
>> Could you please check if there any issues with it and guide me how to get 
>> rid of this failed to connect error? 
>>  
>> I have attached the screen shots for further reference…
>> 
>> Thanks,
>> Punit
>> 
>> 
>> 
>> On Tue, Jul 22, 2014 at 2:54 PM, Shanil S  wrote:
>> Hi All,
>> 
>> We already updated with the logs and the clear picture about the issue.
>> 
>> -- 
>> Regards 
>> Shanil
>> 
>> 
>> On Mon, Jul 21, 2014 at 5:54 PM, Michal Skrivanek 
>>  wrote:
>> 
>> On Jul 21, 2014, at 04:33 , Punit Dambiwal  wrote:
>> 
>> > Hi All,
>> >
>> > I am still waiting for the updates...is there any one have the clue to 
>> > solve this problem ???
>> 
>> Hi Punit,
>> I'm afraid no one can help you  debug connectivity issues remotely, without 
>> describing precisely what are you doing and how, and include all the logs
>> 
>> Thanks,
>> michal
>> 
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Fri, Jul 18, 2014 at 12:37 PM, Punit Dambiwal  wrote:
>> > Hi All,
>> >
>> > We are also struggling with the same problemcan anybody mind to update 
>> > here the resolution or suggest us the way to get rid of this "Failed to 
>> > connect to server (code: 1006" error.
>> >
>> > Thanks,
>> > Punit
>> >
>> >
>> > On Thu, Jul 17, 2014 at 5:20 PM, Shanil S  wrote:
>> > Hi,
>> >
>> > We are waiting for the updates, it will be great if anyone can give the 
>> > helpful details.. :)
>> >
>> > --
>> > Regards
>> > Shanil
>> >
>> >
>> > On Thu, Jul 17, 2014 at 10:23 AM, Shanil S  wrote:
>> > Hi,
>> >
>> > we have enabled our portal ip address on the engine and hosts firewall but 
>> > still the connection failed. so there should be no firewall issues.
>> >
>> > --
>> > Regards
>> > Shanil
>> >
>> >
>> > On Wed, Jul 16, 2014 at 3:26 PM, Shanil S  wrote:
>> > Hi Sven,
>> >
>> > Regarding the ticket "path", I

Re: [ovirt-users] cloud-init options under python-sdk

2014-07-22 Thread Juan Hernandez
On 07/22/2014 02:55 PM, Amedeo Salvati wrote:
> hi Juan|guys,
> 
> thanks for hints! but unfortunatly it seems wont works, because I've
> launched vm with this simple code:
> 
> action =
> params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name="rheltest014")
> vm.start( action )
> 
> but after boot the VM, cloud-init service hasn't set hostname and on
> cloud-init.log and cloud-init-output.log I cannot find any entry for
> setting hostname, instead if I use web ui it work's fine...
> 
> there are any ways to debug cloud-init jobs?
> the params params.Host is right for CloudInit host or is intended for
> host / hypervisor?
> 
> Best regards
> Amedeo Salvati
> 

To change the hostname you have to use the "address" property of the
"Host" class:

  host=params.Host(
  address="myhostname.example.com"
  )

The "Host" class is used for many things, including CloudInit and
hypervisors. But in this context it is just a container for the host name.

To debug cloud-init start the VM (with the GUI or with the RESTAPI),
then go to the hypervisor where it is actually running, and look for the
corresponding qemu-kvm process:

  # ps -ef | grep qemu-kvm | grep myvm

The qemu-kvm command line will have a parameter indicating the file that
contains the cloud-init data:

  -drive file=/var/run/vdsm/payload/...img

Copy that file somewhere, then mount it and inspect the content:

  # cp /var/run/vdsm/payload/...img /tmp/my.img
  # mount -o loop,ro /tmp/my.img /mnt
  # find /mnt
  ...
  # umount /mnt


> Da: "Juan Hernandez" jhern...@redhat.com
> A: "Amedeo Salvati" ame...@oscert.net, users@ovirt.org
> Cc:
> Data: Tue, 22 Jul 2014 12:21:01 +0200
> Oggetto: Re: [ovirt-users] cloud-init options under python-sdk
> 
>> On 07/22/2014 11:48 AM, Amedeo Salvati wrote:
>> > hello guys!
>> >
>> > I'm writing some python code to start VMs, and based on operating system
>> > (at this moment centos6 nad centos7), I would like to use cloud-init
>> > options (available on web ui at run-once) to start them and resetting
>> > root password, change hostname and write some configuration files by
>> > using yaml semantics, but at this moment I was unable to find a way to
>> > do it...
>> >
>> > somebody know a way (or could send me some hints) using python-sdk to
>> > start A VM and pass to it cloud-init options?
>> >
>> > e.g. the portion of code I would like to change is vm.start() under
> rhel6|7:
>> >
>> > try:
>> > osVersion = vm.get_os().get_type()
>> > if (osVersion == "rhel_6x64" or osVersion == "rhel_6" or
>> > osVersion == "rhel_7x64") and CLOUDINIT == "yes":
>> > print "Starting VM: " + vm.name + " with cloud-init
>> > options"
>> > > vm.start() <-- > else:
>> > print "Starting VM " + vm.name
>> > vm.start()
>> > while vmstat != 'down':
>> > sleep(1)
>> > vmstat = vm.get_status().state
>> > except Exception, err:
>> > print "Error on starting VM"
>> > print err
>> >
>> >
>> > Best regards
>> > Amedeo Salvati
>> >
>>
>> It should be something like this:
>>
>> from ovirtsdk.xml import params
>>
>> action = params.Action(
>> vm=params.VM(
>> initialization=params.Initialization(
>> cloud_init=params.CloudInit(
>> host=params.Host(
>> name="myvm"
>> ),
>> users=...,
>> files=...,
>> ...
>> )
>> )
>> )
>> )
>>
>> vm.start(action)
>>
>>
>> --
>> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
>> 3ºD, 28016 Madrid, Spain
>> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.


-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Misaligned Disk after resize

2014-07-22 Thread Daniel Helgenberger
Hi Neil,

To severely impact iops with a single nonaligned VM - image the is
rather unusual.

Can you please be more specific:
IIRC, to run into the misalignment scenario you need block backed
storage for your VM. So FC / Posix / iSCSI but not NFS.
- The CPU load of the visualization host or the VM?
- Can you confirm (eg. with top) that you have constant a high IO Wait
(>20%) there?

Cheers, 



On Di, 2014-07-22 at 14:47 +0200, Neil wrote:
> Hi guys,
> 
> We re-sized (expanded) a Server 2003 VM a few weeks back and since
> then the CPU load seems to be rather excessive. Also in the oVirt GUI
> it reports the disk is misaligned, I've done a bit of reading and it
> sounds like the only way to correct the alignment again is to
> re-install, is this the only option?
> 
> Thank you.
> 
> Regards.
> 
> Neil Wilson.
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users

-- 

Daniel Helgenberger 
m box bewegtbild GmbH 

P: +49/30/2408781-22
F: +49/30/2408781-10

ACKERSTR. 19 
D-10115 BERLIN 


www.m-box.de  www.monkeymen.tv 

Geschäftsführer: Martin Retschitzegger / Michaela Göllner
Handeslregister: Amtsgericht Charlottenburg / HRB 112767 


smime.p7s
Description: S/MIME cryptographic signature
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread Chris Adams
Once upon a time, ybronhei  said:
> On 07/21/2014 01:45 AM, Jorick Astrego wrote:
> >Hi,
> >
> >Some more info, I think this is the problem and I also have it on the
> >node image:
> >
> >Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
> >/etc/libvirt/passwd.db: No such file or directory
> >
> Hey
> 
> Did you check if libvirtd services is up?
> can you share libvirtd.conf file?
> I'm not sure what is exactly the issue, but you can try "vdsm-tool
> configure --module libvirt" command to see if you set the vdsm
> configuration for libvirt as required.

I see the same thing with a new 3.5-beta install.  libvirtd is running;
I ran the above vdsm-tool command, but that made no difference.

The libvirtd.conf has the following config (set by vdsm install):

## beginning of configuration section by vdsm-4.13.0
keepalive_interval=-1
log_outputs="1:file:/var/log/libvirt/libvirtd.log"
unix_sock_rw_perms="0770"
auth_unix_rw="sasl"
log_filters="3:virobject 3:virfile 2:virnetlink 3:cgroup 3:event 3:json 
1:libvirt 1:util 1:qemu"
cert_file="/etc/pki/vdsm/certs/vdsmcert.pem"
unix_sock_group="qemu"
listen_addr="0.0.0.0"
ca_file="/etc/pki/vdsm/certs/cacert.pem"
key_file="/etc/pki/vdsm/keys/vdsmkey.pem"
host_uuid="74e1d154-d83f-4852-9c35-3c931f8b45cf"
## end of configuration section by vdsm-4.13.0

If I comment out the auth_unix_rw line and restart libvirtd, vdsmd will
start successfully.
-- 
Chris Adams 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] cloud-init options under python-sdk

2014-07-22 Thread Amedeo Salvati
hi Juan|guys,

thanks for hints! but unfortunatly it seems wont works, because I've launched 
vm with this simple code:

action = 
params.Action(vm=params.VM(initialization=params.Initialization(cloud_init=params.CloudInit(host=params.Host(name="rheltest014")
vm.start( action )

but after boot the VM, cloud-init service hasn't set hostname and on 
cloud-init.log and cloud-init-output.log I cannot find any entry for setting 
hostname, instead if I use web ui it work's fine...

there are any ways to debug cloud-init jobs?
the params params.Host is right for CloudInit host or is intended for host / 
hypervisor?

Best regards
Amedeo Salvati


Da: "Juan Hernandez" jhern...@redhat.com
A: "Amedeo Salvati" ame...@oscert.net, users@ovirt.org
Cc: 
Data: Tue, 22 Jul 2014 12:21:01 +0200
Oggetto: Re: [ovirt-users] cloud-init options under python-sdk


> On 07/22/2014 11:48 AM, Amedeo Salvati wrote:
> > hello guys!
> > 
> > I'm writing some python code to start VMs, and based on operating system
> > (at this moment centos6 nad centos7), I would like to use cloud-init
> > options (available on web ui at run-once) to start them and resetting
> > root password, change hostname and write some configuration files by
> > using yaml semantics, but at this moment I was unable to find a way to
> > do it...
> > 
> > somebody know a way (or could send me some hints) using python-sdk to
> > start A VM and pass to it cloud-init options?
> > 
> > e.g. the portion of code I would like to change is vm.start() under rhel6|7:
> > 
> > try:
> > osVersion = vm.get_os().get_type()
> > if (osVersion == "rhel_6x64" or osVersion == "rhel_6" or
> > osVersion == "rhel_7x64") and CLOUDINIT == "yes":
> > print "Starting VM: " + vm.name + " with cloud-init
> > options"
> > >vm.start()  <--  > 
> > else:
> > print "Starting VM " + vm.name
> > vm.start()
> > while vmstat != 'down':
> > sleep(1)
> > vmstat = vm.get_status().state
> > except Exception, err:
> > print "Error on starting VM"
> > print err
> > 
> > 
> > Best regards
> > Amedeo Salvati
> > 
> 
> It should be something like this:
> 
>   from ovirtsdk.xml import params
> 
>   action = params.Action(
> vm=params.VM(
>   initialization=params.Initialization(
> cloud_init=params.CloudInit(
>   host=params.Host(
> name="myvm"
>   ),
>   users=...,
>   files=...,
>   ...
> )
>   )
> )
>   )
> 
>   vm.start(action)
> 
> 
> -- 
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Misaligned Disk after resize

2014-07-22 Thread Neil
Hi guys,

We re-sized (expanded) a Server 2003 VM a few weeks back and since
then the CPU load seems to be rather excessive. Also in the oVirt GUI
it reports the disk is misaligned, I've done a bit of reading and it
sounds like the only way to correct the alignment again is to
re-install, is this the only option?

Thank you.

Regards.

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


Re: [ovirt-users] Server Engine and Host Server at the same Hardware

2014-07-22 Thread Simone Tiraboschi




- Original Message -
> From: "William Juliano Gutierres" 
> To: users@ovirt.org
> Sent: Friday, July 18, 2014 6:49:08 PM
> Subject: [ovirt-users] Server Engine and Host Server at the same Hardware
> 
> Hi,
> 
> I'm testing the oVirt and reanding the documentation I discovered that oVirt
> needs two separeted servers: the Engine and at least one host server. So, I
> have two main questions:
> 
> 
> 
> * No 1: I have just one good hardware enough to run this solution. So,
> before I go out running for an another new hardware, I would like to
> know if is that possible run the oVirt Engine and the oVirt Host Server
> in the same hardware (install the engine, and when add a host, point to
> the same Engine address). Is it possible?

You have to distinct option to use a single host:
1. all in one: the physical host contains either the engine and VDSM to control 
itself as an hypervisor: http://www.ovirt.org/Feature/AllInOne
2. hosted engine: the physical host acts only as a managed hypervisor witch 
runs a VM for the engine: http://www.ovirt.org/Hosted_Engine_Howto

Option two makes easy to migrate to an ha configuration adding than a second 
host; option one is probably easier.

> * No 2: I read about the self-hosted engine, but it was not clear how do
> I start it (assuming that I have one hardware, wich one I install
> first?). And if it is possible in that way, I would like to know about
> you if you have a normal performance doing this way.

Follow above links.

> Thank you!
> 
> Atenciosamente,
> 
> 
> 
> William Gutierres
> 
> 
> 
> william@gmail.com
> Antes de imprimir este e-mail, pense em sua responsabilidade e compromisso
> com o meio ambiente.
> 
> 
> --
> 
> Esta mensagem, incluindo quaisquer anexos, é confidencial e pode conter
> informações privilegiadas. Se você a recebeu por engano, favor notificar o
> autor retornando o email e deletando-o do seu sistema. Qualquer uso não
> autorizado ou disseminação desta mensagem, inteira ou parcial, é
> estritamente proibido. As ideias contidas nesta mensagem ou em seus anexos
> não necessariamente refletem a opinião de William Gutierres.
> --
> 
> ___
> 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: [ovirt-users] Reclaim/Trim/issue_discards : how to inform my LUNs about disk space waste?

2014-07-22 Thread Federico Simoncelli
- Original Message -
> From: "Nicolas Ecarnot" 
> To: "users" 
> Sent: Thursday, July 3, 2014 10:54:57 AM
> Subject: [ovirt-users] Reclaim/Trim/issue_discards : how to inform my LUNs 
> about disk space waste?
> 
> Hi,
> 
> In my hosts, I see that /etc/lvm/lvm.conf shows :
> 
> issue_discards = 0
> 
> Can I enable it to 1 ?
> 
> Thank you?

You can change it but it's not going to affect the lvm behavior in VDSM
since we don't use the host lvm config file.

This will be probably addressed as part of bz1017284 as we're considering
to extend discard also to vdsm images (and not direct luns only).

https://bugzilla.redhat.com/show_bug.cgi?id=1017284

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


Re: [ovirt-users] Guest VM Console Creation/Access using REST API and noVNC

2014-07-22 Thread Shanil S
Hi Michal,

Thanks for your updates.

I am unable to view the above post
https://bugzilla.redhat.com/show_bug.cgi?id=838468 and getting an access
denied error. I don't have the login to this, could you please paste the
content here ?


-- 
Regards
Shanil


On Tue, Jul 22, 2014 at 12:53 PM, Michal Skrivanek <
michal.skriva...@redhat.com> wrote:

>
> On 22 Jul 2014, at 09:02, Punit Dambiwal wrote:
>
> Hi Michal,
>
> We want to access vm console by using noVNC and Rest api. We are using
> websocket proxy on the same machine where engine runs and we try to get the
> console access from the another server that is outside from this cluster.
>
> But when we try to connect the vnc_auto.html from the server using host
> ip, port and the password which we get from the ticket creation… it shows a
> Failed to connect to server (code: 1006).
>
>
> Hi Punit,
> did you read about the modification we did for the noVNC package?
> http://www.ovirt.org/Features/noVNC_console
>
>
>
> The following are the codes which we use to create the ticket… host,port
> and the password will get from the ticket and with the same details
> (host,port & password) we are able to connect the console using the vnc
> clients(TigerVNC etc.)
>
>
> you mean the "ticket" call? that returns you the direct connection
> information
> but you want to connect to websocket proxy(to engine:6100 indeed) and pass
> the above information as an signed encoded url path (where to connect to
> from proxy)
> check https://bugzilla.redhat.com/show_bug.cgi?id=838468 and associated
> patches to see how it is being encoded
>
> Thanks,
> michal
>
>
> try {
> var host = WebUtil.getQueryVar('host', ' $host?>');
> var port = WebUtil.getQueryVar('port', ' $port?>');
>   var path = WebUtil.getQueryVar('path', 'websockify');
>
>   var password = '';
>
> if ((!host) || (!port)) {
> updateState('failed',
> "Must specify host and port in URL");
> return;
> }
>
> rfb = new RFB({'target':   $D('noVNC_canvas'),
>'encrypt':  WebUtil.getQueryVar('encrypt',
>
>  (window.location.protocol === "https:")),
>'true_color':
> WebUtil.getQueryVar('true_color', true),
>'local_cursor': WebUtil.getQueryVar('cursor',
> true),
>'shared':   WebUtil.getQueryVar('shared',
> true),
>'view_only':
> WebUtil.getQueryVar('view_only', false),
>'updateState':  updateState,
>'onPasswordRequired':  passwordRequired});
>rfb.connect(host, port, password, path);
> }catch(e) {alert(e);
>
>
> Could you please check if there any issues with it and guide me how to get
> rid of this failed to connect error?
>
> I have attached the screen shots for further reference…
>
> Thanks,
> Punit
>
>
>
> On Tue, Jul 22, 2014 at 2:54 PM, Shanil S  wrote:
>
>> Hi All,
>>
>> We already updated with the logs and the clear picture about the issue.
>>
>> --
>> Regards
>> Shanil
>>
>>
>> On Mon, Jul 21, 2014 at 5:54 PM, Michal Skrivanek <
>> michal.skriva...@redhat.com> wrote:
>>
>>>
>>> On Jul 21, 2014, at 04:33 , Punit Dambiwal  wrote:
>>>
>>> > Hi All,
>>> >
>>> > I am still waiting for the updates...is there any one have the clue to
>>> solve this problem ???
>>>
>>> Hi Punit,
>>> I'm afraid no one can help you  debug connectivity issues remotely,
>>> without describing precisely what are you doing and how, and include all
>>> the logs
>>>
>>> Thanks,
>>> michal
>>>
>>> >
>>> > Thanks,
>>> > Punit
>>> >
>>> >
>>> > On Fri, Jul 18, 2014 at 12:37 PM, Punit Dambiwal 
>>> wrote:
>>> > Hi All,
>>> >
>>> > We are also struggling with the same problemcan anybody mind to
>>> update here the resolution or suggest us the way to get rid of this "Failed
>>> to connect to server (code: 1006" error.
>>> >
>>> > Thanks,
>>> > Punit
>>> >
>>> >
>>> > On Thu, Jul 17, 2014 at 5:20 PM, Shanil S 
>>> wrote:
>>> > Hi,
>>> >
>>> > We are waiting for the updates, it will be great if anyone can give
>>> the helpful details.. :)
>>> >
>>> > --
>>> > Regards
>>> > Shanil
>>> >
>>> >
>>> > On Thu, Jul 17, 2014 at 10:23 AM, Shanil S 
>>> wrote:
>>> > Hi,
>>> >
>>> > we have enabled our portal ip address on the engine and hosts firewall
>>> but still the connection failed. so there should be no firewall issues.
>>> >
>>> > --
>>> > Regards
>>> > Shanil
>>> >
>>> >
>>> > On Wed, Jul 16, 2014 at 3:26 PM, Shanil S 
>>> wrote:
>>> > Hi Sven,
>>> >
>>> > Regarding the ticket "path", Is it the direct combination of host and
>>> port ? suppose if the host is 1.2.3.4 and the port is 5100 then what should
>>> be the "path" value ? Is there encryption needs here ?
>>> >
>>> >
>>> > >>so you have access from the browser to the websocket-proxy, network
>>> > wise? can you ping th

Re: [ovirt-users] Guest VM CPU Information Different from the Host

2014-07-22 Thread Itamar Heim

On 07/17/2014 01:03 PM, Punit Dambiwal wrote:

Hi,

In my Ovirt cluster i am using the following CPU (Intel(R) Xeon(R) CPU
E5-2648L v2 @ 1.90GHz),but in the guest machine it shows "Intel Xeon
E312xx (Sandy Bridge)"

Seems it recognize E5 CPU as E3 CPUis there any way to modify it to
"Intel Xeon E526xx (Sandy Bridge)" instead of "Intel Xeon E312xx (Sandy
Bridge)"


that's a question to the qemu mailing list...

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


Re: [ovirt-users] [Gluster-devel] Can we debug some truths/myths/facts about hosted-engine and gluster?

2014-07-22 Thread Itamar Heim

On 07/22/2014 04:28 AM, Vijay Bellur wrote:

On 07/21/2014 05:09 AM, Pranith Kumar Karampuri wrote:


On 07/21/2014 02:08 PM, Jiri Moskovcak wrote:

On 07/19/2014 08:58 AM, Pranith Kumar Karampuri wrote:


On 07/19/2014 11:25 AM, Andrew Lau wrote:



On Sat, Jul 19, 2014 at 12:03 AM, Pranith Kumar Karampuri
mailto:pkara...@redhat.com>> wrote:


On 07/18/2014 05:43 PM, Andrew Lau wrote:

​ ​

On Fri, Jul 18, 2014 at 10:06 PM, Vijay Bellur
mailto:vbel...@redhat.com>> wrote:

[Adding gluster-devel]


On 07/18/2014 05:20 PM, Andrew Lau wrote:

Hi all,

As most of you have got hints from previous messages,
hosted engine
won't work on gluster . A quote from BZ1097639

"Using hosted engine with Gluster backed storage is
currently something
we really warn against.


I think this bug should be closed or re-targeted at
documentation, because there is nothing we can do here.
Hosted engine assumes that all writes are atomic and
(immediately) available for all hosts in the cluster.
Gluster violates those assumptions.
​"

I tried going through BZ1097639 but could not find much
detail with respect to gluster there.

A few questions around the problem:

1. Can somebody please explain in detail the scenario that
causes the problem?

2. Is hosted engine performing synchronous writes to ensure
that writes are durable?

Also, if there is any documentation that details the hosted
engine architecture that would help in enhancing our
understanding of its interactions with gluster.


​

Now my question, does this theory prevent a scenario of
perhaps
something like a gluster replicated volume being mounted
as a glusterfs
filesystem and then re-exported as the native kernel NFS
share for the
hosted-engine to consume? It could then be possible to
chuck ctdb in
there to provide a last resort failover solution. I have
tried myself
and suggested it to two people who are running a similar
setup. Now
using the native kernel NFS server for hosted-engine and
they haven't
reported as many issues. Curious, could anyone validate
my theory on this?


If we obtain more details on the use case and obtain gluster
logs from the failed scenarios, we should be able to
understand the problem better. That could be the first step
in validating your theory or evolving further
recommendations :).


​ I'm not sure how useful this is, but ​Jiri Moskovcak tracked
this down in an off list message.

​ Message Quote:​

​ ==​

​We were able to track it down to this (thanks Andrew for
providing the testing setup):

-b686-4363-bb7e-dba99e5789b6/ha_agent service_type=hosted-engine'
Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py",


line 165, in handle
  response = "success " + self._dispatch(data)
File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/listener.py",


line 261, in _dispatch
  .get_all_stats_for_service_type(**options)
File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py",


line 41, in get_all_stats_for_service_type
  d = self.get_raw_stats_for_service_type(storage_dir,
service_type)
File
"/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/broker/storage_broker.py",


line 74, in get_raw_stats_for_service_type
  f = os.open(path, direct_flag | os.O_RDONLY)
OSError: [Errno 116] Stale file handle:
'/rhev/data-center/mnt/localhost:_mnt_hosted-engine/c898fd2a-b686-4363-bb7e-dba99e5789b6/ha_agent/hosted-engine.metadata'



Andrew/Jiri,
Would it be possible to post gluster logs of both the
mount and bricks on the bz? I can take a look at it once. If I
gather nothing then probably I will ask for your help in
re-creating the issue.

Pranith


​Unfortunately, I don't have the logs for that setup any more.. ​I'll
try replicate when I get a chance. If I understand the comment from
the BZ, I don't think it's a gluster bug per-say, more just how
gluster does its replication.

hi Andrew,
  Thanks for that. I couldn't come to any conclusions
because no
logs were available. It is unlikely that self-heal is involved because
there were no bricks going down/up according to the bug description.



Hi,
I've never had such setup, I guessed problem with gluster based on
"OSError: [Errno 116] Stale file handle:" which happens when the file
opened by application on client gets removed on the server. I'm pretty
sure we (hosted-engine) do

Re: [ovirt-users] user permissions

2014-07-22 Thread Oved Ourfali
Please open a bug on that.
But please provide full details, what permissions on what object, and what 
dialog are you opening, what operation are you trying to do, with the complete 
logs.

Thanks,
Oved

- Original Message -
> From: "Jorick Astrego" 
> Cc: users@ovirt.org
> Sent: Tuesday, July 22, 2014 1:57:44 PM
> Subject: Re: [ovirt-users] user permissions
> 
> 
> The only relevant things I see in the log are lots of these:
> 
> 2014-07-22 09:52:46,867 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-12) Query execution failed due to insufficient
> permissions.
> 2014-07-22 09:52:46,867 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-12) Query execution failed due to insufficient
> permissions.
> 2014-07-22 09:53:46,869 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 2014-07-22 09:53:46,869 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 2014-07-22 09:54:46,865 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-8) Query execution failed due to insufficient
> permissions.
> 2014-07-22 09:54:46,865 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-8) Query execution failed due to insufficient
> permissions.
> 
> 2014-07-22 10:27:46,879 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:27:46,880 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:28:46,949 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-1) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:28:46,950 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-1) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:29:46,887 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-4) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:29:46,887 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-4) Query execution failed due to insufficient
> permissions.
> 
> 2014-07-22 10:36:46,911 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-13) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:36:46,911 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-13) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:37:46,924 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-1) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:37:46,924 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-1) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:38:46,966 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-8) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:38:46,967 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-8) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:39:46,941 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 2014-07-22 10:39:46,942 ERROR [org.ovirt.engine.core.bll.SearchQuery]
> (ajp--127.0.0.1-8702-5) Query execution failed due to insufficient
> permissions.
> 
> Kind regards,
> Jorick
> 
> 
> On 07/22/2014 12:16 PM, Oved Ourfali wrote:
> 
> 
> 
> Setting PowerUser for some user on System or on a DC should be enough to
> create VMs on it.
> What error do you get?
> Can you share your logs?
> 
> - Original Message -
> 
> 
> 
> From: "Jorick Astrego"  Cc: users@ovirt.org Sent:
> Tuesday, July 22, 2014 12:26:38 PM
> Subject: Re: [ovirt-users] user permissions
> 
> I had it set on the system (with the configure button) and the DC but
> tried every combination I could think off.
> 
> Also created a new user type role with all the user permissions selected.
> 
> Kind regards,
> Jorick Astrego
> 
> 
> 
> On 07/22/2014 11:16 AM, Oved Ourfali wrote:
> 
> 
> 
> On what object did you assign the PowerUser role?
> A permission consist of user+role+object.
> 
> - Original Message -
> 
> 
> 
> From: "Jorick Astrego"  To: users@ovirt.org Sent:
> Tuesday, July 22, 2014 11:43:43 AM
> Subject: Re: [ovirt-users] user permissions
> 
> Hi,
> 
> Sorry let be a bit more clear. I want to have a user that can log into the
> user portal and create vm's, stop them, add disks etc. But only as a user.
> 
> I tried the poweruser role and can do all things except creating a new VM.
> I
> also want the user to only see and manipulate his own VM's and not the
> other
> ones running on the same system.
> 
> Even with the PowerUser role, I am not able to create a new VM as this

Re: [ovirt-users] user permissions

2014-07-22 Thread Jorick Astrego


The only relevant things I see in the log are lots of these:

2014-07-22 09:52:46,867 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-12) Query execution failed due to insufficient 
permissions.
2014-07-22 09:52:46,867 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-12) Query execution failed due to insufficient 
permissions.
2014-07-22 09:53:46,869 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.
2014-07-22 09:53:46,869 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.
2014-07-22 09:54:46,865 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-8) Query execution failed due to insufficient 
permissions.
2014-07-22 09:54:46,865 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-8) Query execution failed due to insufficient 
permissions.


2014-07-22 10:27:46,879 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.
2014-07-22 10:27:46,880 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.
2014-07-22 10:28:46,949 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-1) Query execution failed due to insufficient 
permissions.
2014-07-22 10:28:46,950 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-1) Query execution failed due to insufficient 
permissions.
2014-07-22 10:29:46,887 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-4) Query execution failed due to insufficient 
permissions.
2014-07-22 10:29:46,887 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-4) Query execution failed due to insufficient 
permissions.


2014-07-22 10:36:46,911 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-13) Query execution failed due to insufficient 
permissions.
2014-07-22 10:36:46,911 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-13) Query execution failed due to insufficient 
permissions.
2014-07-22 10:37:46,924 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-1) Query execution failed due to insufficient 
permissions.
2014-07-22 10:37:46,924 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-1) Query execution failed due to insufficient 
permissions.
2014-07-22 10:38:46,966 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-8) Query execution failed due to insufficient 
permissions.
2014-07-22 10:38:46,967 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-8) Query execution failed due to insufficient 
permissions.
2014-07-22 10:39:46,941 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.
2014-07-22 10:39:46,942 ERROR [org.ovirt.engine.core.bll.SearchQuery] 
(ajp--127.0.0.1-8702-5) Query execution failed due to insufficient 
permissions.


Kind regards,
Jorick


On 07/22/2014 12:16 PM, Oved Ourfali wrote:

Setting PowerUser for some user on System or on a DC should be enough to create 
VMs on it.
What error do you get?
Can you share your logs?

- Original Message -

From: "Jorick Astrego" 
Cc: users@ovirt.org
Sent: Tuesday, July 22, 2014 12:26:38 PM
Subject: Re: [ovirt-users] user permissions

I had it set on the system (with the configure button) and the DC but
tried every combination I could think off.

Also created a new user type role with all the user permissions selected.

Kind regards,
Jorick Astrego



On 07/22/2014 11:16 AM, Oved Ourfali wrote:

On what object did you assign the PowerUser role?
A permission consist of user+role+object.

- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Tuesday, July 22, 2014 11:43:43 AM
Subject: Re: [ovirt-users] user permissions

Hi,

Sorry let be a bit more clear. I want to have a user that can log into the
user portal and create vm's, stop them, add disks etc. But only as a user.

I tried the poweruser role and can do all things except creating a new VM.
I
also want the user to only see and manipulate his own VM's and not the
other
ones running on the same system.

Even with the PowerUser role, I am not able to create a new VM as this
user.
Also when I edit the built-in PowerUser role, I only see the following
rights selected:

Login Permissions

Template

Provisioning Operations
Create

VM


Provisioning Operations
Edit properties
Create

Disk

Provisioning Operations
Create

Everything else is deselected.

Kind regards,

Jorick Astrego
Netbulae

On 07/22/2014 10:35 AM, Oved Ourfali wrote:



Hi

You didn't really specify what you would like to accomplish, and what
permissions were granted and on what object.
In general, we have two types of roles: User and Admin roles.
If a user has any admin role on any

Re: [ovirt-users] cloud-init options under python-sdk

2014-07-22 Thread Juan Hernandez
On 07/22/2014 11:48 AM, Amedeo Salvati wrote:
> hello guys!
> 
> I'm writing some python code to start VMs, and based on operating system
> (at this moment centos6 nad centos7), I would like to use cloud-init
> options (available on web ui at run-once) to start them and resetting
> root password, change hostname and write some configuration files by
> using yaml semantics, but at this moment I was unable to find a way to
> do it...
> 
> somebody know a way (or could send me some hints) using python-sdk to
> start A VM and pass to it cloud-init options?
> 
> e.g. the portion of code I would like to change is vm.start() under rhel6|7:
> 
> try:
> osVersion = vm.get_os().get_type()
> if (osVersion == "rhel_6x64" or osVersion == "rhel_6" or
> osVersion == "rhel_7x64") and CLOUDINIT == "yes":
> print "Starting VM: " + vm.name + " with cloud-init
> options"
> >vm.start()  <--
> else:
> print "Starting VM " + vm.name
> vm.start()
> while vmstat != 'down':
> sleep(1)
> vmstat = vm.get_status().state
> except Exception, err:
> print "Error on starting VM"
> print err
> 
> 
> Best regards
> Amedeo Salvati
> 

It should be something like this:

  from ovirtsdk.xml import params

  action = params.Action(
vm=params.VM(
  initialization=params.Initialization(
cloud_init=params.CloudInit(
  host=params.Host(
name="myvm"
  ),
  users=...,
  files=...,
  ...
)
  )
)
  )

  vm.start(action)


-- 
Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
3ºD, 28016 Madrid, Spain
Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] user permissions

2014-07-22 Thread Oved Ourfali
Setting PowerUser for some user on System or on a DC should be enough to create 
VMs on it.
What error do you get?
Can you share your logs?

- Original Message -
> From: "Jorick Astrego" 
> Cc: users@ovirt.org
> Sent: Tuesday, July 22, 2014 12:26:38 PM
> Subject: Re: [ovirt-users] user permissions
> 
> I had it set on the system (with the configure button) and the DC but
> tried every combination I could think off.
> 
> Also created a new user type role with all the user permissions selected.
> 
> Kind regards,
> Jorick Astrego
> 
> 
> 
> On 07/22/2014 11:16 AM, Oved Ourfali wrote:
> > On what object did you assign the PowerUser role?
> > A permission consist of user+role+object.
> >
> > - Original Message -
> >> From: "Jorick Astrego" 
> >> To: users@ovirt.org
> >> Sent: Tuesday, July 22, 2014 11:43:43 AM
> >> Subject: Re: [ovirt-users] user permissions
> >>
> >> Hi,
> >>
> >> Sorry let be a bit more clear. I want to have a user that can log into the
> >> user portal and create vm's, stop them, add disks etc. But only as a user.
> >>
> >> I tried the poweruser role and can do all things except creating a new VM.
> >> I
> >> also want the user to only see and manipulate his own VM's and not the
> >> other
> >> ones running on the same system.
> >>
> >> Even with the PowerUser role, I am not able to create a new VM as this
> >> user.
> >> Also when I edit the built-in PowerUser role, I only see the following
> >> rights selected:
> >>
> >> Login Permissions
> >>
> >> Template
> >>
> >> Provisioning Operations
> >> Create
> >>
> >> VM
> >>
> >>
> >> Provisioning Operations
> >> Edit properties
> >> Create
> >>
> >> Disk
> >>
> >> Provisioning Operations
> >> Create
> >>
> >> Everything else is deselected.
> >>
> >> Kind regards,
> >>
> >> Jorick Astrego
> >> Netbulae
> >>
> >> On 07/22/2014 10:35 AM, Oved Ourfali wrote:
> >>
> >>
> >>
> >> Hi
> >>
> >> You didn't really specify what you would like to accomplish, and what
> >> permissions were granted and on what object.
> >> In general, we have two types of roles: User and Admin roles.
> >> If a user has any admin role on any object, then he can login to the admin
> >> portal.
> >> So, as long as you don't assign the user with admin role he will not be
> >> able
> >> to login to the admin portal.
> >>
> >> Giving PowerUser role on a DC will allow the user to create VMs and Disks
> >> through the user portal.
> >> Is that what you would like to accomplish?
> >>
> >> Oved
> >>
> >> - Original Message -
> >>
> >>
> >>
> >> From: "Jorick Astrego"  To: users@ovirt.org Sent:
> >> Tuesday, July 22, 2014 11:32:16 AM
> >> Subject: [ovirt-users] user permissions
> >>
> >> Hi,
> >>
> >> In our 3.4.3 environment I started adding external users (it is
> >> connected to a freeipa server) and I'm having some problems setting the
> >> correct permissions.
> >>
> >> When I give all user roles to a user, I cannot create a vm and get an
> >> error "User is not authorized to perform this action". I tried setting
> >> it on the system level, DC level and cluster level.
> >>
> >> I needed to give this user an administrator role with only exactly the
> >> same vm and disk permissions (nothing extra) and things work ok, but he
> >> can now login to the admin portal. So I blocked it with a .htaccess
> >> which is not the prettiest solution.
> >>
> >> Am I doing things wrong?
> >>
> >> Also the user disappeared from the "System permissions" overview but can
> >> still login, which is a bit weird.
> >>
> >> Kind regards,
> >>
> >> Jorick Astrego
> >> Netbulae
> >>
> >> ___
> >> 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
> >>
> 
> 
> ___
> 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: [ovirt-users] Deploying hosted engine on second host with different CPU model

2014-07-22 Thread Simone Tiraboschi




- Original Message -
> From: "George Machitidze" 
> To: "Itamar Heim" 
> Cc: "Simone Tiraboschi" , "George Machitidze" 
> , "users"
> 
> Sent: Tuesday, July 22, 2014 11:58:35 AM
> Subject: Re: [ovirt-users] Deploying hosted engine on second host with 
> different CPU model
> 
> Simone, Itamar
> 
> thanks for reply
> 
> nx flag doesn't exist on second host. should it throw this partucular error
> and not detect cpu type?

Yes, on some CPUs if the NX flag is not active host-deploy cannot detect the 
CPU type due to hardware constraints getting that error.

> What is target release for patch?

3.5.0 beta2, but the patch is of course not able to enable nx flag by itself: 
it simply inform the user about that asking him to enable NX support in the 
bios.
https://bugzilla.redhat.com/show_bug.cgi?id=1103672



> I will build one more test lab for ovirt. I've already faced about 10 bugs
> in 3.4.2, but all are already solved in 3.4.3 :)
> 
> *George Machitidze*
> 
> 
> 2014-07-22 13:37 GMT+04:00 Itamar Heim :
> 
> > On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:
> >
> >> Than can you also check the presence of vmx and nx flags in /proc/cpuinfo
> >> ?
> >>
> >> Recently we solved a bug regarding that:https://bugzilla.redhat.
> >> com/show_bug.cgi?id=1119145
> >> Hosted engine deploy didn't checked the status of nx flag but some CPU
> >> requires also to enable NX to properly support virtualization.
> >>
> >
> > just a note, to avoid live migration issues we always require the nx flag
> > to be turned on in ovirt.
> >
> > ___
> > 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: [ovirt-users] Deploying hosted engine on second host with different CPU model

2014-07-22 Thread Itamar Heim

On 07/22/2014 12:58 PM, George Machitidze wrote:

Simone, Itamar

thanks for reply

nx flag doesn't exist on second host. should it throw this partucular
error and not detect cpu type?



not sure.
in any case, please make sure to do a COLD boot after changing it in the 
bios.


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


Re: [ovirt-users] Deploying hosted engine on second host with different CPU model

2014-07-22 Thread George Machitidze
Simone, Itamar

thanks for reply

nx flag doesn't exist on second host. should it throw this partucular error
and not detect cpu type?

What is target release for patch?

I will build one more test lab for ovirt. I've already faced about 10 bugs
in 3.4.2, but all are already solved in 3.4.3 :)

*George Machitidze*


2014-07-22 13:37 GMT+04:00 Itamar Heim :

> On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:
>
>> Than can you also check the presence of vmx and nx flags in /proc/cpuinfo
>> ?
>>
>> Recently we solved a bug regarding that:https://bugzilla.redhat.
>> com/show_bug.cgi?id=1119145
>> Hosted engine deploy didn't checked the status of nx flag but some CPU
>> requires also to enable NX to properly support virtualization.
>>
>
> just a note, to avoid live migration issues we always require the nx flag
> to be turned on in ovirt.
>
> ___
> 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


[ovirt-users] cloud-init options under python-sdk

2014-07-22 Thread Amedeo Salvati
hello guys! 

I'm writing some python code to start VMs, and based on operating system (at 
this moment centos6 nad centos7), I would like to use cloud-init options 
(available on web ui at run-once) to start them and resetting root password, 
change hostname and write some configuration files by using yaml semantics, but 
at this moment I was unable to find a way to do it...

somebody know a way (or could send me some hints) using python-sdk to start A 
VM and pass to it cloud-init options?

e.g. the portion of code I would like to change is vm.start() under rhel6|7:

    try:
    osVersion = vm.get_os().get_type()
    if (osVersion == "rhel_6x64" or osVersion == "rhel_6" or 
osVersion == "rhel_7x64") and CLOUDINIT == "yes":
    print "Starting VM: " + vm.name + " with cloud-init options"
>    vm.start()  <--
    else:
    print "Starting VM " + vm.name
    vm.start()
    while vmstat != 'down':
    sleep(1)
    vmstat = vm.get_status().state
    except Exception, err:
    print "Error on starting VM"
    print err


Best regards
Amedeo Salvati___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Deploying hosted engine on second host with different CPU model

2014-07-22 Thread Itamar Heim

On 07/22/2014 12:31 PM, Simone Tiraboschi wrote:

Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ?

Recently we solved a bug regarding 
that:https://bugzilla.redhat.com/show_bug.cgi?id=1119145
Hosted engine deploy didn't checked the status of nx flag but some CPU requires 
also to enable NX to properly support virtualization.


just a note, to avoid live migration issues we always require the nx 
flag to be turned on in ovirt.

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


Re: [ovirt-users] Deploying hosted engine on second host with different CPU model

2014-07-22 Thread Simone Tiraboschi




- Original Message -
> From: "Itamar Heim" 
> To: "Andrew Lau" , "George Machitidze" 
> 
> Cc: "users" 
> Sent: Tuesday, July 22, 2014 12:09:54 AM
> Subject: Re: [ovirt-users] Deploying hosted engine on second host with 
> different CPU model
> 
> On 07/18/2014 02:05 AM, Andrew Lau wrote:
> > I think you should be able specify this within the ovirt-engine, just
> > modify the cluster's cpu compatibility. I hit this too, but i think I
> > just ended up provisioning the older machine first then the newer ones
> > joined with the older model
> 
> 1. first the host needs to have a compatible cpu model.
> what does 'vdsClient -s 0 getVdsCaps | grep -i flag' returns

Than can you also check the presence of vmx and nx flags in /proc/cpuinfo ?

Recently we solved a bug regarding that: 
https://bugzilla.redhat.com/show_bug.cgi?id=1119145
Hosted engine deploy didn't checked the status of nx flag but some CPU requires 
also to enable NX to properly support virtualization.


> 2. cluster cpu level is easy, but hosted engine vm config resides on the
> disk, and needs to be manually edited in this case iirc.
> 
> >
> > On Thu, Jul 17, 2014 at 11:05 PM, George Machitidze
> >  wrote:
> >> Hello,
> >>
> >> I am deploying hosted engine (HA) on hosts with different CPU models on
> >> one
> >> of my oVirt labs.
> >>
> >> Host have different CPU's or there is also the problem: virtualization
> >> platform cannot detect CPU at all, "The following CPU types are supported
> >> by
> >> this host:" is empty:
> >>
> >>
> >> 2014-07-17 16:51:42 DEBUG
> >> otopi.plugins.ovirt_hosted_engine_setup.vdsmd.cpu
> >> cpu._customization:124 Compatible CPU models are: []
> >>
> >> Is there any way to override this setting and use CPU of old machine for
> >> both hosts?
> >>
> >> ex.
> >> host1:
> >>
> >> cpu family  : 6
> >> model   : 15
> >> model name  : Intel(R) Xeon(R) CPU5160  @ 3.00GHz
> >> stepping: 11
> >>
> >> host2:
> >>
> >> cpu family  : 6
> >> model   : 42
> >> model name  : Intel(R) Xeon(R) CPU E31220 @ 3.10GHz
> >> stepping: 7
> >>
> >>
> >>
> >> [root@ovirt2 ~]# hosted-engine --deploy
> >> [ INFO  ] Stage: Initializing
> >>Continuing will configure this host for serving as hypervisor
> >>and
> >> create a VM where you have to install oVirt Engine afterwards.
> >>Are you sure you want to continue? (Yes, No)[Yes]:
> >> [ INFO  ] Generating a temporary VNC password.
> >> [ INFO  ] Stage: Environment setup
> >>Configuration files: []
> >>Log file:
> >> /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20140717165111-7tg2g7.log
> >>Version: otopi-1.2.1 (otopi-1.2.1-1.el6)
> >> [ INFO  ] Hardware supports virtualization
> >> [ INFO  ] Stage: Environment packages setup
> >> [ INFO  ] Stage: Programs detection
> >> [ INFO  ] Stage: Environment setup
> >> [ INFO  ] Stage: Environment customization
> >>
> >>--== STORAGE CONFIGURATION ==--
> >>
> >>During customization use CTRL-D to abort.
> >>Please specify the storage you would like to use (nfs3,
> >> nfs4)[nfs3]:
> >>Please specify the full shared storage connection path to use
> >> (example: host:/path): ovirt-hosted:/engine
> >>The specified storage location already contains a data domain.
> >>Is
> >> this an additional host setup (Yes, No)[Yes]?
> >> [ INFO  ] Installing on additional host
> >>Please specify the Host ID [Must be integer, default: 2]:
> >>
> >>--== SYSTEM CONFIGURATION ==--
> >>
> >> [WARNING] A configuration file must be supplied to deploy Hosted Engine on
> >> an additional host.
> >>The answer file may be fetched from the first host using scp.
> >>If you do not want to download it automatically you can abort
> >>the
> >> setup answering no to the following question.
> >>Do you want to scp the answer file from the first host? (Yes,
> >> No)[Yes]:
> >>Please provide the FQDN or IP of the first host: ovirt1.test.ge
> >>Enter 'root' user password for host ovirt1.test.ge:
> >> [ INFO  ] Answer file successfully downloaded
> >>
> >>--== NETWORK CONFIGURATION ==--
> >>
> >>The following CPU types are supported by this host:
> >> [ ERROR ] Failed to execute stage 'Environment customization': Invalid CPU
> >> type specified: model_Conroe
> >> [ INFO  ] Stage: Clean up
> >> [ INFO  ] Stage: Pre-termination
> >> [ INFO  ] Stage: Termination
> >>
> >> --
> >> BR
> >>
> >> George Machitidze
> >>
> >>
> >> ___
> >> 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: [ovirt-users] user permissions

2014-07-22 Thread Jorick Astrego
I had it set on the system (with the configure button) and the DC but 
tried every combination I could think off.


Also created a new user type role with all the user permissions selected.

Kind regards,
Jorick Astrego



On 07/22/2014 11:16 AM, Oved Ourfali wrote:

On what object did you assign the PowerUser role?
A permission consist of user+role+object.

- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Tuesday, July 22, 2014 11:43:43 AM
Subject: Re: [ovirt-users] user permissions

Hi,

Sorry let be a bit more clear. I want to have a user that can log into the
user portal and create vm's, stop them, add disks etc. But only as a user.

I tried the poweruser role and can do all things except creating a new VM. I
also want the user to only see and manipulate his own VM's and not the other
ones running on the same system.

Even with the PowerUser role, I am not able to create a new VM as this user.
Also when I edit the built-in PowerUser role, I only see the following
rights selected:

Login Permissions

Template

Provisioning Operations
Create

VM


Provisioning Operations
Edit properties
Create

Disk

Provisioning Operations
Create

Everything else is deselected.

Kind regards,

Jorick Astrego
Netbulae

On 07/22/2014 10:35 AM, Oved Ourfali wrote:



Hi

You didn't really specify what you would like to accomplish, and what
permissions were granted and on what object.
In general, we have two types of roles: User and Admin roles.
If a user has any admin role on any object, then he can login to the admin
portal.
So, as long as you don't assign the user with admin role he will not be able
to login to the admin portal.

Giving PowerUser role on a DC will allow the user to create VMs and Disks
through the user portal.
Is that what you would like to accomplish?

Oved

- Original Message -



From: "Jorick Astrego"  To: users@ovirt.org Sent:
Tuesday, July 22, 2014 11:32:16 AM
Subject: [ovirt-users] user permissions

Hi,

In our 3.4.3 environment I started adding external users (it is
connected to a freeipa server) and I'm having some problems setting the
correct permissions.

When I give all user roles to a user, I cannot create a vm and get an
error "User is not authorized to perform this action". I tried setting
it on the system level, DC level and cluster level.

I needed to give this user an administrator role with only exactly the
same vm and disk permissions (nothing extra) and things work ok, but he
can now login to the admin portal. So I blocked it with a .htaccess
which is not the prettiest solution.

Am I doing things wrong?

Also the user disappeared from the "System permissions" overview but can
still login, which is a bit weird.

Kind regards,

Jorick Astrego
Netbulae

___
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




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


Re: [ovirt-users] user permissions

2014-07-22 Thread Oved Ourfali
On what object did you assign the PowerUser role?
A permission consist of user+role+object.

- Original Message -
> From: "Jorick Astrego" 
> To: users@ovirt.org
> Sent: Tuesday, July 22, 2014 11:43:43 AM
> Subject: Re: [ovirt-users] user permissions
> 
> Hi,
> 
> Sorry let be a bit more clear. I want to have a user that can log into the
> user portal and create vm's, stop them, add disks etc. But only as a user.
> 
> I tried the poweruser role and can do all things except creating a new VM. I
> also want the user to only see and manipulate his own VM's and not the other
> ones running on the same system.
> 
> Even with the PowerUser role, I am not able to create a new VM as this user.
> Also when I edit the built-in PowerUser role, I only see the following
> rights selected:
> 
> Login Permissions
> 
> Template
> 
> Provisioning Operations
> Create
> 
> VM
> 
> 
> Provisioning Operations
> Edit properties
> Create
> 
> Disk
> 
> Provisioning Operations
> Create
> 
> Everything else is deselected.
> 
> Kind regards,
> 
> Jorick Astrego
> Netbulae
> 
> On 07/22/2014 10:35 AM, Oved Ourfali wrote:
> 
> 
> 
> Hi
> 
> You didn't really specify what you would like to accomplish, and what
> permissions were granted and on what object.
> In general, we have two types of roles: User and Admin roles.
> If a user has any admin role on any object, then he can login to the admin
> portal.
> So, as long as you don't assign the user with admin role he will not be able
> to login to the admin portal.
> 
> Giving PowerUser role on a DC will allow the user to create VMs and Disks
> through the user portal.
> Is that what you would like to accomplish?
> 
> Oved
> 
> - Original Message -
> 
> 
> 
> From: "Jorick Astrego"  To: users@ovirt.org Sent:
> Tuesday, July 22, 2014 11:32:16 AM
> Subject: [ovirt-users] user permissions
> 
> Hi,
> 
> In our 3.4.3 environment I started adding external users (it is
> connected to a freeipa server) and I'm having some problems setting the
> correct permissions.
> 
> When I give all user roles to a user, I cannot create a vm and get an
> error "User is not authorized to perform this action". I tried setting
> it on the system level, DC level and cluster level.
> 
> I needed to give this user an administrator role with only exactly the
> same vm and disk permissions (nothing extra) and things work ok, but he
> can now login to the admin portal. So I blocked it with a .htaccess
> which is not the prettiest solution.
> 
> Am I doing things wrong?
> 
> Also the user disappeared from the "System permissions" overview but can
> still login, which is a bit weird.
> 
> Kind regards,
> 
> Jorick Astrego
> Netbulae
> 
> ___
> 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
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] starting VDSM gives "libvir: XML-RPC error : authentication failed: authentication failed" error

2014-07-22 Thread ybronhei

On 07/21/2014 01:45 AM, Jorick Astrego wrote:

Hi,

Some more info, I think this is the problem and I also have it on the
node image:

Jul 20 22:41:49 localhost libvirtd: unable to open Berkeley db
/etc/libvirt/passwd.db: No such file or directory


Hey

Did you check if libvirtd services is up?
can you share libvirtd.conf file?
I'm not sure what is exactly the issue, but you can try "vdsm-tool 
configure --module libvirt" command to see if you set the vdsm 
configuration for libvirt as required.


Regards,
Yaniv Bronhaim


Kind regards,
Jorick Astrego
Netbulae

On 07/19/2014 06:52 PM, Jorick Astrego wrote:

Good day,

Trying to setup a new 3.5 test environment with centos 6.5 as ovirt node.

But I keep getting these errors:

libvir: XML-RPC error : authentication failed: authentication failed
libvir: XML-RPC error : authentication failed: authentication failed
libvir: XML-RPC error : authentication failed: authentication failed
libvir: XML-RPC error : authentication failed: authentication failed
libvir: XML-RPC error : authentication failed: authentication failed
libvir: XML-RPC error : authentication failed: authentication failed
Traceback (most recent call last):
  File "/usr/bin/vdsm-tool", line 154, in main
return tool_command[cmd]["command"](*args)
  File "/usr/lib64/python2.6/site-packages/vdsm/tool/nwfilter.py",
line 37, in main
conn = libvirtconnection.get(None, False)
  File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py",
line 151, in get
conn = _open_qemu_connection()
  File "/usr/lib64/python2.6/site-packages/vdsm/libvirtconnection.py",
line 95, in _open_qemu_connection
return utils.retry(libvirtOpen, timeout=10, sleep=0.2)
  File "/usr/lib64/python2.6/site-packages/vdsm/utils.py", line 1086,
in retry
return func()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 102, in
openAuth
if ret is None:raise libvirtError('virConnectOpenAuth() failed')
libvirtError: authentication failed: authentication failed

2014-07-19 16:45:20 DEBUG otopi.context context._executeMethod:152
method exception
Traceback (most recent call last):
  File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/context.py", line 142,
in _executeMethod
method['method']()
  File
"/tmp/ovirt-TTJojY73zc/otopi-plugins/ovirt-host-deploy/vdsm/packages.py",
line 219, in _start
self.services.state('vdsmd', True)
  File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py",
line 188, in state
'start' if state else 'stop'
  File "/tmp/ovirt-TTJojY73zc/otopi-plugins/otopi/services/rhel.py",
line 96, in _executeServiceCommand
raiseOnError=raiseOnError
  File "/tmp/ovirt-TTJojY73zc/pythonlib/otopi/plugin.py", line 871, in
execute
command=args[0],
RuntimeError: Command '/sbin/service' failed to execute
2014-07-19 16:45:20 ERROR otopi.context context._executeMethod:161
Failed to execute stage 'Closing up': Command '/sbin/service' failed
to execute

I tried adding the node through ovirt engine interface and the manual
instrutions on the wiki
(http://wiki.ovirt.org/Installing_ovirt-node_from_rpm)

Running "service vdsm reconfigure" tells me everything is ok.

Thanks in advance!

Kind regards,
Jorick Astrego
Netbulae


___
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



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


Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord lable of Administration Portal page ; dialog of input Controls of oVirt reports problem

2014-07-22 Thread Daniel Helgenberger
Same issue with dashboard, Jasper;

engine running 3.4.2 on CentOS6.5

On Di, 2014-07-22 at 10:53 +0200, Tobias Honacker wrote:
> i've got the same issue with the dialog inputs. any input disappears after
> 1-2 seconds.
> tried with ff and chrome
> 
> -> rpm -qa ovirt\*
> ovirt-engine-userportal-3.4.3-1.fc19.noarch
> ovirt-engine-reports-setup-3.4.3-1.fc19.noarch
> ovirt-engine-dbscripts-3.4.3-1.fc19.noarch
> ovirt-engine-setup-plugin-ovirt-engine-3.4.3-1.fc19.noarch
> ovirt-engine-backend-3.4.3-1.fc19.noarch
> ovirt-engine-tools-3.4.3-1.fc19.noarch
> ovirt-engine-websocket-proxy-3.4.3-1.fc19.noarch
> ovirt-log-collector-3.4.4-1.fc19.noarch
> ovirt-engine-lib-3.4.3-1.fc19.noarch
> ovirt-engine-restapi-3.4.3-1.fc19.noarch
> ovirt-engine-dwh-setup-3.4.3-1.fc19.noarch
> ovirt-engine-cli-3.4.0.5-1.fc19.noarch
> ovirt-host-deploy-java-1.2.2-1.fc19.noarch
> ovirt-engine-setup-base-3.4.3-1.fc19.noarch
> ovirt-engine-setup-plugin-websocket-proxy-3.4.3-1.fc19.noarch
> ovirt-engine-setup-3.4.3-1.fc19.noarch
> ovirt-iso-uploader-3.4.3-1.fc19.noarch
> ovirt-release34-1.0.1-1.noarch
> ovirt-host-deploy-1.2.2-1.fc19.noarch
> ovirt-engine-setup-plugin-ovirt-engine-common-3.4.3-1.fc19.noarch
> ovirt-engine-reports-3.4.3-1.fc19.noarch
> ovirt-engine-webadmin-portal-3.4.3-1.fc19.noarch
> ovirt-engine-dwh-3.4.3-1.fc19.noarch
> ovirt-image-uploader-3.4.2-1.fc19.noarch
> ovirt-engine-sdk-python-3.4.3.0-1.fc19.noarch
> ovirt-engine-3.4.3-1.fc19.noarch
> 
> best regards
> tobias
> 
> 
> On Tue, Jul 22, 2014 at 10:40 AM, cuiyan...@163.com 
> wrote:
> 
> > Hi,
> > Thank you for your reply. Today, I update oVirt engine to 3.4.3. As
> > you wrote, I try to change the file of
> > /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/applicationContext.xml
> > and reboot the os.
> > But the problem still there. I also can not change or write "Dates" option
> > and the other options. Also I open the page by chome, it show that the page
> > miss the file named jquery-1.10.2.min.map. I download from
> > net and copy to 
> > /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/script/lib/,
> > but the problem is same. My OS system is centos 6.5 and I also intall in
> > Fedaro 19.
> > Best regards
> > Cui Yang
> >
> > --
> > cuiyan...@163.com
> >
> >
> > *From:* Yaniv Dary 
> > *Date:* 2014-07-22 15:52
> > *To:* cuiyangor 
> > *CC:* users ; Shirly Radco 
> > *Subject:* Re: [ovirt-users] oVirt-engine-reports can not open from
> > Dashbord lable of Administration Portal page ; dialog of input Controls of
> > oVirt reports problem
> >
> >
> > - Original Message -
> > > From: "Shirly Radco" 
> > > To: cuiyan...@163.com
> > > Cc: "users" , "Yaniv Dary" 
> > > Sent: Monday, July 21, 2014 9:54:47 AM
> > > Subject: Re: [ovirt-users] oVirt-engine-reports can not open from
> > Dashbord lable of Administration Portal page ;
> > > dialog of input Controls of oVirt reports problem
> > >
> > > Hi,
> > >
> > > Please state what ovirt version you installed.
> > > Run: rpm -qa ovirt\*
> > >
> > > You should have installed both ovirt-engine-dwh and ovirt-engine-reports.
> > > The ovirt-engine-dwh is for collacting the data to the
> > ovirt_engine_history
> > > db
> > > and the ovirt-engine-reports is for the reporting.
> > > The error you see in the dashboard means you have a pro
> > >
> > > The input controls should be dropdown lists.
> > > Running engine-setup again usually regenerates the reports jars and
> > solves
> > > the problem.
> > > The jar files are usually locataed under
> > > /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/lib
> > >
> > > WebadminLineBarChartTheme.jar
> > > ReportsStatus.jar
> > > ReportsPieChartTheme.jar
> > > ReportsLineBarChartTheme.jar
> > > EngineAuthentication.jar
> > > CustomOvirtReportsQueryManipulator.jar
> > > ChartsCustomizers.jar
> > >
> > > Please check they indeed update after running the engine-setup again.
> > >
> > > Best regards,
> > > ---
> > > Shirly Radco
> > > BI Software Engineer
> > >
> > >
> > > - Original Message -
> > >
> > > > From: cuiyan...@163.com
> > > > To: "users" 
> > > > Sent: Monday, July 21, 2014 6:08:22 AM
> > > > Subject: [ovirt-users] oVirt-engine-reports can not open from Dashbord
> > > > lable
> > > > of Administration Portal page ; dialog of input Controls of oVirt
> > reports
> > > > problem
> > >
> > > > Hi all :
> > > > I'm using the oVirt engine and reports. I used the commond form the
> > web sit
> > > > to intall the oVirt engine and oVirt engine report.
> > > > I have two main questions about reports part:
> > > > No 1, I can not open the Dashbord lable from Adminstration Portal. The
> > page
> > > > show "Page Not Found" "Specified page not found", as shown in the
> > following
> > > > image . How to fix the problem?
> >
> > This is a known issue in JRS 5.5.0a. We plan to fix this in by rebasing to
> > 5.6.0 at some point.
> >
> > >
> > > > No 2, When I login the oVirt Reports, open the dialog o

Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord lable of Administration Portal page ; dialog of input Controls of oVirt reports problem

2014-07-22 Thread Tobias Honacker
i've got the same issue with the dialog inputs. any input disappears after
1-2 seconds.
tried with ff and chrome

-> rpm -qa ovirt\*
ovirt-engine-userportal-3.4.3-1.fc19.noarch
ovirt-engine-reports-setup-3.4.3-1.fc19.noarch
ovirt-engine-dbscripts-3.4.3-1.fc19.noarch
ovirt-engine-setup-plugin-ovirt-engine-3.4.3-1.fc19.noarch
ovirt-engine-backend-3.4.3-1.fc19.noarch
ovirt-engine-tools-3.4.3-1.fc19.noarch
ovirt-engine-websocket-proxy-3.4.3-1.fc19.noarch
ovirt-log-collector-3.4.4-1.fc19.noarch
ovirt-engine-lib-3.4.3-1.fc19.noarch
ovirt-engine-restapi-3.4.3-1.fc19.noarch
ovirt-engine-dwh-setup-3.4.3-1.fc19.noarch
ovirt-engine-cli-3.4.0.5-1.fc19.noarch
ovirt-host-deploy-java-1.2.2-1.fc19.noarch
ovirt-engine-setup-base-3.4.3-1.fc19.noarch
ovirt-engine-setup-plugin-websocket-proxy-3.4.3-1.fc19.noarch
ovirt-engine-setup-3.4.3-1.fc19.noarch
ovirt-iso-uploader-3.4.3-1.fc19.noarch
ovirt-release34-1.0.1-1.noarch
ovirt-host-deploy-1.2.2-1.fc19.noarch
ovirt-engine-setup-plugin-ovirt-engine-common-3.4.3-1.fc19.noarch
ovirt-engine-reports-3.4.3-1.fc19.noarch
ovirt-engine-webadmin-portal-3.4.3-1.fc19.noarch
ovirt-engine-dwh-3.4.3-1.fc19.noarch
ovirt-image-uploader-3.4.2-1.fc19.noarch
ovirt-engine-sdk-python-3.4.3.0-1.fc19.noarch
ovirt-engine-3.4.3-1.fc19.noarch

best regards
tobias


On Tue, Jul 22, 2014 at 10:40 AM, cuiyan...@163.com 
wrote:

> Hi,
> Thank you for your reply. Today, I update oVirt engine to 3.4.3. As
> you wrote, I try to change the file of
> /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/applicationContext.xml
> and reboot the os.
> But the problem still there. I also can not change or write "Dates" option
> and the other options. Also I open the page by chome, it show that the page
> miss the file named jquery-1.10.2.min.map. I download from
> net and copy to 
> /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/script/lib/,
> but the problem is same. My OS system is centos 6.5 and I also intall in
> Fedaro 19.
> Best regards
> Cui Yang
>
> --
> cuiyan...@163.com
>
>
> *From:* Yaniv Dary 
> *Date:* 2014-07-22 15:52
> *To:* cuiyangor 
> *CC:* users ; Shirly Radco 
> *Subject:* Re: [ovirt-users] oVirt-engine-reports can not open from
> Dashbord lable of Administration Portal page ; dialog of input Controls of
> oVirt reports problem
>
>
> - Original Message -
> > From: "Shirly Radco" 
> > To: cuiyan...@163.com
> > Cc: "users" , "Yaniv Dary" 
> > Sent: Monday, July 21, 2014 9:54:47 AM
> > Subject: Re: [ovirt-users] oVirt-engine-reports can not open from
> Dashbord lable of Administration Portal page ;
> > dialog of input Controls of oVirt reports problem
> >
> > Hi,
> >
> > Please state what ovirt version you installed.
> > Run: rpm -qa ovirt\*
> >
> > You should have installed both ovirt-engine-dwh and ovirt-engine-reports.
> > The ovirt-engine-dwh is for collacting the data to the
> ovirt_engine_history
> > db
> > and the ovirt-engine-reports is for the reporting.
> > The error you see in the dashboard means you have a pro
> >
> > The input controls should be dropdown lists.
> > Running engine-setup again usually regenerates the reports jars and
> solves
> > the problem.
> > The jar files are usually locataed under
> > /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/lib
> >
> > WebadminLineBarChartTheme.jar
> > ReportsStatus.jar
> > ReportsPieChartTheme.jar
> > ReportsLineBarChartTheme.jar
> > EngineAuthentication.jar
> > CustomOvirtReportsQueryManipulator.jar
> > ChartsCustomizers.jar
> >
> > Please check they indeed update after running the engine-setup again.
> >
> > Best regards,
> > ---
> > Shirly Radco
> > BI Software Engineer
> >
> >
> > - Original Message -
> >
> > > From: cuiyan...@163.com
> > > To: "users" 
> > > Sent: Monday, July 21, 2014 6:08:22 AM
> > > Subject: [ovirt-users] oVirt-engine-reports can not open from Dashbord
> > > lable
> > > of Administration Portal page ; dialog of input Controls of oVirt
> reports
> > > problem
> >
> > > Hi all :
> > > I'm using the oVirt engine and reports. I used the commond form the
> web sit
> > > to intall the oVirt engine and oVirt engine report.
> > > I have two main questions about reports part:
> > > No 1, I can not open the Dashbord lable from Adminstration Portal. The
> page
> > > show "Page Not Found" "Specified page not found", as shown in the
> following
> > > image . How to fix the problem?
>
> This is a known issue in JRS 5.5.0a. We plan to fix this in by rebasing to
> 5.6.0 at some point.
>
> >
> > > No 2, When I login the oVirt Reports, open the dialog of input
> Controls as
> > > shown in the following image . I found that the dialog can not input
> any
> > > word or number and can not choose the "07/21/14" or other options.
> click
> > > the
> > > "apply" button, the dialog do not dispeard. I found the page miss the "
> > > jquery-1.10.2.min.map " file , and download from internet and put the
> right
> > > path, but still the same. How to fix the p

Re: [ovirt-users] user permissions

2014-07-22 Thread Jorick Astrego

Hi,

Sorry let be a bit more clear. I want to have a user that can log into 
the user portal and create vm's, stop them, add disks etc. But only as a 
user.


I tried the superuser role and can do all things _except _creating a new 
VM.  I also want the user to only see and manipulate his own VM's and 
not the other ones running on the same system.


Even with the PowerUser role, I am not able to create a new VM as this 
user. Also when I edit the built-in PowerUser role, I only see the 
following rights selected:


Login Permissions

Template

Provisioning Operations
Create

VM


Provisioning Operations
Edit properties
Create

Disk

Provisioning Operations
Create

Everything else is deselected.

Kind regards,

Jorick Astrego
Netbulae

On 07/22/2014 10:35 AM, Oved Ourfali wrote:

Hi

You didn't really specify what you would like to accomplish, and what 
permissions were granted and on what object.
In general, we have two types of roles: User and Admin roles.
If a user has any admin role on any object, then he can login to the admin 
portal.
So, as long as you don't assign the user with admin role he will not be able to 
login to the admin portal.

Giving PowerUser role on a DC will allow the user to create VMs and Disks 
through the user portal.
Is that what you would like to accomplish?

Oved

- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Tuesday, July 22, 2014 11:32:16 AM
Subject: [ovirt-users] user permissions

Hi,

In our 3.4.3 environment I started adding external users (it is
connected to a freeipa server) and I'm having some problems setting the
correct permissions.

When I give all user roles to a user, I cannot create a vm and get an
error "User is not authorized to perform this action". I tried setting
it on the system level, DC level and cluster level.

I needed to give this user an administrator role with only exactly the
same vm and disk permissions (nothing extra) and things work ok, but he
can now login to the admin portal. So I blocked it with a .htaccess
which is not the prettiest solution.

Am I doing things wrong?

Also the user disappeared from the "System permissions" overview but can
still login, which is a bit weird.

Kind regards,

Jorick Astrego
Netbulae

___
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: [ovirt-users] user permissions

2014-07-22 Thread Jorick Astrego

Hi,

Sorry let be a bit more clear. I want to have a user that can log into 
the user portal and create vm's, stop them, add disks etc. But only as a 
user.


I tried the poweruser role and can do all things _except _creating a new 
VM.  I also want the user to only see and manipulate his own VM's and 
not the other ones running on the same system.


Even with the PowerUser role, I am not able to create a new VM as this 
user. Also when I edit the built-in PowerUser role, I only see the 
following rights selected:


Login Permissions

Template

Provisioning Operations
Create

VM


Provisioning Operations
Edit properties
Create

Disk

Provisioning Operations
Create

Everything else is deselected.

Kind regards,

Jorick Astrego
Netbulae

On 07/22/2014 10:35 AM, Oved Ourfali wrote:

Hi

You didn't really specify what you would like to accomplish, and what 
permissions were granted and on what object.
In general, we have two types of roles: User and Admin roles.
If a user has any admin role on any object, then he can login to the admin 
portal.
So, as long as you don't assign the user with admin role he will not be able to 
login to the admin portal.

Giving PowerUser role on a DC will allow the user to create VMs and Disks 
through the user portal.
Is that what you would like to accomplish?

Oved

- Original Message -

From: "Jorick Astrego" 
To: users@ovirt.org
Sent: Tuesday, July 22, 2014 11:32:16 AM
Subject: [ovirt-users] user permissions

Hi,

In our 3.4.3 environment I started adding external users (it is
connected to a freeipa server) and I'm having some problems setting the
correct permissions.

When I give all user roles to a user, I cannot create a vm and get an
error "User is not authorized to perform this action". I tried setting
it on the system level, DC level and cluster level.

I needed to give this user an administrator role with only exactly the
same vm and disk permissions (nothing extra) and things work ok, but he
can now login to the admin portal. So I blocked it with a .htaccess
which is not the prettiest solution.

Am I doing things wrong?

Also the user disappeared from the "System permissions" overview but can
still login, which is a bit weird.

Kind regards,

Jorick Astrego
Netbulae

___
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: [ovirt-users] oVirt-engine-reports can not open from Dashbord lable of Administration Portal page ; dialog of input Controls of oVirt reports problem

2014-07-22 Thread cuiyan...@163.com
Hi,
Thank you for your reply. Today, I update oVirt engine to 3.4.3. As you 
wrote, I try to change the file of 
/var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/applicationContext.xml
 and reboot the os. 
But the problem still there. I also can not change or write "Dates" option and 
the other options. Also I open the page by chome, it show that the page miss 
the file named jquery-1.10.2.min.map. I download from 
net and copy to 
/var/lib/ovirt-engine-reports/ovirt-engine-reports.war/script/lib/, but the 
problem is same. My OS system is centos 6.5 and I also intall in Fedaro 19.
Best regards
Cui Yang 



cuiyan...@163.com
 
From: Yaniv Dary
Date: 2014-07-22 15:52
To: cuiyangor
CC: users; Shirly Radco
Subject: Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord 
lable of Administration Portal page ; dialog of input Controls of oVirt reports 
problem
 
 
- Original Message -
> From: "Shirly Radco" 
> To: cuiyan...@163.com
> Cc: "users" , "Yaniv Dary" 
> Sent: Monday, July 21, 2014 9:54:47 AM
> Subject: Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord 
> lable of Administration Portal page ;
> dialog of input Controls of oVirt reports problem
> 
> Hi,
> 
> Please state what ovirt version you installed.
> Run: rpm -qa ovirt\*
> 
> You should have installed both ovirt-engine-dwh and ovirt-engine-reports.
> The ovirt-engine-dwh is for collacting the data to the ovirt_engine_history
> db
> and the ovirt-engine-reports is for the reporting.
> The error you see in the dashboard means you have a pro
> 
> The input controls should be dropdown lists.
> Running engine-setup again usually regenerates the reports jars and solves
> the problem.
> The jar files are usually locataed under
> /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/lib
> 
> WebadminLineBarChartTheme.jar
> ReportsStatus.jar
> ReportsPieChartTheme.jar
> ReportsLineBarChartTheme.jar
> EngineAuthentication.jar
> CustomOvirtReportsQueryManipulator.jar
> ChartsCustomizers.jar
> 
> Please check they indeed update after running the engine-setup again.
> 
> Best regards,
> ---
> Shirly Radco
> BI Software Engineer
> 
> 
> - Original Message -
> 
> > From: cuiyan...@163.com
> > To: "users" 
> > Sent: Monday, July 21, 2014 6:08:22 AM
> > Subject: [ovirt-users] oVirt-engine-reports can not open from Dashbord
> > lable
> > of Administration Portal page ; dialog of input Controls of oVirt reports
> > problem
> 
> > Hi all :
> > I'm using the oVirt engine and reports. I used the commond form the web sit
> > to intall the oVirt engine and oVirt engine report.
> > I have two main questions about reports part:
> > No 1, I can not open the Dashbord lable from Adminstration Portal. The page
> > show "Page Not Found" "Specified page not found", as shown in the following
> > image . How to fix the problem?
 
This is a known issue in JRS 5.5.0a. We plan to fix this in by rebasing to 
5.6.0 at some point.
 
> 
> > No 2, When I login the oVirt Reports, open the dialog of input Controls as
> > shown in the following image . I found that the dialog can not input any
> > word or number and can not choose the "07/21/14" or other options. click
> > the
> > "apply" button, the dialog do not dispeard. I found the page miss the "
> > jquery-1.10.2.min.map " file , and download from internet and put the right
> > path, but still the same. How to fix the problem?
 
Goto < war location >/WEB-INF/applicationContext.xml and do this:
"""
   
 
 
-  
+  
 
 
 
"""
Please let us know if this fixes your issue.
 
 
 
Yaniv
 
> 
> > Thank you!
> 
> > cuiyan...@163.com
> 
> > ___
> > 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: [ovirt-users] user permissions

2014-07-22 Thread Oved Ourfali
Hi

You didn't really specify what you would like to accomplish, and what 
permissions were granted and on what object.
In general, we have two types of roles: User and Admin roles.
If a user has any admin role on any object, then he can login to the admin 
portal.
So, as long as you don't assign the user with admin role he will not be able to 
login to the admin portal.

Giving PowerUser role on a DC will allow the user to create VMs and Disks 
through the user portal.
Is that what you would like to accomplish?

Oved

- Original Message -
> From: "Jorick Astrego" 
> To: users@ovirt.org
> Sent: Tuesday, July 22, 2014 11:32:16 AM
> Subject: [ovirt-users] user permissions
> 
> Hi,
> 
> In our 3.4.3 environment I started adding external users (it is
> connected to a freeipa server) and I'm having some problems setting the
> correct permissions.
> 
> When I give all user roles to a user, I cannot create a vm and get an
> error "User is not authorized to perform this action". I tried setting
> it on the system level, DC level and cluster level.
> 
> I needed to give this user an administrator role with only exactly the
> same vm and disk permissions (nothing extra) and things work ok, but he
> can now login to the admin portal. So I blocked it with a .htaccess
> which is not the prettiest solution.
> 
> Am I doing things wrong?
> 
> Also the user disappeared from the "System permissions" overview but can
> still login, which is a bit weird.
> 
> Kind regards,
> 
> Jorick Astrego
> Netbulae
> 
> ___
> 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


[ovirt-users] user permissions

2014-07-22 Thread Jorick Astrego

Hi,

In our 3.4.3 environment I started adding external users (it is 
connected to a freeipa server) and I'm having some problems setting the 
correct permissions.


When I give all user roles to a user, I cannot create a vm and get an 
error "User is not authorized to perform this action". I tried setting 
it on the system level, DC level and cluster level.


I needed to give this user an administrator role with only exactly the 
same vm and disk permissions (nothing extra) and things work ok, but he 
can now login to the admin portal. So I blocked it with a .htaccess 
which is not the prettiest solution.


Am I doing things wrong?

Also the user disappeared from the "System permissions" overview but can 
still login, which is a bit weird.


Kind regards,

Jorick Astrego
Netbulae

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


Re: [ovirt-users] hostusb hook - VM device errors in Windows VM

2014-07-22 Thread Michal Skrivanek

On 21 Jul 2014, at 20:54, Steve Dainard wrote:

> I should mention I can mount this usb drive in a CentOS 6.5 VM without any 
> problems.

Hi,
there should be no difference configuration-wise. well, please compare 
libvirt's xml to be sure and confirm
If it's the case then it might be a problem of qemu/kvm and/or windows

Thanks,
michal

> 
> 
> On Mon, Jul 21, 2014 at 2:11 PM, Steve Dainard  wrote:
> I'm using the hostusb hook on RHEV 3.4 trial.
> 
> The usb device is passed through to the VM, but I'm getting errors in a 
> Windows VM when the device driver is loaded.
> 
> I started with a simple usb drive, on the host it is listed as:
> 
> Bus 002 Device 010: ID 05dc:c75c Lexar Media, Inc. 
> 
> Which I added as 0x05dc:0xc75c to the Windows 7 x64 VM.
> 
> In Windows I get an error in device manager:
> USB Mass Storage Device "This device cannot start. (Code 10)"
> Properties/General Tab: Device type: Universal Serial Bus Controllers, 
> Manufacturer: Compatible USB storage device, Location: Port_#0001.Hub_#0001
> 
> Under hardware Ids: 
> USB\VID_05DC&PID_C75C&REV_0102
> USB\VID_05DC&PID_C75C
> 
> So it looks like the proper USB device ID is passed to the VM.
> 
> I don't see any error messages in event viewer, and I don't see anything in 
> VDSM logs either.
> 
> Any help is appreciated.
> 
> Steve
> 
> ___
> 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: [ovirt-users] Can HA Agent control NFS Mount?

2014-07-22 Thread Martin Sivak
Hi,

> One by directly using rem_lockspace (since it's the hosted-engine one)

The hosted engine lockspace protects the ID of the node. Global maintenance 
only disables the state machine, but it still reports data to the shared 
storage. The hosted engine lock can only be released when the agent is down. If 
the lock is still there even after you call service ovirt-ha-agent stop, then 
it is a bug somewhere.

> the other one by stopMonitoringDomain

Shouldn't this be done by VDSM or sanlock when the VM disappears? The lock has 
to stay acquired any time the VM is running (independently on the hosted engine 
services or vdsm) to protect the VM's data. We can't release a lock for running 
VM, because some other host might try to start it and corrupt data by doing it.

Martin

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ


- Original Message -
> - Original Message -
> > From: "Bob Doolittle" 
> > To: "Doron Fediuck" , "Andrew Lau"
> > 
> > Cc: "users" , "Federico Simoncelli" 
> > Sent: Saturday, June 14, 2014 1:29:54 AM
> > Subject: Re: [ovirt-users] Can HA Agent control NFS Mount?
> >
> > 
> > But there may be more going on. Even if I stop vdsmd, the HA services,
> > and libvirtd, and sleep 60 seconds, I still see a lock held on the
> > Engine VM storage:
> > 
> > daemon 6f3af037-d05e-4ad8-a53c-61627e0c2464.xion2.smar
> > p -1 helper
> > p -1 listener
> > p -1 status
> > s
> > 003510e8-966a-47e6-a5eb-3b5c8a6070a9:1:/rhev/data-center/mnt/xion2.smartcity.net\:_export_VM__NewDataDomain/003510e8-966a-47e6-a5eb-3b5c8a6070a9/dom_md/ids:0
> > s
> > hosted-engine:1:/rhev/data-center/mnt/xion2\:_export_vm_he1/18eeab54-e482-497f-b096-11f8a43f94f4/ha_agent/hosted-engine.lockspace:0
> 
> This output shows that the lockspaces are still acquired. When you put
> hosted-engine
> in maintenance they must be released.
> One by directly using rem_lockspace (since it's the hosted-engine one) and
> the other
> one by stopMonitoringDomain.
> 
> I quickly looked at the ovirt-hosted-engine* projects and I haven't found
> anything
> related to that.
> 
> --
> Federico
> ___
> 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: [ovirt-users] RHEV 3.4 trial hosted-engine either host wants to take ownership

2014-07-22 Thread Martin Sivak
Hi Steve,

we had a bug (or two..) in the score comparison logic:

https://bugzilla.redhat.com/show_bug.cgi?id=1093366

Which was fixed by:

http://gerrit.ovirt.org/29580
http://gerrit.ovirt.org/29787

and

http://gerrit.ovirt.org/30025

Unfortunately those did not get to the current 3.4 releases, but will be 
available in the upcoming 3.5 and any subsequent 3.4 that will appear.

One of the patches (29580) just fixes two words in the code and you can apply 
it manually if you want.

Regards

--
Martin Sivák
msi...@redhat.com
Red Hat Czech
RHEV-M SLA / Brno, CZ

- Original Message -
> I added a hook to rhevm, and then restarted the engine service which
> triggered a hosted-engine VM shutdown (likely because of the failed
> liveliness check).
> 
> Once the hosted-engine VM shutdown it did not restart on the other host.
> 
> On both hosts configured for hosted-engine I'm seeing logs from ha-agent
> where each host thinks the other host has a better score. Is there supposed
> to be a mechanism for a tie breaker here? I do notice that the log mentions
> best REMOTE host, so perhaps I'm interpreting this message incorrectly.
> 
> ha-agent logs:
> 
> Host 001:
> 
> MainThread::INFO::2014-07-21
> 11:51:57,396::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Trying: notify time=1405957917.4 type=state_transition
> detail=EngineDown-EngineDown hostname='rhev001.miovision.corp'
> MainThread::INFO::2014-07-21
> 11:51:57,397::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Success, was notification of state_transition (EngineDown-EngineDown) sent?
> ignored
> MainThread::INFO::2014-07-21
> 11:51:57,924::hosted_engine::323::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Current state EngineDown (score: 2400)
> MainThread::INFO::2014-07-21
> 11:51:57,924::hosted_engine::328::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Best remote host rhev002.miovision.corp (id: 2, score: 2400)
> MainThread::INFO::2014-07-21
> 11:52:07,961::states::454::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
> Engine down, local host does not have best score
> MainThread::INFO::2014-07-21
> 11:52:07,975::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Trying: notify time=1405957927.98 type=state_transition
> detail=EngineDown-EngineDown hostname='rhev001.miovision.corp'
> 
> Host 002:
> 
> MainThread::INFO::2014-07-21
> 11:51:47,405::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Trying: notify time=1405957907.41 type=state_transition
> detail=EngineDown-EngineDown hostname='rhev002.miovision.corp'
> MainThread::INFO::2014-07-21
> 11:51:47,406::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Success, was notification of state_transition (EngineDown-EngineDown) sent?
> ignored
> MainThread::INFO::2014-07-21
> 11:51:47,834::hosted_engine::323::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Current state EngineDown (score: 2400)
> MainThread::INFO::2014-07-21
> 11:51:47,835::hosted_engine::328::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Best remote host rhev001.miovision.corp (id: 1, score: 2400)
> MainThread::INFO::2014-07-21
> 11:51:57,870::states::454::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(consume)
> Engine down, local host does not have best score
> MainThread::INFO::2014-07-21
> 11:51:57,883::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Trying: notify time=1405957917.88 type=state_transition
> detail=EngineDown-EngineDown hostname='rhev002.miovision.corp'
> 
> This went on for 20 minutes about an hour ago, and I decided to --vm-start on
> one of the hosts. The manager VM runs for a few minutes with the engine ui
> accessible, before shutting itself down again.
> 
> I then put host 002 into local maintenance mode, and host 001 auto started
> the hosted-engine VM. The logging still references host 002 as the 'best
> remote host' even though the calculated score is now 0:
> 
> MainThread::INFO::2014-07-21
> 12:03:24,011::brokerlink::108::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Trying: notify time=1405958604.01 type=state_transition
> detail=EngineUp-EngineUp hostname='rhev001.miovision.corp'
> MainThread::INFO::2014-07-21
> 12:03:24,013::brokerlink::117::ovirt_hosted_engine_ha.lib.brokerlink.BrokerLink::(notify)
> Success, was notification of state_transition (EngineUp-EngineUp) sent?
> ignored
> MainThread::INFO::2014-07-21
> 12:03:24,515::hosted_engine::323::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Current state EngineUp (score: 2400)
> MainThread::INFO::2014-07-21
> 12:03:24,516::hosted_engine::328::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(start_monitoring)
> Best remote host rhev002.miovision.corp (id: 2, score: 

Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord lable of Administration Portal page ; dialog of input Controls of oVirt reports problem

2014-07-22 Thread Yaniv Dary


- Original Message -
> From: "Shirly Radco" 
> To: cuiyan...@163.com
> Cc: "users" , "Yaniv Dary" 
> Sent: Monday, July 21, 2014 9:54:47 AM
> Subject: Re: [ovirt-users] oVirt-engine-reports can not open from Dashbord 
> lable  of Administration Portal page ;
>   dialog of input Controls of oVirt reports problem
> 
> Hi,
> 
> Please state what ovirt version you installed.
> Run: rpm -qa ovirt\*
> 
> You should have installed both ovirt-engine-dwh and ovirt-engine-reports.
> The ovirt-engine-dwh is for collacting the data to the ovirt_engine_history
> db
> and the ovirt-engine-reports is for the reporting.
> The error you see in the dashboard means you have a pro
> 
> The input controls should be dropdown lists.
> Running engine-setup again usually regenerates the reports jars and solves
> the problem.
> The jar files are usually locataed under
> /var/lib/ovirt-engine-reports/ovirt-engine-reports.war/WEB-INF/lib
> 
> WebadminLineBarChartTheme.jar
> ReportsStatus.jar
> ReportsPieChartTheme.jar
> ReportsLineBarChartTheme.jar
> EngineAuthentication.jar
> CustomOvirtReportsQueryManipulator.jar
> ChartsCustomizers.jar
> 
> Please check they indeed update after running the engine-setup again.
> 
> Best regards,
> ---
> Shirly Radco
> BI Software Engineer
> 
> 
> - Original Message -
> 
> > From: cuiyan...@163.com
> > To: "users" 
> > Sent: Monday, July 21, 2014 6:08:22 AM
> > Subject: [ovirt-users] oVirt-engine-reports can not open from Dashbord
> > lable
> > of Administration Portal page ; dialog of input Controls of oVirt reports
> > problem
> 
> > Hi all :
> > I'm using the oVirt engine and reports. I used the commond form the web sit
> > to intall the oVirt engine and oVirt engine report.
> > I have two main questions about reports part:
> > No 1, I can not open the Dashbord lable from Adminstration Portal. The page
> > show "Page Not Found" "Specified page not found", as shown in the following
> > image . How to fix the problem?

This is a known issue in JRS 5.5.0a. We plan to fix this in by rebasing to 
5.6.0 at some point.

> 
> > No 2, When I login the oVirt Reports, open the dialog of input Controls as
> > shown in the following image . I found that the dialog can not input any
> > word or number and can not choose the "07/21/14" or other options. click
> > the
> > "apply" button, the dialog do not dispeard. I found the page miss the "
> > jquery-1.10.2.min.map " file , and download from internet and put the right
> > path, but still the same. How to fix the problem?

Goto < war location >/WEB-INF/applicationContext.xml and do this:
"""
   
 
 
-  
+  
 
 
 
"""
Please let us know if this fixes your issue.



Yaniv
 

> 
> > Thank you!
> 
> > cuiyan...@163.com
> 
> > ___
> > 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: [ovirt-users] Guest VM Console Creation/Access using REST API and noVNC

2014-07-22 Thread Michal Skrivanek

On 22 Jul 2014, at 09:02, Punit Dambiwal wrote:

> Hi Michal,
> 
> We want to access vm console by using noVNC and Rest api. We are using 
> websocket proxy on the same machine where engine runs and we try to get the 
> console access from the another server that is outside from this cluster.  
>  
> But when we try to connect the vnc_auto.html from the server using host ip, 
> port and the password which we get from the ticket creation… it shows a 
> Failed to connect to server (code: 1006). 

Hi Punit,
did you read about the modification we did for the noVNC package? 
http://www.ovirt.org/Features/noVNC_console


>  
> The following are the codes which we use to create the ticket… host,port and 
> the password will get from the ticket and with the same details (host,port & 
> password) we are able to connect the console using the vnc clients(TigerVNC 
> etc.)  

you mean the "ticket" call? that returns you the direct connection information
but you want to connect to websocket proxy(to engine:6100 indeed) and pass the 
above information as an signed encoded url path (where to connect to from proxy)
check https://bugzilla.redhat.com/show_bug.cgi?id=838468 and associated patches 
to see how it is being encoded

Thanks,
michal

>  
> try { 
> var host = WebUtil.getQueryVar('host', ''); 
> var port = WebUtil.getQueryVar('port', ''); 
>   var path = WebUtil.getQueryVar('path', 'websockify'); 
>  
>   var password = ''; 
>  
> if ((!host) || (!port)) { 
> updateState('failed', 
> "Must specify host and port in URL"); 
> return; 
> } 
>  
> rfb = new RFB({'target':   $D('noVNC_canvas'), 
>'encrypt':  WebUtil.getQueryVar('encrypt', 
>   
>  (window.location.protocol === "https:")), 
>'true_color':   WebUtil.getQueryVar('true_color', 
> true), 
>'local_cursor': WebUtil.getQueryVar('cursor', 
> true), 
>'shared':   WebUtil.getQueryVar('shared', 
> true), 
>'view_only':WebUtil.getQueryVar('view_only', 
> false), 
>'updateState':  updateState, 
>'onPasswordRequired':  passwordRequired}); 
>rfb.connect(host, port, password, path); 
> }catch(e) {alert(e); 
>  
>  
> Could you please check if there any issues with it and guide me how to get 
> rid of this failed to connect error? 
>  
> I have attached the screen shots for further reference…
> 
> Thanks,
> Punit
> 
> 
> 
> On Tue, Jul 22, 2014 at 2:54 PM, Shanil S  wrote:
> Hi All,
> 
> We already updated with the logs and the clear picture about the issue.
> 
> -- 
> Regards 
> Shanil
> 
> 
> On Mon, Jul 21, 2014 at 5:54 PM, Michal Skrivanek 
>  wrote:
> 
> On Jul 21, 2014, at 04:33 , Punit Dambiwal  wrote:
> 
> > Hi All,
> >
> > I am still waiting for the updates...is there any one have the clue to 
> > solve this problem ???
> 
> Hi Punit,
> I'm afraid no one can help you  debug connectivity issues remotely, without 
> describing precisely what are you doing and how, and include all the logs
> 
> Thanks,
> michal
> 
> >
> > Thanks,
> > Punit
> >
> >
> > On Fri, Jul 18, 2014 at 12:37 PM, Punit Dambiwal  wrote:
> > Hi All,
> >
> > We are also struggling with the same problemcan anybody mind to update 
> > here the resolution or suggest us the way to get rid of this "Failed to 
> > connect to server (code: 1006" error.
> >
> > Thanks,
> > Punit
> >
> >
> > On Thu, Jul 17, 2014 at 5:20 PM, Shanil S  wrote:
> > Hi,
> >
> > We are waiting for the updates, it will be great if anyone can give the 
> > helpful details.. :)
> >
> > --
> > Regards
> > Shanil
> >
> >
> > On Thu, Jul 17, 2014 at 10:23 AM, Shanil S  wrote:
> > Hi,
> >
> > we have enabled our portal ip address on the engine and hosts firewall but 
> > still the connection failed. so there should be no firewall issues.
> >
> > --
> > Regards
> > Shanil
> >
> >
> > On Wed, Jul 16, 2014 at 3:26 PM, Shanil S  wrote:
> > Hi Sven,
> >
> > Regarding the ticket "path", Is it the direct combination of host and port 
> > ? suppose if the host is 1.2.3.4 and the port is 5100 then what should be 
> > the "path" value ? Is there encryption needs here ?
> >
> >
> > >>so you have access from the browser to the websocket-proxy, network
> > wise? can you ping the proxy?
> > and the websocket proxy can reach the host where the vm runs?
> >
> >  yes.. there should be no firewall issue as we can access the console from 
> > ovirt engine portal
> >
> >  Do we need to allow our own portal ip address in the ovirt engine and 
> > hypervisiors also ???
> >
> >
> > --
> > Regards
> > Shanil
> >
> >
> > On Wed, Jul 16, 2014 at 3:13 PM, Sven Kieske  wrote:
> >
> >
> > Am 16.07.2014 11:30, schrieb Shanil S: