"azurerm is not a recognized provider" for Gitlab Package Regsitry
Summary
We have enabled "Gitlab Package Registry" on our Omnibus installation. When attemping to upload to the PyPI package repository we get an error:
{"message":"azurerm is not a recognized provider"}
Steps to reproduce
- Enabled the "Gitlab Package Registry" as described here for an omnibus installtion
- Settings are the following:
gitlab_rails['packages_enabled'] = true
gitlab_rails['packages_object_store_enabled'] = true
gitlab_rails['packages_object_store_remote_directory'] = "packages" # The bucket name.
gitlab_rails['packages_object_store_direct_upload'] = true # Use Object Storage directly for uploads instead of background uploads if enabled (Default: false).
gitlab_rails['packages_object_store_background_upload'] = false # Temporary option to limit automatic upload (Default: true).
gitlab_rails['packages_object_store_proxy_download'] = false # Passthrough all downloads via GitLab instead of using Redirects to Object Storage.
gitlab_rails['packages_object_store_connection'] = {
'provider' => 'AzureRM',
'azure_storage_account_name' => '<redacted>',
'azure_storage_access_key' => '<redacted>',
}
- Set up your local machine for uploading to the PyPI registry manually.
- Upload package via twine.
- Note the "400-bad request" and the error mentioned above
Example Project
What is the current bug behavior?
When attempting to upload package, following error is returned.
{"message":"azurerm is not a recognized provider"}
What is the expected correct behavior?
AzureRM should be a valid provider, as described explicitly here.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.6.6p146
Gem Version: 2.7.10
Bundler Version:1.17.3
Rake Version: 12.3.3
Redis Version: 5.0.9
Git Version: 2.28.0
Sidekiq Version:5.2.9
Go Version: unknown
GitLab information
Version: 13.4.4
Revision: e7d9e8b4224
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 11.9
URL: <redacted>
HTTP Clone URL: <redacted>
SSH Clone URL: <redacted>
Using LDAP: no
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 13.7.0
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true)(we will only investigate if the tests are passing)