Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should this be expected to work with salt? #65

Open
tek0011 opened this issue Aug 2, 2024 · 2 comments
Open

Should this be expected to work with salt? #65

tek0011 opened this issue Aug 2, 2024 · 2 comments

Comments

@tek0011
Copy link

tek0011 commented Aug 2, 2024

Doesnt seem to look at all the facts passed back:

2024-08-02T20:19:11 [D|app|96798ffe] DefaultHostgroupMatch: performing Hostgroup match
2024-08-02T20:19:11 [I|app|96798ffe] No match ...
2024-08-02T20:19:11 [D|app|96798ffe] Body: {"id":14,"name":"10-222-28-77.xxxx.cloud","last_compile":"2024-08-02T20:19:09.000Z","last_report":null,"updated_at":"2024-08-02T20:19:11.195Z","created_at":"2024-08-02T20:19:10.053Z","root_pass":null,"architecture_id":1,"operatingsystem_id":1,"ptable_id":null,"medium_id":null,"build":false,"comment":null,"disk":null,"installed_at":null,"model_id":1,"hostgroup_id":null,"owner_id":null,"owner_type":null,"enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":"10-222-28-77.xxxx.cloud","image_id":null,"organization_id":null,"location_id":3,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","salt_proxy_id":null,"grub_pass":null,"salt_environment_id":null,"global_status":0,"lookup_value_matcher":"fqdn=10-222-28-77.xxxx.cloud","pxe_loader":null,"initiated_at":null,"build_errors":null,"salt_autosign_key":null,"salt_status":null,"creator_id":3,"reported_data_attributes":{"id":13,"host_id":14,"boot_time":null,"created_at":"2024-08-02T20:19:11.184Z","updated_at":"2024-08-02T20:19:11.184Z","virtual":null,"sockets":null,"cores":null,"ram":null,"disks_total":null,"kernel_version":null,"bios_vendor":null,"bios_release_date":"11/12/2020","bios_version":null}}

That is about 1/8th of the facts being sent:

2024-08-02T20:19:09 [I|app|96798ffe]   Parameters: {"name"=>"10-222-28-77.xxxx.cloud", "facts"=>"[FILTERED]", "apiv"=>"v2", "host"=>{"name"=>"10-222-28-77.xxxx.cloud"}}
2024-08-02T20:19:09 [D|app|96798ffe] Importer Katello::RhsmFactImporter does not implement authorized_smart_proxy_features.
2024-08-02T20:19:10 [I|app|96798ffe] Import facts for '10-222-28-77.xxxx.cloud' completed. Added: 317, Updated: 0, Deleted 0 facts```
@tek0011
Copy link
Author

tek0011 commented Aug 13, 2024

bump, anything on this?

@tek0011
Copy link
Author

tek0011 commented Aug 30, 2024

Wondering if this project is dead? Any assistance would be really helpful. I need to import around 80,000 hosts and I really dont want to have to manually assign hostgroups. The main issue is that it seems that it cant read all the facts, as most of them come in as null, even though the fact key:value exists:

2024-08-30T13:44:07 [D|app|5ca229f1] DefaultHostgroupMatch: performing Hostgroup match
2024-08-30T13:44:07 [D|app|5ca229f1] Caching facts for 10-234-32-23.redacted.cloud
2024-08-30T13:44:07 [I|app|5ca229f1] Fact = ssnc_datacenter
2024-08-30T13:44:07 [I|app|5ca229f1] Regex = na-central-kc
2024-08-30T13:44:07 [I|app|5ca229f1] No match ...
2024-08-30T13:44:07 [D|app|5ca229f1] Body: {"id":31,"root_pass":null,"grub_pass":null,"lookup_value_matcher":"fqdn=10-234-32-23.redacted.cloud","name":"10-234-32-23.redacted.cloud","last_compile":"2024-08-30T13:44:07.000Z","last_report":"2024-08-29T17:01:20.433Z","updated_at":"2024-08-30T13:44:07.203Z","created_at":"2024-08-29T16:10:34.169Z","architecture_id":1,"operatingsystem_id":3,"ptable_id":null,"medium_id":null,"build":false,"comment":"","disk":null,"installed_at":null,"model_id":1,"hostgroup_id":null,"owner_id":5,"owner_type":"User","enabled":true,"puppet_ca_proxy_id":null,"managed":false,"use_image":null,"image_file":"","uuid":null,"compute_resource_id":null,"puppet_proxy_id":null,"certname":"10-234-32-23.redacted.cloud","image_id":null,"organization_id":null,"location_id":null,"otp":null,"realm_id":null,"compute_profile_id":null,"provision_method":"build","salt_proxy_id":21,"salt_environment_id":2,"global_status":2,"pxe_loader":null,"initiated_at":null,"build_errors":null,"salt_autosign_key":null,"salt_status":null,"creator_id":3,"reported_data_attributes":{"id":30,"host_id":31,"boot_time":null,"created_at":"2024-08-29T16:10:35.935Z","updated_at":"2024-08-29T16:10:35.935Z","virtual":null,"sockets":null,"cores":null,"ram":null,"disks_total":null,"kernel_version":null,"bios_vendor":null,"bios_release_date":"11/12/2020","bios_version":null},"registration_facet_attributes":{"id":17,"host_id":31,"jwt_secret":"CATBbKc/0HRkijuXl9qoXQ==","created_at":"2024-08-29T16:11:05.607Z","updated_at":"2024-08-29T16:11:05.607Z"}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant