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

Cce scenario #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Cce scenario #1

wants to merge 7 commits into from

Conversation

tischrei
Copy link
Member

CCE scenario18 finished.
open: wait_for_node function

playbooks/files/create_cce_cluster.py Outdated Show resolved Hide resolved
playbooks/files/create_cce_cluster_node.py Outdated Show resolved Hide resolved

if cluster:
conn.cce.delete_cluster(cluster)
time.sleep(100)
Copy link
Member

Choose a reason for hiding this comment

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

and same here

if cluster:
conn.cce.delete_cluster(cluster)
time.sleep(100)

Copy link
Member

Choose a reason for hiding this comment

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

please remove trailing lines

Copy link
Member Author

Choose a reason for hiding this comment

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

I will do a complete flake8 check. This was not understood when I created this test case. Now it will be done.


if cluster and node:
node = conn.cce.delete_cluster_node(cluster, node)
time.sleep(90)
Copy link
Member

Choose a reason for hiding this comment

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

wait_for_job here as well

Copy link
Member Author

Choose a reason for hiding this comment

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

can't bind node.job_id because the session is lost after delete

set_fact:
test_keypair_name: "{{ (prefix + 'keypair') }}"
vpc_name: "{{ ( prefix + 'router' ) }}"
nw_name: "{{ ( prefix + 'network' ) }}"
Copy link
Member

Choose a reason for hiding this comment

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

network_name

playbooks/scenario18_create_cce.yaml Outdated Show resolved Hide resolved
playbooks/scenario18_create_cce.yaml Show resolved Hide resolved
playbooks/scenario18_create_cce.yaml Outdated Show resolved Hide resolved
script: list_cce_clusters.py

- name: Create CCE cluster
script: "create_cce_cluster.py {{ cce_name }} {{ net_router['id'] }} {{ net_network['id'] }}"
Copy link
Member

Choose a reason for hiding this comment

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

if you update script to also do router_id = conn.network.find_router(sys.argv[1]) and same for network you can simply pass names

Copy link
Member Author

Choose a reason for hiding this comment

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

Not possible, because network names are not unique in Open Telekom Cloud. This could result in more than one network ID which will raise an error.

@tischrei tischrei added the enhancement New feature or request label Dec 3, 2019
Copy link
Member Author

@tischrei tischrei left a comment

Choose a reason for hiding this comment

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

Review done, but clarification for delete_* files requested for proper job handling when resources are deleted.

@tischrei tischrei added the help wanted Extra attention is needed label Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants