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 create authentications via REST for ansible tower 3.6 that only supports API version v2. #236

Open
valaparthvi opened this issue Sep 17, 2020 · 2 comments

Comments

@valaparthvi
Copy link

valaparthvi commented Sep 17, 2020

Description:
Creating authentications via REST fails for ansible tower 3.6 that only supports API version v2.

POST /api/authentications
{
	"action": "create",
	"resources": [
		{
			"description": "TestDescription",
			"name": "test_credentials_36",
			"related": {},
			"user": 1,
			"userid": "foo",
			"password": "foo",
			"host": "baz_36",
			"type": "ManageIQ::Providers::AnsibleTower::AutomationManager::VmwareCredential",
			"manager_resource": {
				"href": "https://192.168.122.33/api/providers/6"
			}
		}
	]
}
Response:
{
  "results": [
    {
      "success": true,
      "message": "Creating Authentication",
      "task_id": "35",
      "task_href": "https://192.168.122.33/api/tasks/35"
    }
  ]
}

GET /api/tasks/35
Reponse : 
{
  "href": "https://192.168.122.33/api/tasks/35",
  "id": "35",
  "name": "Creating Ansible Tower Credential (name=test_credentials_36)",
  "state": "Finished",
  "status": "Error",
  "message": "{\"credential_type\":[\"This field is required.\"]}",
  "userid": "system",
  ...
  ...
  ...
  "actions": [
    ...
    ...
  ]
}
  1. Is there an existing issue already reported or any related bugzilla?
    https://bugzilla.redhat.com/show_bug.cgi?id=1794047

  2. Severity: High

  3. Version: 5.11.8.0
    Note: I believe this issue has existed since the beginning. We started testing with ansible tower 3.6 recently and discovered this bug and for other tower providers that we have, we use v1.

@gtanzillo gtanzillo transferred this issue from ManageIQ/manageiq-api Sep 17, 2020
@agrare
Copy link
Member

agrare commented Sep 17, 2020

Thanks for the bug report @valaparthvi! What version of MIQ are you using?

@valaparthvi
Copy link
Author

Hi @agrare I updated the description, sorry I forgot to mention that earlier.

Version: 5.11.8.0
Note: I believe this issue has existed since the beginning. We started testing with ansible tower 3.6 recently and discovered this bug and for other tower providers that we have, we use v1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants