Bug 1814989

Summary: [wsu] API rate limit exceeded error in TASK [Get latest 0.8.x cni plugins version]
Product: OpenShift Container Platform Reporter: gaoshang <sgao>
Component: Windows ContainersAssignee: Aravindh Puthiyaparambil <aravindh>
Status: CLOSED ERRATA QA Contact: gaoshang <sgao>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, gmarkley, rgudimet
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 15:56:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description gaoshang 2020-03-19 09:28:29 UTC
Description of problem:
In PR https://github.com/openshift/windows-machine-config-bootstrapper/pull/163, we placed TASK [Get latest 0.8.x cni plugins version] ahead of TASK [Get release], when API rate limit exceeded, got error in TASK [Get latest 0.8.x cni plugins version]. We should either relocate code block or change docs like:
Dev Preview docs
README.md https://github.com/openshift/windows-machine-config-bootstrapper/tree/master/tools/ansible#api-rate-limit-exceeded-error-when-running-wsu

# ansible-playbook -i hosts ~/go/src/windows-machine-config-bootstrapper/tools/ansible/tasks/wsu/main.yaml -v
...
TASK [Get latest 0.8.x cni plugins version] ******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "RELEASES=\"$(curl -s https://api.github.com/repos/containernetworking/plugins/releases)\"\necho $RELEASES | jq '.[]' | jq '.tag_name' |\nsort -r |  awk '/\"v0.8.*\"/ && !/v0.8.*-rc*/ {print substr($1,2,length($1)-2); exit}'\n", "delta": "0:00:00.193586", "end": "2020-03-19 04:44:34.426664", "failed_when_result": true, "rc": 0, "start": "2020-03-19 04:44:34.233078", "stderr": "jq: error (at <stdin>:1): Cannot index string with string \"tag_name\"\njq: error (at <stdin>:2): Cannot index string with string \"tag_name\"", "stderr_lines": ["jq: error (at <stdin>:1): Cannot index string with string \"tag_name\"", "jq: error (at <stdin>:2): Cannot index string with string \"tag_name\""], "stdout": "", "stdout_lines": []}

Version-Release number of selected component (if applicable):
OCP 4.4.0-0.nightly-2020-03-16-034024
windows-machine-config-bootstrapper commit 69b264d8437746f07c1234daeba8f20dc40710bd

How reproducible:
When API rate limit exceeded

Steps to Reproduce:
1. Install cluster with OVNKubernetes and setup Windows instance
2. Run wsu ansilbe playbook to bootstrap Windows node

Actual results:
Got error in TASK [Get latest 0.8.x cni plugins version]

Expected results:
We should either relocate code block or change docs

Additional info:

Comment 3 Aravindh Puthiyaparambil 2020-05-18 15:32:14 UTC
This is a documentation bug.

Comment 6 gaoshang 2020-06-05 02:11:34 UTC
QE testing passed by checking docs, thanks for fix this.

Comment 8 errata-xmlrpc 2020-10-27 15:56:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (OpenShift Container Platform 4.6 GA Images), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4196