Code Monkey home page Code Monkey logo

Comments (8)

Codelax avatar Codelax commented on June 17, 2024 1

To log scaleway request you can add SCW_DEBUG=true when showing packer debug.
But it might not help much if requests are not reaching, this could be an issue with golang dns resolver.
There was new versions of our packer plugin that use latest Go patches, it might fix it.

from packer-plugin-scaleway.

Codelax avatar Codelax commented on June 17, 2024

Hi, I tried with the same environment but I cannot reproduce. Seeing the error, it doesn't look like an issue with packer. You may have issues reaching scaleway's api.

from packer-plugin-scaleway.

fredleger avatar fredleger commented on June 17, 2024

It was what i was thinking too but doing more testing showed than not (cf screenshot bellow).
i tried in parallel to curl scw api and run packer. packer still have the issue even if curl to the api got only 200 http codes in return

image

from packer-plugin-scaleway.

mickaelperrin avatar mickaelperrin commented on June 17, 2024

It looks like the issue is still present:

2023/11/17 10:38:48 [INFO] (telemetry) Starting builder scaleway.base
==> scaleway.base: Prevalidating image name: image-packer-1700213928
==> scaleway.base: error: getting image list: scaleway-sdk-go: error executing request: Get "https://api.scaleway.com/instance/v1/zones/fr-par-2/images?name=image-packer-1700213928&page=1": dial tcp: lookup api.scaleway.com: i/o timeout
2023/11/17 10:38:53 [INFO] (telemetry) ending scaleway.base
==> Wait completed after 5 seconds 9 milliseconds
2023/11/17 10:38:53 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2023/11/17 10:38:53 machine readable: scaleway.base,error []string{"error: getting image list: scaleway-sdk-go: error executing request: Get \"https://api.scaleway.com/instance/v1/zones/fr-par-2/images?name=image-packer-1700213928&page=1\": dial tcp: lookup api.scaleway.com: i/o timeout"}
==> Builds finished but no artifacts were created.
2023/11/17 10:38:53 [INFO] (telemetry) Finalizing.
Build 'scaleway.base' errored after 5 seconds 9 milliseconds: error: getting image list: scaleway-sdk-go: error executing request: Get "https://api.scaleway.com/instance/v1/zones/fr-par-2/images?name=image-packer-1700213928&page=1": dial tcp: lookup api.scaleway.com: i/o timeout

==> Wait completed after 5 seconds 9 milliseconds

==> Some builds didn't complete successfully and had errors:
--> scaleway.base: error: getting image list: scaleway-sdk-go: error executing request: Get "https://api.scaleway.com/instance/v1/zones/fr-par-2/images?name=image-packer-1700213928&page=1": dial tcp: lookup api.scaleway.com: i/o timeout

==> Builds finished but no artifacts were created.
2023/11/17 10:38:54 waiting for all plugin processes to complete...
2023/11/17 10:38:54 /opt/homebrew/bin/github.com/scaleway/scaleway/packer-plugin-scaleway_v1.1.0_x5.0_darwin_arm64: plugin process exited

Doing the request with curl is working fine:

curl -X GET -H "X-Auth-Token: $SCW_SECRET_KEY" -H "ContentType: application/json" 'https://api.scaleway.com/instance/v1/zones/fr-par-2/images?name=image-packer-1700213928&page=1'
{"images": []}%

Versions:

  • packer version: v1.9.4 on macOS
  • go version go1.21.1 darwin/arm64

Running packer inside a docker container seems to work, but not the with the brew version

from packer-plugin-scaleway.

fredleger avatar fredleger commented on June 17, 2024

I tested it some times ago with a recent version of packer and it worked

from packer-plugin-scaleway.

mickaelperrin avatar mickaelperrin commented on June 17, 2024

@fredleger on macOS ?

from packer-plugin-scaleway.

fredleger avatar fredleger commented on June 17, 2024

Macos on mbp m1 pro

from packer-plugin-scaleway.

fredleger avatar fredleger commented on June 17, 2024

@mickaelperrin did you tried. I think this can be closed now

from packer-plugin-scaleway.

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.