Re: [ovirt-users] Hosted engine already imported

2017-04-28 Thread Jamie Lawrence
I’m wondering if I can do this a different way. Since it is already imported, I 
can create VMs, and the only other warning I’m getting in the logs is 
unrelated, I’m thinking that the problem here is that something didn’t get 
properly set in the DB, and I should be able to fix that manually.

In looking at the code 
(https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/domain/ImportHostedEngineStorageDomainCommand.java),
 it to my (not very deep) read that the setSucceeded call failed, even though 
AttachStorageDomainToPool worked.

  if (getSucceeded()) {
AttachStorageDomainToPoolParameters attachSdParams =
new AttachStorageDomainToPoolParameters(
addSdParams.getStorageDomainId(),
addSdParams.getStoragePoolId());
setSucceeded(getBackend().runInternalAction(
VdcActionType.AttachStorageDomainToPool,
attachSdParams,
getContext()).getSucceeded());
}

setActionReturnValue(heStorageDomain);
 
Is there a way to call setSucceeded without hacking together a custom utility? 
Not seeing it in vdsClient --help, which doesn’t surprise me. In looking over 
the stored procedures, I’m also not finding a likely candidate, but that is 
probably because there are so many that I’m just missing it.

Does anyone know what the relevant SP is, or in some other way clue me in on 
the right direction here?  

I realize this is not supposed to be the way to do things. But I’m not finding 
a better solution, and attempting to find a “right” way via questions to this 
isn’t working either. And of course I take full responsibility when Ovirt  
kills my pets and drinks all my liquor.

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


Re: [ovirt-users] Hello from Bacchus !

2017-04-28 Thread Niyazi Elvan
Thank you Barak !

I will position Bacchus as a protection solution, not only for backups but
also replication. SDK would be a better decision in that way.

Regards,


On 28 April 2017 at 21:54, Barak Korren  wrote:

> On 28 April 2017 at 21:07, Niyazi Elvan  wrote:
> > Hi Barak,
> >
> > I was not aware of backup api hence used Python SDK. Is there any
> specific
> > reason that I should use the backup api ?
>
> Well, it was made specifically to make building backup tools easier. But
> I guess its up to you to decide if it helps you or not.
> I'm not sure, but maybe the SDK supports it as well.
>
> In any case, great work!
>
> --
> Barak Korren
> RHV DevOps team , RHCE, RHCi
> Red Hat EMEA
> redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
>



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


[ovirt-users] Trouble Adding Gluster Host in oVirt Manager

2017-04-28 Thread Langley, Robert
Hello oVirt Community,

This may be my first time writing in. Although, I've been reviewing and playing 
with oVirt for the past 3 years. My name is Robert Langley and I work for a 
local Government in Southern California. My agency (with me as the primary/lead 
IT person) has been using VMWare vSphere to host our server environment for 6 
years. I have a few different reasons I want to jump the VMWare ship and I've 
been pleased with the progression oVirt has been making. I do not care to jump 
from VMWare to Microsoft's Hyper-V, so this had lead me to look into Xen for a 
while, then dropped anchor with oVirt. I'm determined to see this 
implementation through.

I have moved over from the test (workstation class) environment, where I was 
really just getting familiar with the commands and UI, and now I am working on 
implementation with server class hardware.
I have the engine up and running. I'll get into more specifics below.
I'm running into an issue where I have not been able to add my Gluster hosts or 
add the Storage Domain (I had tried adding the storage domain first).
For my new oVirt and GlusterFS hosts I have the following:
*   I want to first mention that I do have a DNS server for the 
separated/private networks and those are configured and working properly 
(forward & reverse).
Dell PE R830 and I would like this to be a failover server housed in a separate 
building where we have an Emergency Operations Center and Datacenter (server 
room).
-   Has bonded gigabit (2 port) network that is connected to our main 
network & internet, configured to be used for ovirtmgnt. Name = gsaov08.ent...
o   As far as all the various names, oVirt Hosted Engine Deployment 
complained that the Main network name was seen on more than one interface, or 
something to that effect.
o   I did originally have DNS for the separated/private networks configured 
for forwarding DNS from our main network DNS servers. Which has been removed 
and the Hosted Engine Deployment stopped complaining at that point. I was going 
to use the forwarding DNS for another private network I use for some management 
traffic, but that is not as important or an absolute need either.
-   Has 2nd bonded gigabit (4 port) network (separate/private) for engine 
storage. Name = gsaov08e.engine.local
-   Has 3rd bonded 10G (2 port) network (separate/private) for VM Guest 
storage. Name = gsaov08s.stor.local
-   Will have a 4th network (separate/private) configured for security 
related devices that are managed by a couple of our VM guests.
As far as storage in this same server.
-   I have split up the local storage to be hosted by GlusterFS and this 
host is a peer with the other two dedicated GlusterFS storage servers. That is 
for the failover piece.
o   Engine volume (currently being used for the Hosted Engine) and setup as 
a replica 3 with the two dedicated GlusterFS storage servers.
o   VM Guest "Data" volume. The volume is created, configured and started. 
Setup as a replica 3 with the two dedicated GlusterFS storage servers.
So far, this is the only host I have hosting the engine. Now, onto the other 
host I am about to run Hosted-Engine -Deploy on.
Dell PE R730 - It has the same network setup as the R830. Storage is a bit 
different. I would like to run another VM Guest GlusterFS volume from here, 
along with 2 other hosts I have. They are currently serving as the vSphere ESX 
hosts and have the same total size of storage to create another replica 3.

The Dedicated GlusterFS Hosts are custom AMD Opteron G2 builds with ASUS server 
motherboards. Strictly designed to be dedicated storage servers.
-   I'm using the onboard NICs to connect to my management network only for 
the purpose of getting updates. So, internet is served to these hosts via a NAT 
router. Since I figured they don't otherwise need access to our main network. 
The primary names = gsa-stor1 & gsa-stor2
-   They both have a bonded (4 port) gigabit network for the Engine storage 
network. Names = gsa-stor1e.engine.local & gsa-stor2e.engine.local
-   They both have a bonded (2 port) 10G network for the VM Guest storage 
network. Names = gsa-stor2s.stor.local & gsa-stor2s.stor.local
As far as storage in these servers.
-   It is the same as the R830, as these servers are the peers to the R830.

First, I added an ISO Storage Domain (NFS). That was successful. Next, I was 
trying to add the GlusterFS VM Guest Data Storage Domain. I receive an 
Operation Canceled: Error while executing action AddGlusterFsStorageDomain: 
Error creating a storage domain.
When I try to add the Gluster hosts as hosts in the oVirt Manager, I get a 
message stating that SSH has failed, verify that the host is reachable (IP 
address, routable address etc.) You may refer to the engine.log file for 
further details.
I can otherwise communicate with the hosts and the engine.log does not appear 
to have specifics to this particular failure. 

Re: [ovirt-users] Hello from Bacchus !

2017-04-28 Thread Barak Korren
On 28 April 2017 at 21:07, Niyazi Elvan  wrote:
> Hi Barak,
>
> I was not aware of backup api hence used Python SDK. Is there any specific
> reason that I should use the backup api ?

Well, it was made specifically to make building backup tools easier. But
I guess its up to you to decide if it helps you or not.
I'm not sure, but maybe the SDK supports it as well.

In any case, great work!

-- 
Barak Korren
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] Hello from Bacchus !

2017-04-28 Thread Niyazi Elvan
Hi Barak,

I was not aware of backup api hence used Python SDK. Is there any specific
reason that I should use the backup api ?



ps. I have just deployed the demo system at http://demo.bacchus.co

username : demo
pass : bacchus!2017



On 28 April 2017 at 20:00, Barak Korren  wrote:

> Hi Niyazi,
>
> On 27 April 2017 at 23:13, Niyazi Elvan  wrote:
> > Sorry for bothering but I forgot to mention that it's a backup solution
> > based on oVirt Python SDK and a fancy web UI.
>
> I wonder, did you use or consider using the oVirt backaup API?
> http://www.ovirt.org/develop/release-management/features/
> storage/backup-restore-api-integration/
>
>
> --
> Barak Korren
> RHV DevOps team , RHCE, RHCi
> Red Hat EMEA
> redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
>



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


Re: [ovirt-users] Hosted engine already imported

2017-04-28 Thread Jamie Lawrence

> On Apr 27, 2017, at 12:12 AM, Simone Tiraboschi  wrote:
> 
> 
> 
> On Tue, Apr 25, 2017 at 7:53 PM, Jamie Lawrence  
> wrote:
> Hi all,
> 
> In my hopefully-near-complete quest to automate Ovirt configuration in our 
> environment, I’m very close. One outstanding issue that remains is that, even 
> though the hosted engine storage domain actually was imported and shows in 
> the GUI, some part of Ovirt appears to think that hasn’t happened yet.
> 
> Did the engine imported it automatically once you had your first regular 
> storage domain it did you forced it somehow?


It was imported automatically. The chain of events was install HE, wait for the 
emails saying it was done cogitating, create the regular Gluster SD, import it. 
Shortly thereafter, the HE domain was imported, and things (storage, hosts, 
clusters) all appear correct in the GUI, but the error persists.

-j

> In the GUI, a periodic error is logged: “The Hosted Engine Storage Domain 
> doesn’t exist. It will be imported automatically…”
> 
> In engine.log, all I’m seeing that appears relevant is:
> 
> 2017-04-25 10:28:57,988-07 INFO  
> [org.ovirt.engine.core.bll.storage.domain.ImportHostedEngineStorageDomainCommand]
>  (org.ovirt.thread.pool-6-thread-9) [1e44dde0] Lock Acquired to object 
> 'EngineLock:{exclusiveLocks='[]', sharedLocks='null'}'
> 2017-04-25 10:28:57,992-07 WARN  
> [org.ovirt.engine.core.bll.storage.domain.ImportHostedEngineStorageDomainCommand]
>  (org.ovirt.thread.pool-6-thread-9) [1e44dde0] Validation of action 
> 'ImportHostedEngineStorageDomain' failed for user SYSTEM. Reasons: 
> VAR__ACTION__ADD,VAR__TYPE__STORAGE__DOMAIN,ACTION_TYPE_FAILED_STORAGE_DOMAIN_ALREADY_EXIST
> 2017-04-25 10:28:57,992-07 INFO  
> [org.ovirt.engine.core.bll.storage.domain.ImportHostedEngineStorageDomainCommand]
>  (org.ovirt.thread.pool-6-thread-9) [1e44dde0] Lock freed to object 
> 'EngineLock:{exclusiveLocks='[]', sharedLocks='null’}’
> 
> Otherwise the log is pretty clean.
> 
> I saw nothing of interest in the Gluster logs or the hosted-engine-ha logs on 
> the host it is running on.
> 
> It appears harmless, but then we aren’t actually using these systems yet, and 
> in any case we don’t want the error spamming the log forever. This is 
> 4.1.1.8-1.el7.centos, hosted engine on Centos 7.6.1311, Gluster for both the 
> hosted engine and general data domains.
> 
> Has anyone seen this before?
> 
> Thanks in advance,
> 
> -j
> ___
> 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 4, the missing python sdk

2017-04-28 Thread Ben De Luca
ok this works.

docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
-i /local/swagger.json \
-c /local/config.json \
-l python \
-o /local/out/


where config looks like

{"packageName": "overt",
 "packageVersion": "0.9"
}






On 28 April 2017 at 20:11, Ben De Luca  wrote:
>
> I wrote too soon! oops generated the wrong api!
>
> On 28 April 2017 at 20:09, Ben De Luca  wrote:
>>
>> I just generated the python API with the cmdline tools.
>>
>> I tend to use docker with random things like this from the internet, but
with docker installed this will generate a python version of the api.
>>
>> docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate
\
>> -c /local/swagger.json \
>> -l python \
>> -o /local/out/
>>
>> to a folder called local/out
>>
>>
>>
>>
>> On 28 April 2017 at 20:01, Juan Hernández  wrote:
>>>
>>> On 04/28/2017 06:00 PM, Ben De Luca wrote:
>>> > before people go writing yet another api client wouldn't it make sense
>>> > to just define the api client in terms of some thing like swagger
>>> > ? http://swagger.io/
>>> >
>>>
>>> The oVirt API has a formal specification, defined in this project:
>>>
>>>   https://github.com/oVirt/ovirt-engine-api-model
>>>
>>> The skeleton of the server, the documentation, and the SDKs are
>>> automatically generated from that specification.
>>>
>>> There is also an experimental Swagger/OpenAPI specification, available
here:
>>>
>>>   https://jhernand.fedorapeople.org/ovirt-engine-api-model/swagger.json
>>>
>>> However this seems to be too big for Swagger tools (1 MiB, 17000 lines).
>>> Every time I tried to load it into Swagger editor or Swagger UI it just
>>> burns the CPU of the browser and never finishes loading. If you have
>>> some Swagger expertise would be nice if you can take a look and pinpoint
>>> what is the problem.
>>>
>>> >
>>> >
>>> > On 28 April 2017 at 18:57, Alexander Wels >> > > wrote:
>>> >
>>> > On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
>>> > > does ovirt have a restful api?
>>> > >
>>> >
>>> > Yes,
>>> >
>>> > Its available at https:///ovirt-engine/api
>>> >
>>> > In fact the python/java/ruby sdk are just wrappers to calling
this api.
>>> >
>>> > > On 28 April 2017 at 13:43, Fabrice Bacchella
>>> > >
>>> > >
>>> > > wrote:
>>> > > > I have started to write a custom sdk/cli in python for Ovirt
4. It
>>> > > > provides helpers and wrapper for the rather raw level sdk4
provided.
>>> > > >
>>> > > > It's still a work in progress, but a big improvement from my
>>> > previous
>>> > > > version, made for ovirt 3.
>>> > > >
>>> > > > It allows to write simple commands on shell :
>>> > > >
>>> > > > $ ./ovcmd host -n hostname maintenance
>>> > > > $ ./ovcmd host -n hostname activate
>>> > > >
>>> > > > It also allows to do fine exports:
>>> > > >
>>> > > > $ ./ovcmd vm -n vmname export os type
>>> > > > rhel_6x64
>>> > > >
>>> > > > $ ./ovcmd capabilities -n 4.1 export cpu_types name
>>> > > > Intel Conroe Family
>>> > > > Intel Penryn Family
>>> > > > Intel Nehalem Family
>>> > > > Intel Westmere Family
>>> > > > Intel SandyBridge Family
>>> > > > Intel Haswell-noTSX Family
>>> > > > Intel Haswell Family
>>> > > > Intel Broadwell-noTSX Family
>>> > > > Intel Broadwell Family
>>> > > > Intel Skylake Family
>>> > > > AMD Opteron G1
>>> > > > AMD Opteron G2
>>> > > > AMD Opteron G3
>>> > > > AMD Opteron G4
>>> > > > AMD Opteron G5
>>> > > > IBM POWER8
>>> > > >
>>> > > > Or to get a display console on a mac os:
>>> > > >
>>> > > > $open $(./ovcmd vm -n vmname console )
>>> > > >
>>> > > >
>>> > > > It can be found at
>>> > https://github.com/fbacchella/ovirtcmd/tree/sdk4
>>> > 
>>> > > > It's still works in progress, I need to finish to remove sdk3
code.
>>> > > >
>>> > > > Some example of object written to sdk4 can be found at:
>>> > > >
>>> > > >
>>> >
https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py
>>> > <
https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py>
>>> > > >
>>> > > > ___
>>> > > > 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 4, the missing python sdk

2017-04-28 Thread Fabrice Bacchella


> Le 28 avr. 2017 à 18:00, Ben De Luca  a écrit :
> 
> before people go writing yet another api client wouldn't it make sense to 
> just define the api client in terms of some thing like swagger ? 
> http://swagger.io/
> 
> 

I'm using the curl wrapper from the python sdk4, but it misses a lot of high 
level wrappers and helpers. That's what I'm doing, writting code like:

@wrapper(writer_class=StorageDomainWriter, type_class=StorageDomain, 
service_class=StorageDomainService)
class StorageDomainWrapper(ObjectWrapper):
pass


@wrapper(service_class=StorageDomainsService, service_root="storagedomains")
class StoragesDomainWrapper(ListObjectWrapper):
pass


That allows to pack some functions that the sdk splitted or made difficult to 
find. It should allows to write simpler code for end user :

lister = StoragesDomainWrapper(api=...)
sd = lister.get(name="sd1")
print sd.status
sd.export()


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


Re: [ovirt-users] Change default "Physical Memory Guaranteed" value

2017-04-28 Thread Michal Skrivanek
> On 27 Apr 2017, at 09:58, Karli Sjöberg  wrote:
>
>> On Wed, 2017-04-26 at 07:40 +, Karli Sjöberg wrote:
>> Yo!
>>
>> Is there a way to easily change this value?
>>
>> I have checked engine-config, files under "/etc/ovirt-engine/config"
>> and "/usr/share/ovirt-engine/conf" and couldn´t find anything after a
>> quick glanse. I just want to lower it from 1024 MB to 512.

Most of the defaults are coming from the Blank template. You can edit
it, just beware that changes are global

