Project

General

Profile

Actions

Bug #27270

closed

Unable to remove Ansible Roles from host group in Foreman UI.

Added by Ondřej Pražák almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Description of problem:
Unable to remove Ansible Roles from host group in Foreman UI.

Steps to Reproduce:
1. Import ansible roles. (Configure > Roles > import)
2. Go to, Configure > Host Group > Create Host Group
3. Go to Ansible Roles tab.
4. Assign Ansible roles to hostgroup. Click submit.
5. Edit the host group created earlier.
6. Remove Ansible roles from host group. Click submit.
7. Again click on host group and go to Ansible roles tab.

Actual results:
- Ansible roles are listed in "Assigned Ansible Roles" even after removing them.

Expected results:
- Ansible roles shouldn't be listed in "Assigned Ansible Roles" section after removing them.

Additional info:

- In /var/log/foreman/production.log I can see the assignment/removal of
Ansible role is happening, it seems like it's only issue with UI.

- When Ansible role is assigned to hostgroup.

2019-07-10T06:07:27 [I|app|53bc2696] Parameters: {"utf8"=>"✓", "authenticity_token"=>"s+i5uPZl5pds4z0OIF1hG+n3hUPzUvblQjXEG7nITi+HkJLVo9z/hdSnPojyVbLPCH2cV45V3nU89ygYxp/KxA==", "hostgroup"=>{"parent_id"=>"", "name"=>"admin", "description"=>"", "lifecycle_environment_id"=>"", "content_view_id"=>"", "content_source_id"=>"", "environment_id"=>"", "compute_resource_id"=>"", "compute_profile_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "openscap_proxy_id"=>"", "ansible_role_ids"=>["1"], "domain_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "root_pass"=>"[FILTERED]", "location_ids"=>["", "2"], "organization_ids"=>["", "1"], "id"=>""}, "kt_activation_keys"=>""}

- When Ansible role is removed from hostgroup.

2019-07-10T06:07:48 [I|app|7bba0966] Parameters: {"utf8"=>"✓", "authenticity_token"=>"tRwN11CH3D4vbPBd680ivZuTJqHVE6ruJzf/TxLUdD2BZCa6BT7FLJco89s5xfFpehk/tagUgn5Z9RNMbYPw1g==", "hostgroup"=>{"parent_id"=>"", "name"=>"admin", "description"=>"", "lifecycle_environment_id"=>"", "content_view_id"=>"", "content_source_id"=>"", "environment_id"=>"", "compute_resource_id"=>"", "compute_profile_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "openscap_proxy_id"=>"", "domain_id"=>"", "realm_id"=>"", "architecture_id"=>"", "operatingsystem_id"=>"", "medium_id"=>"", "ptable_id"=>"", "location_ids"=>["", "2"], "organization_ids"=>["", "1"], "id"=>"4"}, "kt_activation_keys"=>"", "id"=>"4-admin"}

Actions #1

Updated by Ondřej Pražák almost 5 years ago

  • Subject changed from Unable to remove Ansible Roles from host group in Foreman UI. to Unable to remove Ansible Roles from host group in Foreman UI.
  • Assignee set to Ondřej Pražák
Actions #2

Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/281 added
Actions #3

Updated by Marek Hulán almost 5 years ago

  • Fixed in Releases foreman-ansible 3.0.3 added
Actions #4

Updated by Marek Hulán almost 5 years ago

  • Fixed in Releases deleted (foreman-ansible 3.0.3)
Actions #5

Updated by Marek Hulán almost 5 years ago

  • Fixed in Releases foreman-ansible 3.0.4 added
Actions #6

Updated by Anonymous almost 5 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF