Project

Profile

Help

Issue #8001

closed

Warnings when requesting /pulp/api/v3/docs/

Added by gerrod over 3 years ago. Updated about 2 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
1. Low
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Ticket moved to GitHub: "pulp/pulpcore/1954":https://github.com/pulp/pulpcore/issues/1954


After setting up a fresh pulp3-source-fedora31 vagrant box I tested Pulp's functionality by doing http requests to /pulp/api/v3/status/ and /pulp/api/v3/docs/ and noticed some weird warning messages in pjournal.

For /pulp/api/v3/status/

Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #0: type hint for function "get_pulp_href" is unknown. consider using a type hint or @extend_schema_field. defaulting to string.
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #1: type hint for function "get_id" is unknown. consider using a type hint or @extend_schema_field. defaulting to string.
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #2: trying to re-register a schemas component with name PaginatedPermissionResponseList. this might lead to a incorrect schema. Look out for reused names
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Error #0: Unable to guess serializer for RepairView. This is graceful fallback handling for APIViews. Consider using GenericAPIView as view base class, if view is under your control. ignoring view for now.
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #3: trying to re-register a schemas component with name PaginatedRepositoryVersionResponseList. this might lead to a incorrect schema. Look out for reused names
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 74c3bfda95694f6cb9bd65f87d9fcdb8
Dec 15 22:24:25 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [74c3bfda95694f6cb9bd65f87d9fcdb8]: 127.0.0.1 - admin [15/Dec/2020:22:24:25 +0000] "GET /pulp/api/v3/status/ HTTP/1.0" 200 1218 "-" "HTTPie/2.3.0"

For /pulp/api/v3/docs/

Dec 15 22:22:21 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 27d2817b80814a6e8bbe15194ffbfbe0
Dec 15 22:22:21 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [27d2817b80814a6e8bbe15194ffbfbe0]: 127.0.0.1 - - [15/Dec/2020:22:22:21 +0000] "GET /pulp/api/v3/docs/ HTTP/1.1" 200 652 "-" "Mozilla/5.0 (X11; Fed
ora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
Dec 15 22:22:21 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: b64a4cc7f5d5472eb587c2b17890dcdb
Dec 15 22:22:22 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [b64a4cc7f5d5472eb587c2b17890dcdb]: 127.0.0.1 - - [15/Dec/2020:22:22:22 +0000] "GET /pulp/api/v3/docs/api.json HTTP/1.1" 200 525840 "http://localho
st:24817/pulp/api/v3/docs/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #0: type hint for function "get_pulp_href" is unknown. consider using a type hint or @extend_schema_field. defaulting to string.
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #1: type hint for function "get_id" is unknown. consider using a type hint or @extend_schema_field. defaulting to string.
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #2: trying to re-register a schemas component with name PaginatedPermissionResponseList. this might lead to a incorrect schema. Look out for reu
sed names
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Error #0: Unable to guess serializer for RepairView. This is graceful fallback handling for APIViews. Consider using GenericAPIView as view base class, 
if view is under your control. ignoring view for now.
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: Warning #3: trying to re-register a schemas component with name PaginatedRepositoryVersionResponseList. this might lead to a incorrect schema. Look out 
for reused names
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: f892c703764d45f9b29a50b5846b1072
Dec 15 22:23:10 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [f892c703764d45f9b29a50b5846b1072]: 127.0.0.1 - - [15/Dec/2020:22:23:10 +0000] "GET /pulp/api/v3/docs/ HTTP/1.1" 200 652 "-" "Mozilla/5.0 (X11; Fed
ora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"
Dec 15 22:23:11 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [None]: django_guid:INFO: Header `Correlation-ID` was not found in the incoming request. Generated new GUID: 1384361ebe364c74a3a423afd390525d
Dec 15 22:23:11 pulp3-source-fedora31.localhost.example.com gunicorn[36701]: pulp [1384361ebe364c74a3a423afd390525d]: 127.0.0.1 - - [15/Dec/2020:22:23:11 +0000] "GET /pulp/api/v3/docs/api.json HTTP/1.1" 200 525840 "http://localho
st:24817/pulp/api/v3/docs/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0"

After repeating the requests the warning messages no longer show up. The requests completed fine and the responses were correct. My Pulp install was using pulpcore 3.10.0.dev0, with Python plugin 3.0.0b13.dev0 and File plugin 1.5.0.dev0

Also available in: Atom PDF