Comments (9)
More debugging is not easy with the SDK/API, the exception which is given from the SDK is currently displayed, much more is not possible I think.
But I made a branch with some changes and added a traceback. Can you checkout the branch "issue_16" and post the output here. Check first if it doesn't contain sensitive information's !!! ;-)
If this helps, I will add a more debug output as you suggested. Sound's like a good idea.
from ovirtbackup.
With this version I get
$ ./backup.py -c ./config_testvm.cfg -d
Apr 14 16:04:12: Start backup for: testvm
Apr 14 16:04:30: Found snapshots(1):
Apr 14 16:04:30: Snapshots description: Snapshot for backup script, Created on: 2016-04-12 13:15:34.983000+02:00
Apr 14 16:04:32: Snapshot deletion started ...
Apr 14 16:04:36: Snapshot operation(deletion) in progress ...
Apr 14 16:04:45: Snapshot operation(deletion) in progress ...
Apr 14 16:04:55: Snapshot operation(deletion) in progress ...
Apr 14 16:05:04: Snapshot operation(deletion) in progress ...
Apr 14 16:05:13: Snapshot operation(deletion) in progress ...
Apr 14 16:05:22: Snapshot operation(deletion) in progress ...
Apr 14 16:05:31: Snapshot operation(deletion) in progress ...
Apr 14 16:05:39: Snapshot operation(deletion) in progress ...
Apr 14 16:05:48: Snapshot operation(deletion) in progress ...
Apr 14 16:05:57: Snapshot operation(deletion) in progress ...
Apr 14 16:06:06: Snapshot operation(deletion) in progress ...
Apr 14 16:06:15: Snapshot operation(deletion) in progress ...
Apr 14 16:06:24: Snapshot operation(deletion) in progress ...
Apr 14 16:06:32: Snapshot operation(deletion) in progress ...
Apr 14 16:06:40: Snapshots deleted
Apr 14 16:06:41: Snapshot creation started ...
Apr 14 16:06:49: Snapshot operation(creation) in progress ...
Apr 14 16:06:58: Snapshot operation(creation) in progress ...
Apr 14 16:07:06: Snapshot created
Apr 14 16:07:20: Clone into VM started ...
Apr 14 16:07:23: !!! Got a RequestError:
status: 400
reason: Bad Request
detail: Internal Engine Error
Traceback (most recent call last):
File "./backup.py", line 127, in main
api.vms.add(params.VM(name=vm_clone_name, memory=vm.get_memory(), cluster=api.clusters.get(config.get_cluster_name()), snapshots=snapshots_param))
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line 35196, in add
headers={"Correlation-Id":correlation_id, "Expect":expect}
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 75, in add
return self.request('POST', url, body, headers)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 115, in request
persistent_auth=self.__persistent_auth
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line 79, in do_request
persistent_auth)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line 156, in __do_request
raise errors.RequestError(response_code, response_reason, response_body)
RequestError:
status: 400
reason: Bad Request
detail: Internal Engine Error
Apr 14 16:07:23: All backups done
Apr 14 16:07:23: Backup failured for:
Apr 14 16:07:23: testvm
Apr 14 16:07:23: Some errors occured during the backup, please check the log file
$
The configuration is the same as before with an added use_short_suffix = false
. I have problems interpreting this traceback
from ovirtbackup.
Hi, its not really clear right now. So I wrote some check's to see if the config is correct. Can you checkout the latest changes on the branch "issue_16" and see if it prints some errors about missing config settings for export_domain, cluster_name and storage_domain. (I will refactor this later)
commit: 3e24471
from ovirtbackup.
I can't see a big difference:
$ ./backup.py -c ./config_testvm.cfg -d
Apr 15 11:09:06: Start backup for: testvm
Apr 15 11:09:24: Found snapshots(1):
Apr 15 11:09:24: Snapshots description: Snapshot for backup script, Created on: 2016-04-14 16:06:43.088000+02:00
Apr 15 11:09:26: Snapshot deletion started ...
Apr 15 11:09:30: Snapshot operation(deletion) in progress ...
Apr 15 11:09:39: Snapshot operation(deletion) in progress ...
Apr 15 11:09:48: Snapshot operation(deletion) in progress ...
Apr 15 11:09:58: Snapshot operation(deletion) in progress ...
Apr 15 11:10:07: Snapshot operation(deletion) in progress ...
Apr 15 11:10:16: Snapshot operation(deletion) in progress ...
Apr 15 11:10:26: Snapshot operation(deletion) in progress ...
Apr 15 11:10:35: Snapshot operation(deletion) in progress ...
Apr 15 11:10:44: Snapshot operation(deletion) in progress ...
Apr 15 11:10:52: Snapshot operation(deletion) in progress ...
Apr 15 11:11:01: Snapshot operation(deletion) in progress ...
Apr 15 11:11:09: Snapshot operation(deletion) in progress ...
Apr 15 11:11:18: Snapshot operation(deletion) in progress ...
Apr 15 11:11:27: Snapshot operation(deletion) in progress ...
Apr 15 11:11:35: Snapshots deleted
Apr 15 11:11:36: Snapshot creation started ...
Apr 15 11:11:43: Snapshot operation(creation) in progress ...
Apr 15 11:11:52: Snapshot operation(creation) in progress ...
Apr 15 11:12:01: Snapshot created
Apr 15 11:12:15: Clone into VM started ...
Apr 15 11:12:17: !!! Got a RequestError:
status: 400
reason: Bad Request
detail: Internal Engine Error
Traceback (most recent call last):
File "./backup.py", line 145, in main
api.vms.add(params.VM(name=vm_clone_name, memory=vm.get_memory(), cluster=api.clusters.get(config.get_cluster_name()), snapshots=snapshots_param))
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line 35196, in add
headers={"Correlation-Id":correlation_id, "Expect":expect}
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 75, in add
return self.request('POST', url, body, headers)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 115, in request
persistent_auth=self.__persistent_auth
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line 79, in do_request
persistent_auth)
File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line 156, in __do_request
raise errors.RequestError(response_code, response_reason, response_body)
RequestError:
status: 400
reason: Bad Request
detail: Internal Engine Error
Apr 15 11:12:17: All backups done
Apr 15 11:12:17: Backup failured for:
Apr 15 11:12:17: testvm
Apr 15 11:12:17: Some errors occured during the backup, please check the log file
$
Can you say from this traceback, which step/function fails?
from ovirtbackup.
I see a difference :-) It means that the the values are correct.
Can you please attach the engine.log which is generated during the backup.
from ovirtbackup.
It is impossible for me to see, which entries in the 40k-line logfile came from the backup job :-). I'll rerun backup.py to generate new entries and filter them out as they are being generated. However I'd prefer not to post them publicly. Is it ok if I send them to you personally? Do you want me to also send you the engine.log entries for a VM where backup.py runs fine?
from ovirtbackup.
Yes you can send it to me, I will handle it with care and don't publish sensitive Information's and wipe it after we find the problem.
Can you also create a empty third test VM with a disk of 1GB without a Operating System and run the backup on it. Maybe the VM has a strange problem.
I had this before on a test network with a VM where I hit some official Bug's (again) which where already reported to oVirt. There was the problem that a snapshot was generate but the snapshot disk was, for unknown reasons, corrupt and the backup-script did the job but the export VM has no disks stored. During the debugging I saw that all the SDK methods report no errors but there where thousand entries in the engine.log which are not forwarded through the SDK.
In short, currently I'm sceptical since I switched from VMWare ESXi to oVirt, before I had never problems. But this is another story :-(
from ovirtbackup.
Logs and output are on the way to your mailbox. As for the minimal test-VM, I'll only be able to do this early next week. I'll then send you it's backup output as soon as it is available.
from ovirtbackup.
Seems to have been a problem with some VMs themselves which could also not exported and imported properly through the oVirt WebUI. After rebuilding the VMs from scratch, the backup problems have gone. Thanks a lot for all your help.
from ovirtbackup.
Related Issues (20)
- Backup fails completely if VM missing HOT 1
- Create VM from snapshot HOT 2
- oVirtBackup stop working after update to oVirt 4.2.7 HOT 1
- API version 4 required (v3 support dropped with oVirt engine 4.3) HOT 4
- !!! No snapshot found !!! HOT 5
- Cyrillic symbol in name of snapshot HOT 1
- Error in VM nameresolution on delete cloned-vm HOT 13
- Imported VM deleted in backup rotation HOT 2
- !!! Got unexpected exception: The 'search' parameter should be of type 'str', but it is of type 'unicode'.
- Branch 4.3 no cleanup before or after backup
- Please test branch 4.3 with oVirt 4.4 HOT 4
- The script does not delete the cloned VM HOT 3
- Selecting a disk for backup HOT 2
- TypeError: The 'search' parameter should be of type 'str', but it is of type 'unicode'. HOT 2
- [feature] Support for not incremental backup API
- [feature] Support incremental backup API
- [feature] Support User Interface interface plugin
- [deprication] Export storage domain is depricated HOT 1
- Add back the option to backup vms by vm_names
- Master branch failed with : 'Config' object has no attribute 'get_disks_id_exclude' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ovirtbackup.