Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin fails to compile during go get #17

Open
asonix opened this issue Jun 8, 2015 · 18 comments
Open

Plugin fails to compile during go get #17

asonix opened this issue Jun 8, 2015 · 18 comments

Comments

@asonix
Copy link

asonix commented Jun 8, 2015

The only info I really have available is the following:

Ubuntu 14.04
Packer 0.7.5
$ go get -u github.com/schubergphilis/packer-cloudstack
# github.com/schubergphilis/packer-cloudstack go/src/github.com/schubergphilis/packer-cloudstack/builder.go:77: undefined: packer.ConfigTemplate

@svanharmelen
Copy link

@asonix thanks for pointing this out! It turns out this is due to a refactoring going on in the core parts of Packer (actual commit causing this: hashicorp/packer@1d3a4d6). I'll have a look later if we can fix this easily. If not it will require some more time to refactor the CloudStack plugin.

Will try to let you know later today or tomorrow.

@svanharmelen
Copy link

@asonix I need a little more time for this one... In the mean time you could just checkout packer 0.7.5 and build this plugin with that instead of with the latest master. Would that work for you?

@looprock
Copy link

looprock commented Aug 6, 2015

I'm still getting this with 0.7.5:

bash-3.2$ packer version
Packer v0.7.5

Your version of Packer is out of date! The latest version
is 0.8.2. You can update by downloading from www.packer.io
bash-3.2$ go get -u github.com/schubergphilis/packer-cloudstack

github.com/schubergphilis/packer-cloudstack

src/github.com/schubergphilis/packer-cloudstack/builder.go:77: undefined: packer.ConfigTemplate

@svanharmelen
Copy link

Yes... I know... I really have to make some time for this to update this plugin to work with the latest and greatest Packer builds.

Personally I'm actually even more inclined to just convert this plugin to a built-in builder. That would make this separate plugin obsolete and ensures we will always be able to work with Packer and CloudStack.

Will have to schedule some time in the coming weeks to get this done...

@eriweb
Copy link

eriweb commented Aug 18, 2015

Any update on this?

@larstobi
Copy link

@svanharmelen Great idea getting this built-in to Packer! 👍

@svanharmelen
Copy link

I'm planning to work on this somewhere next week...

@hany
Copy link

hany commented Sep 3, 2015

@svanharmelen I too am interested in getting this working. Wondering if you've had a chance to look into this?

Are there known working versions of Packer that this plugin is compatible with?

@svanharmelen
Copy link

Yeah, I clearly didn't manage to work on this last week 😞 It's still on my radar, but have some planning difficulties at the moment. Will try to get back at this one asap...

Not sure, but I think the plugin should work with packer 0.7.5

@hany
Copy link

hany commented Sep 3, 2015

Thanks @svanharmelen. Any idea what the scope of the current issue is? Is it a whole refactor, or just a few adjustments? Is that yet to be determined? Just trying to see if we can also help so it's not all on your shoulders.

@svanharmelen
Copy link

I suspect it will be a pretty big refactor... Not only did the packer code change quite a lot recently, I would also like to switch the used CloudStack package to the same one used in other HashiCorp tools (mainly Terraform): https://github.com/xanzy/go-cloudstack

So it's definitely more then just some tweaking and updating I'm afraid.

@larstobi
Copy link

larstobi commented Sep 4, 2015

packer-cloudstack still compiles fine with packer 0.7.5, however packer 0.7.5 doesn't compile any longer either. A workaround is to go get packer, delete the compiled packer binaries it builds, check out the 0.7.5 tag, then download the precompiled 0.7.5 release and place the binaries as if 0.7.5 compiled successfully. Then I can build packer-cloudstack.

@hany
Copy link

hany commented Sep 4, 2015

Thanks for the clarification.

I wonder if anyone knows of a plugin or other method to get Packer to produce VHD files? That could be a decent workaround for now.

@hany
Copy link

hany commented Sep 14, 2015

Hey Guys,

FYI, one of our team members went a different route and wrote a Packer post-processor that converts a VirtualBox image into a VHD:

https://github.com/benwebber/packer-post-processor-vhd

Just thought we'd share.

@larstobi
Copy link

Have you published your half done port somewhere, @svanharmelen ?

@svanharmelen
Copy link

No, I didn't... And by now it's hopelessly out-of-date again 😞

As the holidays are now over, I'm planning to start working again by picking up two tasks that are both long past due. This being one of them...

So I'll be working again on this in the coming week(s) and hope I have the space and time to finish it up before being hit with a wall of other work again 😉

@svanharmelen
Copy link

I know, I know... It took waaaaay to long, but here it is: hashicorp/packer#3909

@svanharmelen
Copy link

I guess this issue should probably be closed for a while now already 😏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants