Skip to content
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

Insights project synchronisation fails - false URL is used #930

Open
oegk12sh opened this issue May 20, 2022 · 5 comments
Open

Insights project synchronisation fails - false URL is used #930

oegk12sh opened this issue May 20, 2022 · 5 comments

Comments

@oegk12sh
Copy link

ISSUE TYPE
  • Bug Report
SUMMARY

Incorrect URL is used for RedHat Insights project synchronisation

ENVIRONMENT
  • AWX version: 21.0.0
  • Operator version: 0.21.0
  • Kubernetes version: v1.22.6+k3s1
  • AWX install method: k3s kubernetes
STEPS TO REPRODUCE

Add Insights Credentials.
Add RedHat Insights Project with these linked Credentials.
Click Sync Project to sync the playbooks.
Look on the Output of the failed Job with the type "Source Control Update"

EXPECTED RESULTS

Playbooks from my RedHat Insights Account are synced and available to use.

ACTUAL RESULTS

Failed Job. AWX is not able to sync the Project.
In the error message of the failed job you can see, that the URL is false. The return is a Exampe Domain (www.example.org or www.example.com) message. I am not able to change this domain anywhere.

ADDITIONAL INFORMATION

/usr/local/lib/python3.8/site-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated
"class": algorithms.Blowfish,
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 <title>Example Domain</title>\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

AWX-OPERATOR LOGS
@bskou57
Copy link

bskou57 commented Jan 22, 2024

Hi

I have same issue

How did you fix your redhat insights project sync failed ?

thanks for your support

@bskou57
Copy link

bskou57 commented Jan 22, 2024

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 <title>Example Domain</title>\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

@oegk12sh
Copy link
Author

Hi

I have same issue

How did you fix your redhat insights project sync failed ?

thanks for your support

This was never fixed...

@kurokobo
Copy link
Contributor

@oegk12sh @bskou57
Hi, there is no UI for this settings in AWX but you can modify the base URL for Insights by INSIGHTS_URL_BASE.
Try appending following extra_settings to your AWX CR. Note the value is double-quoted and is also single-quoted.

---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
  name: awx
spec:
  ...
  extra_settings:
    - setting: INSIGHTS_URL_BASE
      value: '"https://cloud.redhat.com"'

@kurokobo
Copy link
Contributor

Existing issue on AWX side: ansible/awx#4447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants