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

Error 500 from Gitlab on Group creation #5806

Closed
1 task done
Allure996 opened this issue Jan 9, 2023 · 2 comments · Fixed by #6712
Closed
1 task done

Error 500 from Gitlab on Group creation #5806

Allure996 opened this issue Jan 9, 2023 · 2 comments · Fixed by #6712
Labels
bug This issue/PR relates to a bug gitlab module module plugins plugin (any type) source_control

Comments

@Allure996
Copy link

Summary

When I tried to use the community.general.gitlab_group module to create a submodule in Gitlab, I had a 500 as a response.
Looking in Gitlab logs, it seemed that the fields

  • auto_devops_enabled
  • project_creation_level
  • subgroup_creation_level

were required and Gitlab didn't accept a null value for these fields.
After I added them in the Ansible tasks the response was a 201, as expected.

Issue Type

Bug Report

Component Name

community.general.gitlab_group module

Ansible Version

ansible [core 2.12.3]

Community.general Version

$ ansible-galaxy collection list community.general

Configuration

$ ansible-config dump --only-changed

OS / Environment

No response

Steps to Reproduce

Run the module without the fields I reported

Expected Results

I expected a 201 even without the fields I reported. I had a 500 instead

Actual Results

"msg": "Failed to create group: 500: 500 Internal Server Error "

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@Allure996
Copy link
Author

I also add that I tried to curl directly Gitlab API without those fields, and the curl was successful

@ansibullbot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug gitlab module module plugins plugin (any type) source_control
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants