Project

General

Profile

Actions

Bug #21072

closed

API controllers newer than Apipie cache

Added by Martin Bacovsky over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1490070

Description of problem:

On Sat 6.2.11, i was getting the message: "API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache."

I did not realize that this was an error. (maybe the message should be red colored instead of orange.)

Also, i do not know if this breaks something or not.

I had to execute the "apipie:cache" rake task manually and it went away.
While it went away, i did not realize that is was something that i needed to act upon.

I do expect that to be performed by the "satellite-installer" program in te proper order and time.

Thanks in advance.

Version-Release number of selected component (if applicable):
6.2.11

How reproducible:
always

Steps to Reproduce:
1. Install Sat 6.2.x

2. Stop Sat6 services # katello-service stop

3. Upgrade Packages # yum update -y

4. Run Sat6 installer in upgrade mode # satellite-installer --scenario=satellite --upgrade
I was getting the message at this point.

5. Check Services # katello-service status # systemctl list-units --state failed

6. Reboot and check services again # systemctl reboot # katello-service status # systemctl list-units --state failed

Actual results:

I was getting this message (repeated several times) during the step #4 -> "API controllers newer than Apipie cache! Run apipie:cache rake task to regenerate cache."
I don't know if the messages does have any particual effect or not on the product.

Expected results:

As it is, i do expect that the "satellite-installer" in "upgrade mode" to actually "upgrade" itself and perform the necessary migrations.

If that is an actual failure of a step of "satellite-installer", then please adjust the message somewhat. It looks unimportant. (change the color to red?)

Also make sure that the exit code of "satellite-installer" is not 0 when the message is emitted. (i did not test it)

Additional info:

After executing:
  1. satellite-installer --scenario=satellite --upgrade
I executed (no errrors):
  1. foreman-rake apipie:cache:index --trace
And then inmediatelly i executed:
  1. satellite-installer --scenario=satellite --upgrade

The messages were not shown this time.

Actions #1

Updated by Martin Bacovsky over 6 years ago

  • Project changed from Foreman to Installer
  • Category set to Foreman modules
  • Status changed from New to Assigned
  • Assignee set to Martin Bacovsky
  • Target version set to 223
Actions #2

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/puppet-foreman/pull/592 added
Actions #3

Updated by Martin Bacovsky over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF