[Pulp-list] check_snippet.py

Mike DePaulo mikedep333 at redhat.com
Tue Mar 8 17:08:44 UTC 2022


Hi Bin,

Sorry for the late reply.

Yes, that is normal.

We recently rewrote the script that is called by the task.

For the 3.15 branch, that is correct. For plugins like pulp-file which lack
a webserver snippet, it says on stdout:
"ModuleNotFoundError: No module named 'pulp_file.app.webserver_snippets'"

And it throws rc1.

-Mike

On Sun, Feb 27, 2022 at 1:07 PM Bin Li (BLOOMBERG/ 120 PARK) <
bli111 at bloomberg.net> wrote:

> I noticed this message in 3.15 installation and also previous release. I
> wonder what they are and if it is normal to fail.
>
> skipping: [pulp-d2] => (item={'changed': False, 'rc': 1, 'stdout':
> 'Traceback (most recent call last):\r\n File
> "/home/cloud-user/.ansible/tmp/ansible-tmp-1645984199.9720438-8177-67668749165546/check_snippet.py",
> line 16, in <module>\r\n webserver_snippets =
> importlib.import_module(sys.argv[1] + ".app.webserver_snippets")\r\n File
> "/opt/python/3.8.8/lib64/python3.8/importlib/__init__.py", line 127, in
> import_module\r\n return _bootstrap._gcd_import(name[level:], package,
> level)\r\n File "<frozen importlib._bootstrap>", line 1014, in
> _gcd_import\r\n File "<frozen importlib._bootstrap>", line 991, in
> _find_and_load\r\n File "<frozen importlib._bootstrap>", line 973, in
> _find_and_load_unlocked\r\nModuleNotFoundError: No module named
> \'pulp_file.app.webserver_snippets\'\r\n', 'stdout_lines': ['Traceback
> (most recent call last):', ' File
> "/home/cloud-user/.ansible/tmp/ansible-tmp-1645984199.9720438-8177-67668749165546/check_snippet.py",
> line 16, in <module>', ' webserver_snippets =
> importlib.import_module(sys.argv[1] + ".app.webserver_snippets")', ' File
> "/opt/python/3.8.8/lib64/python3.8/importlib/__init__.py", line 127, in
> import_module', ' return _bootstrap._gcd_import(name[level:], package,
> level)', ' File "<frozen importlib._bootstrap>", line 1014, in
> _gcd_import', ' File "<frozen importlib._bootstrap>", line 991, in
> _find_and_load', ' File "<frozen importlib._bootstrap>", line 973, in
> _find_and_load_unlocked', "ModuleNotFoundError: No module named
> 'pulp_file.app.webserver_snippets'"], 'stderr': 'Shared connection to
> 10.178.24.121 closed.\r\n', 'stderr_lines': ['Shared connection to
> 10.178.24.121 closed.'], 'failed': False, 'msg': 'non-zero return code',
> 'exception': 'NoneType: None\n', 'failed_when_result': False,
> '__pulp_webserver_plugin': {'key': 'pulp-file', 'value': {'version':
> '1.9.1'}}, 'ansible_loop_var': '__pulp_webserver_plugin'})
> module.pulp-install["pulp-d2"].null_resource.pulp-install (local-exec):
> skipping: [pulp-d2] => (item={'changed': False, 'rc': 1, 'stdout':
> 'Traceback (most recent call last):\r\n File
> "/home/cloud-user/.ansible/tmp/ansible-tmp-1645984200.449993-8177-92525154956070/check_snippet.py",
> line 16, in <module>\r\n webserver_snippets =
> importlib.import_module(sys.argv[1] + ".app.webserver_snippets")\r\n File
> "/opt/python/3.8.8/lib64/python3.8/importlib/__init__.py", line 127, in
> import_module\r\n return _bootstrap._gcd_import(name[level:], package,
> level)\r\n File "<frozen importlib._bootstrap>", line 1014, in
> _gcd_import\r\n File "<frozen importlib._bootstrap>", line 991, in
> _find_and_load\r\n File "<frozen importlib._bootstrap>", line 973, in
> _find_and_load_unlocked\r\nModuleNotFoundError: No module named
> \'pulp_rpm.app.webserver_snippets\'\r\n', 'stdout_lines': ['Traceback (most
> recent call last):', ' File
> "/home/cloud-user/.ansible/tmp/ansible-tmp-1645984200.449993-8177-92525154956070/check_snippet.py",
> line 16, in <module>', ' webserver_snippets =
> importlib.import_module(sys.argv[1] + ".app.webserver_snippets")', ' File
> "/opt/python/3.8.8/lib64/python3.8/importlib/__init__.py", line 127, in
> import_module', ' return _bootstrap._gcd_import(name[level:], package,
> level)', ' File "<frozen importlib._bootstrap>", line 1014, in
> _gcd_import', ' File "<frozen importlib._bootstrap>", line 991, in
> _find_and_load', ' File "<frozen importlib._bootstrap>", line 973, in
> _find_and_load_unlocked', "ModuleNotFoundError: No module named
> 'pulp_rpm.app.webserver_snippets'"], 'stderr': 'Shared connection to
> 10.178.24.121 closed.\r\n', 'stderr_lines': ['Shared connection to
> 10.178.24.121 closed.'], 'failed': False, 'msg': 'non-zero return code',
> 'exception': 'NoneType: None\n', 'failed_when_result': False,
> '__pulp_webserver_plugin': {'key': 'pulp-rpm', 'value': {'version':
> '3.15.0'}}, 'ansible_loop_var': '__pulp_webserver_plugin'})
>
> _______________________________________________
> Pulp-list mailing list
> Pulp-list at redhat.com
> https://listman.redhat.com/mailman/listinfo/pulp-list



-- 

Mike DePaulo

He / Him / His

Service Reliability Engineer, Pulp

Red Hat <https://www.redhat.com/>

IM: mikedep333

GPG: 51745404
<https://www.redhat.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20220308/8f2190df/attachment.htm>


More information about the Pulp-list mailing list