Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-41244

Inventory reports don't get written in dev environments without filesystem permission change

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • stream
    • RH Cloud
    • None
    • False
    • Proton Refinement Backlog
    • sat-proton
    • None
    • None
    • None
    • None

      Currently, inventory reports are saved to /var/lib/foreman/red_hat_inventory/ in both production and dev environments.

      Dev environments don't have the proper permissions (and/or that directory does not exist), so reports fail unless you create the directory yourself and set permissions.

      I think they were previously saved (in dev) to ./red_hat_inventory.

      The issue is that after the recent refactor, the directory is hard-coded here --> https://github.com/theforeman/foreman_rh_cloud/blob/066fa63422e6db67a479beaf6d4a613709287179/lib/foreman_inventory_upload.rb#L7

       

      It should instead rely on Rails.root, which will put it in the right place regardless of environment.

              Unassigned Unassigned
              rhn-engineering-jlenz Jeremy Lenz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: