GithubHelp home page GithubHelp logo

Comments (14)

ksagle77 avatar ksagle77 commented on June 3, 2024

Note, I am able to create a gen 2 vm successfully using fog hyper-v directly.

vm = compute.new_vm(
name: 'fogtest',
generation: 2,
path: 'd:\newvms\fogtest',
bootdevice: 'VHD',
vhdpath: 'd:\newvms\fogtest\fogtest.vhdx'
)
image

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

Interestingly, if I try to create a gen 2 VM, the same error is thrown during the first step of the process.
create_host
host_creation_submit

The VM is created anyways, but the rest of the deployment steps do not complete.

image

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

Worth noting is that the 'foreman_1511888691' is from Foreman itself, when creating a VM object Foreman gives it an unique identifier until the Compute Resource can provide the actual one.

I think I have an idea what the issue might be, which version of fog_hyperv are you running it against?

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

Ah, cool.

-bash-4.2$ gem list | grep fog-hyperv
fog-hyperv (0.0.5)

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

Then that's not the issue I'm thinking of.

Can you give me the Foreman version as well, and I'll throw up an environment for that when I'm back at my workstation.

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

rpm -qa 'foreman' || dpkg -l 'foreman' | sort

foreman-1.15.6-1.el7.noarch
tfm-rubygem-hammer_cli_foreman-0.10.2-1.el7.noarch
foreman-debug-1.15.6-1.el7.noarch
foreman-proxy-1.15.6-1.el7.noarch
foreman-cli-1.15.6-1.el7.noarch
foreman-installer-1.15.6-2.el7.noarch
foreman-selinux-1.15.6-1.el7.noarch
foreman-release-scl-3-1.el7.noarch
foreman-postgresql-1.15.6-1.el7.noarch
tfm-rubygem-foreman_setup-5.0.0-1.fm1_13.el7.noarch
foreman-release-1.15.6-1.el7.noarch

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

👍 Thanks, I'll try and get back to you tomorrow once I've had time to test it out myself, see if I can replicate the bug.

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

Awesome, thanks! I'm trying to debug as well, but am fairly new to ruby. Do you have an idea on whether the issue would be in fog-hyperv, or foreman-hyperv?

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

I think it's most likely a foreman-hyperv issue, and I have a rather good idea what might be causing it as well.

Sadly don't have any of the things I need to try the changes out myself at hand.

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

Cool. If there's anything I can do to help, let me know.

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

As a quick hack just to see if my hypothesis holds any water, you could try applying the change from the commit I just pushed.

from foreman_hyperv.

ksagle77 avatar ksagle77 commented on June 3, 2024

Awesome, the error no longer appears after applying those changes!

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

Great, then I'll have a starting point for making a proper fix once I'm in place and can test my code properly.

from foreman_hyperv.

ananace avatar ananace commented on June 3, 2024

Fix is merged into master as of bfbb7af, closing this issue.

from foreman_hyperv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.