Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

Detect aws and gcp clouds in the agent #466

Merged

Conversation

arbulu89
Copy link
Contributor

Add AWS and GCP clouds autodetection in the agent. This data will be used in the server side and sent in telemetry.

The code is based on crmsh, as we have been refining there (together with the cloud providers themselves) the cloud auto-detection: https://github.com/ClusterLabs/crmsh/blob/master/crmsh/utils.py#L2055

This is how it looks like;
AWS:
image
image

GCP:
image
image

Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super cool!

The bare metal variant is missing, yet this is already a great improvement and I think we can add that later.
Shall we track it so we do not forget?

@arbulu89
Copy link
Contributor Author

Super cool!

The bare metal variant is missing, yet this is already a great improvement and I think we can add that later. Shall we track it so we do not forget?

The baremetal thing is a shadowy thing. In our case, baremetal is everything that it is not in the cloud (yes, it is that generic). I don't know what kind of accuracy we need here, but from the beginning, the idea of this field was to detect the cloud itself, and everything that is not in our interest gets out.
So, the question actually is more to the stakeholders. What they expect to find here if the machines is not in aws/gcp/azure?

Copy link
Contributor

@dottorblaster dottorblaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the bare metal thing can wait. @nelsonkopliku shall we open an issue for that with a specific question tag?

@nelsonkopliku
Copy link
Member

Super cool!
The bare metal variant is missing, yet this is already a great improvement and I think we can add that later. Shall we track it so we do not forget?

The baremetal thing is a shadowy thing. In our case, baremetal is everything that it is not in the cloud (yes, it is that generic). I don't know what kind of accuracy we need here, but from the beginning, the idea of this field was to detect the cloud itself, and everything that is not in our interest gets out. So, the question actually is more to the stakeholders. What they expect to find here if the machines is not in aws/gcp/azure?

@arbulu89 I see, let's then discuss with stakeholders

LGTM, the bare metal thing can wait. @nelsonkopliku shall we open an issue for that with a specific question tag?

@dottorblaster that can wait indeed, and we already have it tracked in JIRA, so we should be good.

@nelsonkopliku nelsonkopliku merged commit e036bf6 into trento-project:main Nov 17, 2021
@lee-martin
Copy link

Super cool!
The bare metal variant is missing, yet this is already a great improvement and I think we can add that later. Shall we track it so we do not forget?

The baremetal thing is a shadowy thing. In our case, baremetal is everything that it is not in the cloud (yes, it is that generic). I don't know what kind of accuracy we need here, but from the beginning, the idea of this field was to detect the cloud itself, and everything that is not in our interest gets out. So, the question actually is more to the stakeholders. What they expect to find here if the machines is not in aws/gcp/azure?

@arbulu89 I see, let's then discuss with stakeholders

What about rewording "cloud provider" into "provider"? To be is would still sound correct to say aws/gcp/azure are "providers" (without the cloud word) and anything that is now known for now could be labelled "unknown".

Then in the future we could progressively add in new providers like "vmware", "kvm", "dell server", "lenovo server". Not forgetting other cloud providers over time as well.

Adding new providers can wait, but I guess we should fix the name of the field soon though.

@lee-martin
Copy link

@arbulu89 I validated the idea to rewording from "cloud provider" into "provider" as above, which they would like to have to make the field more flexible than cloud only. Can you please update at your convenience. (Sorry, forgot to mention you explicitly in my previous response).

@arbulu89
Copy link
Contributor Author

@arbulu89 I validated the idea to rewording from "cloud provider" into "provider" as above, which they would like to have to make the field more flexible than cloud only. Can you please update at your convenience. (Sorry, forgot to mention you explicitly in my previous response).

Of course we can!
Could you open a ticket with the request?
Thanks

@stefanotorresi
Copy link
Member

issue collected in trento-project/telemetry#14

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Improvement of existing features
Development

Successfully merging this pull request may close these issues.

None yet

6 participants