Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-12638

When removing an associated CR host from Satellite it fails as 'PG::ForeignKeyViolation'.

XMLWordPrintable

    • Important
    • Manual
    • None

      Description of problem:

      When deleting a host that is 'Associated' to a computer resource, and there is a 'before_update' hook configured on the Satellite it, fails to delete the host like the following output.

      ~~~
      PG::ForeignKeyViolation: ERROR: update or delete on table "hosts" violates foreign key constraint "host_status_hosts_host_id_fk" on table "host_status" DETAIL: Key (id)=(HOST_ID) is still referenced from table "host_status".
      ~~~

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

      Satellite 6.9

      How reproducible:

      There is a reproducer configured in our laboratory.

      Steps to Reproduce:
      1.
      2.
      3.

      Actual results:

      It is failing to delete a host.

      Expected results:

      The host should be deleted smoothly.

      Additional info:

              aruzicka@redhat.com Adam Ruzicka
              jira-bugzilla-migration RH Bugzilla Integration
              RH Bugzilla Integration RH Bugzilla Integration
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: