Bug 1543598
| Summary: | SQL error when using PUT to upload RHSM facts | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Perry Gagne <pgagne> |
| Component: | Hosts - Content | Assignee: | Stephen Benjamin <stbenjam> |
| Status: | CLOSED ERRATA | QA Contact: | Perry Gagne <pgagne> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | Unspecified | CC: | ehelms, pgagne, stbenjam |
| Target Milestone: | 6.4.0 | Keywords: | Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-16 18:55:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1405523 | ||
|
Comment 3
Stephen Benjamin
2018-03-26 18:11:42 UTC
I'm able to update facts on a content host without a problem in 6.3, and running the same version of Katello as you. I do see the error in the foreman-debug, though I'm not sure why, and there's not a lot of info to help me. Any chance you see have the box around? [root@sat-630-150-rhel7 ~]# export id=43d0a475-d2be-4583-b82a-16d81a10fa4c [root@sat-630-150-rhel7 ~]# curl -k -X GET -u admin:changeme https://$HOSTNAME/rhsm/consumers/$id -H "Content-Type: application/json" -o facts.json % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 11338 0 11338 0 0 71003 0 --:--:-- --:--:-- --:--:-- 71308 [root@sat-630-150-rhel7 ~]# vim facts.json [root@sat-630-150-rhel7 ~]# curl -k -X PUT -u admin:changeme https://$HOSTNAME/rhsm/consumers/$id -H "Content-Type: application/json" -d "@facts.json" {"content":"Facts successfully updated."} Upstream I found a different issue though, and opened a PR to fix that. Upstream bug assigned to stbenjam Upstream bug assigned to stbenjam Ah it's the same problem as upstream it just manifests as a different error due to different rails versions. PR open upstream (https://github.com/Katello/katello/pull/7264) will fix it, thanks. Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/23022 has been resolved. Verified fix in 6.4.0 snap 7 using the steps above, got:
{"content":"Facts successfully updated."}
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 |