Bug #27814
closedUpgrade is failing on use whitelist "foreman-docker-remove-foreman-docker"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1745573
Description of problem:
Trying to upgrade satellite 6.5 to 6.6 Beta
The upgrade is failing on use whitelist "foreman-docker-remove-foreman-docker"
Version-Release number of selected component (if applicable):
- rpm -qa satellite
satellite-6.6.0-5.beta.el7sat.noarch
How reproducible:
While upgrade
Steps to Reproduce:
- shopt -s checkhash
- hash -d foreman-maintain 2> /dev/null
- subscription-manager refresh
- subscription-manager repos --enable rhel-7-server-satellite-maintenance-6-beta-rpms --enable rhel-7-server-ansible-2.8-rpms
- yum install rubygem-foreman_maintain -y
- export FOREMAN_MAINTAIN_USE_BETA='1'
- foreman-maintain upgrade list-versions
- foreman-maintain upgrade check --target-version 6.6
- foreman-maintain upgrade run --target-version 6.6
Actual results:
Cleaning data...
... deleting records from taxable_taxonomies
... deleting filters
... deleting permissions
... deleting docker compute resources
--------------------------------------------------------------------------------
Scenario [Procedures after migrating to Satellite 6.6] failed.
The following steps ended up in failing state:
[foreman-docker-remove-foreman-docker]
Resolve the failed steps and rerun
the command. In case the failures are false positives,
use --whitelist="foreman-docker-remove-foreman-docker"
Expected results:
The upgrade should be completed successfully
Additional info:
ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR: update or delete on table "compute_resources" violates foreign key constraint "fk_rails_61ca956e9a" on table "hostgroups"
DETAIL: Key (id)=(1) is still referenced from table "hostgroups".
: DELETE FROM "compute_resources" WHERE "compute_resources"."id" = $1
Caused by:
PG::ForeignKeyViolation: ERROR: update or delete on table "compute_resources" violates foreign key constraint "fk_rails_61ca956e9a" on table "hostgroups"
DETAIL: Key (id)=(1) is still referenced from table "hostgroups".
Updated by Marek Hulán about 5 years ago
- Subject changed from Upgrade is failing on use whitelist "foreman-docker-remove-foreman-docker" to Upgrade is failing on use whitelist "foreman-docker-remove-foreman-docker"
this may be related to the way we clean the docker plugin, hostgroup still pointing to compute resource that is being deleted
Updated by Tomer Brisker about 5 years ago
- Project changed from Foreman Maintain to Docker
Updated by The Foreman Bot about 5 years ago
- Status changed from New to Ready For Testing
- Assignee set to Marek Hulán
- Pull request https://github.com/theforeman/foreman_docker/pull/219 added
Updated by Anonymous about 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_docker|d4d2e1a8bb3533f5971124a3091643594abee598.
Updated by The Foreman Bot about 5 years ago
- Pull request https://github.com/theforeman/foreman_docker/pull/220 added