Comments (8)
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.
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.
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
from packer-plugin-scaleway.
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.
I tested it some times ago with a recent version of packer and it worked
from packer-plugin-scaleway.
@fredleger on macOS ?
from packer-plugin-scaleway.
Macos on mbp m1 pro
from packer-plugin-scaleway.
@mickaelperrin did you tried. I think this can be closed now
from packer-plugin-scaleway.
Related Issues (20)
- Add documentation about the file that should be deleted or the extra steps performed once an image is created
- Add logs about what could be done once the image is created.
- add section about the different configurations option (environment, configuration file, hard coded values, ...)
- Update documentation of `image_size_in_gb`
- Always shows a deprecation warning
- Cleanup machine-specific data HOT 1
- Support b_ssd storage with the template images provided by Scaleway
- Impossible to install version 1.0.4 HOT 2
- scaleway-sdk-go: http error 400 Bad Request: snapshot is not available HOT 5
- Add nightly end to end testing for packer plugin
- Add support for cassette based testing in end to end testing
- Add support for announcements
- Add support for HCP packer HOT 1
- automate version variable HOT 1
- generated image does not contains extra volumes
- feat: block_volume HOT 1
- review documentation
- Migrate the example either in the docs/ or in the README
- add a what's next section in the documentation
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-scaleway.