-
Notifications
You must be signed in to change notification settings - Fork 2.1k
CORS-2557 [ibmcloud] networkResourceGroupName in install-config.yaml #36512
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
Conversation
|
@MayXuQQ: the
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse |
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.12-installer-rehearse-ibmcloud |
|
/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.12-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 |
|
/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 |
|
/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.12-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 |
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.12-installer-rehearse-ibmcloud |
|
/retest |
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.13-installer-rehearse-ibmcloud |
|
/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.12-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 |
80e447b to
98045a3
Compare
|
/retest |
1 similar comment
|
/retest |
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.13-installer-rehearse-ibmcloud |
|
@cjschaef Could you help look at the changes, thanks a lot. |
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.13-installer-rehearse-ibmcloud |
|
@jianlinliu thanks |
| delete_vpc "${vpc_name}" | ||
|
|
||
| echo "DEBUG" "Removing the resource reclamations ..." | ||
| set +o errexit | ||
| ${IBMCLOUD_CLI} resource reclamations | awk '(NR>4) {print $1}' | xargs -n1 ibmcloud resource reclamation-delete -f |
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.
This commands will be always executed, even the resources are not created by this install workflow? I think this command is out of scope.
b4b9300 to
b19b56c
Compare
|
step installer-rehearse-ibmcloud-ipi-deprovision-deprovision failed is caused by OCPBUGS-7511 |
b19b56c to
1e3e94e
Compare
| echo "DEBUG" "Removing the resource reclamations ..." | ||
| hasReclamations=$("${IBMCLOUD_CLI}" resource reclamations | awk '(NR==4) {print $1}') | ||
| if [ "${hasReclamations}" != "No" ]; then | ||
| ${IBMCLOUD_CLI} resource reclamations | awk '(NR>4) {print $1}' | xargs -n1 ibmcloud resource reclamation-delete -f |
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.
My point is not deleting the reclamations resources irrelevant with the installed cluster, or even we can keep the issue remaining, but run the commands locally.
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.
the reclamations will block cleanup the resource group, then the step will failed.
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.
Let me confirm, will the command will delete all the reclamations, even not be created from this cluster install, right?
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.
will delete the reclamations under the resource group (the vpc created under this group)
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 that, I think you do not need the line to check:
hasReclamations=$("${IBMCLOUD_CLI}" resource reclamations | awk '(NR==4) {print $1}')
And I think the removal of reclamations should happen prior to delete_vpc.
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.
Let us finish the discussion of adding how many reclamation-delete commands here, I am okay with your present code. Now the only comment is #36512 (comment), we do not need the checking line of hasReclamations=$("${IBMCLOUD_CLI}" resource reclamations | awk '(NR==4) {print $1}') .
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.
when no reclamations, the reclamation-delete will caused error.
$ ic resource reclamations | awk '(NR==4) {print $1}'
No
$ ic resource reclamations | awk '(NR==4) {print $1}'| xargs -n1 ibmcloud resource reclamation-delete -f
Submitting request to delete resource reclamation No under account fdc2e14cf8bc4d53a67f972dc2e2c861 as ServiceId-dff277a9-b608-410a-ad24-c544e59e3778...
FAILED
Resource reclamation 'No' was not found.
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 you show me an example output when reclamations are existing?
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.
ic resource reclamations | awk '(NR==4) {print $1}'| xargs -n1 ibmcloud resource reclamation-delete -f
Do you mean only the resources shown on 4th line will be deleted?
If there are multiple lines for reclamations resources, how to deal with?
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.
To easy reading for the code, I think it should be:
echo "DEBUG" "Removing the resource reclamations ..."
if [[ $(ibmcloud resource reclamations -q) == "No reclamation found" ]]; then
echo "No reclamation found"
else
${IBMCLOUD_CLI} resource reclamations -q | awk '{print $1}' | xargs -n1 ibmcloud resource reclamation-delete -f
fi
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.13-installer-rehearse-ibmcloud |
|
/auto-cc |
|
/pj-rehearse periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 |
9261f75 to
2c839fe
Compare
|
/pj-rehearse periodic-ci-openshift-verification-tests-master-installer-rehearse-4.13-installer-rehearse-ibmcloud |
|
@jianlinliu how about merging the PR, then check periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7 whether has regression in e2e test? |
| if [[ $("${IBMCLOUD_CLI}" resource reclamations -q) == "No reclamation found" ]]; then | ||
| echo "No reclamation found" | ||
| else | ||
| ${IBMCLOUD_CLI} resource reclamations -q | awk '(NR>1) {print $1}' | xargs -n1 ibmcloud resource reclamation-delete -f |
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.
When already added -q option, still need (NR>1) in awk ?
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 you show me an example output when reclamations are existing?
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.
reclamation-delete succeed
the first row is "ID" ( ${IBMCLOUD_CLI} resource reclamations|awk '(NR>3) {print $1}') so got is
Submitting request to delete resource reclamation ID under account fdc2e14cf8bc4d53a67f972dc2e2c861 as ServiceId-dff277a9-b608-410a-ad24-c544e59e3778...
FAILED
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jianlinliu, MayXuQQ The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/pj-rehearse ack |
CORS-2557 CI Integration: [ibmcloud] Add support to validate and utilize a networkResourceGroupName install-config.yaml option and configure that value in Infrastructure's PlatformStatus for IBM Cloud
Prow CI ibmcloud-ipi-private all failed after [openshift/installer#6613: CORS-2386: IBMCloud: Add networkResourceGroupName](openshift/installer#6613)
https://qe-private-deck-ci.apps.ci.l2s4.p1.openshiftapps.com/view/gs/qe-private-deck/logs/periodic-ci-openshift-openshift-tests-private-release-4.13-amd64-nightly-ibmcloud-ipi-private-fips-p2-f7/1626441733703208960