Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-49

Permission issue with ansible-doc on Automation Hub with galaxy_importer

    • False
    • False
    • Undefined
    • AAH 4.3.0 Sprint 1

      SUMMARY

      Traceback with ansible-doc command when importing a collection

      STEPS TO REPRODUCE

      Available with import of ansible.posix here

      https://cloud.redhat.com/ansible/automation-hub/my-imports?namespace=ansible&name=posix&version=1.1.1

      Importing with galaxy-importer 0.2.8rc9 
      Getting doc strings via ansible-doc 
      Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc8u74pra ansible-doc --type callback --json ansible.posix.cgroup_perf_recap ansible.posix.debug ansible.posix.json ansible.posix.profile_roles ansible.posix.profile_tasks ansible.posix.skippy ansible.posix.timer" returncode="250" b"[WARNING]: Failed to create the directory '/.ansible': [Errno 13] Permission\ndenied: b'/.ansible'\n/venv/lib64/python3.6/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.\n doc_data['return'] = yaml.load(doc_data['return'])\nERROR! Unexpected Exception, this is probably a bug: Object of type 'date' is not JSON serializable\n" 
      

      EXPECTED RESULTS

      No Exception

      ACTUAL RESULTS

      Exception

      Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpc8u74pra ansible-doc --type callback --json ansible.posix.cgroup_perf_recap ansible.posix.debug ansible.posix.json ansible.posix.profile_roles ansible.posix.profile_tasks ansible.posix.skippy ansible.posix.timer" returncode="250" b"[WARNING]: Failed to create the directory '/.ansible': [Errno 13] Permission\ndenied: b'/.ansible'\n/venv/lib64/python3.6/site-packages/ansible/cli/doc.py:219: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.\n doc_data['return'] = yaml.load(doc_data['return'])\nERROR! Unexpected Exception, this is probably a bug: Object of type 'date' is not JSON serializable\n" 
      

              cspealma@redhat.com Clara Spealman (Inactive)
              chousekn Chris Houseknecht (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: