Bug 1814989 - [wsu] API rate limit exceeded error in TASK [Get latest 0.8.x cni plugins version]
Summary: [wsu] API rate limit exceeded error in TASK [Get latest 0.8.x cni plugins ver...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Windows Containers
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.6.0
Assignee: Aravindh Puthiyaparambil
QA Contact: gaoshang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-19 09:28 UTC by gaoshang
Modified: 2020-10-27 15:56 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-10-27 15:56:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift windows-machine-config-bootstrapper pull 205 0 None closed Bug 1814989: [doc] Update rate limit section 2020-08-13 15:34:40 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 15:56:56 UTC

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


Note You need to log in before you can comment on or make changes to this bug.