Bug 1915342
Summary: | foreman_hooks: json representation of the hook object is limited / incorrect during create hook | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Tomer Brisker <tbrisker> |
Component: | Provisioning | Assignee: | Ondřej Ezr <oezr> |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.9.0 | CC: | inecas, sshtein, zhunting |
Target Milestone: | 6.9.0 | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | foreman-2.3.2,foreman-2.3.1.8-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-21 13:25:02 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Tomer Brisker
2021-01-12 13:30:25 UTC
Created from redmine issue https://projects.theforeman.org/issues/31518 Upstream bug assigned to oezr Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/31518 has been resolved. VERIFIED on sat6.9.0-16.0 the hook payload now seems to be complete: ``` { "host": { "ip": "10.8.211.39", "ip6": "", "environment_id": 1, "environment_name": "production", "last_report": null, "mac": "de:ad:ee:ad:aa:ed", "realm_id": null, "realm_name": null, "sp_mac": null, "sp_ip": null, "sp_name": null, "domain_id": 1, "domain_name": "foo.bar.com", "architecture_id": 1, "architecture_name": "x86_64", "operatingsystem_id": 1, "operatingsystem_name": "RedHat 7.9", "subnet_id": 1, "subnet_name": "Default Subnet", "subnet6_id": null, "subnet6_name": null, "sp_subnet_id": null, "ptable_id": 111, "ptable_name": "Kickstart default", "medium_id": null, "medium_name": null, "pxe_loader": "PXELinux BIOS", "build": true, "comment": "", "disk": "", "installed_at": null, "model_id": null, "hostgroup_id": null, "owner_id": 4, "owner_name": "Admin User", "owner_type": "User", "enabled": true, "managed": true, "use_image": null, "image_file": "", "uuid": null, "compute_resource_id": null, "compute_resource_name": null, "compute_profile_id": null, "compute_profile_name": null, "capabilities": [ "build" ], "provision_method": "build", "certname": "bret-okoro.foo.bar.com", "image_id": null, "image_name": null, "created_at": null, "updated_at": null, "last_compile": null, "global_status": 0, "global_status_label": "Warning", "uptime_seconds": null, "organization_id": 1, "organization_name": "Default Organization", "location_id": 2, "location_name": "Default Location", "puppet_status": 0, "model_name": null, "build_status": 1, "build_status_label": "Pending installation", "name": "bret-okoro.foo.bar.com", "id": null, "puppet_proxy_id": null, "puppet_proxy_name": null, "puppet_ca_proxy_id": null, "puppet_ca_proxy_name": null, "openscap_proxy_id": null, "openscap_proxy_name": null, "puppet_proxy": null, "puppet_ca_proxy": null, "openscap_proxy": null, "token": "50dc5a1f-b622-484f-85db-1973d94bebca", "hostgroup_name": null, "hostgroup_title": null, "parameters": [], "all_parameters": [ { "priority": 0, "created_at": "2021-03-04 17:17:48 +0100", "updated_at": "2021-03-06 01:38:10 +0100", "id": 2, "name": "host_registration_remote_execution", "parameter_type": "string", "value": "1" }, { "priority": 0, "created_at": "2021-03-04 17:16:15 +0100", "updated_at": "2021-03-06 01:38:06 +0100", "id": 1, "name": "host_registration_insights", "parameter_type": "string", "value": "1" }, { "priority": 0, "created_at": "2021-03-04 17:17:50 +0100", "updated_at": "2021-03-04 17:17:50 +0100", "id": 4, "name": "enable-puppet5", "parameter_type": "string", "value": "true" }, { "priority": 0, "created_at": "2021-03-04 17:17:50 +0100", "updated_at": "2021-03-04 17:17:50 +0100", "id": 3, "name": "enable-epel", "parameter_type": "string", "value": "false" } ], "content_facet_attributes": { "id": null, "uuid": null, "content_view_id": 1, "content_view_name": "Default Organization View", "lifecycle_environment_id": 1, "lifecycle_environment_name": "Library", "content_source_id": 1, "content_source_name": "qe-sat69-rhel7-tier3.foo.bar.com", "kickstart_repository_id": 755, "kickstart_repository_name": "755", "errata_counts": { "security": 0, "bugfix": 0, "enhancement": 0, "total": 0 }, "applicable_package_count": 0, "upgradable_package_count": 0, "applicable_module_stream_count": 0, "upgradable_module_stream_count": 0, "content_view": { "id": 1, "name": "Default Organization View" }, "lifecycle_environment": { "id": 1, "name": "Library" }, "content_source": { "id": 1, "name": "qe-sat69-rhel7-tier3.foo.bar.com", "url": "https://qe-sat69-rhel7-tier3.foo.bar.com:9090" }, "kickstart_repository": { "id": 755, "name": "Red Hat Enterprise Linux 7 Server Kickstart x86_64 7.9" }, "content_view_version": "1.0", "content_view_version_id": 1, "content_view_default?": true, "lifecycle_environment_library?": true, "katello_agent_installed": false, "katello_tracer_installed": false }, "host_collections": [], "interfaces": [ { "subnet_id": 1, "subnet_name": "Default Subnet", "subnet6_id": null, "subnet6_name": null, "domain_id": 1, "domain_name": "foo.bar.com", "created_at": null, "updated_at": null, "managed": true, "identifier": "", "id": null, "name": "bret-okoro.foo.bar.com", "ip": "10.8.211.39", "ip6": "", "mac": "de:ad:ee:ad:aa:ed", "mtu": 1500, "fqdn": "bret-okoro.foo.bar.com", "primary": true, "provision": true, "type": "interface", "execution": true, "virtual": false } ], "puppetclasses": [], "config_groups": [], "all_puppetclasses": [], "facts": {}, "permissions": { "view_hosts": true, "create_hosts": true, "edit_hosts": true, "destroy_hosts": true, "build_hosts": true, "power_hosts": true, "console_hosts": true, "ipmi_boot_hosts": true, "forget_status_hosts": true, "cockpit_hosts": true, "play_roles_on_host": true, "view_discovered_hosts": true, "submit_discovered_hosts": true, "auto_provision_discovered_hosts": true, "provision_discovered_hosts": true, "edit_discovered_hosts": true, "destroy_discovered_hosts": true } } } ``` Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: Satellite 6.9 Release), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1313 |