Katello 2.2 -> 2.3 `yum update` cleanup katello-certs-tools causes missing attribute : remote_id?

During the cleanup of the katello-certs-tools package during yum update,
one of the processes breaks puppet:

The end result is :

/etc/puppet/node.rb myhost.my.org

Error retrieving node myhost.my.org: Net::HTTPInternalServerError
Check Foreman's /var/log/foreman/production.log for more information.

As far as I can tell, the break happens during or between this:

foreman 12262 12261 0 21:40 ? 00:00:00 /bin/bash
/usr/bin/ruby193-rake db:migrate
foreman 12280 12262 0 21:40 ? 00:00:00 scl enable ruby193 v8314
rake db:migrate
foreman 12287 12281 98 21:40 ? 00:00:03
/opt/rh/ruby193/root/usr/bin/ruby /opt/rh/ruby193/root/usr/bin/rake
db:migrate

and this :

foreman 12659 12658 0 21:40 ? 00:00:00 /bin/bash
/usr/bin/ruby193-rake db:seed
foreman 12677 12659 0 21:40 ? 00:00:00 scl enable ruby193 v8314
rake db:seed
foreman 12684 12678 96 21:40 ? 00:00:16
/opt/rh/ruby193/root/usr/bin/ruby /opt/rh/ruby193/root/usr/bin/rake db:seed

The production.log :

2015-08-25 21:50:33 [I] Processing by HostsController#externalNodes as YML
2015-08-25 21:50:33 [I] Parameters: {"name"=>"myhost.my.org"}
2015-08-25 21:50:33 [W] Operation FAILED: missing attribute: remote_id
2015-08-25 21:50:33 [I] Rendered common/500.html.erb within
layouts/application (1.3ms)
2015-08-25 21:50:33 [I] Rendered layouts/base.html.erb (1.1ms)
2015-08-25 21:50:33 [I] Completed 500 Internal Server Error in 10ms (Views:
3.6ms | ActiveRecord: 0.8ms)

>
> During the cleanup of the katello-certs-tools package during yum update,
> one of the processes breaks puppet:
>
> The end result is :
> # /etc/puppet/node.rb myhost.my.org
> Error retrieving node myhost.my.org: Net::HTTPInternalServerError
> Check Foreman's /var/log/foreman/production.log for more information.
>
> As far as I can tell, the break happens during or between this:
>
> foreman 12262 12261 0 21:40 ? 00:00:00 /bin/bash
> /usr/bin/ruby193-rake db:migrate
> foreman 12280 12262 0 21:40 ? 00:00:00 scl enable ruby193 v8314
> rake db:migrate
> foreman 12287 12281 98 21:40 ? 00:00:03
> /opt/rh/ruby193/root/usr/bin/ruby /opt/rh/ruby193/root/usr/bin/rake
> db:migrate
>
> and this :
>
> foreman 12659 12658 0 21:40 ? 00:00:00 /bin/bash
> /usr/bin/ruby193-rake db:seed
> foreman 12677 12659 0 21:40 ? 00:00:00 scl enable ruby193 v8314
> rake db:seed
> foreman 12684 12678 96 21:40 ? 00:00:16
> /opt/rh/ruby193/root/usr/bin/ruby /opt/rh/ruby193/root/usr/bin/rake db:seed
>
>
> The production.log :
>
> 2015-08-25 21:50:33 [I] Processing by HostsController#externalNodes as YML
> 2015-08-25 21:50:33 [I] Parameters: {"name"=>"myhost.my.org"}
> 2015-08-25 21:50:33 [W] Operation FAILED: missing attribute: remote_id
> 2015-08-25 21:50:33 [I] Rendered common/500.html.erb within
> layouts/application (1.3ms)
> 2015-08-25 21:50:33 [I] Rendered layouts/base.html.erb (1.1ms)
> 2015-08-25 21:50:33 [I] Completed 500 Internal Server Error in 10ms (Views:
> 3.6ms | ActiveRecord: 0.8ms)

This is usually something like foreman-tasks wasn't restarted. The
cycle of forcing katello-installer --upgrade over and over again
without addressing whatever the root cause of the failure probably will
cause odd behavior.

You might want to try katello-service restart

··· On Tue, Aug 25, 2015 at 07:54:22PM -0700, Eric du Toit wrote:


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.


Best Regards,

Stephen Benjamin
Red Hat Engineering