>>
>> TIA
>> /K
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>
> FWIW, I created a NIC- and Disk-less Template with the settings I
> wanted and pointed to that template in my "Small" Foreman "Compute
> profile", so that I could create a VM in oVirt from Foreman with 512 MB
> RAM.
>
> /K
>
> PS. CentOS 7 won´t even pxe-boot with any less than 1536 MB any way :(
> ___
> 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 4, the missing python sdk

2017-04-28 Thread Ben De Luca
I wrote too soon! oops generated the wrong api!

On 28 April 2017 at 20:09, Ben De Luca  wrote:

> I just generated the python API with the cmdline tools.
>
> I tend to use docker with random things like this from the internet, but
> with docker installed this will generate a python version of the api.
>
> docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
> -c /local/swagger.json \
> -l python \
> -o /local/out/
>
> to a folder called local/out
>
>
>
>
> On 28 April 2017 at 20:01, Juan Hernández  wrote:
>
>> On 04/28/2017 06:00 PM, Ben De Luca wrote:
>> > before people go writing yet another api client wouldn't it make sense
>> > to just define the api client in terms of some thing like swagger
>> > ? http://swagger.io/
>> >
>>
>> The oVirt API has a formal specification, defined in this project:
>>
>>   https://github.com/oVirt/ovirt-engine-api-model
>>
>> The skeleton of the server, the documentation, and the SDKs are
>> automatically generated from that specification.
>>
>> There is also an experimental Swagger/OpenAPI specification, available
>> here:
>>
>>   https://jhernand.fedorapeople.org/ovirt-engine-api-model/swagger.json
>>
>> However this seems to be too big for Swagger tools (1 MiB, 17000 lines).
>> Every time I tried to load it into Swagger editor or Swagger UI it just
>> burns the CPU of the browser and never finishes loading. If you have
>> some Swagger expertise would be nice if you can take a look and pinpoint
>> what is the problem.
>>
>> >
>> >
>> > On 28 April 2017 at 18:57, Alexander Wels > > > wrote:
>> >
>> > On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
>> > > does ovirt have a restful api?
>> > >
>> >
>> > Yes,
>> >
>> > Its available at https:///ovirt-engine/api
>> >
>> > In fact the python/java/ruby sdk are just wrappers to calling this
>> api.
>> >
>> > > On 28 April 2017 at 13:43, Fabrice Bacchella
>> > >
>> > >
>> > > wrote:
>> > > > I have started to write a custom sdk/cli in python for Ovirt 4.
>> It
>> > > > provides helpers and wrapper for the rather raw level sdk4
>> provided.
>> > > >
>> > > > It's still a work in progress, but a big improvement from my
>> > previous
>> > > > version, made for ovirt 3.
>> > > >
>> > > > It allows to write simple commands on shell :
>> > > >
>> > > > $ ./ovcmd host -n hostname maintenance
>> > > > $ ./ovcmd host -n hostname activate
>> > > >
>> > > > It also allows to do fine exports:
>> > > >
>> > > > $ ./ovcmd vm -n vmname export os type
>> > > > rhel_6x64
>> > > >
>> > > > $ ./ovcmd capabilities -n 4.1 export cpu_types name
>> > > > Intel Conroe Family
>> > > > Intel Penryn Family
>> > > > Intel Nehalem Family
>> > > > Intel Westmere Family
>> > > > Intel SandyBridge Family
>> > > > Intel Haswell-noTSX Family
>> > > > Intel Haswell Family
>> > > > Intel Broadwell-noTSX Family
>> > > > Intel Broadwell Family
>> > > > Intel Skylake Family
>> > > > AMD Opteron G1
>> > > > AMD Opteron G2
>> > > > AMD Opteron G3
>> > > > AMD Opteron G4
>> > > > AMD Opteron G5
>> > > > IBM POWER8
>> > > >
>> > > > Or to get a display console on a mac os:
>> > > >
>> > > > $open $(./ovcmd vm -n vmname console )
>> > > >
>> > > >
>> > > > It can be found at
>> > https://github.com/fbacchella/ovirtcmd/tree/sdk4
>> > 
>> > > > It's still works in progress, I need to finish to remove sdk3
>> code.
>> > > >
>> > > > Some example of object written to sdk4 can be found at:
>> > > >
>> > > >
>> > https://github.com/fbacchella/ovirtcmd/blob/sdk4/
>> ovlib/vms/__init__.py
>> > > vms/__init__.py>
>> > > >
>> > > > ___
>> > > > 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] Ovirt 4, the missing python sdk

2017-04-28 Thread Ben De Luca
I just generated the python API with the cmdline tools.

I tend to use docker with random things like this from the internet, but
with docker installed this will generate a python version of the api.

docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
-c /local/swagger.json \
-l python \
-o /local/out/

to a folder called local/out




On 28 April 2017 at 20:01, Juan Hernández  wrote:

> On 04/28/2017 06:00 PM, Ben De Luca wrote:
> > before people go writing yet another api client wouldn't it make sense
> > to just define the api client in terms of some thing like swagger
> > ? http://swagger.io/
> >
>
> The oVirt API has a formal specification, defined in this project:
>
>   https://github.com/oVirt/ovirt-engine-api-model
>
> The skeleton of the server, the documentation, and the SDKs are
> automatically generated from that specification.
>
> There is also an experimental Swagger/OpenAPI specification, available
> here:
>
>   https://jhernand.fedorapeople.org/ovirt-engine-api-model/swagger.json
>
> However this seems to be too big for Swagger tools (1 MiB, 17000 lines).
> Every time I tried to load it into Swagger editor or Swagger UI it just
> burns the CPU of the browser and never finishes loading. If you have
> some Swagger expertise would be nice if you can take a look and pinpoint
> what is the problem.
>
> >
> >
> > On 28 April 2017 at 18:57, Alexander Wels  > > wrote:
> >
> > On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
> > > does ovirt have a restful api?
> > >
> >
> > Yes,
> >
> > Its available at https:///ovirt-engine/api
> >
> > In fact the python/java/ruby sdk are just wrappers to calling this
> api.
> >
> > > On 28 April 2017 at 13:43, Fabrice Bacchella
> > >
> > >
> > > wrote:
> > > > I have started to write a custom sdk/cli in python for Ovirt 4.
> It
> > > > provides helpers and wrapper for the rather raw level sdk4
> provided.
> > > >
> > > > It's still a work in progress, but a big improvement from my
> > previous
> > > > version, made for ovirt 3.
> > > >
> > > > It allows to write simple commands on shell :
> > > >
> > > > $ ./ovcmd host -n hostname maintenance
> > > > $ ./ovcmd host -n hostname activate
> > > >
> > > > It also allows to do fine exports:
> > > >
> > > > $ ./ovcmd vm -n vmname export os type
> > > > rhel_6x64
> > > >
> > > > $ ./ovcmd capabilities -n 4.1 export cpu_types name
> > > > Intel Conroe Family
> > > > Intel Penryn Family
> > > > Intel Nehalem Family
> > > > Intel Westmere Family
> > > > Intel SandyBridge Family
> > > > Intel Haswell-noTSX Family
> > > > Intel Haswell Family
> > > > Intel Broadwell-noTSX Family
> > > > Intel Broadwell Family
> > > > Intel Skylake Family
> > > > AMD Opteron G1
> > > > AMD Opteron G2
> > > > AMD Opteron G3
> > > > AMD Opteron G4
> > > > AMD Opteron G5
> > > > IBM POWER8
> > > >
> > > > Or to get a display console on a mac os:
> > > >
> > > > $open $(./ovcmd vm -n vmname console )
> > > >
> > > >
> > > > It can be found at
> > https://github.com/fbacchella/ovirtcmd/tree/sdk4
> > 
> > > > It's still works in progress, I need to finish to remove sdk3
> code.
> > > >
> > > > Some example of object written to sdk4 can be found at:
> > > >
> > > >
> > https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/_
> _init__.py
> >  ovlib/vms/__init__.py>
> > > >
> > > > ___
> > > > 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] Ovirt 4, the missing python sdk

2017-04-28 Thread Juan Hernández
On 04/28/2017 06:00 PM, Ben De Luca wrote:
> before people go writing yet another api client wouldn't it make sense
> to just define the api client in terms of some thing like swagger
> ? http://swagger.io/
> 

The oVirt API has a formal specification, defined in this project:

  https://github.com/oVirt/ovirt-engine-api-model

The skeleton of the server, the documentation, and the SDKs are
automatically generated from that specification.

There is also an experimental Swagger/OpenAPI specification, available here:

  https://jhernand.fedorapeople.org/ovirt-engine-api-model/swagger.json

However this seems to be too big for Swagger tools (1 MiB, 17000 lines).
Every time I tried to load it into Swagger editor or Swagger UI it just
burns the CPU of the browser and never finishes loading. If you have
some Swagger expertise would be nice if you can take a look and pinpoint
what is the problem.

> 
> 
> On 28 April 2017 at 18:57, Alexander Wels  > wrote:
> 
> On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
> > does ovirt have a restful api?
> >
> 
> Yes,
> 
> Its available at https:///ovirt-engine/api
> 
> In fact the python/java/ruby sdk are just wrappers to calling this api.
> 
> > On 28 April 2017 at 13:43, Fabrice Bacchella
> >
> >
> > wrote:
> > > I have started to write a custom sdk/cli in python for Ovirt 4. It
> > > provides helpers and wrapper for the rather raw level sdk4 provided.
> > >
> > > It's still a work in progress, but a big improvement from my
> previous
> > > version, made for ovirt 3.
> > >
> > > It allows to write simple commands on shell :
> > >
> > > $ ./ovcmd host -n hostname maintenance
> > > $ ./ovcmd host -n hostname activate
> > >
> > > It also allows to do fine exports:
> > >
> > > $ ./ovcmd vm -n vmname export os type
> > > rhel_6x64
> > >
> > > $ ./ovcmd capabilities -n 4.1 export cpu_types name
> > > Intel Conroe Family
> > > Intel Penryn Family
> > > Intel Nehalem Family
> > > Intel Westmere Family
> > > Intel SandyBridge Family
> > > Intel Haswell-noTSX Family
> > > Intel Haswell Family
> > > Intel Broadwell-noTSX Family
> > > Intel Broadwell Family
> > > Intel Skylake Family
> > > AMD Opteron G1
> > > AMD Opteron G2
> > > AMD Opteron G3
> > > AMD Opteron G4
> > > AMD Opteron G5
> > > IBM POWER8
> > >
> > > Or to get a display console on a mac os:
> > >
> > > $open $(./ovcmd vm -n vmname console )
> > >
> > >
> > > It can be found at
> https://github.com/fbacchella/ovirtcmd/tree/sdk4
> 
> > > It's still works in progress, I need to finish to remove sdk3 code.
> > >
> > > Some example of object written to sdk4 can be found at:
> > >
> > >
> https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py
> 
> > >
> > > ___
> > > 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] Hello from Bacchus !

2017-04-28 Thread Barak Korren
Hi Niyazi,

On 27 April 2017 at 23:13, Niyazi Elvan  wrote:
> Sorry for bothering but I forgot to mention that it's a backup solution
> based on oVirt Python SDK and a fancy web UI.

I wonder, did you use or consider using the oVirt backaup API?
http://www.ovirt.org/develop/release-management/features/storage/backup-restore-api-integration/


-- 
Barak Korren
RHV DevOps team , RHCE, RHCi
Red Hat EMEA
redhat.com | TRIED. TESTED. TRUSTED. | redhat.com/trusted
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] change Memory Ballooning setting

2017-04-28 Thread Michal Skrivanek
On 27 Apr 2017, at 16:29, Nelson Lameiras 
wrote:

Hello oVirt gurus,

When activating/deactivating memory balloning on VM, this will
change /usr/libexec/qemu-kvm command line on host on vm startup (you can
see it using "ps aux").
So I understand a vm reboot is needed to take this change into account.


Right. That option controls the presence of the virtio-balloon device which
is not hotpluggable


But when activating/deactivating memory balloning on Cluster (plus MoM Sync
on host) I do not really understand what happens "under the hood"


This controls the actual behavior, inflating and deflating of those
balloons. That can be done in runtime as it is external to the VM, managed
by MOM demon.


- Is there a mechanism on host which controls "memory balloning" globally?
- Is it able to change it's behaviour "on the fly" with "MoM Sync" ?


Yes. You can change the policy/behavior.

HTH,
michal


If you have any information, it would be greatly appreciated

cordialement, regards,

 
Nelson LAMEIRAS
Ingénieur Systèmes et Réseaux / Systems and Networks engineer
Tel: +33 5 32 09 09 70
nelson.lamei...@lyra-network.com
www.lyra-network.com | www.payzen.eu 




 
 
--
Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE

___
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] engine upgrade 3.5 -> 4.1.1

2017-04-28 Thread Sverker Abrahamsson

Hi Simone.
I get the following result:
# sudo -u postgres psql engine -c "SELECT vm_guid, run_on_vds FROM vms 
WHERE vm_name in (select 'HostedEngine' union select option_value from 
vdc_options where option_name='HostedEngineVmName')"

could not change directory to "/root"
   vm_guid| run_on_vds
--+
 4e4df6ea-ea01-465b-9424-4436aa24cec0 |
(1 row)

/Sverker


Den 2017-04-28 kl. 10:32, skrev Simone Tiraboschi:


On Thu, Apr 27, 2017 at 9:27 PM, Sverker Abrahamsson 
> wrote:


Hi
I upgraded an old ovirt installation from 3.5 to latest version,
but end up with this error message when running engine-setup:

[ INFO  ] Stage: Setup validation
[ ERROR ] It seems that you are running your engine inside of the
hosted-engine VM and are not in "Global Maintenance" mode. In that
case you should put the system into the "Global Maintenance" mode
before running engine-setup, or the hosted-engine HA agent might
kill the machine, which might corrupt your data.
[ ERROR ] Failed to execute stage 'Setup validation': Hosted
Engine setup detected, but Global Maintenance is not set.

This is not a hosted engine, so why does it think so? How can I
get it past this step?


Hi Sverker,
could you please share the output of:
  sudo -u postgres psql engine -c "SELECT vm_guid, run_on_vds FROM vms 
WHERE vm_name in (select 'HostedEngine' union select option_value from 
vdc_options where option_name='HostedEngineVmName')"


thanks


Best regards
/Sverker

___
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 4, the missing python sdk

2017-04-28 Thread Ben De Luca
before people go writing yet another api client wouldn't it make sense to
just define the api client in terms of some thing like swagger ?
http://swagger.io/



On 28 April 2017 at 18:57, Alexander Wels  wrote:

> On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
> > does ovirt have a restful api?
> >
>
> Yes,
>
> Its available at https:///ovirt-engine/api
>
> In fact the python/java/ruby sdk are just wrappers to calling this api.
>
> > On 28 April 2017 at 13:43, Fabrice Bacchella <
> fabrice.bacche...@orange.fr>
> >
> > wrote:
> > > I have started to write a custom sdk/cli in python for Ovirt 4. It
> > > provides helpers and wrapper for the rather raw level sdk4 provided.
> > >
> > > It's still a work in progress, but a big improvement from my previous
> > > version, made for ovirt 3.
> > >
> > > It allows to write simple commands on shell :
> > >
> > > $ ./ovcmd host -n hostname maintenance
> > > $ ./ovcmd host -n hostname activate
> > >
> > > It also allows to do fine exports:
> > >
> > > $ ./ovcmd vm -n vmname export os type
> > > rhel_6x64
> > >
> > > $ ./ovcmd capabilities -n 4.1 export cpu_types name
> > > Intel Conroe Family
> > > Intel Penryn Family
> > > Intel Nehalem Family
> > > Intel Westmere Family
> > > Intel SandyBridge Family
> > > Intel Haswell-noTSX Family
> > > Intel Haswell Family
> > > Intel Broadwell-noTSX Family
> > > Intel Broadwell Family
> > > Intel Skylake Family
> > > AMD Opteron G1
> > > AMD Opteron G2
> > > AMD Opteron G3
> > > AMD Opteron G4
> > > AMD Opteron G5
> > > IBM POWER8
> > >
> > > Or to get a display console on a mac os:
> > >
> > > $open $(./ovcmd vm -n vmname console )
> > >
> > >
> > > It can be found at https://github.com/fbacchella/ovirtcmd/tree/sdk4
> > > It's still works in progress, I need to finish to remove sdk3 code.
> > >
> > > Some example of object written to sdk4 can be found at:
> > >
> > > https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py
> > >
> > > ___
> > > 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 4, the missing python sdk

2017-04-28 Thread Alexander Wels
On Friday, April 28, 2017 11:41:03 AM EDT Ben De Luca wrote:
> does ovirt have a restful api?
> 

Yes,

Its available at https:///ovirt-engine/api

In fact the python/java/ruby sdk are just wrappers to calling this api.

> On 28 April 2017 at 13:43, Fabrice Bacchella 
> 
> wrote:
> > I have started to write a custom sdk/cli in python for Ovirt 4. It
> > provides helpers and wrapper for the rather raw level sdk4 provided.
> > 
> > It's still a work in progress, but a big improvement from my previous
> > version, made for ovirt 3.
> > 
> > It allows to write simple commands on shell :
> > 
> > $ ./ovcmd host -n hostname maintenance
> > $ ./ovcmd host -n hostname activate
> > 
> > It also allows to do fine exports:
> > 
> > $ ./ovcmd vm -n vmname export os type
> > rhel_6x64
> > 
> > $ ./ovcmd capabilities -n 4.1 export cpu_types name
> > Intel Conroe Family
> > Intel Penryn Family
> > Intel Nehalem Family
> > Intel Westmere Family
> > Intel SandyBridge Family
> > Intel Haswell-noTSX Family
> > Intel Haswell Family
> > Intel Broadwell-noTSX Family
> > Intel Broadwell Family
> > Intel Skylake Family
> > AMD Opteron G1
> > AMD Opteron G2
> > AMD Opteron G3
> > AMD Opteron G4
> > AMD Opteron G5
> > IBM POWER8
> > 
> > Or to get a display console on a mac os:
> > 
> > $open $(./ovcmd vm -n vmname console )
> > 
> > 
> > It can be found at https://github.com/fbacchella/ovirtcmd/tree/sdk4
> > It's still works in progress, I need to finish to remove sdk3 code.
> > 
> > Some example of object written to sdk4 can be found at:
> > 
> > https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py
> > 
> > ___
> > 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 4, the missing python sdk

2017-04-28 Thread Ben De Luca
does ovirt have a restful api?

On 28 April 2017 at 13:43, Fabrice Bacchella 
wrote:

> I have started to write a custom sdk/cli in python for Ovirt 4. It
> provides helpers and wrapper for the rather raw level sdk4 provided.
>
> It's still a work in progress, but a big improvement from my previous
> version, made for ovirt 3.
>
> It allows to write simple commands on shell :
>
> $ ./ovcmd host -n hostname maintenance
> $ ./ovcmd host -n hostname activate
>
> It also allows to do fine exports:
>
> $ ./ovcmd vm -n vmname export os type
> rhel_6x64
>
> $ ./ovcmd capabilities -n 4.1 export cpu_types name
> Intel Conroe Family
> Intel Penryn Family
> Intel Nehalem Family
> Intel Westmere Family
> Intel SandyBridge Family
> Intel Haswell-noTSX Family
> Intel Haswell Family
> Intel Broadwell-noTSX Family
> Intel Broadwell Family
> Intel Skylake Family
> AMD Opteron G1
> AMD Opteron G2
> AMD Opteron G3
> AMD Opteron G4
> AMD Opteron G5
> IBM POWER8
>
> Or to get a display console on a mac os:
>
> $open $(./ovcmd vm -n vmname console )
>
>
> It can be found at https://github.com/fbacchella/ovirtcmd/tree/sdk4
> It's still works in progress, I need to finish to remove sdk3 code.
>
> Some example of object written to sdk4 can be found at:
>
> https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py
>
> ___
> 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] Ovirt 4, the missing python sdk

2017-04-28 Thread Fabrice Bacchella
I have started to write a custom sdk/cli in python for Ovirt 4. It provides 
helpers and wrapper for the rather raw level sdk4 provided.

It's still a work in progress, but a big improvement from my previous version, 
made for ovirt 3.

It allows to write simple commands on shell :

$ ./ovcmd host -n hostname maintenance
$ ./ovcmd host -n hostname activate

It also allows to do fine exports:

$ ./ovcmd vm -n vmname export os type
rhel_6x64

$ ./ovcmd capabilities -n 4.1 export cpu_types name
Intel Conroe Family
Intel Penryn Family
Intel Nehalem Family
Intel Westmere Family
Intel SandyBridge Family
Intel Haswell-noTSX Family
Intel Haswell Family
Intel Broadwell-noTSX Family
Intel Broadwell Family
Intel Skylake Family
AMD Opteron G1
AMD Opteron G2
AMD Opteron G3
AMD Opteron G4
AMD Opteron G5
IBM POWER8

Or to get a display console on a mac os:

$open $(./ovcmd vm -n vmname console )


It can be found at https://github.com/fbacchella/ovirtcmd/tree/sdk4
It's still works in progress, I need to finish to remove sdk3 code.

Some example of object written to sdk4 can be found at:

https://github.com/fbacchella/ovirtcmd/blob/sdk4/ovlib/vms/__init__.py___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] impossible to change console graphics on hosted engine

2017-04-28 Thread Nelson Lameiras
Hello, I opened a BZ : 

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

cordialement, regards, 


Nelson LAMEIRAS 
Ingénieur Systèmes et Réseaux / Systems and Networks engineer 
Tel: +33 5 32 09 09 70 
nelson.lamei...@lyra-network.com 

www.lyra-network.com | www.payzen.eu 





Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE 



From: "Simone Tiraboschi"  
To: "Nelson Lameiras"  
Cc: "ovirt users"  
Sent: Thursday, April 20, 2017 6:19:53 PM 
Subject: Re: [ovirt-users] impossible to change console graphics on hosted 
engine 



On Tue, Apr 18, 2017 at 11:20 AM, Nelson Lameiras < 
nelson.lamei...@lyra-network.com > wrote: 



Hello, 

My hosted engine has currently VNC (+cirrus) graphics console, which has 
serious performance issues with my remote-viewer (theses issues are not 
important for this mail) 

I know that SPICE (+QXL) works perfect for me, so I tried to update my 
hostedEngine console settings on oVirt GUI, but I get the message below : 

"There was an attempt to change Hosted Engine VM values that are locked" 

So my question is : how can I change this setting on HostedEngine? 



Currently it's not allowed, 
could you please open an RFE to track it? 

BQ_BEGIN


This question could be applied to other settings wich I would like to also 
change on HostedEngine but are also locked (ex: "optimise for 
[server|desktop]") 

my setup: 
hostedEngine : centos 7.3 (full updated) + oVirt engine 4.1.1 
node running engine : centos 7.3 (full updated) + engine 4.1.1 
cluster running engine : compatibility 4.0 
engine running on dedicated ISCSI volume 

cordialement, regards, 


Nelson LAMEIRAS 
Ingénieur Systèmes et Réseaux / Systems and Networks engineer 
Tel: +33 5 32 09 09 70 

nelson.lamei...@lyra-network.com 

www.lyra-network.com | www.payzen.eu 





Lyra Network, 109 rue de l'innovation, 31670 Labège, FRANCE 


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


BQ_END


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


Re: [ovirt-users] Error importing old NFS storage domain

2017-04-28 Thread Endre Karlson
Here I am posting the logs at https://api.creator.no/logs

The host in question that is used for the import and that has some
glusterTasksList errors on it is ovhost20

2017-04-27 14:48 GMT+02:00 Elad Ben Aharon :

> Hi,
>
> Please provide the logs
>
> On Thu, Apr 27, 2017 at 2:12 PM, Endre Karlson 
> wrote:
>
>> I have a existing NFS storage domain I would like to import.
>>
>> I add the Name attribute and set the path and hit Enter but it gives me
>> "Error while executing actions Attach Storage Domain: Internal Engine
>> Error".
>>
>> I checked the Engine logs too to see if there's any clue when I do it but
>> I cant seem to find anything. Maybe I can attach it here?
>>
>>
>>
>> ___
>> 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] Info on fence_rhevm against oVirt 4.1.1

2017-04-28 Thread Gianluca Cecchi
>
>
>
> Using admin@internal didn't work even if I set the permissions at vm level 
> too...
>
> It worked with my username (g.cecchi) that has SuperUser system privilege and 
> also at VM level.
>
> Is it yet necessary to have a user with SuperUser privilege at system level?
>
> Tomorrow (today... ;-) I'm going to open a bugzilla to backport the feature.
>
> Thanks again,
> Gianluca
>
>
In the mean time I have opened this:
https://bugzilla.redhat.com/show_bug.cgi?id=1446474

Feel free to add any comment.

I would test your suggestions. It seems I already tried them with a
"fenceuser" user, but they didn't work, but it was late in the night and
possibly I missed something... ;-)

It has been very nice in less than a day to make a "poor man" P2V of a
physical 2-nodes RHCS running cluster into oVirt and be able to reproduce
and solve a problem we had during maintenance windows with clvmd not
starting due to timeout issues.
And also with both production and intracluster networks of the virtual
cluster based on OVN, without having to spend time waiting for network
support, due to time constraints we had, as the next maintenance window
will be today...

thanks to all

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


Re: [ovirt-users] Info on fence_rhevm against oVirt 4.1.1

2017-04-28 Thread Juan Hernández
On 04/28/2017 01:54 AM, Gianluca Cecchi wrote:
> On Thu, Apr 27, 2017 at 6:32 PM, Juan Hernández  > wrote:
> 
> That is a known issue:
> 
>   fence_rhevm can only work as RHEV admin user not a regular user (that
> requires "Filter: true http header)
>   https://bugzilla.redhat.com/1287059
> 
> 
> That was fixed in fence-agents-4.0.11-47.el7, but I guess it wasn't
> backported to CentOS 6.
> 
> I'd suggest that you open a bug for this component in the Red Hat
> Enterprise Linux bug tracker, requesting that the fix be back-ported.
> 
> Meanwhile, if you are in a hurry, you can take the CentOS 7 fence_rhev
> script, which should work.
> 
> You will most likely also need to add --ssl-indecure to the command line
> of the agent, because you will most likely be using the default self
> signed certificate authority used by the engine.
> 
> Note that the latest version of this script uses the 'Filter: true'
> header to drop privileges. That means that even when using
> 'admin@internal' you have to make sure that 'admin@internal' has
> permissions for the VM that you want to fence, otherwise it will not be
> able to find/fence it.
> 
> 
> Thanks for the feedback Juan.
> I confirm that using fence_rhevm from latest CentOS 7 version it worked.
> These were the lines in my cluster.conf
> 
>   
>   
>   
>port="p2vorasvi1"/>
>   
>   
>   
>   
>   
>   
>port="p2vorasvi2"/>
>   
>   
>   
>   
>   
>score="1" tko="200"/>
>   
>   
>ipaddr="10.4.192.43" login="g.cecchi@internal" 
> passwd_script="/usr/local/bin/pwd_dracnode01.sh" name="ovirt_fencedelay" 
> ssl="on" ssl_insecure="on" shell_timeout="20" power_wait="10"/>
>login="g.cecchi@internal" passwd_script="/usr/local/bin/pwd_dracnode02.sh" 
> name="ovirt_fence" ssl="on" ssl_insecure="on" shell_timeout="20" 
> power_wait="10"/>
>   
> 
> Using admin@internal didn't work even if I set the permissions at vm
> level too...
> 

It should work adding 'UserRole' to 'admin@internal'. The issue is that
the fence agent uses the 'Filter: true' header, thus it drops its
super-user privileges to do the query, and won't get the VM unless it
has explicitly granted permissions. To check it you can do the
following, for example:

---8<---
#!/bin/sh -ex

url="https://yourengine/ovirt-engine/api;
user="admin@internal"
password="..."

curl \
--verbose \
--cacert "/etc/pki/ovirt-engine/ca.pem" \
--user "${user}:${password}" \
--request GET \
--header "Version: 3" \
--header "Filter: true" \
"${url}/vms?search=name%3Dmyvm"
--->8---

That should return the details of the VM, or nothing if the user doesn't
have permission to see that VM.

> It worked with my username (g.cecchi) that has SuperUser system
> privilege and also at VM level.
> 
> Is it yet necessary to have a user with SuperUser privilege at system level?
> 

No, it shouldn't be necessary. Actually, as you are using the 'internal'
domain, it is easy to add a new dummy user without SuperUser privileges.
You can give that user permissions (with 'UserRole') only for the VMs
that are nodes of the cluster. That should be enough.

> Tomorrow (today... ;-) I'm going to open a bugzilla to backport the feature.
> 
> Thanks again,
> Gianluca
> 

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