Giter Site home page Giter Site logo

Comments (4)

tschilb252 avatar tschilb252 commented on July 17, 2024

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.

ddelnano avatar ddelnano commented on July 17, 2024

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.

tschilb252 avatar tschilb252 commented on July 17, 2024

from packer-plugin-xenserver.

ddelnano avatar ddelnano commented on July 17, 2024

@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)

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.