Project

General

Profile

Actions

Bug #37638

open

Duplicate operating system - c.p.p.ShellUtils 500 error

Added by Rodrigo Buero about 1 month ago. Updated about 1 month ago.

Status:
New
Priority:
High
Assignee:
-
Category:
VM management
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hi team,

I'm getting a strange error on my newly installed Puppet master + Foreman server.

Versions:
Foreman: 6.3.0
puppetserver version: 7.17.1

Error:

2024-07-09T19:28:37.520Z WARN [qtp1432302460-5350] [c.p.p.ShellUtils] Executed an external process which logged to STDERR: host1.ec2.internal: During the fact upload the server responded with: 500 Internal Server Error. Error is ignored and the execution continues. {
"error": {"message":"Validation failed: Name Operating system version already exists, Description has already been taken, Title has already been taken"}
}

Description:

I created 5 VMs and registered to my puppet server. Those VMs are not loading operating system in the All Hosts UI. I modified the default Ubuntu 22.04 LTS operating system with another name and description and ran puppet on my first slave host. The OS information showed OK, but now i still got Duplicate issue on my other 4 slave hosts, and will have with all of the other VMs i will migrate.

The issue seems to be when registering 2 hosts with the same OS. Something that of course will happen a lot an shouldnt cause any issue.
This makes my hosts unmanageable as i have conditionals basd on the OS.

Would really appreciate a hand with this.

Cheers

Actions #1

Updated by Rodrigo Buero about 1 month ago ยท Edited

UPDATE:

It seems as if every time a host registers, it is trying to create it in puppet / foreman, and validation fails. The contidional should be that if an operating system is already created, should assign it to the host, not crash with error 500

It is the same error you get in Foreman UI when trying to create an operating system with the same name and description as an existing one

Actions

Also available in: Atom PDF