Project

General

Profile

Bug #26191

Registering a system fails randomly (409 Conflict)

Added by Jonathon Turel about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:

Description

Description of problem:
Sometimes, when I register a system to the server, subscription-manager fails, showing no error. The return code is 70 and new system ID and name is not shown, as opposed to a successful run.

rhsm.log on the client shows RestlibException and response status 409, see attached traceback.

production.log on the server shows "RestClient::Conflict: 409 Conflict" and a traceback, also see attached.

This seems to happen for every second attempt to register in a cycle:

1) # subscription-manager clean
2) change system hostname
3) # subscription-manager register ...

However, I don't think the bug is totally deterministic - at some times, the above doesn't happen and then starts happening again during the same script run.

Actual results:
No error message output, s-m return code 70, tracebacks, system not registered.

Expected results:
System registered successfully.


Related issues

Related to Katello - Bug #26480: registration fails if puppet fact with dmi::system::uuid exists in foremanClosed

Associated revisions

Revision 94fdc445 (diff)
Added by Jonathon Turel about 2 years ago

Fixes #26191 - Find existing system by UUID during registration

Revision 7f880082 (diff)
Added by Jonathon Turel about 2 years ago

Refs #26191 - List matching hosts in error

Revision 40f4927b (diff)
Added by Jonathon Turel about 2 years ago

Refs #26191 - Raise error when host names mismatched

History

#1 Updated by The Foreman Bot about 2 years ago

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

#2 Updated by John Mitsch about 2 years ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.12.0
  • Category set to Hosts
  • Subject changed from Registering a system fails randomly (409 Conflict) to Registering a system fails randomly (409 Conflict)

#3 Updated by Jonathon Turel about 2 years ago

  • Status changed from Ready For Testing to Closed

#4 Updated by Justin Sherrill about 2 years ago

  • Related to Bug #26480: registration fails if puppet fact with dmi::system::uuid exists in foreman added

#5 Updated by The Foreman Bot about 2 years ago

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

Also available in: Atom PDF