Closed O1ahmad closed 2 years ago
Note: I am currently receiving the following error when attempting to upload collections into my existing namespace, 0x0I
:
$ ansible-galaxy collection publish 0x0I-crypto-0.1.0.tar.gz --api-key 52ce0a45f96de47adf283437cdc736917363f97f
Publishing collection artifact '/home/ahmad/lab/operator/ansible/O1labs/crypto/0x0I-crypto-0.1.0.tar.gz' to default https://galaxy.ansible.com/api/
ERROR! Error when publishing collection to default (https://galaxy.ansible.com/api/) (HTTP Code: 400, Message: Invalid namespace: '0x0I' Code: invalid)
$ ansible-galaxy collection publish 0x0i-crypto-0.1.0.tar.gz --api-key 52ce0a45f96de47adf283437cdc736917363f97f
Publishing collection artifact '/home/ahmad/lab/operator/ansible/O1labs/crypto/0x0i-crypto-0.1.0.tar.gz' to default https://galaxy.ansible.com/api/
ERROR! Error when publishing collection to default (https://galaxy.ansible.com/api/) (HTTP Code: 400, Message: Invalid namespace: '0x0i' Code: invalid)
Not really sure why publishing to the 0x0i
namespace is failing since it fits the namespace naming limitations (i.e. alphanumeric, all lowercase and contains no special characters) according to #2201. In any case, I'm hoping and believe that the requested namespace, 01
, does indeed fit the naming requirements but please advise if not.
@0x0I I would attempt upload again, as it appears there have been previous successful uploads to the 0x0I namespace with no issues. Do you know if those uploads were via CLI in the past?
Your namespace 01
is also valid according to namespace limitations: https://galaxy.ansible.com/docs/contributing/namespaces.html#namespace-limitations . However, I would suggest instead the name of o1_labs or 01_labs as the namespace for better identification in galaxy.
Hey @alisonlhart, thanks for following up - I was requesting 01 (zero-one) since something like O1 (capital 'oh'-one) and preferred doesn't fit the lower-case characters limitation.
On Tue, Nov 2, 2021 at 4:06 PM Alison Hart @.***> wrote:
@0x0I https://github.com/0x0I Just to confirm, you are requesting namespace 01, not namespace O1?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ansible/galaxy/issues/2815#issuecomment-958126936, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALYW2QKSMFR3PXS4DRSLKILUKBHFFANCNFSM5HBIHHGA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@0x0I I would attempt upload again, as it appears there have been previous successful uploads to the 0x0I namespace with no issues. Do you know if those uploads were via CLI in the past?
@alisonlhart Are you referring to collections uploads as well? I've had no issue uploading roles via both the CLI and webUI though haven't been able to upload collections with my current namespace (0x0i) using either.
Your namespace
01
is also valid according to namespace limitations: https://galaxy.ansible.com/docs/contributing/namespaces.html#namespace-limitations . However, I would suggest instead the name of o1_labs or 01_labs as the namespace for better identification in galaxy.
Great, got it..thanks. I kind of like the name "01" (zero one) and how succinct it is though I somewhat get how it could be a bit troublesome as an identifier in galaxy. With that in mind, I'm thinking proceeding with "0labs" (zero-labs - similar to my Dockerhub namespace for now would be great.
Request edit:
Namespace: 0labs
The 0labs ansible-galaxy namespace will host roles and collections developed for providing Ansible-based automated, IaC solutions to support O1 Lab's mission to serve as an open/decentralized infrastructure, operations and managed service platform which leverages the technical expertise and insights of worldwide communities dedicated to the broad landscape of opensource projects.
@0x0I I verified with other community contributors, and there are different restrictions on namespace names when it comes to roles and collections. Collections can only be uploaded to namespaces that are valid python identifiers. This adds the additional restriction of namespaces not starting with a numeric [0-9]. Roles do not have this restriction. This does not appear to be in Galaxy documentation at the moment and the community is looking to add it.
This would also apply to the new namespace request here. We can set up the namespace o1labs or olabs instead of 0labs.
Waiting to hear back on your preference before creating the namespace.
Hey @alisonlhart, ah thanks for looking into this and ok got it. Not a huge fan of any of the options atm tbh but will go with "olabs".
olabs namespace has been created.
Hey @alisonlhart, thanks for setting up the namespace! Just curious about the process to rename/modify a namespace. Based on further discussions with my team, o1labs
may make more sense and be easier to recognize considering the sort of "before and after" merged approach works a bit better with an actual 'O' or '0' than a 'o'. Major apologies for the inconvenience - the naming constraints have been a bit tougher to reason about and work around than originally thought.
Hey, I opened #2819 regarding the namespace change.
Namespace Request
Namespace: 01
Description
The 01 ansible-galaxy namespace will host roles and collections developed for providing Ansible-based automated, IaC solutions to support O1 Lab's mission to serve as an open/decentralized infrastructure, operations and managed service platform which leverages the technical expertise and insights of worldwide communities dedicated to the broad landscape of opensource projects.
GitHub Org Link
Admins