[ovirt-users] Re: Delete un-imported VMs from FC storage.

2018-11-28 Thread Luca 'remix_tj' Lorenzetto
Hello Jacob,

to be honest i don't know. I'd import them without powering on and
then delete the vm. Removing is a complex activity since there are
metadata and other thing written on OVF_STORE disks and other places.

Luca
On Thu, Nov 29, 2018 at 5:14 AM Jacob Green  wrote:
>
> Hey wanted to thank you for your reply, and wanted to let you know that late 
> after I sent this email, my colleuege and I figured out we needed to enable 
> the FCoE key in the ovirt manager and tell ovirt that eno51 and eno52 
> interfaces are FCoE.
>
>
> However I ran into another issue. Now that our Fiber channel is imported to 
> the new environment and were able to import VMs, we have some VMs that we 
> will not be importing, however we see no way to delete them from the storage 
> in the GUI. Or I am just missing it.
>
>
> TLDR: How does one delete VMs available for import, without importing them 
> from the storage domain?
>
>
> Thank you.
>
>
>
> On 11/28/2018 01:26 AM, Luca 'remix_tj' Lorenzetto wrote:
>
> On Wed, Nov 28, 2018 at 6:54 AM Jacob Green  wrote:
>
> Any help or insight into fiber channel with ovirt 4.2 would be greatly
> appreciated.
>
> Hello Jacob,
>
> we're running a cluster of 6 HP BL460 G9 with virtual connect without issues.
>
> [root@kvmsv003 ~]# dmidecode | grep -A3 '^System Information'
> System Information
> Manufacturer: HP
> Product Name: ProLiant BL460c Gen9
> Version: Not Specified
>
> We've, anyway, a different kind of CNA:
>
> [root@kvmsv003 ~]# cat 
> /sys/class/fc_host/host1/device/scsi_host/host1/modeldesc
> HP FlexFabric 20Gb 2-port 650FLB Adapter
>
> But i see is running the same module you're reporting
>
> [root@kvmsv003 ~]# lsmod | grep bnx
> bnx2fc103061  0
> cnic   67392  1 bnx2fc
> libfcoe58854  2 fcoe,bnx2fc
> libfc 116357  3 fcoe,libfcoe,bnx2fc
> scsi_transport_fc  64007  4 fcoe,lpfc,libfc,bnx2fc
> [root@fapikvmpdsv003 ~]#
>
> Since the fcoe connection is managed directly by virtual connect, i'm
> not having fcoe informations shown with fcoeadm:
>
> [root@kvmsv003 ~]# fcoeadm -i
> [root@kvmsv003 ~]#
>
> Are you sure you set up the right configuration on virtual connect side?
>
> Luca
>
>
> --
> Jacob Green
>
> Systems Admin
>
> American Alloy Steel
>
> 713-300-5690



-- 
"E' assurdo impiegare gli uomini di intelligenza eccellente per fare
calcoli che potrebbero essere affidati a chiunque se si usassero delle
macchine"
Gottfried Wilhelm von Leibnitz, Filosofo e Matematico (1646-1716)

"Internet è la più grande biblioteca del mondo.
Ma il problema è che i libri sono tutti sparsi sul pavimento"
John Allen Paulos, Matematico (1945-vivente)

Luca 'remix_tj' Lorenzetto, http://www.remixtj.net , 
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4IIIWAKQA7E6HW6JVKQC5UR4GJSBF3BM/


[ovirt-users] Import gluster system/volume into ovirt

2018-11-28 Thread stevenpfeifer3
Hi guys, 

I am very new here but have tested the Ovirt in a lab environment and love it

I need advice. We have a a three node gluster system totalling 350tb worth of  
data. It has a volume setup and has data on it. 

My question is, it possible to import this into an Ovirt system as is and keep 
the data , or do i have to move the data and reassemble the gluster through 
ovirt.

Any advice is welcomed
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/6BMBVWUR5APYFU5PPARVXPGMZXM6QRWE/


[ovirt-users] Delete un-imported VMs from FC storage.

2018-11-28 Thread Jacob Green
Hey wanted to thank you for your reply, and wanted to let you know that 
late after I sent this email, my colleuege and I figured out we needed 
to enable the FCoE key in the ovirt manager and tell ovirt that eno51 
and eno52 interfaces are FCoE.



