[ovirt-users] Re: Procedure to replace out out of three hyperconverged nodes

2019-09-10 Thread Sahina Bose
On Mon, Aug 19, 2019 at 10:55 PM  wrote:

> On my silent Atom based three node Hyperconverged journey I hit upon a
> snag: Evidently they are too slow for Ansible.
>
> The Gluster storage part went all great and perfect on fresh oVirt node
> images that I had configured to leave an empty partition instead of the
> standard /dev/sdb, but the HostedEngine setup part would then fail without
> any log-visible error while the transient VM HostedEngineLocal was supposed
> to be launched and the Wizard would just show "deployment failed" and go
> ahead and delete the VM.
>
> I then moved the SSD to a more powerful Xeon-D 1541 CPU and after some
> fiddling with the network (I miss good old eth0!), this also failed the
> deployment, but also failed to delete the temporary VM image, because that
> actually turned out to be running: I could even connect to its console and
> investigate the logs for any clues as to what might have gone wrong
> (nothing visible): Evidently Ansible was running out of patience just a
> tiny bit too early.
>
> And then I kicked it into high-gear with an i7-7700K again using the same
> SSD with a working three node Gluster all in sync, which still took what
> felt like an hour to creep through every step, but got it done, primary
> node on i7, secondary nodes on Atoms, with full migration capabilities etc.
>
> I then had to do some fiddling, because the HostedEngine had configued the
> Cluster CPU architecture to Skylake-Spectre, but after that I migrated it
> to an Atom node and was now ready to move the primary to the intended Atom
> hardware target.
>
> But at that point the overlay network has already been configured and
> evidently it's tied to the device name of the 10Gbit NIC on the i7
> workstation and I haven't been able to make it work with the Atom. The
> Gluster runs fine, but the CPU node is reported "non-operational" and
> re-installation fails, because the ovirtmgmt network isn't properly
> configured.
>
> That specific issue may be seem way out of what oVirt should support, yet
> a HA-embedded edge platform may very well see nodes having to be replaced
> or renewed with as little interruption or downtime as possible, which is
> why I am asking the larger question:
>
> How can you replace a) a failed "burned" node or b) upgrade nodes while
> maintaining fault tolerance?
>

a) You could add a new node to the cluster, replace bricks on the failed
node with ones on new node and remove the failed node.

b) Cluster supports rolling upgrade. So nodes are updated one at a time,
ensuring there's always 2 replicas of gluster bricks online so there's no
data unavailability


> The distinction in b) would be that it's a planned maneuver during normal
> operations without downtime.
>
> I'd want to do it pretty much like I have been playing with compute nodes,
> creating new ones, pushing VMs on them, pushing them out to other hosts,
> removing and replacing them seamlessly... Except that the Gluster nodes are
> special and much harder to replace, than a pure Gluster storage brick...
> from what I see
>
> I welcome any help
> - for fixing the network config in my limiping Atom 1:3 cluster
> - eliminating the need to fiddle with an i7 because of Ansible timing
> - ensuring long-term operability of a software defined datacenter with
> changing hardware
> ___
> 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/ICV5HRJFHWENZNBCQCFNIL7NDD7YYD33/
>
___
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/654YRP3UZVYOLEBQNK7MAMVLNFEPHOB4/


[ovirt-users] Re: gluster

2019-09-10 Thread Sahina Bose
On Mon, Sep 9, 2019 at 7:22 PM Kaustav Majumder  wrote:

> Well almost. Create a new cluster and  (Check) Enable Gluster Service .
> Upon adding new hosts to this cluster (via ui) gluster will be
> automatically configured on them.
>
>
> On Mon, Sep 9, 2019 at 6:56 PM  wrote:
>
>> So doing this seems to assume that gluster is already configured on the
>> hosts.  What if it’s not configured yet, can I use the web config to do
>> this or it has to be done separate of ovirt ?
>>
>
You can reinstall the hosts one at a time as well to ensure the packages
are all configured correctly


>>
>> Thanks again
>>
>>
>>
>> Simon
>>
>>
>>
>> *From:* Kaustav Majumder 
>> *Sent:* September 9, 2019 8:08 AM
>> *To:* mailing-ov...@qic.ca
>> *Cc:* users@ovirt.org
>> *Subject:* [ovirt-users] Re: gluster
>>
>>
>>
>> Hi,
>> You can try this.
>> Engine-UI -> Compute -> Clusters -> New -> (Check) Enable Gluster Service
>> -> (Check) Import existing gluster configuration -> Enter details of one
>> gluster host.
>> Engine will add all host in peer with gluster under the new Cluster.
>>
>>
>>
>> On Mon, Sep 9, 2019 at 5:31 PM  wrote:
>>
>> Hi,
>>
>>
>>
>> I see options to deploy ovirt with gluster during the initial rollout,
>> however I can’t seem to find information as to how I can add it following a
>> non gluster initial setup:
>>
>>
>>
>> GlusterFS Version:
>>
>> [N/A]
>>
>>
>>
>> Thanks
>>
>>
>>
>> Simon
>>
>> ___
>> 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/KNRQN76L3XGNLYXYEIRYVDCJGU5BBGL5/
>>
>>
>>
>>
>> --
>>
>> *Thanks,*
>>
>> *Kaustav Majumder*
>>
>
>
> --
>
> Thanks,
>
> Kaustav Majumder
> ___
> 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/GR4XHNGO57K57N6JKB4XE5P3HX7RRMY5/
>
___
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/SG2JCDQDTEFCHJ5ACUXFQBBCE5MV4REL/


[ovirt-users] Re: Python to retrive the VM-Config from the snapshot

2019-09-10 Thread Ondra Machacek

Hi,

this example is the close to what you want to achieve:


https://github.com/oVirt/ovirt-engine-sdk/blob/master/sdk/examples/vm_backup.py#L137

but instead of line 137, you would have to do something like this:

snap_data = data_vm_service.snapshots_service().list(all_content=True)[0]
ovf_data = snap_data.vm.initialization.configuration.data

On 10/09/2019 15:12, Sven Achtelik wrote:

Hi All,

I’m trying to build a custom solution for Backups using the python. 
Everything works and I can get my disk copies. The last thing is getting 
the VM config and I can’t find any hint on how to get this done with 
python. Is there a way to actually get this information out easily ? 
Somehting like


  * Grab the wanted vm configuration from the needed snapshot - it’ll be
under initialization/configuration/data

URL = SERVER:PORT/api/vms/VM_ID/snapshots/IDMethod = GET  (with 
All-Content:true header)

I also have to mention that I’m not a profession programmer and work 
with what I can find as documentation or code examples.


http://ovirt.github.io/ovirt-engine-sdk/4.1/

https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples

If some experienced python programmer could give a hint where to look at 
that would be great.


Thank you,

Sven


___
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/G5ZAPBGVZ7EKYWPXDPIZIKMSBUQBOPWN/


___
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/53WGTDTIVIGX7FRSQHL5GT5REQ4Z2IQS/


[ovirt-users] Re: Python to retrive the VM-Config from the snapshot

2019-09-10 Thread Strahil
If the system is running you can use virsh dumpxml.

Best Regards,
Strahil NikolovOn Sep 10, 2019 16:12, Sven Achtelik  
wrote:
>
> Hi All,
>
>  
>
> I’m trying to build a custom solution for Backups using the python. 
> Everything works and I can get my disk copies. The last thing is getting the 
> VM config and I can’t find any hint on how to get this done with python. Is 
> there a way to actually get this information out easily ? Somehting like
>
> Grab the wanted vm configuration from the needed snapshot - it’ll be under 
> initialization/configuration/data
>
> URL = SERVER:PORT/api/vms/VM_ID/snapshots/ID Method = GET  (with 
> All-Content:true header)
>
> I also have to mention that I’m not a profession programmer and work with 
> what I can find as documentation or code examples.
>
> http://ovirt.github.io/ovirt-engine-sdk/4.1/
>
> https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
>
> If some experienced python programmer could give a hint where to look at that 
> would be great.
>
> Thank you,
>
> Sven___
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/SUWJ46M343QUTNNPLBUZIOERCIHQ4GJR/


[ovirt-users] Python to retrive the VM-Config from the snapshot

2019-09-10 Thread Sven Achtelik
Hi All,

I'm trying to build a custom solution for Backups using the python. Everything 
works and I can get my disk copies. The last thing is getting the VM config and 
I can't find any hint on how to get this done with python. Is there a way to 
actually get this information out easily ? Somehting like

  *   Grab the wanted vm configuration from the needed snapshot - it'll be 
under initialization/configuration/data
URL = SERVER:PORT/api/vms/VM_ID/snapshots/ID Method = GET  (with 
All-Content:true header)
I also have to mention that I'm not a profession programmer and work with what 
I can find as documentation or code examples.
http://ovirt.github.io/ovirt-engine-sdk/4.1/
https://github.com/oVirt/ovirt-engine-sdk/tree/master/sdk/examples
If some experienced python programmer could give a hint where to look at that 
would be great.
Thank you,
Sven
___
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/G5ZAPBGVZ7EKYWPXDPIZIKMSBUQBOPWN/


[ovirt-users] Re: nfs

2019-09-10 Thread mailing-ovirt
So I think I fixed the option.  I created a sanlock user (179) on the NFS
server, share option also needed to use  no_root_squash.

Simon

-Original Message-
From: Vojtech Juranek  
Sent: September 9, 2019 2:55 PM
To: users@ovirt.org
Subject: [ovirt-users] Re: nfs

Hi,

