zipurman / oVIRT_Simple_Backup

A REST API backup using PHP for oVirt 4.2.x
GNU General Public License v3.0
56 stars 32 forks source link

Restore steps destory OvirtSimpleBackupVm image disks #60

Closed nzncngz closed 4 years ago

nzncngz commented 4 years ago

Actual behaviour

When restore steps; [2020-02-13:19:17:28] Detatching Disk From oVirtSimpleBackupVM - ccdff1c7-8c2b-490c-90b3-079ddb924113 [2020-02-13:19:17:28] Detatching Disk From oVirtSimpleBackupVM - 93f6f102-3c92-4bab-ac84-b2bfc9dd764a [2020-02-13:19:17:27] VM Create - VM Created [2020-02-13:19:17:27] Update Graphic Console - spice [2020-02-13:19:17:27] Create new NIC - [2020-02-13:19:17:25] Create New VM - [2020-02-13:19:17:22] Restore Imaging: 1/1 - 0% Imaging Disk(s) Completed [2020-02-13:19:17:21] Imaging Disk(s) Completed [2020-02-13:19:17:19] Restore Imaging: 1/1 - 100% Imaging in progress. [2020-02-13:19:16:02] Restore Imaging: 1/1 - 99% Imaging in progress............................ [2020-02-13:19:16:00] Restore Imaging: 1/1 - 96% Imaging in progress. [2020-02-13:19:15:58] Restore Imaging: 1/1 - 90% Imaging in progress. [2020-02-13:19:15:56] Restore Imaging: 1/1 - 85% Imaging in progress. [2020-02-13:19:15:54] Restore Imaging: 1/1 - 77% Imaging in progress. [2020-02-13:19:15:51] Restore Imaging: 1/1 - 71% Imaging in progress. [2020-02-13:19:14:51] Restore Imaging: 1/1 - 69% Imaging in progress............................ [2020-02-13:19:14:49] Restore Imaging: 1/1 - 62% Imaging in progress. [2020-02-13:19:14:46] Restore Imaging: 1/1 - 56% Imaging in progress. [2020-02-13:19:13:47] Restore Imaging: 1/1 - 51% Imaging in progress........................... [2020-02-13:19:13:44] Restore Imaging: 1/1 - 48% Imaging in progress. [2020-02-13:19:13:42] Restore Imaging: 1/1 - 41% Imaging in progress. [2020-02-13:19:13:24] Restore Imaging: 1/1 - 31% Imaging in progress........ [2020-02-13:19:12:38] Restore Imaging: 1/1 - 30% Imaging in progress..................... [2020-02-13:19:12:36] Restore Imaging: 1/1 - 28% Imaging in progress. [2020-02-13:19:12:34] Restore Imaging: 1/1 - 22% Imaging in progress. [2020-02-13:19:12:10] Restore Imaging: 1/1 - 14% Imaging in progress........... [2020-02-13:19:12:05] Restore Imaging: 1/1 - 13% Imaging in progress.. [2020-02-13:19:12:03] Restore Imaging: 1/1 - 0% Started Imaging Disk1.img.gz to /dev/vdb [2020-02-13:19:12:01] Restore - Imaging - /dev/vdb [2020-02-13:19:12:01] Imaging Disk - /mnt/backups/Bacchus/8a95f435-94dd-4a69-aed0-46395bcbd082/BU_20200213_144823/Disk1 [2020-02-13:19:12:01] Command :(pv -n /mnt/backups/Bacchus/8a95f435-94dd-4a69-aed0-46395bcbd082/BU_20200213_144823/Disk1.img.gz | gunzip -c | dd of=/dev/vdb bs=1M conv=notrunc,noerror status=none) > /mnt/backups/Bacchus/8a95f435-94dd-4a69-aed0-46395bcbd082/BU_20200213_144823/progress.dat 2>&1 & [2020-02-13:19:12:00] Creating Disk(s) - Disk Done [2020-02-13:19:11:45] Creating Disk(s) - Disk Created [2020-02-13:19:11:33] Starting Restore ... Bacchus - BU_20200213_144823 --> restore_vms [2020-02-13:19:11:33] Adding Disk - [2020-02-13:19:11:33] ------------------------------------------------------

Notes: New vm not has any disks.OvirtSimpleBackup engine remove disks. Log says(FAIL); Reboot your OvirtSimpleBackupVM- Disks Out Of Order. Features OvirtSimpleBackupVM - Debian 9 My ovirt enviroment is AllInOne Engine.(https://www.ovirt.org/develop/release-management/features/integration/allinone.html)

zipurman commented 4 years ago

Reboot the SimpleBackupVM and try the restore again. Note: I have not tested SimpleBackup on newer versions of oVirt and I no longer have an oVirt Environment to test.

nzncngz commented 4 years ago

Ovirt engine version is 4.3.5 SimpleBackupVM couldn't reboot because SimpleBackupVM is delete when Ziparman project has restoring steps. My SimpleBackupVM couldn't reboot because it hasn't any disk. Also, the backup operation was successful on the same ovirt. An error occurs while restoring.

zipurman commented 4 years ago

Go back through the setup instructions. There is no way that a restore should erase the simplebackup vm. Never had anyone do that before ;)

nzncngz commented 4 years ago

Hi again, Restore configuration (https://user-images.githubusercontent.com/22845579/74514731-40067680-4f1e-11ea-905a-2b7aa5e39d99.PNG)

Create restore image (https://user-images.githubusercontent.com/22845579/74516882-439bfc80-4f22-11ea-8ac7-d3196bbe385a.PNG)

Detach OvirtSimpleBackup self disk (https://user-images.githubusercontent.com/22845579/74515472-ae980400-4f1f-11ea-9f29-25db89e78aa5.PNG)

Then create new vm but not connected restore disk

(https://user-images.githubusercontent.com/22845579/74517124-a68d9380-4f22-11ea-870a-4d789ee39880.PNG)

(https://user-images.githubusercontent.com/22845579/74516622-c07aa680-4f21-11ea-8c2f-7ca409a9f4c6.PNG)

zipurman commented 4 years ago

I notice you already have a disk with that restore name. Try using a different name for your restore and your new vm.

nzncngz commented 4 years ago

Hi, Sorry I accidentally attached that file. restore_vm8 disks only one on Ovirt.(ID a9afed7c-490f-4fff-8312-a13e1b951a95) It gives the smae error in vms different name. OvirtSimpleBackup detach self disk. (https://user-images.githubusercontent.com/22845579/74533175-034c7680-4f42-11ea-809f-c0c358ddc2b9.PNG)

New vm not connected restores disk. (https://user-images.githubusercontent.com/22845579/74533232-26772600-4f42-11ea-8698-5da2e53e6d72.PNG)

When restore vm was started it failed; vm1: Cannot run VM without at least one bootable disk. Alternatives:

zipurman commented 4 years ago

screenshot your global settings.

nzncngz commented 4 years ago

Hi, (https://user-images.githubusercontent.com/22845579/74544519-503b4780-4f58-11ea-95cf-d22c20b103ab.PNG) On below zipurman project installing logs; installing.txt

zipurman commented 4 years ago

What about your settings page after all is installed?

nzncngz commented 4 years ago

Settings; Before restore (https://user-images.githubusercontent.com/22845579/74582902-a0ef8680-4fd2-11ea-91e4-616bcec03440.PNG) Detach disk to OvirtSimpleBackup(hostname debian3.5ghvl.local) (https://user-images.githubusercontent.com/22845579/74582927-ef9d2080-4fd2-11ea-89cd-0f0bf3cea4bd.PNG)

zipurman commented 4 years ago

All looks to be fine so I dont know what the issue is. I am away for the next 8 days, so I can have a closer look when I return. Never heard of this issue before.

nzncngz commented 4 years ago

Thanks.

I had 2 problems. One of the problems was shared in the ovirt-user group by Robin Gaudreau (https://user-images.githubusercontent.com/22845579/74601202-973a5180-50ac-11ea-831b-bf41f7459c16.png)

ntox commented 4 years ago

Zip!

looks like someone created a business around your backup software? Looks nearly identical.

https://www.trilio.io/triliovault/red-hat-virtualization/

Best Regards,

​ Anthony Armstrong AJATechnologies www.ajatechnologies.nethttp://www.ajatechnologies.net Tel: 386-202-4880 Cell: 386-334-9547


From: Zip notifications@github.com Sent: Saturday, February 15, 2020 9:16 AM To: zipurman/oVIRT_Simple_Backup oVIRT_Simple_Backup@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [zipurman/oVIRT_Simple_Backup] Restore steps destory OvirtSimpleBackupVm image disks (#60)

All looks to be fine so I dont know what the issue is. I am away for the next 8 days, so I can have a closer look when I return. Never heard of this issue before.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/zipurman/oVIRT_Simple_Backup/issues/60?email_source=notifications&email_token=AIQQBAXDTALIVTCEDPJSBQTRC72MNA5CNFSM4KUWC5W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3LQQA#issuecomment-586594368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQQBARTFEYFTVVNZGI5J4DRC72MNANCNFSM4KUWC5WQ.

nzncngz commented 4 years ago

Hi, We want to use a completely free backup solution.

zipurman commented 4 years ago

Hey Thanks,

I was away last week, sorry for the late reply.

Glad to see someone is making something of it 😉 It’s hard to support as I don’t use oVirt at all anymore.

How are things with you? Still using oVirt?

-- PRESTON J. LORD President plord@inetx.caapplewebdata://CB27DD7E-23B6-4147-B0A4-ABE1E0410DC1/plord@inetx.ca

iNTRICATE NETWORKS INC.

6 1081 Central Avenue North

Swift Current, SK S9H 4Z2 T:306.778.0888 – Direct Line T:306.778.0800 – Computer Support Team F:306.778.0398 http://www.inetx.cahttp://www.inetx.ca/ http://www.splitPanel.comhttp://www.splitpanel.com/

[signature_1988461264]

This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, notify the sender immediately by return email and delete the message and any attachments from your system.

From: ntox notifications@github.com Reply-To: zipurman/oVIRT_Simple_Backup reply@reply.github.com Date: Tuesday, February 18, 2020 at 9:38 AM To: zipurman/oVIRT_Simple_Backup oVIRT_Simple_Backup@noreply.github.com Cc: Preston Lord plord@inetx.ca, Comment comment@noreply.github.com Subject: Re: [zipurman/oVIRT_Simple_Backup] Restore steps destory OvirtSimpleBackupVm image disks (#60)

Zip!

looks like someone created a business around your backup software? Looks nearly identical.

https://www.trilio.io/triliovault/red-hat-virtualization/

Best Regards,

​ Anthony Armstrong AJATechnologies www.ajatechnologies.nethttp://www.ajatechnologies.net Tel: 386-202-4880 Cell: 386-334-9547


From: Zip notifications@github.com Sent: Saturday, February 15, 2020 9:16 AM To: zipurman/oVIRT_Simple_Backup oVIRT_Simple_Backup@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [zipurman/oVIRT_Simple_Backup] Restore steps destory OvirtSimpleBackupVm image disks (#60)

All looks to be fine so I dont know what the issue is. I am away for the next 8 days, so I can have a closer look when I return. Never heard of this issue before.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/zipurman/oVIRT_Simple_Backup/issues/60?email_source=notifications&email_token=AIQQBAXDTALIVTCEDPJSBQTRC72MNA5CNFSM4KUWC5W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL3LQQA#issuecomment-586594368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIQQBARTFEYFTVVNZGI5J4DRC72MNANCNFSM4KUWC5WQ.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/zipurman/oVIRT_Simple_Backup/issues/60?email_source=notifications&email_token=AHVAMSRFVS6GHYXN74P3PFTRDP6GTA5CNFSM4KUWC5W2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMCOIQY#issuecomment-587523139, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHVAMSSKQGT56CDUMXATJRDRDP6GTANCNFSM4KUWC5WQ.

zipurman commented 4 years ago

nzncngz,

If you want me to figure it out, I would need to have ssh access to your environment. I realize that may not be okay with you, but without that I cant see what is wrong and what needs to be fixed. You can send me any login info to plord@inetx.ca if you'd like me to have a look.

nzncngz commented 4 years ago

Hi sir, Thanks for reply.I'm still at the same stage in Ovirt.Your project is quite beautiful. Being free is also awesome.

zipurman commented 4 years ago

This was due to the simpleBackupVM’s primary disk not being tagged as bootable. Simply changed the bootable setting to on and all worked as expected.