paritytech / zombienet

A cli tool to easily spawn ephemeral Polkadot/Substrate networks and perform tests against them.
https://paritytech.github.io/zombienet/
GNU General Public License v3.0
161 stars 91 forks source link

[Breaking] Error generating config from resources #906

Closed wirednkod closed 1 year ago

wirednkod commented 1 year ago

Issue Description

Whenever one tries to run podman the following errors appear and podman cannot run:

Error: Error: Error generating config for prometheus resource Error: Error: Error generating config for tempo resource

Steps to reproduce the issue

Steps to reproduce the issue

  1. Execute any spawn with podman from main branch

Describe the results you received

╔════════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════╗
║ 🧟 Zombienet 🧟    │ Initiation                                                                                         ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Provider           │ podman                                                                                             ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Namespace          │ zombie-c684f207                                                                                    ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Temp Dir           │ /tmp/zombie-c684f207_-74154-sx2pEcqiRJ8m                                                           ║
╚════════════════════╧════════════════════════════════════════════════════════════════════════════════════════════════════╝
!!!! templateConfigPath -> /home/wirednkod/Documents/repos/parity/ts/zombienet/javascript/configs/prometheus.yml
!!!! configPath -> /tmp/zombie-c684f207_-74154-sx2pEcqiRJ8m/prometeus/etc/prometheus.yml

     Monitor: prometheus - url: http://127.0.0.1:46511
Error:       Error: Error generating config for tempo resource

undefined
┌────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Node'              │ /tmp/zombie-c684f207_-74154-sx2pEcqiRJ8m/logs                                                      │
│ s logs:            │                                                                                                    │
│ m                  │                                                                                                    │
└────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘

Describe the results you expected

To run

Zombienet version

main branch

Provider

Podman

Provider version

podman version 3.4.2

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

Screenshots

No response

mrcnski commented 1 year ago

Think I'm getting the same issue with podman 3.4.4. Hope you don't mind if I reopen?

$ zombienet --provider=podman spawn zombienet_tests/functional/0001-parachains-pvf.toml
╔════════════════════╤════════════════════════════════════════════════════════════════════════════════════════════════════╗
║  Zombienet     │ Initiation                                                                                             ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Provider           │ podman                                                                                             ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Namespace          │ zombie-415a28fa                                                                                    ║
╟────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────╢
║ Temp Dir           │ /tmp/zombie-415a28fa_-1677310-8RkHX91dHsmv                                                         ║
╚════════════════════╧════════════════════════════════════════════════════════════════════════════════════════════════════╝
Error:           Error: Error generating config for prometheus resource

undefined
┌────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Node'              │ /tmp/zombie-415a28fa_-1677310-8RkHX91dHsmv/logs                                                    │
│ s logs:            │                                                                                                    │
│ m                  │                                                                                                    │
└────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘

This is in the polkadot repo. Running with --provider=native worked fine.

$ zombienet version
1.3.63
doutv commented 1 year ago

Same issue. Using native provider --provider=native works fine.

But podman provider will get: Error: Error generating config for prometheus resource

zombienet version
w1.3.65

podman version
Version:      3.4.4
API Version:  3.4.4
Go Version:   go1.18.1
Built:        Thu Jan  1 08:00:00 1970
OS/Arch:      linux/amd64
doutv commented 1 year ago

@pepoviola Could you take a look at this issue? Thanks a lot~

pepoviola commented 1 year ago

Hi @doutv / @mrcnski , this should be fixed in https://github.com/paritytech/zombienet/pull/1313 and included in the next release. Thx!

update: This is included in last release v1.3.66.