However I ran into another issue. Now that our Fiber channel is imported 
to the new environment and were able to import VMs, we have some VMs 
that we will not be importing, however we see no way to delete them from 
the storage in the GUI. Or I am just missing it.



*TLDR*: How does one delete VMs available for import, without importing 
them from the storage domain?



Thank you.



On 11/28/2018 01:26 AM, Luca 'remix_tj' Lorenzetto wrote:

On Wed, Nov 28, 2018 at 6:54 AM Jacob Green  wrote:

Any help or insight into fiber channel with ovirt 4.2 would be greatly
appreciated.


Hello Jacob,

we're running a cluster of 6 HP BL460 G9 with virtual connect without issues.

[root@kvmsv003 ~]# dmidecode | grep -A3 '^System Information'
System Information
Manufacturer: HP
Product Name: ProLiant BL460c Gen9
Version: Not Specified

We've, anyway, a different kind of CNA:

[root@kvmsv003 ~]# cat /sys/class/fc_host/host1/device/scsi_host/host1/modeldesc
HP FlexFabric 20Gb 2-port 650FLB Adapter

But i see is running the same module you're reporting

[root@kvmsv003 ~]# lsmod | grep bnx
bnx2fc103061  0
cnic   67392  1 bnx2fc
libfcoe58854  2 fcoe,bnx2fc
libfc 116357  3 fcoe,libfcoe,bnx2fc
scsi_transport_fc  64007  4 fcoe,lpfc,libfc,bnx2fc
[root@fapikvmpdsv003 ~]#

Since the fcoe connection is managed directly by virtual connect, i'm
not having fcoe informations shown with fcoeadm:

[root@kvmsv003 ~]# fcoeadm -i
[root@kvmsv003 ~]#

Are you sure you set up the right configuration on virtual connect side?

Luca



--
Jacob Green

Systems Admin

American Alloy Steel

713-300-5690

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/PR2ABJDQLY7JIR3SDSMYWXMHPE2RSBIH/


[ovirt-users] Re: RAID L1/L5/L10 + NFS Loopback Benchmarks

2018-11-28 Thread Derek Atkins
Simone Tiraboschi  writes:

> On Wed, Nov 21, 2018 at 10:08 AM Andrei Verovski  wrote:
>
> Hi !
>
> Deadlock of NFS loopback happens with 3.10 stock kernel from CentOS 7.6
> only or also with 4.x mainline ?
>
> I use 4.x mainline on my nodes.
>
> AFAIK is still an open issue.
>

FWIW, I've been running with an NFS loopback and have never, in 3+
years, had an issue.  On the other hand, I am very over-provisioned and
under-subscribed on RAM, so it probably never really gets into a
situation where it has to swap.

-derek
-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/JDWIDN2YE7TL5IU4G3TCB2CVFMQU7AUE/


[ovirt-users] Re: Change Default Behaviour

2018-11-28 Thread Lucie Leistnerova


On 11/28/18 3:22 PM, Alex McWhirter wrote:

On 2018-11-28 06:56, Lucie Leistnerova wrote:

Hello Alex,

On 11/27/18 8:02 PM, Alex McWhirter wrote:
In the admin interface, if i create a server template and make a VM 
out of it i get a Clone/Independent VM. If i use a dekstop template 
a get a Thin/Dependent


In the VM portal i only get Thin/Dependent.

How can i change this so that it's always Clone/Dependent for 
certain templates?

The default setting should depend on Optimized for: Desktop/Server on
the template. So when it creates Thin/Dependent VM for Server
template, I think that is a bug.

I created an issue. Thank you for bringing that up.

https://github.com/oVirt/ovirt-web-ui/issues/882


Best regards,
Lucie


Ok, yes that would make sense.

Any ideas where i can look to change this manually as a temp work around?


When you use template with disk on a storage that doesn't support 
sparsify, then it will not create thin disk on it. But I'm not sure how 
exactly that works.


What ovirt version you have? I've found some BZ with problem creating 
raw disks from template, that should be fixed in 4.3.

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

--
Lucie Leistnerova
Quality Engineer, QE Cloud, RHVM
Red Hat EMEA

IRC: lleistne @ #rhev-qe
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/VBTS2BLA4GW3K6SMMO2RFDFCMLSWCNDY/


[ovirt-users] Re: AffinityGroup API

2018-11-28 Thread Schreuders, Cliffe
Thank you! This has solved the issue.

Just to note that we make use of the oVirt API extensively, and until
now having filter=true hasn't stopped us from managing snapshots, nics,
disks, starting/stoping VMs, getting consoles, etc, etc, so it does seem
to be somewhat inconsistent behaviour. Perhaps this also explains why we
found the snapshot APIs raises exceptions that we found we can ignore,
since the operations actually succeed?

The same user account has not always had admin roles, so filter=true
used to be required for our use-cases.

Thanks again, Ondra. Much appreciated.

Cheers,
Cliffe.

On 27/11/2018 15:36, Ondra Machacek wrote:
> So both of the user's roles are administrative,
> so please try to remove following line in your script:
>
>  > conn_attr[:headers] = {'Filter' => true }
>
> This should be used only with roles which are not administrative,
> like UserVmManager, etc.
>
> On 11/27/18 1:21 PM, Staniforth, Paul wrote:
>> The user also has AffinityGroupManager role for the cluster this role
>> has permission Manipulate Affinity Groups.
>>
>> It is the same account that works when using the python SDK
>>
>> 2018-11-27 11:36:50,791Z INFO
>> [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default
>> task-5237) [b225cdb] Running command: CreateUserSessionCommand
>> internal: false.
>> 2018-11-27 11:36:50,988Z INFO
>> [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]
>> (default task-5229) [21e2d0fe] EVENT_ID: USER_VDC_LOGIN(30), User
>> secgen@internal-authz connecting from 'x.x.x.x' using session
>> 'mT2aF7+FziRwE3ZZ29y7y2QHidDX4aAquc5fwo5swyLVMxufAyF26JbmDNeN9ylob1+zSSH9JWu4bBDt2wdHGw=='
>> logged in.
>> 2018-11-27 11:36:51,081Z INFO
>> [org.ovirt.engine.core.sso.utils.AuthenticationUtils] (default
>> task-5233) [] User @internal successfully logged in with scopes:
>> ovirt-app-api ovirt-ext=token-in
>> fo:authz-search ovirt-ext=token-info:public-authz-search
>> ovirt-ext=token-info:validate ovirt-ext=token:passw..d-access
>> 2018-11-27 11:36:51,154Z INFO
>> [org.ovirt.engine.core.bll.aaa.CreateUserSessionCommand] (default
>> task-5233) [1d0e61f8] Running command: CreateUserSessionCommand
>> internal: false.
>> 2018-11-27 11:36:51,604Z INFO
>> [org.ovirt.engine.core.bll.scheduling.commands.AddAffinityGroupCommand]
>> (default task-5233) [dd01962d-bead-499a-a31f-1ead974483ac] No
>> permission found for user 'd5b7e8f0-603e-47c5-a420-1f5f6834aa02' or
>> one of the groups he is member of, when running action
>> 'AddAffinityGroup', Required permissions are: Action type: 'ADMIN'
>> Action group: 'MANIPULATE_AFFINITY_GROUPS' Object type: 'Cluster'
>> Object ID: 'beac8771-1dbc-4046-99b1-c17d072fb27f'.
>> 2018-11-27 11:36:51,604Z WARN
>> [org.ovirt.engine.core.bll.scheduling.commands.AddAffinityGroupCommand]
>> (default task-5233) [dd01962d-bead-499a-a31f-1ead974483ac] Validation
>> of action 'AddAffinityGroup' failed for user @internal-authz.
>> Reasons:
>> VAR__TYPE__AFFINITY_GROUP,VAR__ACTION__ADD,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION
>> 2018-11-27 11:36:51,606Z ERROR
>> [org.ovirt.engine.api.restapi.resource.AbstractBackendResource]
>> (default task-5233) [] Operation Failed: [User is not authorized to
>> perform this action.]
>>
>> Regards,
>>  Paul S.
>>
>>
>> 
>> From: Schreuders, Cliffe
>> Sent: 27 November 2018 11:55
>> To: Ondra Machacek; Staniforth, Paul
>> Cc: Andrej Krejcir; users; Shaw, Thomas
>> Subject: Re: [ovirt-users] AffinityGroup API
>>
>> Hi Ondra,
>>
>> Thanks. Here is a sample script that illustrates the problem. The
>> same error occurs when adding a VM to an existing affinity group.
>>
>> Sample code:
>> require 'ovirtsdk4'
>>
>> conn_attr = {}
>> conn_attr[:url] = 'https:///ovirt-engine/api'
>> conn_attr[:username] = ''
>> conn_attr[:passwxxd] = ''
>> conn_attr[:debug] = true
>> conn_attr[:headers] = {'Filter' => true }
>>
>> ovirt_connection = OvirtSDK4::Connection.new(conn_attr)
>> vms_service = ovirt_connection.system_service.vms_service
>> clusters_service = ovirt_connection.system_service.clusters_service
>> cluster = clusters_service.list(search: 'name=Default')[0]
>> cluster_service = clusters_service.cluster_service(cluster.id)
>> cluster_affinitygroups_service = cluster_service.affinity_groups_service
>>
>> begin
>>affinity_group_name = "affinity_group_test123"
>>puts "Creating affinity group: #{affinity_group_name}"
>>
>> cluster_affinitygroups_service.add(OvirtSDK4::AffinityGroup.new(
>>   name: affinity_group_name,
>>   description: 'a description',
>>   vms_rule: OvirtSDK4::AffinityRule.new(
>>enabled: true,
>>positive: true,
>>enforcing: true
>>   )
>>))
>> rescue Exception => e
>>warn "Failed to create affinity group"
>>warn e.message
>> end
>>
>> Output:
>> cliffe@office:~/Code/ovirt_scripts$ ruby add_affinity_group.rb
>> Creating affinity group: affinity_group_test123
>> Failed to create 

[ovirt-users] Re: Change Default Behaviour

2018-11-28 Thread Alex McWhirter

On 2018-11-28 06:56, Lucie Leistnerova wrote:

Hello Alex,

On 11/27/18 8:02 PM, Alex McWhirter wrote:
In the admin interface, if i create a server template and make a VM 
out of it i get a Clone/Independent VM. If i use a dekstop template a 
get a Thin/Dependent


In the VM portal i only get Thin/Dependent.

How can i change this so that it's always Clone/Dependent for certain 
templates?

The default setting should depend on Optimized for: Desktop/Server on
the template. So when it creates Thin/Dependent VM for Server
template, I think that is a bug.

I created an issue. Thank you for bringing that up.

https://github.com/oVirt/ovirt-web-ui/issues/882


Best regards,
Lucie


Ok, yes that would make sense.

Any ideas where i can look to change this manually as a temp work 
around?

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/4JC6BPX2NKAHDK46WNONUUKFS4U4RJLF/


[ovirt-users] Re: selfhost

2018-11-28 Thread Simone Tiraboschi
On Wed, Nov 28, 2018 at 2:26 PM mustafa taha 
wrote:

> I use this doc. To enable it .
>
>
>
>
> https://docs.fedoraproject.org/en-US/quick-docs/using-nested-virtualization-in-kvm/
>

Can you please share the output of:
  virt-host-validate
executed on the VMs created on the external oVirt instance (L1 VMs)?


>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Simone Tiraboschi 
> *Sent: *Wednesday, November 28, 2018 3:23 PM
> *To: *mustafa taha 
> *Subject: *Re: [ovirt-users] selfhost
>
>
>
>
>
> On Wed, Nov 28, 2018 at 2:21 PM mustafa taha 
> wrote:
>
> I enable nested  virtualization in the base node and create vNIC   but
> this error  up :
>
> [image: cid:image001.png@01D4872D.C3694080]
>
>
>
>
>
> Do you have any idea  to solve  this  problem  ,please help me ?
>
>
>
> Please double check how you enabled nested virtualization.
>
>
>
>
>
> Sent from Mail  for
> Windows 10
>
>
>
> *From: *Simone Tiraboschi 
> *Sent: *Tuesday, November 27, 2018 4:32 PM
> *To: *mustafa taha 
> *Cc: *users 
> *Subject: *Re: [ovirt-users] selfhost
>
>
>
>
>
> On Tue, Nov 27, 2018 at 12:37 PM  wrote:
>
> Hi ,
> can we build ovirt-selfhost inside ovirt-selfhost ?
>
>
>
> Yes, you have to:
>
> - enable nested-vritualization on L0 host
>
> - create a custom vNic profile on the external oVirt in order to disable
> the nomacspoof filter. You have to assign that profile to the interface of
> the VM you are going to use as hosts in your nested env.
>
>
>
>
>
> can anybody answer this question ,please
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/V43WNJGSDEPMOB57Z454P6HWNGZCU3M6/
>
>
>
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/QTQKIOI7HVSIKPQ6MC6Q3INZVE5VBWSH/


[ovirt-users] Re: Change Default Behaviour

2018-11-28 Thread Lucie Leistnerova

Hello Alex,

On 11/27/18 8:02 PM, Alex McWhirter wrote:
In the admin interface, if i create a server template and make a VM 
out of it i get a Clone/Independent VM. If i use a dekstop template a 
get a Thin/Dependent


In the VM portal i only get Thin/Dependent.

How can i change this so that it's always Clone/Dependent for certain 
templates?
The default setting should depend on Optimized for: Desktop/Server on 
the template. So when it creates Thin/Dependent VM for Server template, 
I think that is a bug.


I created an issue. Thank you for bringing that up.

https://github.com/oVirt/ovirt-web-ui/issues/882


___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/SBJCLN4QPSNUFWB2XKS3TJ44VL4KC75J/


Best regards,
Lucie

--
Lucie Leistnerova
Quality Engineer, QE Cloud, RHVM
Red Hat EMEA

IRC: lleistne @ #rhev-qe
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/72R5TTZLSHSM53IFLKCT53ZUNVVDFXU3/


[ovirt-users] Re: AffinityGroup API

2018-11-28 Thread Schreuders, Cliffe
Hi Ondra,

Thanks. Here is a sample script that illustrates the problem. The same error 
occurs when adding a VM to an existing affinity group.

Sample code:
require 'ovirtsdk4'

conn_attr = {}
conn_attr[:url] = 'https:///ovirt-engine/api'
conn_attr[:username] = ''
conn_attr[:password] = ''
conn_attr[:debug] = true
conn_attr[:headers] = {'Filter' => true }

ovirt_connection = OvirtSDK4::Connection.new(conn_attr)
vms_service = ovirt_connection.system_service.vms_service
clusters_service = ovirt_connection.system_service.clusters_service
cluster = clusters_service.list(search: 'name=Default')[0]
cluster_service = clusters_service.cluster_service(cluster.id)
cluster_affinitygroups_service = cluster_service.affinity_groups_service

begin
  affinity_group_name = "affinity_group_test123"
  puts "Creating affinity group: #{affinity_group_name}"

  cluster_affinitygroups_service.add(OvirtSDK4::AffinityGroup.new(
 name: affinity_group_name,
 description: 'a description',
 vms_rule: OvirtSDK4::AffinityRule.new(
  enabled: true,
  positive: true,
  enforcing: true
 )
  ))
rescue Exception => e
  warn "Failed to create affinity group"
  warn e.message
end

Output:
cliffe@office:~/Code/ovirt_scripts$ ruby add_affinity_group.rb
Creating affinity group: affinity_group_test123
Failed to create affinity group
Fault reason is "Operation Failed". Fault detail is "[User is not authorized to 
perform this action.]". HTTP response code is 400.

The user has ReadOnlyAdmin permissions.

I would be happy to be told if I'm doing something wrong here, I didn't find 
any ruby examples that worked with affinity groups.

Paul could you please provide the engine.log entries? Thanks.

Cheers,

Cliffe.

On 27/11/2018 10:04, Ondra Machacek wrote:
Can you please share the script? And also what's the permission of the
user you are executing the script.

When see error 'User is not authorized to perform the action', we print
in engine.log, what's exactly wrong meaning we print what permissions
the user is missing in order to execute that action. So it may help you
find out what's wrong as well.

On 11/26/18 5:35 PM, Schreuders, Cliffe wrote:
Yes, the related issue we came across was that when using the Ruby gem,
assigning a VM to an Affinity Group raises an exception that states the
User is not authorized to perform the action; however, using the same
account works fine from the Admin portal and carrying out the exact same
steps via the Python SDK works as expected. The end result is that we
ended up calling a Python script from our Ruby code just to set the
affinity group.

Thanks, Paul.

On 26/11/2018 12:11, Staniforth, Paul wrote:
Hi Andrej

I believe they are using 4.2.5 they get a permission error although they can 
use the python SDK with the same account.

Paul S.

From: Ondra Machacek 
Sent: 26 November 2018 11:41
To: Staniforth, Paul
Cc: Andrej Krejcir; users
Subject: Re: [ovirt-users] AffinityGroup API

What version of the SDK do you use?
I can see it's supported in latest version.

On 11/26/18 11:13 AM, Andrej Krejcir wrote:
Hi,

I don't know much about ruby SDK. I think the SDKs for various languages
are generated from the API specification.

Ondra, is this a bug in ruby SDK?


Andrej

On Fri, 23 Nov 2018 at 18:06, Staniforth, Paul <
p.stanifo...@leedsbeckett.ac.uk> wrote:

Hello Andrej,

Also the Affinity Groups apparently aren't  available
in the Ruby SDK should I add this to the bug report?


Thanks,

Paul S.
--
*From:* Andrej Krejcir 
*Sent:* 21 November 2018 13:32
*To:* Staniforth, Paul
*Cc:* users
*Subject:* Re: [ovirt-users] AffinityGroup API

Hi,

Yes, the AffinityGroupHosts is missing. Can you please open a bug[1] so we
can add it?

As a workaround, the hosts can be modified by PUT request to the
AffinityGroup endpoint directly, for example:

PUT /ovirt-engine/api/clusters/1234/affinitygroups/5678

   
   
   
   


However, this will replace all hosts in the affinity group with the hosts
listed.


Best regards,
Andrej


[1] - https://bugzilla.redhat.com/enter_bug.cgi?product=ovirt-engine

On Wed, 21 Nov 2018 at 13:26, 
 wrote:

Hello,
 When using the API to update an AffinityGroup there is a
AffinityGroupVm and AffinityGroupVms so I can add or remove VMs but there
is no AffinityGroupHost or AffinityGroupHosts, therefore I can't add or
remove hosts.

Thanks,
Paul S.
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to 
users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct:

[ovirt-users] Re: Recover accidentally deleted gluster node having bricks ( Engine, Data and Vmstore)

2018-11-28 Thread Abhishek Sahni
I just enabled it on default cluster and now the volumes are visible. It
seems like gluster service was disabled by default on cluster.

On Tue, Nov 27, 2018 at 3:51 PM Sahina Bose  wrote:

>
>
> On Tue, Nov 27, 2018 at 3:45 PM Kaustav Majumder 
> wrote:
>
>> I am not sure why ovirt is not showing any volume.
>> Sahina, is this a bug?
>>
>
> Check if gluster service is enabled on the cluster.
> The volumes are managed only if this is true
>
>
>> On Tue, Nov 27, 2018 at 3:10 PM Abhishek Sahni <
>> abhishek.sahni1...@gmail.com> wrote:
>>
>>> Hello Kaustav,
>>>
>>> That's weird, I never saw any volumes under the storage tab since
>>> installation. I am using HC setup deployed using cockpit console.
>>>
>>> https://imgur.com/a/nH9rzK8
>>>
>>> Did I miss something?
>>>
>>>
>>> On Tue, Nov 27, 2018 at 2:50 PM Kaustav Majumder 
>>> wrote:
>>>
 Click on volume for which you want to reset the brick-> under bricks
 tab select the brick you wan to reset -> once you do you will see the
 'Reset Brick' option is active.
 Attached is a screenshot -> https://i.imgur.com/QUMSrzt.png

 On Tue, Nov 27, 2018 at 2:43 PM Abhishek Sahni <
 abhishek.sahni1...@gmail.com> wrote:

> Thanks Sahina for your response, I am not able to find it on UI,
> please help me to navigate? and yes I am using oVirt 4.2.6.4-1.
>
> On Tue, Nov 27, 2018 at 12:55 PM Sahina Bose 
> wrote:
>
>>
>>
>> On Tue, Nov 20, 2018 at 5:56 PM Abhishek Sahni <
>> abhishek.sahni1...@gmail.com> wrote:
>>
>>> Hello Team,
>>>
>>> We are running a setup of 3-way replica HC gluster setup configured
>>> during the initial deployment from the cockpit console using ansible.
>>>
>>> NODE1
>>>   - /dev/sda   (OS)
>>>   - /dev/sdb   ( Gluster Bricks )
>>>* /gluster_bricks/engine/engine/
>>>* /gluster_bricks/data/data/
>>>* /gluster_bricks/vmstore/vmstore/
>>>
>>> NODE2 and NODE3 with a similar setup.
>>>
>>> There is a mishap that /dev/sdb on NODE2 totally got crashed and now
>>> there is nothing inside. However, I have created similar directories 
>>> after
>>> mounting it back i.e.,
>>>
>>>* /gluster_bricks/engine/engine/
>>>* /gluster_bricks/data/data/
>>>* /gluster_bricks/vmstore/vmstore/
>>> but it is not yet recovered.
>>>
>>> =
>>> [root@node2 ~]# gluster volume status
>>> Status of volume: data
>>> Gluster process TCP Port  RDMA Port
>>> Online  Pid
>>>
>>> --
>>> Brick *.*.*.1:/gluster_bricks/data/data  49152 0  Y
>>>  1
>>> Brick *.*.*.2:/gluster_bricks/data/data  N/A   N/AN
>>>  N/A
>>> Brick *.*.*.3:/gluster_bricks/data/data  49152 0  Y
>>>  4303
>>> Self-heal Daemon on localhost   N/A   N/AY
>>>  23976
>>> Self-heal Daemon on *.*.*.1  N/A   N/AY
>>>  27838
>>> Self-heal Daemon on *.*.*.3  N/A   N/AY
>>>  27424
>>>
>>> Task Status of Volume data
>>>
>>> --
>>> There are no active volume tasks
>>>
>>> Status of volume: engine
>>> Gluster process TCP Port  RDMA Port
>>> Online  Pid
>>>
>>> --
>>> Brick *.*.*.1:/gluster_bricks/engine/eng
>>> ine 49153 0  Y
>>>  7
>>> Brick *.*.*.2:/gluster_bricks/engine/eng
>>> ine N/A   N/AN
>>>  N/A
>>> Brick *.*.*.3:/gluster_bricks/engine/eng
>>> ine 49153 0  Y
>>>  4314
>>> Self-heal Daemon on localhost   N/A   N/AY
>>>  23976
>>> Self-heal Daemon on *.*.*.3  N/A   N/AY
>>>  27424
>>> Self-heal Daemon on *.*.*.1  N/A   N/AY
>>>  27838
>>>
>>> Task Status of Volume engine
>>>
>>> --
>>> There are no active volume tasks
>>>
>>> Status of volume: vmstore
>>> Gluster process TCP Port  RDMA Port
>>> Online  Pid
>>>
>>> --
>>> Brick *.*.*.1:/gluster_bricks/vmstore/vm
>>> store   49154 0  Y
>>>  21603
>>> Brick *.*.*.2:/gluster_bricks/vmstore/vm
>>> store  

[ovirt-users] Re: oVirt impersonation and sessions

2018-11-28 Thread Anastasiya Ruzhanskaya
I was just trying to understand how the id information is spreading through
the ovirt communication channels.
I am also interested if the session ids which are sent between client and
ovirt-engine are sent further to vdsm.

пн, 26 нояб. 2018 г. в 17:16, Dan Yasny :

> Maybe if you could tell us what you are trying to do or achieve, we might
> give you the answers directly
>
> On Mon, Nov 26, 2018 at 3:18 AM Anastasiya Ruzhanskaya <
> anastasiya.ruzhansk...@frtk.ru> wrote:
>
>> Hello everyone!
>>
>> I wanted to find out how the impersonation technique used in oVirt works?
>> I know from libvirt developers, that oVirt opens one connection only for
>> multiple clients. How does this work?
>>
>> Also I found out in source code that in ActionParameterBase class the
>> sessionId field is marked transient but, for example, for GWT rpc message,
>> which goes to the server and says what action will be made (shut down,
>> pause vm) this is the only field in all sent information which says what
>> the session is. Where is the session sent instead? There was also a field
>> with session id in https headers, but this was related to cookie so I am
>> not completely sure if this can help to identify the current user.
>> ___
>> Users mailing list -- users@ovirt.org
>> To unsubscribe send an email to users-le...@ovirt.org
>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>> oVirt Code of Conduct:
>> https://www.ovirt.org/community/about/community-guidelines/
>> List Archives:
>> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ZPJYRM2XPRPD54E7AWC2V53UZABPJFMY/
>>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/573HH5V5MWBOFNW326NM7MHIVOXRBJN2/


[ovirt-users] Re: Cloud-init reset network configuration to default dhcp after reboot and regular run

2018-11-28 Thread Eitan Raviv
On Wed, Nov 28, 2018 at 7:29 AM Mike Lykov  wrote:
>
> 27.11.2018 16:15, Eitan Raviv пишет:
> > According to cloud-init 0.7.9 documentation cloud-init is configured
> > to run by default on each boot [1] and to render the user-selected
> > network configuration on first boot [2]. Also, in absence of a data
> > source to configure the network, it will fall back to configuring DHCP
> > on eth0 [2].
> >
> > As you noted, if you run a VM once, and then in the next regular run
> > the cloud-init flag is not selected in the VM configuration in engine,
> > there is no data-source and cloud-init falls back to dhcp as
> > documented.
>
> Thanks for the explanation. What intended use of this subsystem/feature
> are supposed to?
>
> My setup is not in cloud, it's local and use static IP adresses for VM.
> I do not want to configure each VM network in console by hand.
> I create VM from template (template have installed cloud-init package),
> configure cloud-init hostname/eth0 network in engine, and as "custom
> script" (at the same moment) I set a "touch
> /etc/cloud/cloud-init.disabled" ?

Either that or add custom script to disable just cloud-init network
re-config as you did manually.
Please consult the documentation for the custom script syntax and format
(e.g. search for 'runcmd' in
https://cloudinit.readthedocs.io/en/0.7.9/topics/examples.html)

> Then I "Run once" a VM, stop it, and run as usual without data source
> and fallback.
> Or I name network interface not "eth0" and therefore without need for
> custom script?

I did not test the outcome of assigning the static IP to another NIC.
Just sharing a thought...

>
>
> > The 'marker' file you refer to are also documented as follows:
> >
> > * disabling cloud-init altogether [1] with: touch 
> > /etc/cloud/cloud-init.disabled
> > * preventing cloud-init from configuring the network [2] with: echo
> > ‘network: {config: disabled}‘ >> /etc/cloud/cloud.cfg
> > whichever scenario is used to run a VM, this can be accomplished by
> > adding the above commands to the custom_script that cloud-init runs at
> > the last stage of its operation [3].
> >
> > There is possibly a third 'hack' that would not require any marker file:
> > * assign your static IP to a NIC not named 'eth0'
> > I have not tested it myself but it looks like a corollary of [2]
> >
> > HTH
> >
> > [1] https://cloudinit.readthedocs.io/en/0.7.9/topics/boot.html#generator
> > [2] https://cloudinit.readthedocs.io/en/0.7.9/topics/boot.html#local
> > [3] https://cloudinit.readthedocs.io/en/0.7.9/topics/boot.html#final
> >
> > On Wed, Nov 21, 2018 at 10:51 AM Mike Lykov  wrote:
> >>
> >> 20.11.2018 15:30, Mike Lykov пишет:
> >>
> >>> "cloud-init used to use a "marker" file that it created on initial
> >>> execution. If that "marker" file existed it would not rerun on reboot. "
> >>> - are it not working  in ovirt/this cloud-init version ?
> >>
> >> new restart:
> >>
> >> --
> >> 2018-11-21 12:40:53,314 - main.py[DEBUG]: Checking to see if files that
> >> we need already exist from a previous run that would allow us to stop 
> >> early.
> >> 2018-11-21 12:40:53,315 - main.py[DEBUG]: Execution continuing, no
> >> previous run detected that would allow us to stop early.
> >> -
> >>
> >> which files it try to find ?
> >>
> >> --
> >> Mike
> >>
> >> ___
> >> Users mailing list -- users@ovirt.org
> >> To unsubscribe send an email to users-le...@ovirt.org
> >> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> >> oVirt Code of Conduct: 
> >> https://www.ovirt.org/community/about/community-guidelines/
> >> List Archives: 
> >> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ACNLTDH55L4YX5DWNRQZ3VPRWPFYMOLT/
> > ___
> > Users mailing list -- users@ovirt.org
> > To unsubscribe send an email to users-le...@ovirt.org
> > Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> > oVirt Code of Conduct: 
> > https://www.ovirt.org/community/about/community-guidelines/
> > List Archives: 
> > https://lists.ovirt.org/archives/list/users@ovirt.org/message/YKHFUAVY7D2DOS2TA2B6FILCNIYPHAW5/
> >
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/DZE7VFQFOUFU6MWN6PQRGZJIHJMHVDAV/