-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: master
Are you sure you want to change the base?
Cce scenario #1
Conversation
|
||
if cluster: | ||
conn.cce.delete_cluster(cluster) | ||
time.sleep(100) |
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.
and same here
if cluster: | ||
conn.cce.delete_cluster(cluster) | ||
time.sleep(100) | ||
|
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.
please remove trailing lines
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 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) |
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.
wait_for_job here as well
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.
can't bind node.job_id because the session is lost after delete
playbooks/scenario18_create_cce.yaml
Outdated
set_fact: | ||
test_keypair_name: "{{ (prefix + 'keypair') }}" | ||
vpc_name: "{{ ( prefix + 'router' ) }}" | ||
nw_name: "{{ ( prefix + 'network' ) }}" |
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.
network_name
script: list_cce_clusters.py | ||
|
||
- name: Create CCE cluster | ||
script: "create_cce_cluster.py {{ cce_name }} {{ net_router['id'] }} {{ net_network['id'] }}" |
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.
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
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.
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.
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.
Review done, but clarification for delete_* files requested for proper job handling when resources are deleted.
CCE scenario18 finished.
open: wait_for_node function