vector icon indicating copy to clipboard operation
vector copied to clipboard

chore(deps): Update aws-config crate

Open jszwedko opened this issue 1 year ago • 6 comments
trafficstars

Also adds the aws-runtime crate as some types were moved there.

Closes: https://github.com/vectordotdev/vector/issues/20662

jszwedko avatar Jun 13 '24 16:06 jszwedko

Datadog Report

Branch report: jszwedko/update-aws-config Commit report: cc7a433 Test service: vector

:white_check_mark: 0 Failed, 7 Passed, 0 Skipped, 25.44s Total Time

@jszwedko could you please check the failing checks so this can get merged?

balonik avatar Jul 11 '24 06:07 balonik

@jszwedko could you please check the failing checks so this can get merged?

Apologies for the delay. I had looked a bit before, the integration tests for AWS are failing, but I wasn't able to sort it out 😓 I'll try to take another pass soon.

jszwedko avatar Jul 11 '24 13:07 jszwedko

@jszwedko maybe the issue is with the integration test itself? I am just guessing here, because I don't know what mockwatchlogs image does, but it seems like it is used to emulate AWS Cloudwatch, because back in the days (that container is 5 years old) localstack didn't support Cloudwatch Logs? Using localstack for all Cloudwatch tests (metrics are using localstack) could do the trick.

balonik avatar Aug 17 '24 20:08 balonik

Datadog Report

Branch report: jszwedko/update-aws-config Commit report: fbd978c Test service: vector

:white_check_mark: 0 Failed, 7 Passed, 0 Skipped, 25.47s Total Time

@jszwedko maybe the issue is with the integration test itself? I am just guessing here, because I don't know what mockwatchlogs image does, but it seems like it is used to emulate AWS Cloudwatch, because back in the days (that container is 5 years old) localstack didn't support Cloudwatch Logs? Using localstack for all Cloudwatch tests (metrics are using localstack) could do the trick.

Good observation! I opened a PR to switch from mockwatchlogs to localstack here: https://github.com/vectordotdev/vector/pull/21114. The integration tests are currently failing, but if we can fix that that might unblock this. I'll try to look at it again soon, but also happy to see someone else take a look if they have time.

jszwedko avatar Aug 20 '24 19:08 jszwedko

@jszwedko now after we fixed the integration tests in another PR, could you please rebase this branch and see if it works now?

balonik avatar Sep 06 '24 11:09 balonik

@jszwedko now after we fixed the integration tests in another PR, could you please rebase this branch and see if it works now?

👍 thanks for the bump on this. I merged in master 🤞

jszwedko avatar Sep 06 '24 18:09 jszwedko

Looks like we are still seeing:

2024-09-06T20:47:02.214518Z  WARN request{request_id=1}: vector::sinks::util::retries: Retrying after error. error=CloudwatchError::DescribeLogStreams: dispatch failure internal_log_rate_limit=true

I'll try to dig into this later unless someone else gets to it first. It may just be a matter of a missing feature flag.

jszwedko avatar Sep 06 '24 20:09 jszwedko

Looks like we are still seeing:

2024-09-06T20:47:02.214518Z  WARN request{request_id=1}: vector::sinks::util::retries: Retrying after error. error=CloudwatchError::DescribeLogStreams: dispatch failure internal_log_rate_limit=true

I'll try to dig into this later unless someone else gets to it first. It may just be a matter of a missing feature flag.

@jszwedko I wonder if the logging should be improved here, there's also typically a message in the AWS error response, which tells what's actually wrong. vector never logs this. This makes it harder to diagnose any issue with the AWS config, like missing permissions. I haven't had the bandwidth to report a proper issue on this.

chlunde avatar Sep 09 '24 06:09 chlunde

Looks like we are still seeing:

2024-09-06T20:47:02.214518Z  WARN request{request_id=1}: vector::sinks::util::retries: Retrying after error. error=CloudwatchError::DescribeLogStreams: dispatch failure internal_log_rate_limit=true

I'll try to dig into this later unless someone else gets to it first. It may just be a matter of a missing feature flag.

@jszwedko I wonder if the logging should be improved here, there's also typically a message in the AWS error response, which tells what's actually wrong. vector never logs this. This makes it harder to diagnose any issue with the AWS config, like missing permissions. I haven't had the bandwidth to report a proper issue on this.

I believe "dispatch failure" is an error returned by the SDK before it even makes the request, and so there wouldn't be a response from AWS, but I could be wrong.

jszwedko avatar Sep 11 '24 16:09 jszwedko

FYI dispatch failure internal_log_rate_limit=true doesn't appear to be new / introduced by this PR:

  • https://github.com/vectordotdev/vector/issues/19636
  • https://github.com/vectordotdev/vector/issues/20314#issuecomment-2124333299
  • https://github.com/vectordotdev/vector/issues/21339

milas avatar Sep 24 '24 16:09 milas

FYI dispatch failure internal_log_rate_limit=true doesn't appear to be new / introduced by this PR:

It is new in that the integration tests previously didn't hit it, but it does seem like it can potentially be hit in other circumstances too (thanks fro the links!).

jszwedko avatar Sep 24 '24 17:09 jszwedko

rip, it looks like the integration tests are failing. I don't know Rust at all so sorry if this is an obvious statement, but would it be possible to wrap the error being returned with https://docs.rs/aws-sdk-cloudwatch/latest/aws_sdk_cloudwatch/error/struct.DisplayErrorContext.html so we can get more debug output?

Denton-L avatar Oct 31 '24 23:10 Denton-L

rip, it looks like the integration tests are failing. I don't know Rust at all so sorry if this is an obvious statement, but would it be possible to wrap the error being returned with https://docs.rs/aws-sdk-cloudwatch/latest/aws_sdk_cloudwatch/error/struct.DisplayErrorContext.html so we can get more debug output?

There are some details in the CI logs:

thread 'sinks::aws_cloudwatch_logs::integration_tests::cloudwatch_healthcheck' panicked at src/sinks/aws_cloudwatch_logs/integration_tests.rs:461:39:
called `Result::unwrap()` on an `Err` value: DescribeLogGroupsFailed { source: DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadAfterSerialization, interceptor_name: Some("UserAgentInterceptor"), source: Some(MissingApiMetadata) }, connection: Unknown } }) }

I think this needs further debugging.

pront avatar Nov 01 '24 19:11 pront

updated as part of https://github.com/vectordotdev/vector/pull/22687

pront avatar Mar 19 '25 20:03 pront