Open kayahk opened 3 years ago
Files identified in the description:
If these files are inaccurate, please update the component name
section of the description or use the !component
bot command.
cc @Lunik @Shaps @dj-wasabi @markuman @marwatk @metanovii @scodeman @waheedi @zanssa click here for bot help
"https://gitlab.local.fqdn"
is the right value.
The error message is different, when calling "https://gitlab.local.fqdn", though:
The returning error message you've pasted 404: 404 Project Not Found
indicates two possible errors.
Hi @markuman,
thank you for your suggestions. The project does exist, as I tried to make this clear by showing the cURL access result. The API token has the scope api
and should therefore have all required privileges.
Could you please clarify the exact requirement for the parameter project
of this module? I find the documentation a bit unclear on this point.
project (string / required): The path and name of the project
However, when looking at the Gitlab API objects, I can only find these somewhat matching keys:
"id": 281
"name": "ansible-role-name",
"name_with_namespace": "TOP_GROUP/SUB_GROUP/Ansible/ansible-role-name",
"path": "ansible-role-name",
"path_with_namespace": "TOP_GROUP/SUB_GROUP/Ansible/ansible-role-name",
"namespace": {
"id": 156,
"name": "Ansible",
"path": "ansible",
"kind": "group",
...
Appreciate your comment on which of the API object keys would be the corresponding match for the Ansible parameter?
@markuman can I provide anything else to help you help me with this issue? I would be happy to add more details if required.
cc @sh0shin click here for bot help
Hello same error but to create a project My token user is ADMIN and i'm able to create project with bash script
"msg": "Failed to create project: group pac doesn't exists"
cc @lgatellier @nejch click here for bot help
Can one of you reproduce this on gitlab.com?
cc @suukit click here for bot help
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
@kayahk @kinola can you reproduce the bug on gitlab.com ?
needs_info
@kayahk This issue is waiting for your response. Please respond or the issue will be closed.
@lgatellier apologies for the delay, unfortunately I am currently out of any environment with access to Gitlab to reproduce the issue. Sorry, I am unable to help at the moment, but I will ask around my network if someone else can try to reproduce it.
Summary
I am trying to transfer a string as a variable into a Gitlab project by using the gitlab_project_variable module. However, any combination of the api_url is leading to an error, mostly to 404 not found. I can curl the Gitlab API manually and acces the project and it's variables, the same URL does not work, regardless of the URI path versions I have tried.
So this is the task:
As I have mentioned, I also tried to use
"https://gitlab.local.fqdn"
or"https://gitlab.local.fqdn/api"
or"https://gitlab.local.fqdn/api/v4/projects"
etc. as theapi_url
to no avail.Usually, I am getting this error (see below in Actual Results for verbose output):
fatal: [node_name_XY]: FAILED! => {"changed": false, "msg": "Failed to connect to GitLab server: 404: 404 Not Found"}
The error message is different, when calling
"https://gitlab.local.fqdn"
, though:The same URL is working fine when using it with the Terraform provider or a simple cURL request like this:
The behaviour is the same, whether run in the Gitlab-CI or on my local system.
Issue Type
Bug Report
Component Name
gitlab_project_variable
Ansible Version
Configuration
OS / Environment
CentOS, macOS 11.4, Ubuntu 20.04
Steps to Reproduce
Expected Results
The Gitlab project variable gets successfully created.
Actual Results
Code of Conduct