Skip to content

Issues using IPv6 as deployment targetHost #331

Description

@scrapes

Used colmena on Arch linux via nix-env -if https://github.com/zhaofengli/colmena/tarball/main on fish shell.
Using colmena as root on the system and as root on the remote systems.

I have a local test cluster with ipv4s and ipv6s but no dns names.
IPv4 as node target works but not IPv6.

I tried both the raw ip and in square brackets.

Without Brackets:


       ❌ 23s Failed: Child process exited with error code: 1
 (...) ✅ 23s Evaluated node-3, node-1, and node-2
node-1 ✅ 0s Built "/nix/store/fwqc81xwfm6hpivdqfiy0h0fn7p8rg2y-nixos-system-node-1-25.11pre-git"
node-2 ✅ 0s Built "/nix/store/4ghr5ywx74qdiik7ykjg4x0hc8k5kki4-nixos-system-node-2-25.11pre-git"
node-3 ✅ 0s Built "/nix/store/45ccjkgrn9yyb4yp13h4src1qnkbbska-nixos-system-node-3-25.11pre-git"
node-1 ❌ 0s Push failed: Child process exited with error code: 1
node-3 ❌ 0s Push failed: Child process exited with error code: 1
node-2 ❌ 0s Push failed: Child process exited with error code: 1                                                                                                 
ERROR Failed to complete requested operation - Last 1 lines of logs:
ERROR  failure) Child process exited with error code: 1
ERROR Failed to push system closure to node-3 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) error: invalid URL authority: 'root@fd10:dead:beef::12': leftover
ERROR  failure) Child process exited with error code: 1
ERROR Failed to push system closure to node-1 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) error: invalid URL authority: 'root@fd10:dead:beef::10': leftover
ERROR  failure) Child process exited with error code: 1
ERROR Failed to push system closure to node-2 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) error: invalid URL authority: 'root@fd10:dead:beef::11': leftover
ERROR  failure) Child process exited with error code: 1
ERROR -----
ERROR Operation failed with error: Child process exited with error code: 1
Backtrace:
   0: colmena::util::CommandExecution::run::{{closure}}
   1: colmena::nix::host::ssh::Ssh::run_command::{{closure}}
   2: <colmena::nix::host::ssh::Ssh as colmena::nix::host::Host>::copy_closure::{{closure}}
   3: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
   4: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
   5: colmena::nix::deployment::Deployment::execute_one_chunk::{{closure}}::{{closure}}
   6: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   7: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
   8: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   9: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
  10: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  11: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  12: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  13: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  14: colmena::troubleshooter::run_wrapped::{{closure}}
  15: colmena::cli::run::{{closure}}
  16: tokio::runtime::park::CachedParkThread::block_on
  17: colmena::main
  18: std::sys::backtrace::__rust_begin_short_backtrace
  19: std::rt::lang_start::{{closure}}
  20: std::rt::lang_start_internal
  21: main
  22: __libc_start_call_main
  23: __libc_start_main_impl
  24: _start

With brackets:

❯ RUST_BACKTRACE=1 colmena apply❯ RUST_BACKTRACE=1 colmena apply
       ❌ 23s Failed: Child process exited with error code: 255
 (...) ✅ 18s Evaluated node-3, node-2, and node-1
node-1 ✅ 0s Built "/nix/store/fwqc81xwfm6hpivdqfiy0h0fn7p8rg2y-nixos-system-node-1-25.11pre-git"
node-3 ✅ 0s Built "/nix/store/45ccjkgrn9yyb4yp13h4src1qnkbbska-nixos-system-node-3-25.11pre-git"
node-2 ✅ 0s Built "/nix/store/4ghr5ywx74qdiik7ykjg4x0hc8k5kki4-nixos-system-node-2-25.11pre-git"
node-2 ✅ 1s Pushed system closure
node-3 ✅ 1s Pushed system closure
node-1 ✅ 1s Pushed system closure
node-1 ❌ 4s Activation failed: Child process exited with error code: 255
node-2 ❌ 4s Activation failed: Child process exited with error code: 255
node-3 ❌ 4s Activation failed: Child process exited with error code: 255                                                                                         
ERROR Failed to deploy to node-3 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::12]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to deploy to node-2 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::11]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to deploy to node-1 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::10]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to complete requested operation - Last 1 lines of logs:
ERROR  failure) Child process exited with error code: 255
ERROR -----
ERROR Operation failed with error: Child process exited with error code: 255
Backtrace:
   0: colmena::util::CommandExecution::run::{{closure}}
   1: colmena::nix::host::ssh::Ssh::run_command::{{closure}}
   2: <colmena::nix::host::ssh::Ssh as colmena::nix::host::Host>::activate::{{closure}}
   3: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
   4: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
   5: colmena::nix::deployment::Deployment::execute_one_chunk::{{closure}}::{{closure}}
   6: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   7: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
   8: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   9: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
  10: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  11: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  12: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  13: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  14: colmena::troubleshooter::run_wrapped::{{closure}}
  15: colmena::cli::run::{{closure}}
  16: tokio::runtime::park::CachedParkThread::block_on
  17: colmena::main
  18: std::sys::backtrace::__rust_begin_short_backtrace
  19: std::rt::lang_start::{{closure}}
  20: std::rt::lang_start_internal
  21: main
  22: __libc_start_call_main
  23: __libc_start_main_impl
  24: _start
       ❌ 23s Failed: Child process exited with error code: 255
 (...) ✅ 18s Evaluated node-3, node-2, and node-1
node-1 ✅ 0s Built "/nix/store/fwqc81xwfm6hpivdqfiy0h0fn7p8rg2y-nixos-system-node-1-25.11pre-git"
node-3 ✅ 0s Built "/nix/store/45ccjkgrn9yyb4yp13h4src1qnkbbska-nixos-system-node-3-25.11pre-git"
node-2 ✅ 0s Built "/nix/store/4ghr5ywx74qdiik7ykjg4x0hc8k5kki4-nixos-system-node-2-25.11pre-git"
node-2 ✅ 1s Pushed system closure
node-3 ✅ 1s Pushed system closure
node-1 ✅ 1s Pushed system closure
node-1 ❌ 4s Activation failed: Child process exited with error code: 255
node-2 ❌ 4s Activation failed: Child process exited with error code: 255
node-3 ❌ 4s Activation failed: Child process exited with error code: 255                                                                                         
ERROR Failed to deploy to node-3 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::12]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to deploy to node-2 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::11]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to deploy to node-1 - Last 4 lines of logs:
ERROR  created)
ERROR    state) Running
ERROR   stderr) ssh: Could not resolve hostname [fd10:dead:beef::10]: Name or service not known
ERROR  failure) Child process exited with error code: 255
ERROR Failed to complete requested operation - Last 1 lines of logs:
ERROR  failure) Child process exited with error code: 255
ERROR -----
ERROR Operation failed with error: Child process exited with error code: 255
Backtrace:
   0: colmena::util::CommandExecution::run::{{closure}}
   1: colmena::nix::host::ssh::Ssh::run_command::{{closure}}
   2: <colmena::nix::host::ssh::Ssh as colmena::nix::host::Host>::activate::{{closure}}
   3: <tracing::instrument::Instrumented<T> as core::future::future::Future>::poll
   4: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
   5: colmena::nix::deployment::Deployment::execute_one_chunk::{{closure}}::{{closure}}
   6: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   7: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
   8: <futures_util::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
   9: <futures_util::future::join_all::JoinAll<F> as core::future::future::Future>::poll
  10: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  11: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  12: <tokio::future::maybe_done::MaybeDone<Fut> as core::future::future::Future>::poll
  13: <core::future::poll_fn::PollFn<F> as core::future::future::Future>::poll
  14: colmena::troubleshooter::run_wrapped::{{closure}}
  15: colmena::cli::run::{{closure}}
  16: tokio::runtime::park::CachedParkThread::block_on
  17: colmena::main
  18: std::sys::backtrace::__rust_begin_short_backtrace
  19: std::rt::lang_start::{{closure}}
  20: std::rt::lang_start_internal
  21: main
  22: __libc_start_call_main
  23: __libc_start_main_impl
  24: _start

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions