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

Unable to import roles to pokerops collection #3288

Open
wpninfra opened this issue Nov 17, 2023 · 1 comment
Open

Unable to import roles to pokerops collection #3288

wpninfra opened this issue Nov 17, 2023 · 1 comment

Comments

@wpninfra
Copy link

SUMMARY

Hello team. We are unable to import roles to the newly created pokerops namespace. We were trying to determine whether the namespace exists and we found that using api v3, the namespace exists, using v1 does not. We are unsure if that could be related. Would you be able to check it, please?

Here is the output for api v3:

$ curl -s https://galaxy.ansible.com/api/v3/namespaces/\?name\=pokerops | jq
{
  "meta": {
    "count": 1
  },
  "links": {
    "first": "/api/v3/namespaces/?limit=10&name=pokerops&offset=0",
    "previous": null,
    "next": null,
    "last": "/api/v3/namespaces/?limit=10&name=pokerops&offset=0"
  },
  "data": [
    {
      "pulp_href": "/api/pulp/api/v3/pulp_ansible/namespaces/21163/",
      "id": 1111,
      "name": "pokerops",
      "company": "",
      "email": "",
      "avatar_url": "",
      "description": "",
      "groups": [],
      "users": [
        {
          "id": 11111,
          "name": "xxxx",
          "object_roles": [
            "galaxy.collection_namespace_owner"
          ]
        },
        {
          "id": 121232,
          "name": "xxxx",
          "object_roles": [
            "galaxy.collection_namespace_owner"
          ]
        },
        {
          "id": 34234,
          "name": "xxxx",
          "object_roles": [
            "galaxy.collection_namespace_owner"
          ]
        }
      ],
      "related_fields": {},
      "metadata_sha256": "4aacdfccbee733259228af2ad450e2c1916a762dade3830f86609c3ec87acc27",
      "avatar_sha256": null
    }
  ]
}

Whereas using api v1:

$ curl -s https://galaxy.ansible.com/api/v1/namespaces/\?name\=pokerops | jq
{
  "count": 0,
  "next": null,
  "previous": null,
  "results": []
}

Best regards.

STEPS TO REPRODUCE

Here is the output when trying to import a role:

$ ansible-galaxy role import --token $TOKEN pokerops <role-name>
ERROR! None (HTTP Code: 500, Message: Internal Server Error)
EXPECTED RESULTS

Role is imported

ACTUAL RESULTS

API is returning 500

@carlosgo13
Copy link

Hi.

Any update on this?

Best regards.

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

2 participants