Project

Profile

Help

Issue #8253

closed

Can't push images to registry

Added by newswangerd about 3 years ago. Updated about 3 years ago.

Status:
CLOSED - DUPLICATE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

I'm running into this error whenever I try to push an image to the registry:

api_1               |   File "/venv/lib64/python3.6/site-packages/pulpcore/app/models/access_policy.py", line 72, in add_perms
api_1               |     self._handle_permissions_assignments(access_policy)
api_1               |   File "/venv/lib64/python3.6/site-packages/pulpcore/app/models/access_policy.py", line 77, in _handle_permissions_assignments
api_1               |     callable(permission_assignment["permissions"], permission_assignment["parameters"])
api_1               |   File "/src/pulp_container/pulp_container/app/models.py", line 234, in create_namespace_group
api_1               |     current_user.groups.add(group)
api_1               | AttributeError: 'NoneType' object has no attribute 'groups'

This seems to be happening because django_current_user is returning None for my user here: https://github.com/pulp/pulp_container/blob/master/pulp_container/app/models.py#L224.

I don't know if this is an issue with pulp-container or whether something in galaxy_ng is causing this to break.

Version matrix:

    "versions": [
        {
            "component": "pulpcore",
            "version": "3.10.0"
        },
        {
            "component": "pulp_ansible",
            "version": "0.7.0"
        },
        {
            "component": "galaxy_ng",
            "version": "4.3.0.dev0"
        },
        {
            "component": "pulp_container",
            "version": "2.3.0"
        }
    ],
Actions #1

Updated by newswangerd about 3 years ago

I fixed this by setting up the token server:https://docs.pulpproject.org/pulp_container/workflows/authentication.html

This is a duplicate of https://pulp.plan.io/issues/8074 and can be closed

Actions #2

Updated by ipanova@redhat.com about 3 years ago

  • Status changed from NEW to CLOSED - DUPLICATE

Also available in: Atom PDF