-
Notifications
You must be signed in to change notification settings - Fork 6
Errors in the Akri-on-Krustlet demo #4
Description
Hi,
Though I'd have liked to check the demo ( https://github.com/project-akri/akri-on-krustlet/blob/main/demo-krustlet.md ) on k3d ( ealier I could install Akri on k3d without any major issues ( project-akri/akri#438 ), I faced errors in installing Kruslet node itself. Maybe that needs to be taken up with Krustlet people. So I switched to kind. I can see the kruslet-wasi node in the cluster. However, I seem to have hit some error.
/akri$ RUST_LOG=info RUST_BACKTRACE=1 KUBECONFIG=/.kube/config DISCOVERY_HANDLERS_DIRECTORY=~/akri AGENT_NODE_NAME=krustlet-wasi HOST_CRICTL_PATH=/usr/local/bin/crictl HOST_RUNTIME_ENDPOINT=/usr/local/bin/containerd HOST_IMAGE_ENDPOINT=/usr/local/bin/containerd target/release/agent
akri.sh Agent start
akri.sh KUBERNETES_PORT found ... env_logger::init
[2021-12-17T13:05:31Z INFO akri_shared::akri::metrics] starting metrics server on port 8080 at /metrics
[2021-12-17T13:05:31Z INFO agent::util::registration] internal_run_registration_server - entered
[2021-12-17T13:05:31Z INFO agent::util::config_action] do_config_watch - enter
[2021-12-17T13:05:31Z INFO warp::server] Server::run; addr=0.0.0.0:8080
[2021-12-17T13:05:31Z INFO warp::server] listening on http://0.0.0.0:8080
[2021-12-17T13:05:31Z WARN kube::client] Unsuccessful data error parse: 404 page not found
thread 'tokio-runtime-worker' panicked at 'called Result::unwrap() on an Err value: "404 page not found\n": Failed to parse error data', agent/src/main.rs:88:14
stack backtrace:
0: rust_begin_unwind
at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/std/src/panicking.rs:517:5
1: core::panicking::panic_fmt
at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/panicking.rs:101:14
2: core::result::unwrap_failed
at /rustc/09c42c45858d5f3aedfa670698275303a3d19afa/library/core/src/result.rs:1617:5
3: <core::future::from_generator::GenFuture as core::future::future::Future>::poll
4: tokio::runtime::task::harness::Harness<T,S>::poll
5: std::thread::local::LocalKey::with
6: tokio::runtime::thread_pool::worker::Context::run_task
7: tokio::runtime::thread_pool::worker::Context::run
8: tokio::macros::scoped_tls::ScopedKey::set
9: tokio::runtime::thread_pool::worker::run
10: tokio::loom::std::unsafe_cell::UnsafeCell::with_mut
11: tokio::runtime::task::harness::Harness<T,S>::poll
12: tokio::runtime::blocking::pool::Inner::run
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
Error: JoinError::Panic(...)
The step previous to this showed:
~/akri$ cargo build -p agent --release
Updating git repository https://github.com/kate-goldenring/h2
Updating git repository https://github.com/DazWilkin/openapi-admission-v1
Downloaded crypto-mac v0.8.0
Downloaded darling v0.12.4
Downloaded float-cmp v0.8.0
...
...
...
Compiling kube-runtime v0.59.0
Compiling akri-shared v0.7.11 (/home/rupinder/akri/shared)
warning: irrefutable while let pattern
--> discovery-utils/src/discovery/mod.rs:231:27
|
231 | while let item = uds.accept().map_ok(|(st, _)| unix_stream::UnixStream(st)).await {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(irrefutable_let_patterns)] on by default
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a loop { ... } with a let inside it
Compiling akri-debug-echo v0.7.11 (/home/rupinder/akri/discovery-handlers/debug-echo)
warning: akri-discovery-utils (lib) generated 1 warning
warning: irrefutable while let pattern
--> agent/src/util/registration.rs:189:19
|
189 | while let item = uds.accept().map_ok(|(st, _)| unix_stream::UnixStream(st)).await {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: #[warn(irrefutable_let_patterns)] on by default
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a loop { ... } with a let inside it
warning: irrefutable while let pattern
--> agent/src/util/device_plugin_builder.rs:143:27
|
143 | while let item = uds.accept().map_ok(|(st, _)| unix_stream::UnixStream(st)).await {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this pattern will always match, so the loop will never exit
= help: consider instead using a loop { ... } with a let inside it
warning: agent (bin "agent") generated 2 warnings
Finished release [optimized] target(s) in 1m 46s
regards
Rupinder