Nathan,
Glad to hear that got rid of the first error. The test files are
just for development purposes, so afaik it would be normal not to see them,
and they wouldn’t require any changes from you.
Do you still see the original dynflow task where you tried to
delete the activation key? If so, your best course of action would be to
try to resume that task.
-John
On 02/19/2016 04:44 PM, Nathan Peters wrote:
I followed the link to that fix from github and updated the file on
line 22
/opt/theforeman/tfm/root/usr/share/gems/gems/katello-2.4.0/app/models/katello/activation_key.rb
I noticed that in that git commit, there were changes to a 2nd
file, activation_keys_controller_test.rb. I noticed that file (along with
the test directory referenced) does not exist on my system.
After making the updates to the file that does exist on my system,
I still cannot get rid of the phantom key, but this time the error message
is different.
Listing keys still shows the error about the phantom key, but the
delete command now gives a different error “key not found” as opposed to
the old message about inverse key pools.
So the change worked… kind of. It got rid of one error, but I am
still blocked on this new error.
[root@katello1 /]# hammer activation-key list --organization “My
Org”
[Foreman] Password for admin:
Katello::Resources::Candlepin::ActivationKey: 404 Resource Not
Found {“displayMessage”:“ActivationKey with id
8a3280ee51ac0a000151aeafb68201a6 could not be
found.”,“requestUuid”:“afd0477b-8e78-446f-8c98-631121508836”} (GET
/candlepin/activation_keys/8a3280ee51ac0a000151aeafb68201a6)
[root@katello1 /]# hammer activation-key delete --organization “My
Org” --id 8a3280ee51ac0a000151aeafb68201a6
[Foreman] Password for admin:
Could not delete the activation key:
Couldn’t find Katello::ActivationKey with
id=8a3280ee51ac0a000151aeafb68201a6
[root@katello /]# hammer activation-key list --organization “My
Org”
[Foreman] Password for admin:
Katello::Resources::Candlepin::ActivationKey: 404 Resource Not
Found {“displayMessage”:“ActivationKey with id
8a3280ee51ac0a000151aeafb68201a6 could not be
found.”,“requestUuid”:“ba00aedf-32bf-4109-b382-3b874ce36b8a”} (GET
/candlepin/activation_keys/8a3280ee51ac0a000151aeafb68201a6)
On Friday, February 19, 2016 at 11:16:19 AM UTC-8, John Mitsch >>>>>>>> wrote:
Nathan,
That is a known bug that is fixed upstream and will be released in
2.4.1. Its a small change to fix it, are you able to make this change[1]
here in app/models/katello/activation_key.rb? :inverse_of =>
:activation_keys shoud be :inverse_of => :activation_key Hope that helps,
let me know if you have any questions or are unable to make the change in
the code.
-
https://github.com/Katello/katello/pull/5689/files#diff-cd7b4776d8397db5195dd814e05744bbR22
-John
On 02/18/2016 08:32 PM, Nathan Peters wrote:
The specific error when I tried to delete the key was :
Could not find the inverse association for pool_activation_keys (:activation_keys in Katello::PoolActivationKey)
On Thursday, February 18, 2016 at 5:31:23 PM UTC-8, Nathan Peters >>>>>>>>> wrote:
On Katello 2.4 I was trying to delete an activation key that had
no clients attached to it and wasn’t in use anymore.
The delete failed and I could not resume the task. The only
option to get it to ‘finish’ was going into the dynflow console and
skipping the ‘destroy’ step.
Now the task is 100% complete in state ‘stopped’ error
When I go to the activation keys menu and try to load the page it
never loads now. It just sits there with the spinning wheel that says
’Loading…’
I have restarted the service already.
Please help. I don’t know how to get this page to load now.
–
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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
–
John Mitsch
Red Hat Engineering860-967-7285
irc: jomitsch
–
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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
–
John Mitsch
Red Hat Engineering860-967-7285
irc: jomitsch
–
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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.