Im not sure if this is a lowercase issue, or just another managed: False
issue.
2024-10-23T12:30:00 [W|app|e23da0dc] Not queueing Host::Managed: ["Name has already been taken"]
2024-10-23T12:30:00 [W|app|e23da0dc] Not queueing Host::Managed: ["Name has already been taken"]
2024-10-23T12:30:00 [W|app|e23da0dc] Not queueing Host::Managed: ["Name has already been taken"]
2024-10-23T12:30:00 [E|app|e23da0dc] Failed to create host TVAWBD0FPP02: Name has already been taken
2024-10-23T12:30:00 [E|app|e23da0dc] Error in find_or_create_host: ERF42-6331 [Foreman::Exception]: Failed to create host
2024-10-23T12:30:00 [E|app|e23da0dc] Import failed: ERF42-6331 [Foreman::Exception]: Failed to create host
2024-10-23T12:30:00 [D|tax|e23da0dc] Current organization set to none
2024-10-23T12:30:00 [D|tax|e23da0dc] Current location set to none
2024-10-23T12:30:00 [E|bac|e23da0dc] ERF42-6331 [Foreman::Exception]: Failed to create host (Foreman::Exception)
[#<Host::Managed:0x000073fb6cf7b8a0
id: 33186,
name: "tvawbd0fpp02",
last_compile: Wed, 23 Oct 2024 12:28:25.818802000 UTC +00:00,
last_report: "[FILTERED]",
updated_at: Wed, 23 Oct 2024 12:28:26.821676000 UTC +00:00,
created_at: Thu, 17 Oct 2024 18:40:38.225524000 UTC +00:00,
root_pass: nil,
architecture_id: nil,
operatingsystem_id: 7,
ptable_id: nil,
medium_id: nil,
build: false,
comment: nil,
disk: nil,
installed_at: nil,
model_id: 1,
hostgroup_id: nil,
owner_id: 22,
owner_type: "User",
enabled: true,
puppet_ca_proxy_id: nil,
managed: false,
use_image: nil,
image_file: nil,
uuid: nil,
compute_resource_id: nil,
puppet_proxy_id: nil,
certname: nil,
image_id: nil,
organization_id: 1,
location_id: 10,
type: "Host::Managed",
otp: nil,
realm_id: nil,
compute_profile_id: nil,
provision_method: nil,
salt_proxy_id: nil,
grub_pass: nil,
salt_environment_id: nil,
global_status: 2,
lookup_value_matcher: "[FILTERED]",
pxe_loader: nil,
initiated_at: nil,
build_errors: nil,
salt_autosign_key: nil,
salt_status: nil,
creator_id: 1>]
Umm WOAH what in the world is going on here?
irb(main):007:0> Host::Base.where(managed: false).count
=> 26360
Oh, disregard, its not an issue with them being managed/unmanaged. I have no idea what is going on here with these host creation failures:
irb(main):007:0> Host::Base.where(managed: false).count
=> 26360
irb(main):008:0> Host::Base.where(managed: true).count
=> 0