After a successful test of some patches from @iNecas to get bats tests green, I looked through production.log for anything flagged as [E]
. The following is a list of those errors given they be symptomatic of a problem not flagged by our tests. Wondering if these are valid errors to file as Redmines and prioritize.
2018-03-09T21:59:03 [background] [E] PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "katello_host_installed_packages_h_id_ip_id"
| DETAIL: Key (host_id, installed_package_id)=(1, 1) already exists.
| : INSERT INTO katello_host_installed_packages (installed_package_id,
2018-03-09T21:59:03 [background] [E] undefined method `each' for true:TrueClass (NoMethodError)
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:108:in `external_task='
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/action/polling.rb:83:in `initiate_external_action'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/action/polling.rb:18:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/action/cancellable.rb:13:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/pulp/abstract_async_task.rb:45:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/action.rb:531:in `block (3 levels) in execute_run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware/stack.rb:26:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware.rb:18:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware.rb:31:in `run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware/stack.rb:22:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware/stack.rb:26:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-0.8.36/lib/dynflow/middleware.rb:18:in `pass'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:16:in `block in run'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:40:in `block in as_remote_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/models/katello/concerns/user_extensions.rb:21:in `cp_config'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:27:in `as_cp_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:39:in `as_remote_user'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/actions/middleware/remote_action.rb:16:in `run'
2018-03-09T21:46:08 [app] [E] Error performing CreateRssNotifications (Job ID: 4eb10320-fe19-4d8c-8d9f-00ecdc8bc1bb) from Dynflow(default) in 1023.36ms: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "settings" does not exist
| LINE 8: WHERE a.attrelid = '"settings"'::regclass
| ^
| : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
| pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
| c.collname, col_description(a.attrelid, a.attnum) AS comment
| FROM pg_attribute a
| LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
| LEFT JOIN pg_type t ON a.atttypid = t.oid
| LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
| WHERE a.attrelid = '"settings"'::regclass
| AND a.attnum > 0 AND NOT a.attisdropped
| ORDER BY a.attnum
| ):
2018-03-09T21:46:08 [app] [E] Error performing CreatePulpDiskSpaceNotifications (Job ID: 60d34ca3-327a-4ea8-a07a-81b8d29ee590) from Dynflow(default) in 6.62ms: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "smart_proxies" does not exist
| LINE 8: WHERE a.attrelid = '"smart_proxies"'::regclas...
| ^
| : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
| pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
| c.collname, col_description(a.attrelid, a.attnum) AS comment
| FROM pg_attribute a
| LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum
| LEFT JOIN pg_type t ON a.atttypid = t.oid
| LEFT JOIN pg_collation c ON a.attcollation = c.oid AND a.attcollation <> t.typcollation
| WHERE a.attrelid = '"smart_proxies"'::regclass
| AND a.attnum > 0 AND NOT a.attisdropped
| ORDER BY a.attnum
| ):
2018-03-09T21:47:14 [app] [E] Error performing CreateRssNotifications (Job ID: d82c4462-7c5d-414d-aee7-4e1cd739151c) from Dynflow(default) in 1248.72ms: Foreman::Exception (ERF42-6794 [Foreman::Exception]: Anonymous admin user foreman_admin is missing, run foreman-rake db:seed):
| /usr/share/foreman/app/models/user.rb:200:in `anonymous_admin'
| /usr/share/foreman/app/services/ui_notifications/rss_notifications_checker.rb:51:in `block in deliver!'
| /usr/share/foreman/app/services/ui_notifications/rss_notifications_checker.rb:44:in `each'
| /usr/share/foreman/app/services/ui_notifications/rss_notifications_checker.rb:44:in `deliver!'
| /usr/share/foreman/app/jobs/create_rss_notifications.rb:8:in `perform
2018-03-09T22:02:43 7a9c9ebf [app] [E] RestClient::NotFound: 404 Not Found
| Body: {"displayMessage":"Unit with ID 'b6af354a-72ce-4bdd-828b-a1f275165296' could not be found.","requestUuid":"de6e9445-6a9c-4631-89b0-73000aec4136"}
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/abstract_response.rb:223:in `exception_with_response'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/abstract_response.rb:103:in `return!'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:809:in `process_result'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:725:in `block in transmit'
| /opt/rh/rh-ruby24/root/usr/share/ruby/net/http.rb:877:in `start'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:715:in `transmit'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:145:in `execute'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/request.rb:52:in `execute'
| /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-2.0.1/lib/restclient/resource.rb:51:in `get'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/lib/katello/resources/candlepin.rb:30:in `get'
| /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.7.0/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:74:in `get'