Hi all,

I am trying https://github.com/vacosta94/VirtBKP.

ovirt version:4.3.5

my config file;

[bkp]
url             = https://xxx/ovirt-engine/api
user            = admin@internal
password        = yyy
ca_file         = /opt/VirtBKP/ca.crt
bkpvm           = VirtBKM
bckdir          = /mnt/backup

[restore]
url             = https:/xxx/ovirt-engine/api
user            = admin@internal
password        = yyy
ca_file         = ca.crt
storage         = hosted_storage(storage domain name for new vm???)
proxy           = xxx(engine FQDN)
proxyport       = 54323

Fail on below;


[root@virtbkp VirtBKP]# /opt/VirtBKP/backup_vm.py default.conf Bacchus
[OK] Connection to oVIrt API success https://ovirtengine2.5ghvl.local/ovirt-engi                                                                                                             ne/api
[INFO] Trying to create snapshot of VM: 8a95f435-94dd-4a69-aed0-46395bcbd082
[INFO] Waiting until snapshot creation ends
[INFO] Waiting until snapshot creation ends
[OK] Snapshot created
[INFO] Trying to create a qcow2 file of disk aa564596-fd33-4734-8050-0f82130a677b
[INFO] Attach snap disk to bkpvm
Traceback (most recent call last):
  File "/opt/VirtBKP/backup_vm.py", line 6, in <module>
    b.main()
  File "/opt/VirtBKP/backup_vm_last.py", line 242, in main
    self.backup(self.vmid,self.snapid,disk_id,self.bkpvm)
  File "/opt/VirtBKP/backup_vm_last.py", line 210, in backup
    self.attach_disk(bkpvm,disk_id,snapid)
  File "/opt/VirtBKP/backup_vm_last.py", line 123, in attach_disk
    resp_attach = requests.post(urlattach, data=xmlattach, headers=headers, verify=False, auth=(self.user,self.password))
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 112, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 498, in request
    prep = self.prepare_request(req)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 441, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 309, in prepare
    self.prepare_url(url, params)
  File "/usr/lib/python2.7/site-packages/requests/models.py", line 377, in prepare_url
    raise InvalidURL(*e.args)
requests.exceptions.InvalidURL: Failed to parse: https://ovirtengine2.5ghvl.local/ovirt-engine/api/v3/vms/13d45c7f-7812-4f01-9bd8-a3e8ff91c15b/disks/




Nazan CENGİZ
AR-GE MÜHENDİSİ
Mustafa Kemal Mahallesi 2120 Cad. No:39 06510 Çankaya Ankara TÜRKİYE
+90 312 219 57 87 +90 312 219 57 97
YASAL UYARI: Bu elektronik posta işbu linki kullanarak ulaşabileceğiniz Koşul ve Şartlar dokümanına tabidir.
LEGAL NOTICE: This e-mail is subject to the Terms and Conditions document which can be accessed with this link.
Lütfen gerekmedikçe bu sayfa ve eklerini yazdırmayınız / Please consider the environment before printing this email