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

Can't delete hosts due to type null host statuses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 6.13.z
    • Hosts
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Moderate
    • Manual
    • None

      Description of problem:

      {}hammer host delete --organization "Panerabread" --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:

       

              Unassigned Unassigned
              rhn-support-mattj Matt JIA
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: