Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-35917 redhat.satellite.resource_info -> content_view_histories error: 'Failed to show resource: KeyError: "Unknown action ''show''. Supported actions: index"'
  3. SAT-39131

[QE] redhat.satellite.resource_info -> content_view_histories error: 'Failed to show resource: KeyError: "Unknown action ''show''. Supported actions: index"'

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • Ansible Collection
    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • sat-rocket
    • Satellite Rocket Sprint 7

      I'm unable to query the Red Hat Satellite content_view_histories resource using the Ansible collection/module redhat.satellite.resource_info. 

       

      Example playbook

      • name: Testing playbook for Red Hat Debug
          hosts: localhost
          gather_facts: false

        tasks:
          - name: Gather CV history
            redhat.satellite.resource_info:
              username: "admin"
              password: "XXXXX"
              server_url: "https://satXXXXX.example.com/users/login"
              resource: content_view_histories
              params:
                id: 1
              validate_certs: false
            register: cv_history

      ~~~

       

      ~]# ansible-playbook cvplay.yaml 

      PLAY [Testing playbook for Red Hat Debug] *****************************************************

      TASK [Gather CV history] **********************************************************************
      fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed to show resource: KeyError: \"Unknown action 'show'. Supported actions: index\""}

      *************************************************

      I see the following issue open for Foreman as well for the past couple of years, with no solution:

      https://github.com/theforeman/foreman-ansible-modules/issues/1631

      This appears to be a bug in the collection.

       

       

       

       

      QE Tracker for https://issues.redhat.com/browse/SAT-35917

              rhn-support-sganar Shubham Ganar
              satellite-jira-automation@redhat.com Satellite Jira-Automation
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: