Project

General

Profile

Actions

Bug #27221

closed

Cannot override activation key repository-sets status using hammer

Added by Matthew Smith almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

When I try to override any activation key's repository set status to enable or disable using hammer cli there is no change even though there is a message to suggest the update was successful.

Using Katello 3.12 on CentOS 7.6

[root@katello ~]# hammer activation-key product-content --name test --organization-id 1
---|--------------------------------|--------------------------------------------------|------------------|---------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
---|--------------------------------|--------------------------------------------------|------------------|---------
2 | CentOS 7.6.1810 Extras | MNSMITHUK_CentOS_CentOS_7_6_1810_Extras | yes |
1 | CentOS 7.6.1810 OS | MNSMITHUK_CentOS_CentOS_7_6_1810_OS | yes |
3 | CentOS 7.6.1810 Updates | MNSMITHUK_CentOS_CentOS_7_6_1810_Updates | yes |
4 | EPEL 7 | MNSMITHUK_EPEL_EPEL_7 | yes |
8 | Foreman 1.22 Client EL7 | MNSMITHUK_Foreman_Foreman_1_22_Client_EL7 | yes |
7 | Foreman 1.22 EL7 | MNSMITHUK_Foreman_Foreman_1_22_EL7 | yes |
9 | Foreman 1.22 Plugins EL7 | MNSMITHUK_Foreman_Foreman_1_22_Plugins_EL7 | yes |
5 | Puppet 5 EL7 | MNSMITHUK_Puppet_Puppet_5_EL7 | yes |
6 | Puppet 5 EL8 | MNSMITHUK_Puppet_Puppet_5_EL8 | yes |
10 | Rails SCL for Foreman 1.22 EL7 | MNSMITHUK_Foreman_Rails_SCL_for_Foreman_1_22_EL7 | yes |
---|--------------------------------|--------------------------------------------------|------------------|---------
[root@katello ~]# hammer activation-key content-override --name test --content-label "EPEL_7" --value 0 --organization-id 1
Updated content override.
[root@katello ~]# hammer activation-key product-content --name test --organization-id 1
---|--------------------------------|--------------------------------------------------|------------------|---------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
---|--------------------------------|--------------------------------------------------|------------------|---------
2 | CentOS 7.6.1810 Extras | MNSMITHUK_CentOS_CentOS_7_6_1810_Extras | yes |
1 | CentOS 7.6.1810 OS | MNSMITHUK_CentOS_CentOS_7_6_1810_OS | yes |
3 | CentOS 7.6.1810 Updates | MNSMITHUK_CentOS_CentOS_7_6_1810_Updates | yes |
4 | EPEL 7 | MNSMITHUK_EPEL_EPEL_7 | yes |
8 | Foreman 1.22 Client EL7 | MNSMITHUK_Foreman_Foreman_1_22_Client_EL7 | yes |
7 | Foreman 1.22 EL7 | MNSMITHUK_Foreman_Foreman_1_22_EL7 | yes |
9 | Foreman 1.22 Plugins EL7 | MNSMITHUK_Foreman_Foreman_1_22_Plugins_EL7 | yes |
5 | Puppet 5 EL7 | MNSMITHUK_Puppet_Puppet_5_EL7 | yes |
6 | Puppet 5 EL8 | MNSMITHUK_Puppet_Puppet_5_EL8 | yes |
10 | Rails SCL for Foreman 1.22 EL7 | MNSMITHUK_Foreman_Rails_SCL_for_Foreman_1_22_EL7 | yes |
---|--------------------------------|--------------------------------------------------|------------------|---------
[root@katello ~]# hammer activation-key content-override --name test --content-label "EPEL_7" --value 1 --organization-id 1
Updated content override.
[root@katello ~]# hammer activation-key product-content --name test --organization-id 1
---|--------------------------------|--------------------------------------------------|------------------|---------
ID | NAME | LABEL | DEFAULT ENABLED? | OVERRIDE
---|--------------------------------|--------------------------------------------------|------------------|---------
2 | CentOS 7.6.1810 Extras | MNSMITHUK_CentOS_CentOS_7_6_1810_Extras | yes |
1 | CentOS 7.6.1810 OS | MNSMITHUK_CentOS_CentOS_7_6_1810_OS | yes |
3 | CentOS 7.6.1810 Updates | MNSMITHUK_CentOS_CentOS_7_6_1810_Updates | yes |
4 | EPEL 7 | MNSMITHUK_EPEL_EPEL_7 | yes |
8 | Foreman 1.22 Client EL7 | MNSMITHUK_Foreman_Foreman_1_22_Client_EL7 | yes |
7 | Foreman 1.22 EL7 | MNSMITHUK_Foreman_Foreman_1_22_EL7 | yes |
9 | Foreman 1.22 Plugins EL7 | MNSMITHUK_Foreman_Foreman_1_22_Plugins_EL7 | yes |
5 | Puppet 5 EL7 | MNSMITHUK_Puppet_Puppet_5_EL7 | yes |
6 | Puppet 5 EL8 | MNSMITHUK_Puppet_Puppet_5_EL8 | yes |
10 | Rails SCL for Foreman 1.22 EL7 | MNSMITHUK_Foreman_Rails_SCL_for_Foreman_1_22_EL7 | yes |
---|--------------------------------|--------------------------------------------------|------------------|---------

Extract from production.log

2019-07-03T13:16:02 [I|app|014c85d5] Started PUT "/katello/api/activation_keys/4/content_override" for 192.168.77.5 at 2019-07-03 13:16:02 +0100
2019-07-03T13:16:02 [I|app|014c85d5] Processing by Katello::Api::V2::ActivationKeysController#content_override as JSON
2019-07-03T13:16:02 [I|app|014c85d5] Parameters: {"content_overrides"=>[{"content_label"=>"EPEL_7", "value"=>"[FILTERED]", "name"=>"enabled"}], "api_version"=>"v2", "id"=>"4", "activation_key"=>{}}

.
.
.

2019-07-03T13:16:02 [I|app|014c85d5] Started PUT "/katello/api/activation_keys/4/content_override" for 192.168.77.5 at 2019-07-03 13:16:02 +0100
2019-07-03T13:16:02 [I|app|014c85d5] Processing by Katello::Api::V2::ActivationKeysController#content_override as JSON
2019-07-03T13:16:24 [I|app|66ce16a3] Processing by Katello::Api::V2::ActivationKeysController#content_override as JSON
2019-07-03T13:16:24 [I|app|66ce16a3] Parameters: {"content_overrides"=>[{"content_label"=>"EPEL_7", "value"=>"[FILTERED]", "name"=>"enabled"}], "api_version"=>"v2", "id"=>"4", "activation_key"=>{}}

Actions

Also available in: Atom PDF