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

Workaround for old Hive with Openstack #1089

Merged
merged 2 commits into from
Jan 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ods_ci/tasks/Resources/Provisioning/Hive/provision.robot
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@
${provision_status} = Run Process oc -n ${pool_namespace} wait --for\=condition\=Provisioned\=True cd ${pool_namespace} --timeout\=5m shell=yes
${web_access} = Run Process oc -n ${pool_namespace} get cd ${pool_namespace} -o json | jq -r '.status.webConsoleURL' --exit-status shell=yes
${claim_status} = Run Process oc -n ${hive_namespace} wait --for\=condition\=ClusterRunning\=True clusterclaim ${claim_name} --timeout\=5m shell=yes
# Workaround for old Hive with Openstack - Cluster is displayed as Resuming even when it is Running
IF "${provider_type}" == "OSP"

Check notice

Code scanning / Robocop

Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion Note

Variable '${provider_type}' in 'IF' condition has unnecessary string conversion
${claim_status} = Run Process

Check warning

Code scanning / Robocop

Trailing whitespace at the end of line Warning

Trailing whitespace at the end of line
... oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json | jq '.status.conditions[] | select(.type\=\="ClusterRunning" and .reason\=\="Resuming")' --exit-status shell=yes

Check warning

Code scanning / Robocop

Line is too long ({{ line_length }}/{{ allowed_length }}) Warning

Line is too long (191/120)
END
IF ${provision_status.rc} != 0 or ${web_access.rc} != 0 or ${claim_status.rc} != 0
${provision_status} = Run Process oc -n ${pool_namespace} get cd ${pool_namespace} -o json shell=yes
${claim_status} = Run Process oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json shell=yes
Expand Down
Loading