Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Agent does not seem to try all configured repositories if one of them is offline #129

Closed

Description

The cluster in question had three repositories configured at the time the behavior was encountered.

localrepo: localhost:8000 - unreachable, as no webserver was running
stackablerepo: repo.stackable.tech - should have been reachable
integration-test-repo: https://raw.githubusercontent.com/stackabletech/integration-test-repo/6d784f1fb433123cb3b1d5cd7364a4553246d749/ -> reachable

Agent logs seem to indicate that it tried the local repo first and then aborted when that failed instead of trying the next repo.

[2021-04-06T12:58:55Z INFO stackable_agent::provider::states::pod::downloading] Looking for package: test-service:0.1.0 in known repositories
[2021-04-06T12:58:55Z ERROR stackable_agent::provider::states::pod::downloading] Error occurred trying to find package [test-service:0.1.0]: [Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", username: "", password: None, host: Some(Domain("localhost")), port: Some(8000), path: "/metadata.json", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })]
[2021-04-06T12:58:55Z INFO stackable_agent::provider::states::pod::downloading_backoff] Backing of before retrying download of package test-service:0.1.0
[2021-04-06T12:59:05Z INFO stackable_agent::provider::states::pod::downloading] Looking for package: test-service:0.1.0 in known repositories
[2021-04-06T12:59:05Z ERROR stackable_agent::provider::states::pod::downloading] Error occurred trying to find package [test-service:0.1.0]: [Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", username: "", password: None, host: Some(Domain("localhost")), port: Some(8000), path: "/metadata.json", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })]
[2021-04-06T12:59:05Z INFO stackable_agent::provider::states::pod::downloading_backoff] Backing of before retrying download of package test-service:0.1.0
[2021-04-06T12:59:25Z INFO stackable_agent::provider::states::pod::downloading] Looking for package: test-service:0.1.0 in known repositories
[2021-04-06T12:59:25Z ERROR stackable_agent::provider::states::pod::downloading] Error occurred trying to find package [test-service:0.1.0]: [Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", username: "", password: None, host: Some(Domain("localhost")), port: Some(8000), path: "/metadata.json", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })]
[2021-04-06T12:59:25Z INFO stackable_agent::provider::states::pod::downloading_backoff] Backing of before retrying download of package test-service:0.1.0
[2021-04-06T13:00:05Z INFO stackable_agent::provider::states::pod::downloading] Looking for package: test-service:0.1.0 in known repositories
[2021-04-06T13:00:05Z ERROR stackable_agent::provider::states::pod::downloading] Error occurred trying to find package [test-service:0.1.0]: [Reqwest(reqwest::Error { kind: Request, url: Url { scheme: "http", username: "", password: None, host: Some(Domain("localhost")), port: Some(8000), path: "/metadata.json", query: None, fragment: None }, source: hyper::Error(Connect, ConnectError("tcp connect error", Os { code: 111, kind: ConnectionRefused, message: "Connection refused" })) })]
[2021-04-06T13:00:05Z INFO stackable_agent::provider::states::pod::downloading_backoff] Backing of before retrying download of package test-service:0.1.0
[2021-04-06T13:01:25Z INFO stackable_agent::provider::states::pod::downloading] Looking for package: test-service:0.1.0 in known repositories

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions