Skip to content
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

SFS Turbo apimon #101

Merged
merged 4 commits into from
Nov 19, 2024
Merged

SFS Turbo apimon #101

merged 4 commits into from
Nov 19, 2024

Conversation

jmiskani
Copy link
Contributor

@jmiskani jmiskani commented Oct 1, 2024

Apimon playbook for SFS Turbo


- name: Set Availability Zone
set_fact:
az: "{{ azs.availability_zones.0.name }}"
Copy link
Member

Choose a reason for hiding this comment

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

do you want to explicitly test this in single zone or rather use random functionality and store custom metric to have metrics from all AZs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to randomize the AZ selection

- name: Get VPC Info
opentelekomcloud.cloud.vpc_info:
name_or_id: "{{ test_router_name }}"
register: vpc_info
Copy link
Member

Choose a reason for hiding this comment

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

why not registering during the Create VPC task?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

- name: Get SecurityGroup info
openstack.cloud.security_group_info:
name: "{{ test_security_group_name }}"
register: security
Copy link
Member

Choose a reason for hiding this comment

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

why not registering during Create Security group task?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

according the documentation:
https://galaxy.ansible.com/ui/repo/published/opentelekomcloud/cloud/content/module/security_group/
there are no return values and to get the sec group ID it needs to be obtained from opentelekomcloud.cloud.security_group_info

Copy link
Member

Choose a reason for hiding this comment

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

really?

TASK [Create SecurityGroup] ***************************************************************************************************************************************************************************************

    "security_group": {
        "created_at": "2024-11-19T10:48:44",
        "description": "Test Security group created by APImon",
        "id": "14da2ddb-8b07-4ac3-8af5-2f1c96fcac7b",
        "name": "scenario19-ee51602a499c0ad6d023aec261edb2f8-sg",
        "project_id": "****",
        "revision_number": null,
        "security_group_rules": [
            {
                "created_at": "2024-11-19T10:48:44",
                "description": null,
                "direction": "egress",
                "ethertype": "IPv4",
                "id": "519a7054-34e8-4b91-925e-e79dcdb95cbd",
                "port_range_max": null,
                "port_range_min": null,
                "project_id": "***",
                "protocol": null,
                "remote_address_group_id": null,
                "remote_group_id": null,
                "remote_ip_prefix": null,
                "security_group_id": "14da2ddb-8b07-4ac3-8af5-2f1c96fcac7b",
                "tenant_id": "****",
                "updated_at": "2024-11-19T10:48:44"
            },

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated


- name: Pause for 60 seconds
pause:
seconds: 60
Copy link
Member

Choose a reason for hiding this comment

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

please create issue on opentelekomcloud ansible-collection repo to introduce waiting for deletion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

- name: Get SecurityGroup info
openstack.cloud.security_group_info:
name: "{{ test_security_group_name }}"
register: security
Copy link
Member

Choose a reason for hiding this comment

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

really?

TASK [Create SecurityGroup] ***************************************************************************************************************************************************************************************

    "security_group": {
        "created_at": "2024-11-19T10:48:44",
        "description": "Test Security group created by APImon",
        "id": "14da2ddb-8b07-4ac3-8af5-2f1c96fcac7b",
        "name": "scenario19-ee51602a499c0ad6d023aec261edb2f8-sg",
        "project_id": "****",
        "revision_number": null,
        "security_group_rules": [
            {
                "created_at": "2024-11-19T10:48:44",
                "description": null,
                "direction": "egress",
                "ethertype": "IPv4",
                "id": "519a7054-34e8-4b91-925e-e79dcdb95cbd",
                "port_range_max": null,
                "port_range_min": null,
                "project_id": "***",
                "protocol": null,
                "remote_address_group_id": null,
                "remote_group_id": null,
                "remote_ip_prefix": null,
                "security_group_id": "14da2ddb-8b07-4ac3-8af5-2f1c96fcac7b",
                "tenant_id": "****",
                "updated_at": "2024-11-19T10:48:44"
            },

Copy link

otc-zuul bot commented Nov 19, 2024

@otc-zuul otc-zuul bot merged commit 9bdc9d9 into opentelekomcloud-infra:master Nov 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants