FYI

We are currently blocked on this issue.
Please get back to us ASAP.

Thanks,
Priyanka

From: Sundararajan, Maanya
Sent: Wednesday, August 18, 2021 2:42 PM
To: pulp-list@redhat.com
Cc: Kandhamaran, Kalpana <kalpana.kandhama...@hpe.com>; Gomez, Eslyn 
<eslyn.go...@hpe.com>; Kumar, Vinod <vinod.kum...@hpe.com>; J, Priyanka 
<priyan...@hpe.com>
Subject: Pulp task - Ensure pulp services are up and healthy - is failing with 
fqdn

Hello,

While installing pulp, the task - Ensure pulp services are up and healthy - is 
failing.

TASK [pulp_health_check : Ensure Pulp is up and healthy] 
****************************************************************************************************
FAILED - RETRYING: Ensure Pulp is up and healthy (75 retries left).
FAILED - RETRYING: Ensure Pulp is up and healthy (74 retries left).
FAILED - RETRYING: Ensure Pulp is up and healthy (73 retries left).
.
FAILED - RETRYING: Ensure Pulp is up and healthy (1 retries left).
fatal: [localhost]: FAILED! => {"access_control_expose_headers": 
"Correlation-ID", "attempts": 75, "changed": false, "connection": "close", 
"content": "<h1>Bad Request (400)</h1>", "content_type": "text/html", 
"correlation_id": "7b3c498739e34c5691d66b03179b7045", "date": "Tue, 03 Aug 2021 
17:27:18 GMT", "elapsed": 0, "msg": "Status code was 400 and not [200]: HTTP 
Error 400: Bad Request", "redirected": false, "server": "gunicorn", "status": 
400, "transfer_encoding": "chunked", "url": 
http://glcg_new_seed_node.glhc-hpe.local:24817/pulp/api/v3/status/}
PLAY RECAP 
**************************************************************************************************************************************************
localhost : ok=558 changed=175 unreachable=0 failed=1 skipped=330 rescued=0 
ignored=4

When executing the curl command manually with the fqdn, the same error is seen :
[glcgadmin@glcg_new_seed_node ~]$ curl -u user:pwd 
http://glcg_new_seed_node.glhc-hpe.local:24817/pulp/api/v3/status/ -v
*   Trying 172.20.31.13...
* TCP_NODELAY set
* Connected to glcg_new_seed_node.glhc-hpe.local (172.20.31.13) port 24817 (#0)
* Server auth using Basic with user 'user'
> GET /pulp/api/v3/status/ HTTP/1.1
> Host: glcg_new_seed_node.glhc-hpe.local:24817
> Authorization: Basic Z2xjZ2FkbWluOlBhc3N3b3JkITIzNA==
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Server: gunicorn
< Date: Wed, 18 Aug 2021 05:29:33 GMT
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html
< Correlation-ID: 80d37944b3a8485b83d9feb0f15a44a8
< Access-Control-Expose-Headers: Correlation-ID
<
* Closing connection 0
<h1>Bad Request (400)</h1>

However when the same curl is executed with the ip, it is successful:
[glcgadmin@glcg_new_seed_node ~]$ curl -u user:pwd 
http://172.20.31.13:24817/pulp/api/v3/status/ -v
*   Trying 172.20.31.13...
* TCP_NODELAY set
* Connected to 172.20.31.13 (172.20.31.13) port 24817 (#0)
* Server auth using Basic with user 'user'
> GET /pulp/api/v3/status/ HTTP/1.1
> Host: 172.20.31.13:24817
> Authorization: Basic Z2xjZ2FkbWluOlBhc3N3b3JkITIzNA==
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: gunicorn
< Date: Wed, 18 Aug 2021 05:31:29 GMT
< Connection: close
< Content-Type: application/json
< Vary: Accept
< Allow: GET, HEAD, OPTIONS
< X-Frame-Options: SAMEORIGIN
< Content-Length: 1381
< Correlation-ID: 272e485fbed2406093092134ee4d2073
< Access-Control-Expose-Headers: Correlation-ID
<
{"versions":[{"component":"core","version":"3.14.2"},{"component":"rpm","version":"3.13.3"}],"online_workers":[{"pulp_href":"/pulp/api/v3/workers/61e0b2ca-f32a-436d-a6f9-08554f89a318/","pulp_created":"2021-08-16T07:21:43.952715Z","name":58179@glcg_new_seed_node.glhc-hpe.local<mailto:58179@glcg_new_seed_node.glhc-hpe.local>,"last_heartbeat":"2021-08-18T05:31:22.261608Z"},{"pulp_href":"/pulp/api/v3/workers/f2fbcd40-6f53-4c42-af4e-35cd9a68de0a/","pulp_created":"2021-08-16T07:21:45.241265Z","name":58234@glcg_new_seed_node.glhc-hpe.local<mailto:58234@glcg_new_seed_node.glhc-hpe.local>,"last_heartbeat":"2021-08-18T05:31:22.786850Z"}],"online_content_apps":[{"name":"58108@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:25.448823Z"},{"name":"58126@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:25.449972Z"},{"name":"58100@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:25.451205Z"},{"name":"58107@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:27.969973Z"},{"name":"58104@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:28.057197Z"},{"name":"58127@glcg_new_seed_node","last_h*
 Closing connection 0
eartbeat":"2021-08-18T05:31:28.057376Z"},{"name":"58105@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:28.057776Z"},{"name":"58101@glcg_new_seed_node","last_heartbeat":"2021-08-18T05:31:28.080173Z"}],"database_connection":{"connected":true},"redis_connection":{"connected":true},"storage":{"total":99864944640,"used":16138080256,"free":78626750464}}


I noticed the following error in  pulpcore-api.service
pulpcore-api.service - Pulp WSGI Server
   Loaded: loaded (/usr/lib/systemd/system/pulpcore-api.service; enabled; 
vendor preset: disabled)
   Active: active (running) since Mon 2021-08-16 07:21:33 UTC; 1 day 22h ago
Main PID: 58027 (gunicorn)
    Tasks: 2 (limit: 205324)
   Memory: 100.7M
      CPU: 48.906s
   CGroup: /system.slice/pulpcore-api.service
           ├─58027 /usr/local/lib/pulp/bin/python3 
/usr/local/lib/pulp/bin/gunicorn pulpcore.app.wsgi:application --bind 
glcg_new_seed_node.glhc-hpe.local:24817 --workers 1 --timeout 90 -->
           └─58042 /usr/local/lib/pulp/bin/python3 
/usr/local/lib/pulp/bin/gunicorn pulpcore.app.wsgi:application --bind 
glcg_new_seed_node.glhc-hpe.local:24817 --workers 1 --timeout 90 -->

Aug 16 07:42:13 glcg_new_seed_node gunicorn[58027]: pulp 
[e2c2a3c5ca874fbe9bea89a1371e3023]: django.request:WARNING: Bad Request: 
/pulp/api/v3/status/
Aug 16 07:42:13 glcg_new_seed_node gunicorn[58027]: pulp 
[e2c2a3c5ca874fbe9bea89a1371e3023]: 172.20.31.13 - glcgadmin 
[16/Aug/2021:07:42:13 +0000] "GET /pulp/api/v3/status/ HTTP/1.1" 400 26 "-" 
"curl/7.61.1"
Aug 16 07:47:24 glcg_new_seed_node gunicorn[58027]: pulp 
[23ae9e46282e4f7083f0a577194122e5]: 172.20.31.13 - glcgadmin 
[16/Aug/2021:07:47:24 +0000] "GET /pulp/api/v3/status/ HTTP/1.1" 200 1381 "-" 
"curl/7.61.1"
Aug 16 08:02:06 glcg_new_seed_node gunicorn[58027]: pulp 
[e9d199c333a54c118f1ad66777b7aa7d]: django.security.DisallowedHost:ERROR: 
Invalid HTTP_HOST header: 'glcg_new_seed_node.glhc-hpe.local:24817'. The domain 
name provided is not valid according to RFC 1034/1035.

I found the following link that gives a fix but it looks like a code change has 
to be made from your side - 
https://notabela.hashnode.dev/how-to-solve-the-domain-name-provided-is-not-valid-according-to-rfc-10341035-in-django-during-development
Please let me know if there is a fix or workaround available for this.

Regards,
Maanya S

_______________________________________________
Pulp-list mailing list
Pulp-list@redhat.com
https://listman.redhat.com/mailman/listinfo/pulp-list

Reply via email to