Katello 2.2 Activation Keys won't save in host groups

I have created a host group called CentOS 6 Hosts.

I am trying to add an activation key. I have created an activation key
called "CentOS 6 Activation Key"

When I add it to the activation keys tab when editing the CentOS 6 Hosts
host group, and save, the message indicates all settings were saved
successfully.

The problem is that when I load the group back up for editing, the
activation keys field is empty.

The hosts are not getting provisioned as content hosts during the
provisioning phase either, so I know it's not just a display issue.

I thought there was an issue filed for this but I am struggling to find it.
If you can, let me know so I can prioritize it, otherwise please file one
and we will work on it.

Eric

··· On Fri, Apr 17, 2015 at 3:09 PM, Nathan Peters wrote:

I have created a host group called CentOS 6 Hosts.

I am trying to add an activation key. I have created an activation key
called “CentOS 6 Activation Key”

When I add it to the activation keys tab when editing the CentOS 6 Hosts
host group, and save, the message indicates all settings were saved
successfully.

The problem is that when I load the group back up for editing, the
activation keys field is empty.

The hosts are not getting provisioned as content hosts during the
provisioning phase either, so I know it’s not just a display issue.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

If there was it wasn't filed by me. I have created this bug report here :
http://projects.theforeman.org/issues/10184

··· On Friday, April 17, 2015 at 12:14:13 PM UTC-7, Eric Helms wrote: > > I thought there was an issue filed for this but I am struggling to find > it. If you can, let me know so I can prioritize it, otherwise please file > one and we will work on it. > > Eric > > On Fri, Apr 17, 2015 at 3:09 PM, Nathan Peters > wrote: > >> I have created a host group called CentOS 6 Hosts. >> >> I am trying to add an activation key. I have created an activation key >> called "CentOS 6 Activation Key" >> >> When I add it to the activation keys tab when editing the CentOS 6 Hosts >> host group, and save, the message indicates all settings were saved >> successfully. >> >> The problem is that when I load the group back up for editing, the >> activation keys field is empty. >> >> The hosts are not getting provisioned as content hosts during the >> provisioning phase either, so I know it's not just a display issue. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Foreman users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to foreman-user...@googlegroups.com . >> To post to this group, send email to forema...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/foreman-users. >> For more options, visit https://groups.google.com/d/optout. >> > >

try to put the key under the "Parameters Tab" as Workaround:
Scope= Global
Value=kt_activation_keys
Value=<key>

Brilliant. The workaround works great!

··· On Friday, April 17, 2015 at 3:02:38 PM UTC-7, ehar...@gmail.com wrote: > > try to put the key under the "Parameters Tab" as Workaround: > Scope= Global > Value=kt_activation_keys > Value= >

> If there was it wasn't filed by me. I have created this bug report here :
> Bug #10184: Katello 2.2 Activation Keys won't save in host groups - Katello - Foreman

It was merged yesterday for Foreman 1.8 -
http://projects.theforeman.org/issues/10153

··· On 04/17, Nathan Peters wrote: > > On Friday, April 17, 2015 at 12:14:13 PM UTC-7, Eric Helms wrote: > > > > I thought there was an issue filed for this but I am struggling to find > > it. If you can, let me know so I can prioritize it, otherwise please file > > one and we will work on it. > > > > Eric > > > > On Fri, Apr 17, 2015 at 3:09 PM, Nathan Peters > > wrote: > > > >> I have created a host group called CentOS 6 Hosts. > >> > >> I am trying to add an activation key. I have created an activation key > >> called "CentOS 6 Activation Key" > >> > >> When I add it to the activation keys tab when editing the CentOS 6 Hosts > >> host group, and save, the message indicates all settings were saved > >> successfully. > >> > >> The problem is that when I load the group back up for editing, the > >> activation keys field is empty. > >> > >> The hosts are not getting provisioned as content hosts during the > >> provisioning phase either, so I know it's not just a display issue. > >> > >> -- > >> You received this message because you are subscribed to the Google Groups > >> "Foreman users" group. > >> To unsubscribe from this group and stop receiving emails from it, send an > >> email to foreman-user...@googlegroups.com . > >> To post to this group, send email to forema...@googlegroups.com > >> . > >> Visit this group at http://groups.google.com/group/foreman-users. > >> For more options, visit https://groups.google.com/d/optout. > >> > > > > > > -- > You received this message because you are subscribed to the Google Groups "Foreman users" group. > To unsubscribe from this group and stop receiving emails from it, send an email to foreman-users+unsubscribe@googlegroups.com. > To post to this group, send email to foreman-users@googlegroups.com. > Visit this group at http://groups.google.com/group/foreman-users. > For more options, visit https://groups.google.com/d/optout.


Daniel Lobato Garcia

@eLobatoss
blog.daniellobato.me
daniellobato.me

GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato

You can also use hammer:

hammer hostgroup set-parameter --hostgroup HOSTGROUPNAME --name
"kt_activation_keys" --value "ACTIVATIONKEYNAME"

··· On Tuesday, April 21, 2015 at 4:46:36 AM UTC+12, Nathan Peters wrote: > > Brilliant. The workaround works great! > > On Friday, April 17, 2015 at 3:02:38 PM UTC-7, ehar...@gmail.com wrote: >> >> try to put the key under the "Parameters Tab" as Workaround: >> Scope= Global >> Value=kt_activation_keys >> Value= >> >