-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[add_cloud_metadata] fix the orchestrator metadata for the aws cloud provider #37651
[add_cloud_metadata] fix the orchestrator metadata for the aws cloud provider #37651
Conversation
…rovider Signed-off-by: Tetiana Kravchenko <[email protected]>
This pull request doesn't have a |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
💔 Build Failed
Expand to view the summary
Build stats
Pipeline error
❕ Flaky test reportNo test was executed to be analysed. 🤖 GitHub commentsExpand to view the GitHub comments
To re-run your PR in the CI, just comment with:
|
@tetianakravchenko can you add online description about the fix and what is doing? |
Signed-off-by: Tetiana Kravchenko <[email protected]>
@gizas done, please check issue description |
@@ -198,6 +198,12 @@ func TestRetrieveAWSMetadataEC2(t *testing.T) { | |||
"cloud": mapstr.M{ | |||
"instance": mapstr.M{"id": instanceIDDoc2}, | |||
}, | |||
"orchestrator": mapstr.M{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about this test here
based on documentation:
The third optional configuration setting is `overwrite`. When overwrite is true, add_cloud_metadata overwrites existing `cloud.*` fields (false by default).
now when the orchestrator
is not part of the cloud
object, this will not be overwritten.
Any thought?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for delaying to test this Tania. I think that this page strictly speaking does not refer to orchestrator at all.
I think we can leave it for now or of you want to add a note in the doc
The integrations tests run successfully and I also see correct values in my local debugging: (See above that in metadata both cloud and orchestrator return) ❯ aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 627286350134.dkr.ecr.us-east-1.amazonaws.com/gizas
Login Succeeded I change my tiltfile and I still see:
Will keep troubleshooting. Do I miss sth in the test steps @tetianakravchenko ? |
@gizas have you created the private repository - number 2 in https://docs.aws.amazon.com/AmazonECR/latest/userguide/docker-push-ecr-image.html |
@tetianakravchenko all tests are succeful on myside (I had to create the ecr 627286350134.dkr.ecr.us-east-1.amazonaws.com/gizas/metricbeat-run-image to be able to push the metricbeat-run-image inside it. It might be a little confusing sometimes. Just mentioning) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
💚 Build Succeeded
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…provider (#37651) * add_cloud_metadata: fix the orchestrator metadata for the aws cloud provider Signed-off-by: Tetiana Kravchenko <[email protected]> * rename the map name: cloud -> meta; fix tests Signed-off-by: Tetiana Kravchenko <[email protected]> --------- Signed-off-by: Tetiana Kravchenko <[email protected]> (cherry picked from commit 435e729)
…provider (#37651) * add_cloud_metadata: fix the orchestrator metadata for the aws cloud provider Signed-off-by: Tetiana Kravchenko <[email protected]> * rename the map name: cloud -> meta; fix tests Signed-off-by: Tetiana Kravchenko <[email protected]> --------- Signed-off-by: Tetiana Kravchenko <[email protected]> (cherry picked from commit 435e729)
…provider (#37651) (#37976) * add_cloud_metadata: fix the orchestrator metadata for the aws cloud provider Signed-off-by: Tetiana Kravchenko <[email protected]> * rename the map name: cloud -> meta; fix tests Signed-off-by: Tetiana Kravchenko <[email protected]> --------- Signed-off-by: Tetiana Kravchenko <[email protected]> (cherry picked from commit 435e729) Co-authored-by: Tetiana Kravchenko <[email protected]>
@Mergifyio backport 8.13 |
❌ No backport have been created
GitHub error: |
Will this also fix the Azure cloud provider issue as well ? Thanks in advance. |
not sure what issue do you mean. But this suppose to impact only the AWS provider. FYI: there is this PR open - #37685 to add AKS cluster name and id |
@tetianakravchenko. Thanks for your inputs. It think it seems like similar issue with meta data but this one is on AZURE provider. |
Proposed commit message
orchestrator
object must be placed on the top level, instead of under thecloud
cloud
object now, which is not correct becauseChecklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
cd dev-tools/kubernetes
and modify the Tiltfile:In order to make configuration above working:
3.1.
mode="run"
-dev-tools/kubernetes/metricbeat/manifest.run.yaml
:modify this:
to this:
Also because it will be running in cloud - change the ES credentials to use elastic cloud
3.2.
k8s_env="aws"
run
aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin XXXXX.dkr.ecr.us-east-2.amazonaws.com/metricbeat-debug
and edit
docker_registry
accordingly:3.3. for simplicity I use the cluster with 1 node -
k8s_cluster="single"
4. run
tilt up
Related issues
orchestrator.cluster
shouldn't be stored under thecloud.*
object #37583Use cases
Screenshots
Logs