Hello Gervais,
update from our developers
I've just checked the email chain, and it looks like it has since been fixed up
stream
(https://github.com/myoung34/vagrant-ovirt4/pull/121<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmyoung34%2Fvagrant-ovirt4%2Fpull%2F121&data=04%7C01%7CP.Staniforth%40leedsbeckett.ac.uk%7C990aea02d5ce4f8d3bc308d8b2354768%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637455289187570654%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=HTXfDoq87MPBV1MHujlUjdSLVqkFoRSmZMaHVvFqgAU%3D&reserved=0>)
but perhaps not included in any gem release yet...
Regards,
Paul S.
________________________________
From: Staniforth, Paul <[email protected]>
Sent: 06 January 2021 10:59
To: Gervais de Montbrun <[email protected]>; [email protected]
<[email protected]>
Subject: Re: [ovirt-users] Ovirt and Vagrant
Hello Gervais,
I have asked our developers who use the plugin and
here is the response.
Regards,
Paul S.
Hi Paul,
We have had to maintain our own changes to the oVirt Vagrant plugin. Probably
we need to start committing to and publishing our own fork.
Theres an obtuse and broken long one liner that get's the IP addresses, which
has always been a bit problematic, and stopped working altogether with the
newest release of oVirt we are using.
Anyway, here are the changes we made to get the IP addresses working with the
new versions of oVirt:
line 58 wait_till_up.rb
ip_addr = nil
vm_nics_service = server.nics_service
nics = vm_nics_service.list
nics.each { |nic|
puts "Waiting on #{nic.mac.address}"
vm_nics_service.nic_service(nic.id).reported_devices_service.list.each {
|device|
device.ips&.each {|ip|
puts "ip: #{ip.to_s}"
if ip && ip.version == 'v4' && ip.address
ip_addr = ip.address
break
end
}
}
}
Also same in read_ssh.rb:
ip_addr = nil
vm_nics_service = server.nics_service
nics = vm_nics_service.list
nics.each { |nic|
vm_nics_service.nic_service(nic.id).reported_devices_service.list.each {
|device|
device.ips&.each {|ip|
if ip && ip.version == 'v4' && ip.address
ip_addr = ip.address
break
end
}
}
}
Sorry it's not the best way to share code, but feel free to pass this along.
Cheers,
Cliffe.
.
________________________________
From: Gervais de Montbrun <[email protected]>
Sent: 04 January 2021 18:14
To: [email protected] <[email protected]>
Subject: [ovirt-users] Ovirt and Vagrant
Caution External Mail: Do not click any links or open any attachments unless
you trust the sender and know that the content is safe.
Anyone using vagrant with oVirt 4.4?
I am trying to get the vagrant plugin working with oVirt, but I am experiencing
issues.
https://github.com/myoung34/vagrant-ovirt4/issues/120<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmyoung34%2Fvagrant-ovirt4%2Fissues%2F120&data=04%7C01%7Cp.staniforth%40leedsbeckett.ac.uk%7C2489f8033a8f4f960d4e08d8b0e08d88%7Cd79a81124fbe417aa112cd0fb490d85c%7C0%7C0%7C637453825790913752%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=zfmBH3M%2BqyVRMPsoXPSSwMONjDS64Mz6nOpFdjiENkc%3D&reserved=0>
I wonder what other folks are using or if someone has any suggestions to offer.
We are trying to switch from vSphere to oVirt for internal, developer vm's at
my office and we have a successful workflow using vagrant-vsphere plugin.
Switching to oVirt should have been a simple step, but the issue I an having is
a blocker.
I built a single hyperconverged server to test with. Everything seems to work
fine when I bring up vm's manually in my "cluster." Networking, console, etc
all work fine. Ovirt-guest-additions work fine and display the vm's ip in the
gui.
When I try with the vagrant plugin, there seems to be a communication issue.
Even though I can see the vm reporting its IP address fine in the ovirt web
gui, it seems like the vagrant plugin is unable to do the same. The maintainer
of the code says that he no longer runs oVirt which is why I am reaching out
here to see if anyone has a suggestion or even an alternative to suggest.
Cheers,
Gervais
To view the terms under which this email is distributed, please go to:-
http://leedsbeckett.ac.uk/disclaimer/email/
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/
List Archives:
https://lists.ovirt.org/archives/list/[email protected]/message/OVFHZP4HSVGNRIDCWOHLDWFN44XHYIVY/