IBM / cloud-pak-deployer

Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
130 stars 65 forks source link

GitHub rating issue when downloading clients #662

Closed ibmmarkham closed 2 months ago

ibmmarkham commented 3 months ago

Describe the bug I am reporting the installing issue on behalf of KC Morrison since seems he is not able to log an issue directly.

The problem is described as the following: In step name: Get current version number of clouctl

Which is in repo and file: https://github.com/IBM/cloud-pak-deployer/blob/main/automation-roles/99-generic/cloudctl/cloudctl-download/tasks/main.yml

The tags do not permit including an authentication token. Our automated process always clones the latest version of this repo and then tries to use it. Without a way to implement the token, we consistently get a rate-limit error on this step.

We have had to break our automation in order to work around this error. We pause between the cloning of the repo, and execution of the repo, to give ourselves a chance to CHANGE what the repo delivered.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

fketelaars commented 3 months ago

@ibmmarkham removed the e-mail address from the issue.

fketelaars commented 3 months ago

@ibmmarkham I need more details on the download error, can you please ping me on Slack?

fketelaars commented 3 months ago

Change to be implemented:

name: Get current version number of clouctl
    uri:
      url: https://api.github.com/repos/IBM/cloud-pak-cli/releases/latest
      return_content: yes
      method: GET
      status_code: 200
      headers:
        Authorization: "Bearer <github-ibm-pat secret>"
    register: _cloudctl_version