Red Hat Bugzilla – Bug 1615372
host parameters no longer show up in hook_object
Last modified: 2018-10-16 15:23:31 EDT
Description of problem: When creating a VM in Satellite, host parameters seem to no longer get passed to the hook_object with after_create. This worked perfectly in Satellite 6.2. While checking the API output of the host, we can see both the nodes host_parameter and global_parameter are present but in the hook_object host_parameter is always blank array[] and global_parameter are present. Customer parse host parameters to use them with hooks. This is a show stopper for them in Migration of Satellite 6.2 to 6.3. Version-Release number of selected component (if applicable): Red Hat Satellite 6.3 How reproducible: Always Steps to Reproduce: 1. Set the hook to your Satellite 2. Create a VM from GUI 3. Check the hook log file, the host_parameter is missing. Actual results: parameter node is always an empty array Expected results: parameter and global_parameter must be present as in Satellite 6.2 Additional info:
Hello, this is likely a missing permission (https://projects.theforeman.org/issues/13164) please ask for the following: 1) using the same user account please use hammer to view the host which has missing parameters: # hammer -u username -p usedpreviously host info --name tonya-bisconer.nat.lan Id: 1 Name: tonya-bisconer.nat.lan Organization: MyOrg Location: MyLoc ... Parameters: host_param => one All parameters: host_param => one global_parameter => two I expect the same parameters to be missing. 2) Show the roles of the user: # hammer user info --login regular Id: 5 Login: regular ... Roles: Viewer View hosts 3) Show permissions of all roles above: # hammer role filters --name Viewer ... 111 | Parameter | none | yes | no | Viewer | view_params ... We are looking for view_params permission.
snap 23, not 63
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, 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-2018:2927