> I`m trying to mount a nfs share.
> 
> 
> 
> if I manually mount it from ssh, I can access it without issues.
> 
> 
> 
> However when I do it from the web config, it keeps failing:

the error means sanlock cannot write a resource on our device. Please
check 
you have proper permission on your NFS (has to be writeable by uid:guid
36:36) 
and eventually check /var/log/sanlock.log if there are any details

> 
> 
> Not sure how to solve that.
> 
> 
> 
> Thanks
> 
> 
> 
> Simon
> 
> 
> 
> 2019-09-09 09:08:47,601-0400 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer]
RPC
> call Host.ping2 succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:47,610-0400 INFO  (jsonrpc/3) [vdsm.api] START
> repoStats(domains=[u'4f4828c2-8f78-4566-a69d-a37cd73446d4'])
from=::1,42394,
> task_id=6c1eeef7-ff8c-4d0d-be85-ced03aae4bc2 (api:48)
> 
> 2019-09-09 09:08:47,610-0400 INFO  (jsonrpc/3) [vdsm.api] FINISH
repoStats
> return={u'4f4828c2-8f78-4566-a69d-a37cd73446d4': {'code': 0, 'actual':
True,
> 'version': 5, 'acquired': True, 'delay': '0.00101971', 'lastCheck':
'0.4',
> 'valid': True}} from=::1,42394,
> task_id=6c1eeef7-ff8c-4d0d-be85-ced03aae4bc2 (api:54)
> 
> 2019-09-09 09:08:47,611-0400 INFO  (jsonrpc/3) [jsonrpc.JsonRpcServer]
RPC
> call Host.getStorageRepoStats succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:47,839-0400 INFO  (jsonrpc/4) [jsonrpc.JsonRpcServer]
RPC
> call Host.ping2 succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:47,846-0400 INFO  (jsonrpc/2) [api.host] START
> getCapabilities() from=::1,42394 (api:48)
> 
> 2019-09-09 09:08:48,149-0400 INFO  (jsonrpc/2) [root] managedvolume not
> supported: Managed Volume Not Supported. Missing package os-brick.:
('Cannot
> import os_brick',) (caps:152)
> 
> 2019-09-09 09:08:49,212-0400 INFO  (jsonrpc/6) [jsonrpc.JsonRpcServer]
RPC
> call Host.ping2 succeeded in 0.01 seconds (__init__:312)
> 
> 2019-09-09 09:08:49,263-0400 INFO  (jsonrpc/2) [root]
> /usr/libexec/vdsm/hooks/after_get_caps/50_openstacknet: rc=0 err=
> (hooks:114)
> 
> 2019-09-09 09:08:49,497-0400 INFO  (jsonrpc/0) [jsonrpc.JsonRpcServer]
RPC
> call Host.ping2 succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:49,657-0400 INFO  (jsonrpc/1) [jsonrpc.JsonRpcServer]
RPC
> call Host.ping2 succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:49,665-0400 INFO  (jsonrpc/7) [vdsm.api] START
> repoStats(domains=[u'4f4828c2-8f78-4566-a69d-a37cd73446d4'])
from=::1,42394,
> task_id=14b596bf-bc1c-412b-b1fc-8d53f17d88f7 (api:48)
> 
> 2019-09-09 09:08:49,666-0400 INFO  (jsonrpc/7) [vdsm.api] FINISH
repoStats
> return={u'4f4828c2-8f78-4566-a69d-a37cd73446d4': {'code': 0, 'actual':
True,
> 'version': 5, 'acquired': True, 'delay': '0.00101971', 'lastCheck':
'2.4',
> 'valid': True}} from=::1,42394,
> task_id=14b596bf-bc1c-412b-b1fc-8d53f17d88f7 (api:54)
> 
> 2019-09-09 09:08:49,667-0400 INFO  (jsonrpc/7) [jsonrpc.JsonRpcServer]
RPC
> call Host.getStorageRepoStats succeeded in 0.00 seconds (__init__:312)
> 
> 2019-09-09 09:08:49,800-0400 INFO  (jsonrpc/2) [root]
> /usr/libexec/vdsm/hooks/after_get_caps/openstacknet_utils.py: rc=0 err=
> (hooks:114)
> 
> 2019-09-09 09:08:50,464-0400 INFO  (jsonrpc/2) [root]
> /usr/libexec/vdsm/hooks/after_get_caps/ovirt_provider_ovn_hook: rc=0
err=
> (hooks:114)
> 
> 2019-09-09 09:08:50,467-0400 INFO  (jsonrpc/2) [api.host] FINISH
> getCapabilities return={'status': {'message': 'Done', 'code': 0},
'info':
> {u'HBAInventory': {u'iSCSI': [{u'InitiatorName':
> u'iqn.1994-05.com.redhat:d8c85fc0ab85'}], u'FC': []}, u'packages2':
> {u'kernel': {u'release': u'957.27.2.el7.x86_64', u'version': u'3.10.0'},
> u'spice-server': {u'release': u'6.el7_6.1', u'version': u'0.14.0'},
> u'librbd1': {u'release': u'4.el7', u'version': u'10.2.5'}, u'vdsm':
> {u'release': u'1.el7', u'version': u'4.30.24'}, u'qemu-kvm':
{u'release':
> u'18.el7_6.7.1', u'version': u'2.12.0'}, u'openvswitch': {u'release':
> u'4.el7', u'version': u'2.11.0'}, u'libvirt': {u'release':
u'10.el7_6.12',
> u'version': u'4.5.0'}, u'ovirt-hosted-engine-ha': {u'release': u'1.el7',
> u'version': u'2.3.3'}, u'qemu-img': {u'release': u'18.el7_6.7.1',
> u'version': u'2.12.0'}, u'mom': {u'release': u'1.el7.centos',
u'version':
> u'0.5.12'}, u'glusterfs-cli': {u'release': u'1.el7', u'version':
u'6.5'}},
> u'numaNodeDistance': {u'1': [20, 10], u'0': [10, 20]}, u'cpuModel':
> u'Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz', u'nestedVirtualization':
> False, u'liveMerge': u'true', u'hooks': {u'before_vm_start':
> {u'50_hostedengine': {u'md5': u'95c810cdcfe4195302a59574a5148289'},
> u'50_vhostmd': {u'md5': u'9206bc390bcbf208b06a8e899581be2d'}},
> u'after_network_setup': {u'30_ethtool_options': {u'md5':
> 

[ovirt-users] oVirt conference 2019 - Rome - October 4th

2019-09-10 Thread Sandro Bonazzola
The oVirt Italian community 
and Extraordy  in collaboration with Red Hat
, Oracle ,  and Storware
  are pleased to invite you at oVirt Conference 2019
in Rome on October 4th 2019!
Tickets are available at
https://www.eventbrite.it/e/biglietti-ovirt-conference-2019-innovate-the-datacenter-with-open-virtualization-71510039453#

Thanks
-- 

Sandro Bonazzola

MANAGER, SOFTWARE ENGINEERING, EMEA R RHV

Red Hat EMEA 

sbona...@redhat.com
*Red Hat respects your work life balance.
Therefore there is no need to answer this email out of your office hours.*
___
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/UKLJBA5WUUMTJCDQLDZLIJ2FMZ3EV7NB/