On Jan 6, 2021, at 8:18 AM, Staniforth, Paul <P.Staniforth@leedsbeckett.ac.uk> wrote:Hello Gervais,update from our developersI'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) but perhaps not included in any gem release yet...Regards,Paul S.From: Staniforth, Paul <P.Staniforth@leedsbeckett.ac.uk>
Sent: 06 January 2021 10:59
To: Gervais de Montbrun <gervais@demontbrun.com>; users@ovirt.org <users@ovirt.org>
Subject: Re: [ovirt-users] Ovirt and VagrantTo view the terms under which this email is distributed, please go to:-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.rbip_addr = nilvm_nics_service = server.nics_servicenics = vm_nics_service.listnics.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.addressip_addr = ip.addressbreakend}}}Also same in read_ssh.rb:ip_addr = nilvm_nics_service = server.nics_servicenics = vm_nics_service.listnics.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.addressip_addr = ip.addressbreakend}}}Sorry it's not the best way to share code, but feel free to pass this along.Cheers,Cliffe..From: Gervais de Montbrun <gervais@demontbrun.com>
Sent: 04 January 2021 18:14
To: users@ovirt.org <users@ovirt.org>
Subject: [ovirt-users] Ovirt and VagrantCaution 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/120I 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
http://leedsbeckett.ac.uk/disclaimer/email/_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
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/users@ovirt.org/message/OVFHZP4HSVGNRIDCWOHLDWFN44XHYIVY/