Actions
Bug #34161
closedKatello 4.2 to 4.3 upgrade doesn't trigger apipie:cache:index, breaking some new hammer commands
Status:
Closed
Priority:
Normal
Assignee:
Category:
Foreman modules
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:
Description
In Katello 4.2 hammer gained new parameters to "capsule content synchronize": --content-view and --repository.
However, for that to work, hammer needs a fresh apidoc, and it seems that wasn't generated.
From the upgrade log:
# grep -i 'Foreman::Rake.apipie:cache' /var/log/foreman-installer/katello.log 2021-12-16 10:45:57 [DEBUG ] [configure] Adding relationship from Foreman::Rake[db:seed] to Foreman::Rake[apipie:cache:index] with 'notify' 2021-12-16 10:45:57 [DEBUG ] [configure] Adding relationship from Package[tfm-rubygem-foreman-tasks] to Foreman::Rake[apipie:cache:index] with 'notify' 2021-12-16 10:45:57 [DEBUG ] [configure] Adding relationship from Package[tfm-rubygem-katello] to Foreman::Rake[apipie:cache:index] with 'notify' 2021-12-16 10:45:57 [DEBUG ] [configure] Adding relationship from Package[tfm-rubygem-foreman_puppet] to Foreman::Rake[apipie:cache:index] with 'notify' 2021-12-16 10:45:57 [DEBUG ] [configure] Adding relationship from Package[tfm-rubygem-foreman_remote_execution] to Foreman::Rake[apipie:cache:index] with 'notify' 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:seed]/notify: notify to Foreman::Rake[apipie:cache:index] 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Foreman::Plugin::Tasks/Foreman::Plugin[tasks]/Package[tfm-rubygem-foreman-tasks]/notify: notify to Foreman::Rake[apipie:cache:index] 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Katello::Application/Foreman::Plugin[katello]/Package[tfm-rubygem-katello]/notify: notify to Foreman::Rake[apipie:cache:index] 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Foreman::Plugin::Puppet/Foreman::Plugin[puppet]/Package[tfm-rubygem-foreman_puppet]/notify: notify to Foreman::Rake[apipie:cache:index] 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Foreman::Plugin::Remote_execution/Foreman::Plugin[remote_execution]/Package[tfm-rubygem-foreman_remote_execution]/notify: notify to Foreman::Rake[apipie:cache:index] 2021-12-16 10:45:58 [DEBUG ] [configure] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: Adding autorequire relationship with User[foreman] 2021-12-16 10:46:44 [DEBUG ] [configure] Foreman::Rake[apipie:cache:index]: Starting to evaluate the resource (1274 of 1894) 2021-12-16 10:46:44 [DEBUG ] [configure] Foreman::Rake[apipie:cache:index]: Evaluated in 0.00 seconds 2021-12-16 10:46:44 [DEBUG ] [configure] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: Starting to evaluate the resource (1284 of 1894) 2021-12-16 10:46:44 [DEBUG ] [configure] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: '/usr/sbin/foreman-rake apipie:cache:index' won't be executed because of failed check 'refreshonly' 2021-12-16 10:46:44 [DEBUG ] [configure] /Stage[main]/Foreman/Foreman::Rake[apipie:cache:index]/Exec[foreman-rake-apipie:cache:index]: Evaluated in 0.00 seconds 2021-12-16 10:46:44 [DEBUG ] [configure] Foreman::Rake[apipie:cache:index]: Starting to evaluate the resource (1285 of 1894) 2021-12-16 10:46:44 [DEBUG ] [configure] Foreman::Rake[apipie:cache:index]: Evaluated in 0.00 seconds
I would expect to see the following line:
[DEBUG ] [configure] Executing with uid=foreman: '/usr/sbin/foreman-rake apipie:cache:index'Environment:
- CentOS 7
- puppet-agent-6.25.1-1.el7.x86_64
- Install Katello 4.2
yum localinstall https://yum.theforeman.org/releases/3.1/el7/x86_64/foreman-release.rpm https://yum.theforeman.org/katello/4.3/katello/el7/x86_64/katello-repos-latest.rpm
foreman-maintain service stop
yum upgrade
foreman-installer
hammer --reload-cache capsule content synchronize --help
→ no--content-view
foreman-rake apipie:cache:index
hammer --reload-cache capsule content synchronize --help
→--content-view
now present
Files
Actions