Foreman+katello upgrade problems

Hello,

We upgraded foreman to 1.11 anf katello to 3.0-rc1 and we get an error when
doing the db::migrate:

== 20150930183738 MigrateContentHosts: migrating

··· ============================== rake aborted! StandardError: An error has occurred, this and all later migrations canceled:

PG::Error: ERROR: update or delete on table “katello_systems” violates
foreign key constraint “system_activation_keys_system_id_fk” on table
"katello_system_activation_keys"
DETAIL: Key (id)=(673) is still referenced from table
"katello_system_activation_keys".
: DELETE FROM “katello_systems” WHERE “katello_systems”.“id” =
673/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in
exec' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:inblock in exec_no_cache’
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:373:in
block in log' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:ininstrument’

Any help on how we can get past this?

Thank you,
Cristian Falcas

Cristian,

Can you file an issue here with that traceback and the version and we can
look into it more?
http://projects.theforeman.org/projects/katello/issues/new

Thanks,

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

··· On Fri, Apr 8, 2016 at 8:05 AM, Cristian Falcas wrote:

Hello,

We upgraded foreman to 1.11 anf katello to 3.0-rc1 and we get an error
when doing the db::migrate:

== 20150930183738 MigrateContentHosts: migrating

rake aborted!
StandardError: An error has occurred, this and all later migrations
canceled:

PG::Error: ERROR: update or delete on table “katello_systems” violates
foreign key constraint “system_activation_keys_system_id_fk” on table
"katello_system_activation_keys"
DETAIL: Key (id)=(673) is still referenced from table
"katello_system_activation_keys".
: DELETE FROM “katello_systems” WHERE “katello_systems”.“id” =
673/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in
exec' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:inblock in exec_no_cache’
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:373:in
block in log' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:ininstrument’

Any help on how we can get past this?

Thank you,
Cristian Falcas


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

I opened Bug #14551: after foreman and katello upgrade db:migrate fails - Katello - Foreman

Thank you

··· On Fri, Apr 8, 2016 at 4:26 PM, John Mitsch wrote:

Cristian,

Can you file an issue here with that traceback and the version and we can
look into it more?
Foreman

Thanks,

John Mitsch
Red Hat Engineering
(860)-967-7285
irc: jomitsch

On Fri, Apr 8, 2016 at 8:05 AM, Cristian Falcas cristi.falcas@gmail.com > wrote:

Hello,

We upgraded foreman to 1.11 anf katello to 3.0-rc1 and we get an error
when doing the db::migrate:

== 20150930183738 MigrateContentHosts: migrating

rake aborted!
StandardError: An error has occurred, this and all later migrations
canceled:

PG::Error: ERROR: update or delete on table “katello_systems” violates
foreign key constraint “system_activation_keys_system_id_fk” on table
"katello_system_activation_keys"
DETAIL: Key (id)=(673) is still referenced from table
"katello_system_activation_keys".
: DELETE FROM “katello_systems” WHERE “katello_systems”.“id” =
673/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in
exec' /opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/postgresql_adapter.rb:822:inblock in exec_no_cache’
/opt/rh/rh-ror41/root/usr/share/gems/gems/activerecord-4.1.5/lib/active_record/connection_adapters/abstract_adapter.rb:373:in
block in log' /opt/rh/rh-ror41/root/usr/share/gems/gems/activesupport-4.1.5/lib/active_support/notifications/instrumenter.rb:20:ininstrument’

Any help on how we can get past this?

Thank you,
Cristian Falcas


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.


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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.