Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-26 Thread Indunil Jayasooriya
>
> > Can I shedule a VM backup with Ovirt Manager GUI. If possible, Pls let me
> > know.
>
> Not at this moment, and this is not planned for the future, afaik.
>
>
Thanks for the direct Answer. Why 's that? Can you guys go ahead without*
EASY BACKUP Solution*, When other Products like VMWare are around?



> Did you play with the other SDK examples etc suggested during this thread?
>
> May I suggest that this is best done as a plugin/contribution to a backup
> solution, not standalone. I guess most sites with more than a few hosts use
> some such solution - FOSS (amanda/bacula/backuppc/etc) or proprietary
> (netbackup/backupexec/acronis/etc) - and backup of VMs (ovirt or other)
> should be handled in this scope.
>
>
I have used bacula before. My question is how to backup VMs running in
Ovirt?
When I can't pinpoint a VM Image? Will I have to take Whole storage such as
NSF, ISCSI or SAN (i.e - FC)

Them, How to restore?


Could you pls answer?




> Searching the net I manage to find [1] and [2], which might be what
> you want. Note that I never tried any of them myself.
>
> [1] https://github.com/ovirt-china/vm-backup-scheduler
> [2] https://github.com/wefixit-AT/oVirtBackup
>
>
Thank you very much for the above links?



-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-22 Thread Indunil Jayasooriya
> If you know the name of the VM then you can find it, including its id,
> doing a search:
>
> https://engine.example.com/ovirt-engine/api/vms?search=name%3Dmyvm
>

  Thanks for the above info. It worked.


>
> If you prefer to use a script, which is probably the right thing, then
> you can do something like this, using the Python SDK:
>
>
Can I shedule a VM backup with Ovirt Manager GUI. If possible, Pls let me
know.



> ---8<---
> #!/usr/bin/python
>
> from ovirtsdk.api import API
> from ovirtsdk.xml import params
>
> # Connect to the server:
> api = API(
> url="https://engine.example.com/ovirt-engine/api;,
> username="admin@internal",
> password="**",
> ca_file="/etc/pki/ovirt-engine/ca.pem",
> debug=False
> )
>
> # Find the VM:
> vm = api.vms.get(name="myvm")
>
> # Print the id:
> print(vm.get_id())
>
> # Disconnect:
> api.disconnect()
> --->8---
>
>
Many thanks for the above script. I ran it on Ovirt manager. It worked. It
gave me the ID of my CentOS_71 VM that I want to backup.




> Once you have the VM you can create a snapshot like this:
>
> ---8<---
> vm.snapshots.add(
> params.Snapshot(description="My snapshot")
> )
> --->8---
>

I rewrote the script in this way and ran it.


#!/usr/bin/python

from ovirtsdk.api import API
from ovirtsdk.xml import params

# Connect to the server:
api = API(
url="https://engine.example.com/ovirt-engine/api;,
username="admin@internal",
password="**",
ca_file="/etc/pki/ovirt-
>
> engine/ca.pem",
> debug=False
> )
>
> # Find the VM:
> vm = api.vms.get(name="myvm")
>
> # Print the id:
> print(vm.get_id())
>
>


*vm.snapshots.add(  params.Snapshot(description="My
snapshot") )*

>
> *# Disconnect: api.disconnect()*
>

No error was given. I have no idea whether snapshot wad added or NOT by the
above script.

I can't display it.

*How to display it?  *

Then, *How to backup the VM with this snaphot? *

Then, finally* how to delete this snapshot? *to delete the snapshot,

I tried with below command. the did NOT worked.



*vm.snapshots.delete() *or
  *vm.snapshots.detach(*

 or
  *vm.snapshots.remove(*

I think I am have completed about 50% of this backup process. If you can
write down the  above steps, It would be very grateful.


I searched a whole lot. But , I still can't do it.

These are the links I came across.

https://github.com/laravot/backuprestoreapi/blob/master/example.py

http://www.ovirt.org/Testing/PythonApi#Create_a_Basic_Environment_using_ovirt-engine-sdk

this is your one

http://users.ovirt.narkive.com/Z29BQWAD/ovirt-users-python-sdk-attach-disk-snapshot-to-another-virtual-machine


Hmm,


*How to list the sanphot? *

*how to backup the VM with snapshot? *

*finally , how to remove this snapshot? *


Then. I think it will be OVER. Yesterday, I tried a lot.  but, NO success.

Hope to hear from you.










> You can also use the Java SDK, if you prefer Java.
>
> --
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta
> 3ºD, 28016 Madrid, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.
>



-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] schedule a VM backup in ovirt 3.5

2015-10-21 Thread Indunil Jayasooriya
Hi list,

I want to *schedule a VM backup* in ovirt 3.5. I read below URL.
<http://resources.ovirt.org/pub/yum-repo/ovirt-release35.rpm>

http://www.ovirt.org/Features/Backup-Restore_API_Integration#Full_VM_Backups

It gives an below example of VM backup


Example for VM Backup

   - Use existing VM Snapshot/Create a vm snapshot (example):

 URL = SERVER:PORT/api/vms/VM_ID/snapshots
 Method = POST
 (with Content-Type:application/xml header)
 Body =
 
 Virtual Machine 1 - Snapshot For Backup
 



But, How can I find the *VM_ID* of the VM that I want to backup?

How can I write this below format?

 URL = SERVER:PORT/api/vms/VM_ID/snapshots

MY Ovirt Engine manager is running on another PC. (let's say
engine.example.com ) i can access it by typing
https://engine.example.com/

is it https://engine.example.com/api/vms/*VM_ID*/snapshots ? I can't
access it in firefox browser?


Should I write a script? is there any Youtube video or doc that makes
me to understand this?

Hope to hear from you.








-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] oVirt - High Availability

2015-10-16 Thread Indunil Jayasooriya
Hi,


Thank you very much for help.

I have one more question.


How to connect *ILO Power Management ports *between *2 hypersvisors? *


Let's assume,

192.168.1.1/24  is the ip address of hypersvisor1 node.
192.168.1.2/24 is the ip address given to ILO port of hypersvisor1 node.

192.168.1.3/24  is the ip address of hypersvisor2 node.
192.168.1.4/24 is the ip address given to ILO port of hypersvisor2 node.

then,  Can We connect ILO ports of these 2 hypersvisors *to the same switch*
where Ethernet ports of these 2 hypersvisors are connected?

or

can we connect ILO ports of these 2 hypersvisors with  a *CROSS cable*
while Ethernet ports of these 2 hypersvisors are connected
*to a switch? *

If you can answer, I will be able to complete this question?

Hope to hear from you.





On Wed, Oct 14, 2015 at 3:21 PM, Eli Mesika <emes...@redhat.com> wrote:

>
>
> - Original Message -----
> > From: "Indunil Jayasooriya" <induni...@gmail.com>
> > To: "Eli Mesika" <emes...@redhat.com>
> > Cc: users@ovirt.org
> > Sent: Tuesday, October 13, 2015 6:25:59 PM
> > Subject: Re: [ovirt-users] oVirt - High Availability
> >
> > Hi,
> >
> > Thank you very much for your reply.
> >
> > I would like to know in which cases HA will happen?
> >
> > 1. network failure? ( i.e , if we accidentally remove the network cable
> or
> > if network card stopped working due to some reasons. )
> >
> > 2. Server is suddenly shut-down due to power failure (i.e - NOT a proper
> > shut-down ) or due to server  Hardware failure such as motherboard or
> > processor.
> >
> > 3. accidental reboot ?
>
> Basically yes for all 3
> in case of 1)
> There is a grace period that depends on the host load we give the host to
> get UP again and if that grace period passes then host is rebooted and HA
> VMs are atetmpted  to run on a different host
>
> >
> >
> > WILL HA will happen when above mentioned things happen?
> >
> >
> > YES or NO?
> >
> > Hope to hear from you?
> >
> >
> > On Tue, Oct 13, 2015 at 7:33 PM, Eli Mesika <emes...@redhat.com> wrote:
> >
> > >
> > >
> > > - Original Message -
> > > > From: "Indunil Jayasooriya" <induni...@gmail.com>
> > > > To: users@ovirt.org
> > > > Sent: Tuesday, October 13, 2015 6:13:22 AM
> > > > Subject: [ovirt-users] oVirt - High Availability
> > > >
> > > > Hi users,
> > > >
> > > >
> > > > I have setup OVIRT 3.5 with 2 REDHAT 7.1 hosts. Everything is ok
> other
> > > than
> > > > HA ( High Availability). To test HA, Documentation says, Power
> > > Management is
> > > > needed.
> > > >
> > > > Could you pls let me know if this Power Management is a separate
> Device
> > > or
> > > > does it come with a BRANDED Server such as HP, IBM or Dell?
> > >
> > > PM can be implemented by a separate card or come as part of a  BRANDED
> > > Server such as HP, IBM or Dell.
> > >
> > > >
> > > > I have seen a ILO port in HP servers. Can I use it for HA ( High
> > > > Availability) in ovirt?
> > >
> > > Yes you can, ILO is one of the PM devices supported by oVirt
> > >
> > > >
> > > > If power management is present in Branded Servers , Could you pls
> let me
> > > know
> > > > some Branded RHEL 7.1/CentOS 7.1 supported servers?
> > > >
> > > > Then, I can use it for Production use.
> > > >
> > > >
> > > > This is an YOU TUBE video for HA.
> > > >
> > > > https://www.youtube.com/watch?v=uHCnXGUMaS0
> > > >
> > > > Is this a correct video for HA?
> > >
> > > Please see also https://www.youtube.com/watch?v=IuRPGU7nF1E
> > >
> > > >
> > > >
> > > > I did some research.
> > > >
> > > > a few URLs.
> > > >
> > > >
> > > > http://lists.ovirt.org/pipermail/users/2013-January/011519.html
> > > >
> > > > http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience
> > > >
> > > >
> > >
> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Improving_Uptime_with_Virtual_Machine_High_Availability.html
> > > >
> > > >
> > > > what is Soft-Fencing Hosts ? ovirt doc gives below . (
> >

Re: [ovirt-users] oVirt - High Availability

2015-10-13 Thread Indunil Jayasooriya
Hi,

Thank you very much for your reply.

I would like to know in which cases HA will happen?

1. network failure? ( i.e , if we accidentally remove the network cable or
if network card stopped working due to some reasons. )

2. Server is suddenly shut-down due to power failure (i.e - NOT a proper
shut-down ) or due to server  Hardware failure such as motherboard or
processor.

3. accidental reboot ?


WILL HA will happen when above mentioned things happen?


YES or NO?

Hope to hear from you?


On Tue, Oct 13, 2015 at 7:33 PM, Eli Mesika <emes...@redhat.com> wrote:

>
>
> - Original Message -----
> > From: "Indunil Jayasooriya" <induni...@gmail.com>
> > To: users@ovirt.org
> > Sent: Tuesday, October 13, 2015 6:13:22 AM
> > Subject: [ovirt-users] oVirt - High Availability
> >
> > Hi users,
> >
> >
> > I have setup OVIRT 3.5 with 2 REDHAT 7.1 hosts. Everything is ok other
> than
> > HA ( High Availability). To test HA, Documentation says, Power
> Management is
> > needed.
> >
> > Could you pls let me know if this Power Management is a separate Device
> or
> > does it come with a BRANDED Server such as HP, IBM or Dell?
>
> PM can be implemented by a separate card or come as part of a  BRANDED
> Server such as HP, IBM or Dell.
>
> >
> > I have seen a ILO port in HP servers. Can I use it for HA ( High
> > Availability) in ovirt?
>
> Yes you can, ILO is one of the PM devices supported by oVirt
>
> >
> > If power management is present in Branded Servers , Could you pls let me
> know
> > some Branded RHEL 7.1/CentOS 7.1 supported servers?
> >
> > Then, I can use it for Production use.
> >
> >
> > This is an YOU TUBE video for HA.
> >
> > https://www.youtube.com/watch?v=uHCnXGUMaS0
> >
> > Is this a correct video for HA?
>
> Please see also https://www.youtube.com/watch?v=IuRPGU7nF1E
>
> >
> >
> > I did some research.
> >
> > a few URLs.
> >
> >
> > http://lists.ovirt.org/pipermail/users/2013-January/011519.html
> >
> > http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience
> >
> >
> https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Improving_Uptime_with_Virtual_Machine_High_Availability.html
> >
> >
> > what is Soft-Fencing Hosts ? ovirt doc gives below . (
> > http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience )
> >
> > Soft-Fencing Hosts
> >
> >
> > Sometimes a host becomes non-responsive due to an unexpected problem, and
> > though VDSM is unable to respond to requests, the virtual machines that
> > depend upon VDSM remain alive and accessible. In these situations,
> > restarting VDSM returns VDSM to a responsive state and resolves this
> issue.
> >
> > oVirt 3.3 introduces "soft-fencing over SSH". Prior to oVirt 3.3,
> > non-responsive hosts were fenced only by external fencing devices. In
> oVirt
> > 3.3, the fencing process has been expanded to include "SSH Soft
> Fencing", a
> > process whereby oVirt attempts to restart VDSM via SSH on non-responsive
> > hosts. If oVirt fails to restart VDSM via SSH, the responsibility for
> > fencing falls to the external fencing agent if an external fencing agent
> has
> > been configured.
> >
> >
> > BUT, It does NOT say how to set it up?
> >
> >
> > is there any step by step doc for it?
>
> There is no need to set it up, soft-fencing is simply VDSM service restart
> on the server side and is done always whether you configured PM on the host
> or not as a first step when you host is not-responding
>
>
> >
> >
> >
> >
> >
> > HOPE TO hear from you?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > cat /etc/motd
> >
> > Thank you
> > Indunil Jayasooriya
> > http://www.theravadanet.net/
> > http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala
> Fonts
> >
> >
> > ___
> > Users mailing list
> > Users@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/users
> >
>



-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] oVirt - High Availability

2015-10-12 Thread Indunil Jayasooriya
Hi users,


I have setup OVIRT 3.5 with* 2 REDHAT 7.1 hosts.* Everything is ok other
than HA ( High Availability). To test HA, Documentation says, *Power
Management is needed. *

Could you pls let me know if this Power Management is a separate Device or
does it come with a BRANDED Server such as HP, IBM or Dell?

I have seen a* ILO* port in HP servers. Can I use it for HA ( High
Availability) in ovirt?

If *power management* is *present in  Branded Servers*, Could you  pls let
me know some *Branded  RHEL 7.1/CentOS 7.1 supported  servers?*

Then, I can use it for Production use.


*This is an YOU TUBE video for HA.*

https://www.youtube.com/watch?v=uHCnXGUMaS0

Is this a correct video for HA?


I did some research.

a few URLs.


http://lists.ovirt.org/pipermail/users/2013-January/011519.html

http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Administration_Guide/sect-Improving_Uptime_with_Virtual_Machine_High_Availability.html


*what is **Soft-Fencing Hosts ?* ovirt doc gives below . (
http://www.ovirt.org/OVirt_Administration_Guide#Host_Resilience )

Soft-Fencing Hosts

Sometimes a host becomes non-responsive due to an unexpected problem, and
though VDSM is unable to respond to requests, the virtual machines that
depend upon VDSM remain alive and accessible. In these situations,
restarting VDSM returns VDSM to a responsive state and resolves this issue.

oVirt 3.3 introduces "soft-fencing over SSH". Prior to oVirt 3.3,
non-responsive hosts were fenced only by external fencing devices. In oVirt
3.3, the fencing process has been expanded to include "SSH Soft Fencing", a
process whereby oVirt attempts to restart VDSM via SSH on non-responsive
hosts. If oVirt fails to restart VDSM via SSH, the responsibility for
fencing falls to the external fencing agent if an external fencing agent
has been configured.


*BUT, It does NOT say how to set it up? *

*is there any step by step doc for it? *


HOPE TO hear from you?








-- 
cat /etc/motd

Thank you
Indunil Jayasooriya
http://www.theravadanet.net/
http://www.siyabas.lk/sinhala_how_to_install.html   -  Download Sinhala
Fonts
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users