ansible / awx-operator

An Ansible AWX operator for Kubernetes built with Operator SDK and Ansible. 🤖
https://www.github.com/ansible/awx
Apache License 2.0
1.2k stars 605 forks source link

cannot download playbook from redhat insights #1689

Open bskou57 opened 6 months ago

bskou57 commented 6 months ago

Please confirm the following

Bug Summary

Hi

When creating a project to download playbooks (plan) from my redhat insights account I got below error message :

PLAY [Update source tree if necessary] ***** TASK [Ensure the project directory is present] * ok: [localhost] TASK [Fetch Insights Playbook(s)] ** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Expected /api/remediations/v1/remediations to return a status code of 200 but returned status code \"404\" instead with content \"b'<!doctype html>\n\n\n Example Domain\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38… PLAY RECAP ***** localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Thanks for your support

AWX Operator version

2.8.0

AWX version

23.5.0

Kubernetes platform

kubernetes

Kubernetes/Platform version

v1.27.7+k3s2

Modifications

no

Steps to reproduce

create credential for insights

create project to download playbooks from insights

Error occured

Expected results

project sync successfully

Actual results

PLAY [Update source tree if necessary] ***** TASK [Ensure the project directory is present] * ok: [localhost] TASK [Fetch Insights Playbook(s)] ** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Expected /api/remediations/v1/remediations to return a status code of 200 but returned status code \"404\" instead with content \"b'<!doctype html>\n\n\n Example Domain\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38… PLAY RECAP ***** localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

Additional information

No response

Operator Logs

No response

oegk12sh commented 6 months ago

same issue in #930. Not fixed yet...

bskou57 commented 6 months ago

Hi

Any plan to fix it ?

Do you have a work arround ?

kurokobo commented 6 months ago

https://github.com/ansible/awx-operator/issues/930#issuecomment-1903910659

bskou57 commented 6 months ago

Hi Kurokobo

Works fine

thanks for your help again