Comments (4)
I was able to implement a workaround pinning at the v0.4.0 or the v0.3.2 version. Still need to fix the root version being whatever the latest release is vs 1.0
packer {
required_plugins {
xenserver = {
version = "= v0.4.0"
source = "github.com/ddelnano/xenserver"
}
}
}
from packer-plugin-xenserver.
Hey @tschilb252, thanks for making this bug report.
I am able to reproduce the behavior, but I'm surprised since I don't see any releases or tags that match v1.0.0. I ran packer with PACKER_LOG=debug
set to see if I could determine where that was being pullet from and saw the following:
2022/03/07 22:29:49 [INFO] Packer version: 1.7.0 [go1.15.8 linux amd64]
2022/03/07 22:29:49 [TRACE] discovering plugins in /usr/local/bin
2022/03/07 22:29:49 [TRACE] discovering plugins in /home/ddelnano/.packer.d/plugins
2022/03/07 22:29:49 [TRACE] discovering plugins in .
2022/03/07 22:29:49 [DEBUG] Discovered plugin: xenserver = /home/ddelnano/go/src/github.com/xenserver/packer-plugin-xenserver/packer-builder-xenserver
2022/03/07 22:29:49 [INFO] using external builders: [xenserver]
2022/03/07 22:29:49 [DEBUG] Discovered plugin: xenserver = /home/ddelnano/go/src/github.com/xenserver/packer-plugin-xenserver/packer-plugin-xenserver
2022/03/07 22:29:49 [INFO] found external [iso xva] builders from xenserver plugin
2022/03/07 22:29:49 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2022/03/07 22:29:49 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/ddelnano/.packerconfig
2022/03/07 22:29:49 [WARN] Config file doesn't exist: /home/ddelnano/.packerconfig
2022/03/07 22:29:49 [INFO] Setting cache directory: /home/ddelnano/go/src/github.com/xenserver/packer-plugin-xenserver/packer_cache
2022/03/07 22:29:49 [TRACE] validateValue: not active for remote_password, so skipping
2022/03/07 22:29:49 [TRACE] validateValue: not active for remote_username, so skipping
2022/03/07 22:29:49 [TRACE] validateValue: not active for sr_iso_name, so skipping
2022/03/07 22:29:49 [TRACE] validateValue: not active for sr_name, so skipping
2022/03/07 22:29:49 [TRACE] validateValue: not active for remote_host, so skipping
2022/03/07 22:29:49 [TRACE] init: plugingetter.ListInstallationsOptions{FromFolders:[]string{"/usr/local/bin/packer1.7", ".", "/home/ddelnano/.packer.d/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000080100)}}}}
2022/03/07 22:29:49 [TRACE] listing potential installations for "github.com/ddelnano/xenserver" that match ">= v0.3.2". plugingetter.ListInstallationsOptions{FromFolders:[]string{"/usr/local/bin/packer1.7", ".", "/home/ddelnano/.packer.d/plugins"}, BinaryInstallationOptions:plugingetter.BinaryInstallationOptions{APIVersionMajor:"5", APIVersionMinor:"0", OS:"linux", ARCH:"amd64", Ext:"", Checksummers:[]plugingetter.Checksummer{plugingetter.Checksummer{Type:"sha256", Hash:(*sha256.digest)(0xc000080100)}}}}
2022/03/07 22:29:49 [TRACE] for plugin github.com/ddelnano/xenserver found 0 matching installation(s)
2022/03/07 22:29:49 [TRACE] getting available versions for the github.com/ddelnano/xenserver plugin
2022/03/07 22:29:49 [DEBUG] github-getter: getting "https://api.github.com/repos/ddelnano/packer-plugin-xenserver/git/matching-refs/tags"
2022/03/07 22:29:49 [DEBUG] will try to install: [1.0.0 0.4.0 0.3.2]
2022/03/07 22:29:49 [TRACE] fetching checksums file for the "1.0.0" version of the github.com/ddelnano/xenserver plugin in "/home/ddelnano/.packer.d/plugins/github.com/ddelnano/xenserver"...
2022/03/07 22:29:49 [DEBUG] github-getter: getting "https://github.com/ddelnano/packer-plugin-xenserver/releases/download/v1.0.0/packer-plugin-xenserver_v1.0.0_SHA256SUMS"
2022/03/07 22:29:49 [TRACE] could not get sha256 checksum file for github.com/ddelnano/xenserver version 1.0.0. Is the file present on the release and correctly named ? GET https://github.com/ddelnano/packer-plugin-xenserver/releases/download/v1.0.0/packer-plugin-xenserver_v1.0.0_SHA256SUMS: 404 []
2022/03/07 22:29:49 [INFO] (telemetry) Finalizing.
could not get sha256 checksum file for github.com/ddelnano/xenserver version 1.0.0. Is the file present on the release and correctly named ? GET https://github.com/ddelnano/packer-plugin-xenserver/releases/download/v1.0.0/packer-plugin-xenserver_v1.0.0_SHA256SUMS: 404 []
2022/03/07 22:29:49 waiting for all plugin processes to complete...
So it does appear to be looking for a 1.0.0 release. I checked the releases from URL specified in the logs above (https://api.github.com/repos/ddelnano/packer-plugin-xenserver/git/matching-refs/tags) and found a 1.0 release but nothing that matched 1.0.0.
I took a look at the packer source code and realized that it is padding all releases to 3 digits. So that 1.0 release, which is a tag from before this project was forked, was being transformed into 1.0.0.
I've deleted that tag and verified that issue no longer occurs. Please reopen the issue if you are still experiencing a problem!
from packer-plugin-xenserver.
from packer-plugin-xenserver.
@tschilb252 no problem! I just added a buymeacoffee link to the README of the project if you are interested in supporting my work on the project
from packer-plugin-xenserver.
Related Issues (20)
- New release ? HOT 1
- discord invite link doesn't work HOT 1
- plugin compile instructions incorrect? HOT 6
- Recommended Workflow HOT 2
- [FEATURE REQUEST] - Support cd_files similar to floppy_files
- [Feature Request] Remove vnc exclusive lock when packer in debug mode
- Feature request: Add <waitXX> in boot_command
- boot_command appears to lose vnc connection on guest reboot HOT 1
- Feature request:Support SSH private keys with a passphrase
- Crash when lauching packer build only with 0.7.2 HOT 4
- packer examples/ubuntu/ubuntu-2004.pkr.hcl HOT 1
- [FEATURE REQUEST] Add ability to provide content directly to floppy_files and http_directory
- XenServer 8+ doesn't have xs-tools.iso by default, no option to ignore it HOT 3
- ISO Upload - Even is the ISO exists it is uploaded HOT 1
- Support changes of IP address on reboot of VM HOT 5
- Update builder documentation to include the missing (boot) `firmware` parameter HOT 2
- Cannot recreate template if old one (with same name) still exists HOT 3
- Clarification on keep_vm, format, output_directory, and sr_name. HOT 3
- Let users choose if they want a template or a full VM HOT 3
- Boot command fails; Error detecting local IP: ssh: handshake failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packer-plugin-xenserver.