Bug 1479900
| Summary: | apidoc for openscap results in a 404 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Bryan Kearney <bkearney> | ||||
| Component: | SCAP Plugin | Assignee: | Ondřej Pražák <oprazak> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Nikhil Kathole <nkathole> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.3.0 | CC: | bbuckingham, egolov, ehelms, mbacovsk, mhulan, nkathole, oprazak, tstrachota | ||||
| Target Milestone: | Unspecified | Keywords: | Reopened, Triaged | ||||
| Target Release: | Unused | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | foreman_openscap 0.7.10-2 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-02-21 17:09:48 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: | |||||||
| Attachments: |
|
||||||
|
Description
Bryan Kearney
2017-08-09 17:17:25 UTC
as a workaround, generate the cache by running
> foreman-rake apipie:cache
after it finishes, pages are there.
I suppose this might be similar for other plugins and might not be trivial to be fixed. The task is run in installer after the db is seeded, but we run only rake apipie:cache:index, I'm not sure whether it's the cause. Tomas do you happen to know? I suppose apipie:cache:index is used to make the installer run faster.
If I recall it correctly plugins are supposed to provide their own part of the cache and apipie:cache:index glues the information together: https://github.com/theforeman/foreman/blob/develop/lib/tasks/apipie.rake#L12-L16 I'm not sure where the plugin cache is generated. I guess that Martin will know. *** This bug has been marked as a duplicate of bug 1490070 *** *** This bug has been marked as a duplicate of bug 1480563 *** The scap plugin needs to prebuild the cache during a build time. This will be fixed by adding '-a' switch to the foreman_precompile_plugin macro [1]. I'm reopening the bug as though the consequences are same as in the virt-who plugin each of the plugins will require its own fix. [1] https://github.com/theforeman/foreman-packaging/blob/rpm/develop/rubygem-foreman_openscap/rubygem-foreman_openscap.spec#L77 Connecting redmine issue http://projects.theforeman.org/issues/21377 from this bug VERIFIED Version Tested: Satellite-6.3 Snap 27 Found api documentation for policy, scap-content, tailoring-file and arf-report. Created attachment 1362533 [details]
screenshot
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:0336 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:0336 |