Skip to content

Instantly share code, notes, and snippets.

@alikins
Last active November 9, 2020 16:18
Show Gist options
  • Save alikins/0418c89420a2ee72df59512610390109 to your computer and use it in GitHub Desktop.
Save alikins/0418c89420a2ee72df59512610390109 to your computer and use it in GitHub Desktop.
ci.cloud.redhat.com/beta/ pulp worker collection import error
2020-11-06 16:53:07,040 INFO rq.worker: 1@pulp-worker-413-qbsq4: galaxy_ng.app.tasks.publishing.import_and_move_to_staging(expected_name='collection_inspect', expected_namespace='alikins_dumb_namespace', expected_version='0.0.269', repository_pk=UUID('421ed153-5df2-48af-948a-6034bf8af0a1'), temp_file_pk=UUID('3a3081e1-07a2-4161-bd1e-ec51a1d5d539')) (fe29b442-dca6-4242-820b-3b73d2cae359)
2020-11-06 16:53:07,091 INFO pulp_ansible.app.tasks.collections: Processing collection from tmp/files/3a/3081e1-07a2-4161-bd1e-ec51a1d5d539
Unhandled error:
Traceback (most recent call last):
File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe
os.makedirs(b_rpath, mode)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data
value, origin = self.get_config_value_and_origin(config, configfile)
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin
value = ensure_type(value, defs[config].get('type'), origin=origin)
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type
makedirs_safe(value, 0o700)
File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe
raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
Traceback (most recent call last):
File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe
os.makedirs(b_rpath, mode)
File "/usr/lib64/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib64/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data
value, origin = self.get_config_value_and_origin(config, configfile)
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin
value = ensure_type(value, defs[config].get('type'), origin=origin)
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type
makedirs_safe(value, 0o700)
File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe
raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))
ansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/venv/bin/ansible-lint", line 5, in <module>
from ansiblelint.__main__ import main
File "/venv/lib64/python3.6/site-packages/ansiblelint/__init__.py", line 22, in <module>
from ansiblelint.rules import AnsibleLintRule
File "/venv/lib64/python3.6/site-packages/ansiblelint/rules/__init__.py", line 12, in <module>
import ansiblelint.utils
File "/venv/lib64/python3.6/site-packages/ansiblelint/utils.py", line 35, in <module>
from ansible import constants
File "/venv/lib64/python3.6/site-packages/ansible/constants.py", line 177, in <module>
config = ConfigManager()
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 291, in __init__
self.update_config_data()
File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 570, in update_config_data
raise AnsibleError("Invalid settings supplied for %s: %s\n" % (config, to_native(e)), orig_exc=e)
ansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b'/.ansible'
2020-11-06 16:53:36,392 INFO rq.worker: 1@pulp-worker-413-qbsq4: Job OK (fe29b442-dca6-4242-820b-3b73d2cae359)
# From the ui "import logs" screen
Importing with galaxy-importer 0.2.9
Getting doc strings via ansible-doc
Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpaozhg8l3 ANSIBLE_LOCAL_TEMP=~/.ansible/tmp ansible-doc --type callback --json alikins_dumb_namespace.collection_inspect.collection_inspect" returncode="1" b'Unhandled error:\n Traceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/bin/ansible-doc", line 62, in <module>\n import ansible.constants as C\n File "/venv/lib64/python3.6/site-packages/ansible/constants.py", line 177, in <module>\n config = ConfigManager()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 291, in __init__\n self.update_config_data()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 570, in update_config_data\n raise AnsibleError("Invalid settings supplied for %s: %s\\n" % (config, to_native(e)), orig_exc=e)\nansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n'
Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpaozhg8l3 ANSIBLE_LOCAL_TEMP=~/.ansible/tmp ansible-doc --type lookup --json alikins_dumb_namespace.collection_inspect.collection_inspect" returncode="1" b'Unhandled error:\n Traceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/bin/ansible-doc", line 62, in <module>\n import ansible.constants as C\n File "/venv/lib64/python3.6/site-packages/ansible/constants.py", line 177, in <module>\n config = ConfigManager()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 291, in __init__\n self.update_config_data()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 570, in update_config_data\n raise AnsibleError("Invalid settings supplied for %s: %s\\n" % (config, to_native(e)), orig_exc=e)\nansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n'
Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpaozhg8l3 ANSIBLE_LOCAL_TEMP=~/.ansible/tmp ansible-doc --type module --json alikins_dumb_namespace.collection_inspect.collection_inspect_no_module_utils alikins_dumb_namespace.collection_inspect.collection_inspect alikins_dumb_namespace.collection_inspect.get_collection_inspect" returncode="1" b'Unhandled error:\n Traceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/bin/ansible-doc", line 62, in <module>\n import ansible.constants as C\n File "/venv/lib64/python3.6/site-packages/ansible/constants.py", line 177, in <module>\n config = ConfigManager()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 291, in __init__\n self.update_config_data()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 570, in update_config_data\n raise AnsibleError("Invalid settings supplied for %s: %s\\n" % (config, to_native(e)), orig_exc=e)\nansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n'
Error running ansible-doc: cmd="/usr/bin/env ANSIBLE_COLLECTIONS_PATHS=/tmp/tmpaozhg8l3 ANSIBLE_LOCAL_TEMP=~/.ansible/tmp ansible-doc --type vars --json alikins_dumb_namespace.collection_inspect.collection_inspect" returncode="1" b'Unhandled error:\n Traceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 85, in makedirs_safe\n os.makedirs(b_rpath, mode)\n File "/usr/lib64/python3.6/os.py", line 210, in makedirs\n makedirs(head, mode, exist_ok)\n File "/usr/lib64/python3.6/os.py", line 220, in makedirs\n mkdir(name, mode)\nPermissionError: [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 558, in update_config_data\n value, origin = self.get_config_value_and_origin(config, configfile)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 510, in get_config_value_and_origin\n value = ensure_type(value, defs[config].get(\'type\'), origin=origin)\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 122, in ensure_type\n makedirs_safe(value, 0o700)\n File "/venv/lib64/python3.6/site-packages/ansible/utils/path.py", line 90, in makedirs_safe\n raise AnsibleError("Unable to create local directories(%s): %s" % (to_native(rpath), to_native(e)))\nansible.errors.AnsibleError: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/venv/bin/ansible-doc", line 62, in <module>\n import ansible.constants as C\n File "/venv/lib64/python3.6/site-packages/ansible/constants.py", line 177, in <module>\n config = ConfigManager()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 291, in __init__\n self.update_config_data()\n File "/venv/lib64/python3.6/site-packages/ansible/config/manager.py", line 570, in update_config_data\n raise AnsibleError("Invalid settings supplied for %s: %s\\n" % (config, to_native(e)), orig_exc=e)\nansible.errors.AnsibleError: Invalid settings supplied for DEFAULT_LOCAL_TMP: Unable to create local directories(/.ansible/tmp): [Errno 13] Permission denied: b\'/.ansible\'\n\n'
Finding content inside collection
Loading role test_collection_inspect
No role description found in role metadata
Linting role test_collection_inspect via ansible-lint...
Exception running ansible-lint, could not complete linting
Loading module collection_inspect_no_module_utils
Loading module collection_inspect
Loading module get_collection_inspect
Loading module_utils collection_inspect
Loading action collection_inspect
Loading callback collection_inspect
Loading filter collection_inspect
Loading lookup collection_inspect
Loading vars collection_inspect
No execution environment dependencies found
Collection loading complete
Preparing job pod to run ansible-test sanity
Creating job ansible-test-04ab1cfd-f0ad-4cf1-ac9e-350453e54cb2
Creating pod...
Scheduling pod and waiting until it is running...
Downloading and extracting collection archive...
[WARNING]: log file at //.ansible/log/ansible.log is not writeable and we cannot create it, aborting
Using ansible 2.9.10, Python 3.6.9
Running ansible-test sanity on alikins_dumb_namespace-collection_inspect-0.0.273 ...
Running sanity test 'action-plugin-docs' with Python 3.6
Running sanity test 'compile' with Python 2.6
Running sanity test 'compile' with Python 2.7
Running sanity test 'compile' with Python 3.5
Running sanity test 'compile' with Python 3.6
Running sanity test 'compile' with Python 3.7
Running sanity test 'compile' with Python 3.8
Running sanity test 'empty-init' with Python 3.6
Running sanity test 'future-import-boilerplate' with Python 3.6
Running sanity test 'ignores'
Running sanity test 'line-endings' with Python 3.6
Running sanity test 'metaclass-boilerplate' with Python 3.6
Running sanity test 'no-assert' with Python 3.6
Running sanity test 'no-basestring' with Python 3.6
Running sanity test 'no-dict-iteritems' with Python 3.6
Running sanity test 'no-dict-iterkeys' with Python 3.6
Running sanity test 'no-dict-itervalues' with Python 3.6
Running sanity test 'no-get-exception' with Python 3.6
Running sanity test 'no-illegal-filenames' with Python 3.6
Running sanity test 'no-main-display' with Python 3.6
Running sanity test 'no-smart-quotes' with Python 3.6
Running sanity test 'no-unicode-literals' with Python 3.6
Running sanity test 'pep8' with Python 3.6
Running sanity test 'pylint' with Python 3.6
Running sanity test 'replace-urlopen' with Python 3.6
Running sanity test 'rstcheck' with Python 3.6
Running sanity test 'shebang' with Python 3.6
Running sanity test 'shellcheck'
Running sanity test 'symlinks' with Python 3.6
Running sanity test 'use-argspec-type-path' with Python 3.6
Running sanity test 'use-compat-six' with Python 3.6
Running sanity test 'yamllint' with Python 3.6
Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment