Project

General

Profile

Bug #23516

Host registration fails with the error: "Validation failed: Host has already been taken"

Added by Justin Sherrill about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

User reported registration issue:

2018-05-03 18:25:33 fa7244b2 [app] [I] Current user: admin (administrator)
2018-05-03 18:25:33 fa7244b2 [app] [D] Setting current user thread-local variable to admin
2018-05-03 18:25:33 fa7244b2 [notifications] [D] Notification event: UINotifications::DestroyHost - checking for notifications
2018-05-03 18:25:34 fa7244b2 [katello/cp_proxy] [E] <Class> ActiveRecord::RecordInvalid
2018-05-03 18:25:34 fa7244b2 [katello/cp_proxy] [E] host_id: ["has already been taken"]
2018-05-03 18:25:34 fa7244b2 [app] [I] Completed 422 Unprocessable Entity in 1240ms (Views: 0.4ms | ActiveRecord: 92.5ms)
2018-05-03 18:25:34 fa7244b2 [app] [D] With body: {"displayMessage":"Validation failed: Host has already been taken","errors":{"host_id":["has already been taken"]}}

Associated revisions

Revision 275cecdf (diff)
Added by Justin Sherrill about 3 years ago

Fixes #23516 - handle registration if sub status already exists

History

#1 Updated by The Foreman Bot about 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7363 added

#2 Updated by Justin Sherrill about 3 years ago

  • Bugzilla link set to 1575113

#3 Updated by Justin Sherrill about 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#4 Updated by John Mitsch about 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

#5 Updated by The Foreman Bot about 3 years ago

  • Pull request https://github.com/Katello/katello/pull/7369 added

#6 Updated by Jonathon Turel about 3 years ago

  • Pull request deleted (https://github.com/Katello/katello/pull/7369)

Also available in: Atom PDF