Re: [ovirt-users] restapi

2017-03-07 Thread Yaniv Kaul
On Tue, Mar 7, 2017 at 2:21 PM Juan Hernández  wrote:

> On 03/07/2017 12:50 PM, qinglong.d...@horebdata.cn wrote:
> > Hi, all
> > I have a cloud foundry environment. I have noticed that cloud
> > foundry can schedule vitual machines created by vmware or openstack
> > using restapi. Ovirt supports restapi, too. So I want to know if it is
> > possible to schedule vitual machines which created by ovirt
> > using cloud foundry. Anyone can help? Thanks!
> >
>
> Your words may me think that you believe that there is an standard REST
> API that VMware and OpenStack both implement, and your question is if
> oVirt implements it as well. But that isn't correct, VMware and
> OpenStack have different REST APIs, and so does oVirt. Cloud Foundry can
> talk to the VMware and OpenStack APIs, but not to the oVirt API, as far
> as I know.
>

The cloud connector[1] of CF uses Fog[2]. oVirt Fog support uses the old
Ruby SDK, which will be an issue for us.
AFAIK, this is the same way that Forman / Spacewalk is talking to oVirt, so
we need to think how we can update our support there.
We should add it to our GSoC or outreachy projects: update our Fog support
to use the official Ruby SDK.
Y.

[1] https://github.com/cloudfoundry/cloud_controller_ng
[2] http://fog.io/

> ___
> 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] restapi

2017-03-07 Thread Juan Hernández
On 03/07/2017 12:50 PM, qinglong.d...@horebdata.cn wrote:
> Hi, all
> I have a cloud foundry environment. I have noticed that cloud
> foundry can schedule vitual machines created by vmware or openstack
> using restapi. Ovirt supports restapi, too. So I want to know if it is
> possible to schedule vitual machines which created by ovirt
> using cloud foundry. Anyone can help? Thanks!
> 

Your words may me think that you believe that there is an standard REST
API that VMware and OpenStack both implement, and your question is if
oVirt implements it as well. But that isn't correct, VMware and
OpenStack have different REST APIs, and so does oVirt. Cloud Foundry can
talk to the VMware and OpenStack APIs, but not to the oVirt API, as far
as I know.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] restapi

2017-03-07 Thread qinglong.d...@horebdata.cn
Hi, all
I have a cloud foundry environment. I have noticed that cloud foundry 
can schedule vitual machines created by vmware or openstack using restapi. 
Ovirt supports restapi, too. So I want to know if it is possible to schedule 
vitual machines which created by ovirt using cloud foundry. Anyone can help? 
Thanks!
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] RESTAPI and kerberos authentication

2016-04-14 Thread Marcel Galke
Hi,

I've managed to get it work.
What I've done is to first run "engine-manage-domains delete" to remove
the domain and add it again using the new aaa extension tool
"ovirt-engine-extension-aaa-ldap-setup". It's not a good idea to mix
these two methods, I guess.
Restart the engine after each change.
To get rid of the double authentication for the webadmin portal I
changed in /etc/httpd/conf.d/ovirt-sso.conf

""
to
""

So Kerberos SSO will be used for the API only.
Furthermore I've given the user the role "superuser".

Best regards
Marcel

On 14.04.2016 11:44, Marcel Galke wrote:
> Hi,
> 
> I'm using curl and I followed steps in [1] and double checked the
> permissions.
> I've tested API access vs. webadmin access (see below).
> 
> $ curl -v --negotiate -X GET -H "Accept: application/xml" -k
> https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE
> # Result: HTTP 401
> $ kinit
> $ curl -v --negotiate -X GET -H "Accept: application/xml" -k
> https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE # Result:
> HTTP 200
> $ curl --negotiate -v -u : -X GET -H "Accept: application/xml" -k
> https://server8.funfurt.de/api/vms # Result: HTTP 401
> 
> Therfore I believe httpd config is fine.
> For engine.log and and properties file see attachment.
> I've also attached console output from curl.
> 
> Thanks and regards
> Marcel
> 
> On 14.04.2016 08:11, Ondra Machacek wrote:
>> On 04/14/2016 08:06 AM, Ondra Machacek wrote:
>>> On 04/13/2016 10:43 PM, Marcel Galke wrote:
 Hello,

 I need to automatically create a list of all the VMs and the storage
 path to their disks in the data center for offline storage for desaster
 recovery. We have oVirt 3.6 and IPA 4.2.0.
 To achieve this my idea was to query the API using Kerberos
 authentication and a keytab. This could then run as cronjob.
 Using username and password is not an option.

 To configure oVirt for use with IPA I've run engine-manage-domains but
 the result is not exactly what I'm looking for (despite from the fact,
 that I can add direcotry users etc.).
 Next I tried the generic LDAP provider as per documentation
 https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html


>>>
>>> Just to be sure did you followed these steps[1]?
>>> If yes and it don't work, it would be nice if you can share a properties
>>> files you have and engine.log(the part when engine starts). Please also
>>> ensure twice you have correct permissions on properties files, keytab
>>> and apache confiig.
>>>
>>> Also ensure your browser is correctly setup. Example for firefox[2].
>>
>> Sorry, I've just realized you use API.
>> So do you use SDKs or curl? Make sure you use kerberos properly in both
>> cases.
>> For cur its:  curl --negotiate
>> For SDKs[1], there is a parameter 'kerberos=true' in creation of api
>> object.
>>
>> [1]
>> http://www.ovirt.org/develop/release-management/features/infra/kerberos-support-in-sdks-and-cli/
>>
>>
>>>
>>> It don't work only for API or for UserPortal and Webadmin as well? Or
>>> you set it up only for API?
>>>
>>> [1]
>>> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html#sect-Single_Sign-On_to_the_Administration_and_User_Portal
>>>
>>>
>>> [2]
>>> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sso-config-firefox.html
>>>
>>>
>>>

 It was quite easy to get Apache to authenticate against IPA, but I did
 not manage to access the API. Each try ended with an "HTTP/1.1 401
 Unauthorized".
 At the moment Apache authentication appears first and then the RESTAPI
 auth dialog comes up.
 Some facts about my setup:
 oVirt Host:
 -OS: CentOS 6.7
 -Engine Version: 3.6
 IPA Host:
 -OS: CentOS 7.2
 -IPA Version: 4.2.0


 I might mix some things up. Please help me to find out how to achieve my
 goal. I can provide more information if required.

 Thanks a lot!


 Best regards
 Marcel
 ___
 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] RESTAPI and kerberos authentication

2016-04-14 Thread Ondra Machacek
The issue is most probably that your user don't have permissions to 
login/see vms in oVirt.
Just login as admin@internal to webadmin and assign user 'aaa' some 
permissions.

Here[1] is example how to work with virtual machine permissions.

[1] 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Virtual_Machines_and_Permissions.html


On 04/14/2016 11:44 AM, Marcel Galke wrote:

Hi,

I'm using curl and I followed steps in [1] and double checked the
permissions.
I've tested API access vs. webadmin access (see below).

$ curl -v --negotiate -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE
# Result: HTTP 401
$ kinit
$ curl -v --negotiate -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE # Result:
HTTP 200
$ curl --negotiate -v -u : -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/api/vms # Result: HTTP 401

Therfore I believe httpd config is fine.
For engine.log and and properties file see attachment.
I've also attached console output from curl.

Thanks and regards
Marcel

On 14.04.2016 08:11, Ondra Machacek wrote:

On 04/14/2016 08:06 AM, Ondra Machacek wrote:

On 04/13/2016 10:43 PM, Marcel Galke wrote:

Hello,

I need to automatically create a list of all the VMs and the storage
path to their disks in the data center for offline storage for desaster
recovery. We have oVirt 3.6 and IPA 4.2.0.
To achieve this my idea was to query the API using Kerberos
authentication and a keytab. This could then run as cronjob.
Using username and password is not an option.

To configure oVirt for use with IPA I've run engine-manage-domains but
the result is not exactly what I'm looking for (despite from the fact,
that I can add direcotry users etc.).
Next I tried the generic LDAP provider as per documentation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html




Just to be sure did you followed these steps[1]?
If yes and it don't work, it would be nice if you can share a properties
files you have and engine.log(the part when engine starts). Please also
ensure twice you have correct permissions on properties files, keytab
and apache confiig.

Also ensure your browser is correctly setup. Example for firefox[2].


Sorry, I've just realized you use API.
So do you use SDKs or curl? Make sure you use kerberos properly in both
cases.
For cur its:  curl --negotiate
For SDKs[1], there is a parameter 'kerberos=true' in creation of api
object.

[1]
http://www.ovirt.org/develop/release-management/features/infra/kerberos-support-in-sdks-and-cli/




It don't work only for API or for UserPortal and Webadmin as well? Or
you set it up only for API?

[1]
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html#sect-Single_Sign-On_to_the_Administration_and_User_Portal


[2]
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sso-config-firefox.html





It was quite easy to get Apache to authenticate against IPA, but I did
not manage to access the API. Each try ended with an "HTTP/1.1 401
Unauthorized".
At the moment Apache authentication appears first and then the RESTAPI
auth dialog comes up.
Some facts about my setup:
oVirt Host:
-OS: CentOS 6.7
-Engine Version: 3.6
IPA Host:
-OS: CentOS 7.2
-IPA Version: 4.2.0


I might mix some things up. Please help me to find out how to achieve my
goal. I can provide more information if required.

Thanks a lot!


Best regards
Marcel
___
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] RESTAPI and kerberos authentication

2016-04-14 Thread Marcel Galke
Hi,

I'm using curl and I followed steps in [1] and double checked the
permissions.
I've tested API access vs. webadmin access (see below).

$ curl -v --negotiate -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE
# Result: HTTP 401
$ kinit
$ curl -v --negotiate -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/ovirt-engine/webadmin/?locale=de_DE # Result:
HTTP 200
$ curl --negotiate -v -u : -X GET -H "Accept: application/xml" -k
https://server8.funfurt.de/api/vms # Result: HTTP 401

Therfore I believe httpd config is fine.
For engine.log and and properties file see attachment.
I've also attached console output from curl.

Thanks and regards
Marcel

On 14.04.2016 08:11, Ondra Machacek wrote:
> On 04/14/2016 08:06 AM, Ondra Machacek wrote:
>> On 04/13/2016 10:43 PM, Marcel Galke wrote:
>>> Hello,
>>>
>>> I need to automatically create a list of all the VMs and the storage
>>> path to their disks in the data center for offline storage for desaster
>>> recovery. We have oVirt 3.6 and IPA 4.2.0.
>>> To achieve this my idea was to query the API using Kerberos
>>> authentication and a keytab. This could then run as cronjob.
>>> Using username and password is not an option.
>>>
>>> To configure oVirt for use with IPA I've run engine-manage-domains but
>>> the result is not exactly what I'm looking for (despite from the fact,
>>> that I can add direcotry users etc.).
>>> Next I tried the generic LDAP provider as per documentation
>>> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html
>>>
>>>
>>
>> Just to be sure did you followed these steps[1]?
>> If yes and it don't work, it would be nice if you can share a properties
>> files you have and engine.log(the part when engine starts). Please also
>> ensure twice you have correct permissions on properties files, keytab
>> and apache confiig.
>>
>> Also ensure your browser is correctly setup. Example for firefox[2].
> 
> Sorry, I've just realized you use API.
> So do you use SDKs or curl? Make sure you use kerberos properly in both
> cases.
> For cur its:  curl --negotiate
> For SDKs[1], there is a parameter 'kerberos=true' in creation of api
> object.
> 
> [1]
> http://www.ovirt.org/develop/release-management/features/infra/kerberos-support-in-sdks-and-cli/
> 
> 
>>
>> It don't work only for API or for UserPortal and Webadmin as well? Or
>> you set it up only for API?
>>
>> [1]
>> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html#sect-Single_Sign-On_to_the_Administration_and_User_Portal
>>
>>
>> [2]
>> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sso-config-firefox.html
>>
>>
>>
>>>
>>> It was quite easy to get Apache to authenticate against IPA, but I did
>>> not manage to access the API. Each try ended with an "HTTP/1.1 401
>>> Unauthorized".
>>> At the moment Apache authentication appears first and then the RESTAPI
>>> auth dialog comes up.
>>> Some facts about my setup:
>>> oVirt Host:
>>> -OS: CentOS 6.7
>>> -Engine Version: 3.6
>>> IPA Host:
>>> -OS: CentOS 7.2
>>> -IPA Version: 4.2.0
>>>
>>>
>>> I might mix some things up. Please help me to find out how to achieve my
>>> goal. I can provide more information if required.
>>>
>>> Thanks a lot!
>>>
>>>
>>> Best regards
>>> Marcel
>>> ___
>>> 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

2016-04-14 11:29:05,113 INFO  [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Connecting to /192.168.100.106
2016-04-14 11:29:08,114 INFO  [org.ovirt.vdsm.jsonrpc.client.reactors.ReactorClient] (SSL Stomp Reactor) [] Connecting to /192.168.100.106
2016-04-14 11:29:08,130 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.ListVDSCommand] (DefaultQuartzScheduler_Worker-91) [] Command 'ListVDSCommand(HostName = server6, VdsIdAndVdsVDSCommandParametersBase:{runAsync='true', hostId='35241a8e-495f-4225-9cbd-07ebc216a8f4', vds='Host[server6,35241a8e-495f-4225-9cbd-07ebc216a8f4]'})' execution failed: org.ovirt.vdsm.jsonrpc.client.ClientConnectionException: Connection failed
2016-04-14 11:29:08,130 INFO  [org.ovirt.engine.core.vdsbroker.PollVmStatsRefresher] (DefaultQuartzScheduler_Worker-91) [] Failed to fetch vms info for host 'server6' - skipping VMs monitoring.
2016-04-14 11:29:10,627 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (default task-15) [] Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: User a...@funfurt.de@profile1-http failed to log in.
2016-04-14 11:29:10,627 WARN  [org.ovirt.engine.core.bll.aaa.LoginAdminUserCommand] (default task-

Re: [ovirt-users] RESTAPI and kerberos authentication

2016-04-13 Thread Ondra Machacek

On 04/14/2016 08:06 AM, Ondra Machacek wrote:

On 04/13/2016 10:43 PM, Marcel Galke wrote:

Hello,

I need to automatically create a list of all the VMs and the storage
path to their disks in the data center for offline storage for desaster
recovery. We have oVirt 3.6 and IPA 4.2.0.
To achieve this my idea was to query the API using Kerberos
authentication and a keytab. This could then run as cronjob.
Using username and password is not an option.

To configure oVirt for use with IPA I've run engine-manage-domains but
the result is not exactly what I'm looking for (despite from the fact,
that I can add direcotry users etc.).
Next I tried the generic LDAP provider as per documentation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html



Just to be sure did you followed these steps[1]?
If yes and it don't work, it would be nice if you can share a properties
files you have and engine.log(the part when engine starts). Please also
ensure twice you have correct permissions on properties files, keytab
and apache confiig.

Also ensure your browser is correctly setup. Example for firefox[2].


Sorry, I've just realized you use API.
So do you use SDKs or curl? Make sure you use kerberos properly in both 
cases.

For cur its:  curl --negotiate
For SDKs[1], there is a parameter 'kerberos=true' in creation of api object.

[1] 
http://www.ovirt.org/develop/release-management/features/infra/kerberos-support-in-sdks-and-cli/




It don't work only for API or for UserPortal and Webadmin as well? Or
you set it up only for API?

[1]
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html#sect-Single_Sign-On_to_the_Administration_and_User_Portal

[2]
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sso-config-firefox.html




It was quite easy to get Apache to authenticate against IPA, but I did
not manage to access the API. Each try ended with an "HTTP/1.1 401
Unauthorized".
At the moment Apache authentication appears first and then the RESTAPI
auth dialog comes up.
Some facts about my setup:
oVirt Host:
-OS: CentOS 6.7
-Engine Version: 3.6
IPA Host:
-OS: CentOS 7.2
-IPA Version: 4.2.0


I might mix some things up. Please help me to find out how to achieve my
goal. I can provide more information if required.

Thanks a lot!


Best regards
Marcel
___
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] RESTAPI and kerberos authentication

2016-04-13 Thread Ondra Machacek

On 04/13/2016 10:43 PM, Marcel Galke wrote:

Hello,

I need to automatically create a list of all the VMs and the storage
path to their disks in the data center for offline storage for desaster
recovery. We have oVirt 3.6 and IPA 4.2.0.
To achieve this my idea was to query the API using Kerberos
authentication and a keytab. This could then run as cronjob.
Using username and password is not an option.

To configure oVirt for use with IPA I've run engine-manage-domains but
the result is not exactly what I'm looking for (despite from the fact,
that I can add direcotry users etc.).
Next I tried the generic LDAP provider as per documentation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html


Just to be sure did you followed these steps[1]?
If yes and it don't work, it would be nice if you can share a properties 
files you have and engine.log(the part when engine starts). Please also 
ensure twice you have correct permissions on properties files, keytab 
and apache confiig.


Also ensure your browser is correctly setup. Example for firefox[2].

It don't work only for API or for UserPortal and Webadmin as well? Or 
you set it up only for API?


[1] 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html#sect-Single_Sign-On_to_the_Administration_and_User_Portal
[2] 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/sso-config-firefox.html




It was quite easy to get Apache to authenticate against IPA, but I did
not manage to access the API. Each try ended with an "HTTP/1.1 401
Unauthorized".
At the moment Apache authentication appears first and then the RESTAPI
auth dialog comes up.
Some facts about my setup:
oVirt Host:
-OS: CentOS 6.7
-Engine Version: 3.6
IPA Host:
-OS: CentOS 7.2
-IPA Version: 4.2.0


I might mix some things up. Please help me to find out how to achieve my
goal. I can provide more information if required.

Thanks a lot!


Best regards
Marcel
___
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] RESTAPI and kerberos authentication

2016-04-13 Thread Marcel Galke
Hello,

I need to automatically create a list of all the VMs and the storage
path to their disks in the data center for offline storage for desaster
recovery. We have oVirt 3.6 and IPA 4.2.0.
To achieve this my idea was to query the API using Kerberos
authentication and a keytab. This could then run as cronjob.
Using username and password is not an option.

To configure oVirt for use with IPA I've run engine-manage-domains but
the result is not exactly what I'm looking for (despite from the fact,
that I can add direcotry users etc.).
Next I tried the generic LDAP provider as per documentation
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Directory_Users.html

It was quite easy to get Apache to authenticate against IPA, but I did
not manage to access the API. Each try ended with an "HTTP/1.1 401
Unauthorized".
At the moment Apache authentication appears first and then the RESTAPI
auth dialog comes up.
Some facts about my setup:
oVirt Host:
-OS: CentOS 6.7
-Engine Version: 3.6
IPA Host:
-OS: CentOS 7.2
-IPA Version: 4.2.0


I might mix some things up. Please help me to find out how to achieve my
goal. I can provide more information if required.

Thanks a lot!


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


Re: [ovirt-users] RESTAPI: 'action type cpu profile empty' if more then one profile defined in the cluster

2015-09-11 Thread Daniel Helgenberger
Hello Sandro,

On 11.09.2015 14:02, Sandro Bonazzola wrote:
>
>
> On Thu, Sep 10, 2015 at 1:19 PM, Daniel Helgenberger
> mailto:daniel.helgenber...@m-box.de>> wrote:
>
>  Hello,
>
>  Sandro set BZ1160846 to resolved for 3.5.4, yet the same issue still
>  exists with cpu profiles (I even remember a duplicate poining to this BZ
>  but seem to be unable to find it).
>
>
> Well, according to bugzilla it was verified on oVirt 3.5.1 so it should have
> been closed on 3.5.1.
> If you still have the issue it should be a regression, please open a new BZ
> against 3.5.4.
> Please use the new classification for it :-)
> https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt

I already did so, BZ1262293:
https://bugzilla.redhat.com/show_bug.cgi?id=1262293

Btw, great that ovirt has its own classification now

>
>
>  Steps:
>  1. Set up forman provisoniong for ovirt
>  2. Add a second cpu profile to cluster
>  3. Provision a VM using foreman
>
>  Result:
>  Error: action type cpu profile empty
>
>  after removing any extra CPU profiles leaving only 'Default', vm
>  provisioning works again.
>
>  engine.log:
>   > 2015-09-10 13:07:20,573 INFO
>  [org.ovirt.engine.core.bll.aaa.LoginUserCommand] (ajp--127.0.0.1-8702-5)
>  Running command: LoginUserCommand internal: false.
>   > 2015-09-10 13:07:20,790 INFO  [org.ovirt.engine.core.bll.AddVmCommand]
>  (ajp--127.0.0.1-8702-5) [3651d332] Lock Acquired to object EngineLock
>  [exclusiveLocks= key: test03 value: VM_NAME
>   > 2015-09-10 13:07:20,845 WARN  [org.ovirt.engine.core.bll.AddVmCommand]
>  (ajp--127.0.0.1-8702-5) [3651d332] CanDoAction of action AddVm failed for
>  user admin@internal. Reasons:
>  VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_CPU_PROFILE_EMPTY
>   > 2015-09-10 13:07:20,846 INFO  [org.ovirt.engine.core.bll.AddVmCommand]
>  (ajp--127.0.0.1-8702-5) [3651d332] Lock freed to object EngineLock
>  [exclusiveLocks= key: test03 value: VM_NAME
>   > 2015-09-10 13:07:20,905 ERROR
>  [org.ovirt.engine.api.restapi.resource.AbstractBackendResource]
>  (ajp--127.0.0.1-8702-5) Operation Failed: [action type cpu profile empty]
>
>
>  Versions:
>  ovirt-engine-3.5.4.2-1.el7.centos.noarch
>  Foreman 1.8.3
>
>  If nobody objects I would open a BZ asap.
>
>  Thanks,
>
>
>
>  On 20.08.2015 14:41, Daniel Helgenberger wrote:
>   > Hello,
>   >
>   > I still seem to have an issue in ovirt with a [BZ1160846].
>   > In my case, foreman is unable to add hosts if I have multiple CPU
>   > Profiles defined in the cluster:
>   >
>   > Failed to create a compute oVirt (oVirt) instance $hostname: action 
> type
>   > cpu profile empty
>   >
>   > BZ says this was resolved in RHEV 3.5.1; but running 3.5.3 I still 
> have
>   > this issue (if this BZ is even applicable)
>   >
>   > Thanks!
>   >
>   > Versions:
>   > oVirt 3.5.3 el7
>   > Foreman 1.8.2
>   >
>   > Thanks!
>   >
>   > [BZ1160846] https://bugzilla.redhat.com/show_bug.cgi?id=1160846
>   >
>
>  --
>  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
>
>
>
>
> --
> Sandro Bonazzola
> Better technology. Faster innovation. Powered by community collaboration.
> See how it works at redhat.com 
>

-- 
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] RESTAPI: 'action type cpu profile empty' if more then one profile defined in the cluster

2015-09-11 Thread Sandro Bonazzola
On Thu, Sep 10, 2015 at 1:19 PM, Daniel Helgenberger <
daniel.helgenber...@m-box.de> wrote:

> Hello,
>
> Sandro set BZ1160846 to resolved for 3.5.4, yet the same issue still
> exists with cpu profiles (I even remember a duplicate poining to this BZ
> but seem to be unable to find it).
>

Well, according to bugzilla it was verified on oVirt 3.5.1 so it should
have been closed on 3.5.1.
If you still have the issue it should be a regression, please open a new BZ
against 3.5.4.
Please use the new classification for it :-)
https://bugzilla.redhat.com/enter_bug.cgi?classification=oVirt



>
> Steps:
> 1. Set up forman provisoniong for ovirt
> 2. Add a second cpu profile to cluster
> 3. Provision a VM using foreman
>
> Result:
> Error: action type cpu profile empty
>
> after removing any extra CPU profiles leaving only 'Default', vm
> provisioning works again.
>
> engine.log:
> > 2015-09-10 13:07:20,573 INFO
> [org.ovirt.engine.core.bll.aaa.LoginUserCommand] (ajp--127.0.0.1-8702-5)
> Running command: LoginUserCommand internal: false.
> > 2015-09-10 13:07:20,790 INFO  [org.ovirt.engine.core.bll.AddVmCommand]
> (ajp--127.0.0.1-8702-5) [3651d332] Lock Acquired to object EngineLock
> [exclusiveLocks= key: test03 value: VM_NAME
> > 2015-09-10 13:07:20,845 WARN  [org.ovirt.engine.core.bll.AddVmCommand]
> (ajp--127.0.0.1-8702-5) [3651d332] CanDoAction of action AddVm failed for
> user admin@internal. Reasons:
> VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_CPU_PROFILE_EMPTY
> > 2015-09-10 13:07:20,846 INFO  [org.ovirt.engine.core.bll.AddVmCommand]
> (ajp--127.0.0.1-8702-5) [3651d332] Lock freed to object EngineLock
> [exclusiveLocks= key: test03 value: VM_NAME
> > 2015-09-10 13:07:20,905 ERROR
> [org.ovirt.engine.api.restapi.resource.AbstractBackendResource]
> (ajp--127.0.0.1-8702-5) Operation Failed: [action type cpu profile empty]
>
>
> Versions:
> ovirt-engine-3.5.4.2-1.el7.centos.noarch
> Foreman 1.8.3
>
> If nobody objects I would open a BZ asap.
>
> Thanks,
>
>
>
> On 20.08.2015 14:41, Daniel Helgenberger wrote:
> > Hello,
> >
> > I still seem to have an issue in ovirt with a [BZ1160846].
> > In my case, foreman is unable to add hosts if I have multiple CPU
> > Profiles defined in the cluster:
> >
> > Failed to create a compute oVirt (oVirt) instance $hostname: action type
> > cpu profile empty
> >
> > BZ says this was resolved in RHEV 3.5.1; but running 3.5.3 I still have
> > this issue (if this BZ is even applicable)
> >
> > Thanks!
> >
> > Versions:
> > oVirt 3.5.3 el7
> > Foreman 1.8.2
> >
> > Thanks!
> >
> > [BZ1160846] https://bugzilla.redhat.com/show_bug.cgi?id=1160846
> >
>
> --
> 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
>



-- 
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] RESTAPI: 'action type cpu profile empty' if more then one profile defined in the cluster

2015-09-10 Thread Daniel Helgenberger
Hello,

Sandro set BZ1160846 to resolved for 3.5.4, yet the same issue still 
exists with cpu profiles (I even remember a duplicate poining to this BZ 
but seem to be unable to find it).

Steps:
1. Set up forman provisoniong for ovirt
2. Add a second cpu profile to cluster
3. Provision a VM using foreman

Result:
Error: action type cpu profile empty

after removing any extra CPU profiles leaving only 'Default', vm 
provisioning works again.

engine.log:
> 2015-09-10 13:07:20,573 INFO  
> [org.ovirt.engine.core.bll.aaa.LoginUserCommand] (ajp--127.0.0.1-8702-5) 
> Running command: LoginUserCommand internal: false.
> 2015-09-10 13:07:20,790 INFO  [org.ovirt.engine.core.bll.AddVmCommand] 
> (ajp--127.0.0.1-8702-5) [3651d332] Lock Acquired to object EngineLock 
> [exclusiveLocks= key: test03 value: VM_NAME
> 2015-09-10 13:07:20,845 WARN  [org.ovirt.engine.core.bll.AddVmCommand] 
> (ajp--127.0.0.1-8702-5) [3651d332] CanDoAction of action AddVm failed for 
> user admin@internal. Reasons: 
> VAR__ACTION__ADD,VAR__TYPE__VM,ACTION_TYPE_CPU_PROFILE_EMPTY
> 2015-09-10 13:07:20,846 INFO  [org.ovirt.engine.core.bll.AddVmCommand] 
> (ajp--127.0.0.1-8702-5) [3651d332] Lock freed to object EngineLock 
> [exclusiveLocks= key: test03 value: VM_NAME
> 2015-09-10 13:07:20,905 ERROR 
> [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] 
> (ajp--127.0.0.1-8702-5) Operation Failed: [action type cpu profile empty]


Versions:
ovirt-engine-3.5.4.2-1.el7.centos.noarch
Foreman 1.8.3

If nobody objects I would open a BZ asap.

Thanks,



On 20.08.2015 14:41, Daniel Helgenberger wrote:
> Hello,
>
> I still seem to have an issue in ovirt with a [BZ1160846].
> In my case, foreman is unable to add hosts if I have multiple CPU
> Profiles defined in the cluster:
>
> Failed to create a compute oVirt (oVirt) instance $hostname: action type
> cpu profile empty
>
> BZ says this was resolved in RHEV 3.5.1; but running 3.5.3 I still have
> this issue (if this BZ is even applicable)
>
> Thanks!
>
> Versions:
> oVirt 3.5.3 el7
> Foreman 1.8.2
>
> Thanks!
>
> [BZ1160846] https://bugzilla.redhat.com/show_bug.cgi?id=1160846
>

-- 
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


[ovirt-users] RESTAPI: 'action type cpu profile empty' if more then one profile defined in the cluster

2015-08-20 Thread Daniel Helgenberger
Hello,

I still seem to have an issue in ovirt with a [BZ1160846].
In my case, foreman is unable to add hosts if I have multiple CPU
Profiles defined in the cluster:

Failed to create a compute oVirt (oVirt) instance $hostname: action type
cpu profile empty

BZ says this was resolved in RHEV 3.5.1; but running 3.5.3 I still have
this issue (if this BZ is even applicable)

Thanks!

Versions:
oVirt 3.5.3 el7
Foreman 1.8.2

Thanks!

[BZ1160846] https://bugzilla.redhat.com/show_bug.cgi?id=1160846

-- 
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