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

Can't delete hosts due to type null host statuses

XMLWordPrintable

    • None
    • None
    • None
    • Manual

      Description of problem:

      {}hammer host delete --organization "example" --name "example.host.com"
      Could not delete the host:
      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)=(3724) is still referenced from table "host_status".

      Removing the type null host status entries for the host workarounds the error.

      How reproducible:{}

      Hard

      Is this issue a regression from an earlier version:{}

      No

      Steps to Reproduce:

      can not reproduce as the issue is only observed on the customer's side

      Actual behavior:

      It seems like something is populating the type nil host status  for orphaned hosts. Deleting them will hit above error.

      Expected behavior:

      Hosts can be deleted and there should be no type null host status generated at all.

      Business Impact / Additional info:

       

              rhn-support-alazik Adam Lazik
              rhn-support-mattj Matt JIA
              Lukas Hellebrandt Lukas Hellebrandt
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: