<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi James,<div class=""><br class=""></div><div class="">Thanks, that explains a lot. Nova-compute was in enforce mode on the testbed deployment, while it was on complain mode on the other environment. Setting it to complain makes life a lot easier.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Eyle</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 15 Feb 2021, at 11:06, James Page <<a href="mailto:james.page@canonical.com" class="">james.page@canonical.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><div dir="ltr" class="">Hi Eyle</div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 15, 2021 at 9:59 AM Eyle Brinkhuis <<a href="mailto:eyle.brinkhuis@surf.nl" class="">eyle.brinkhuis@surf.nl</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;">Hi,<br class=""><br class="">Deploying a new testbed, we experience an issue with nova-compute (using canonical charmed openstack Train). We use networking-vpp, that uses python-etcd. After installation of openstack, and configuration of the networking-vpp setup, we cannot start nova-compute anymore:<br class=""><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]: Traceback (most recent call last):<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/bin/nova-compute", line 6, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     from nova.cmd.compute import main<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/nova/cmd/__init__.py", line 16, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     import nova.monkey_patch  # noqa<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/nova/monkey_patch.py", line 98, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     _monkey_patch()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/nova/monkey_patch.py", line 67, in _monkey_patch<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     import oslo_service  # noqa<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/oslo_service/__init__.py", line 16, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     from oslo_log import log as logging<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/oslo_log/log.py", line 41, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     from oslo_config import cfg<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/oslo_config/cfg.py", line 53, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     from oslo_config import types<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/oslo_config/types.py", line 28, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     from debtcollector import removals<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/debtcollector/__init__.py", line 20, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     'debtcollector').version_string()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pbr/version.py", line 467, in version_string<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     return self.semantic_version().brief_string()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pbr/version.py", line 462, in semantic_version<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     self._semantic = self._get_version_from_pkg_resources()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pbr/version.py", line 439, in _get_version_from_pkg_resources<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     import pkg_resources<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3250, in <module><br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     @_call_aside<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3234, in _call_aside<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     f(*args, **kwargs)<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     working_set = WorkingSet._build_master()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, in _build_master<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     ws = cls()<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 567, in __init__<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     self.add_entry(entry)<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 623, in add_entry<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     for dist in find_distributions(entry, True):<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2065, in find_on_path<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     for dist in factory(fullpath):<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:   File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2127, in distributions_from_metadata<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]:     if len(os.listdir(path)) == 0:<br class="">Feb 15 09:35:19 sr635-1 nova-compute[131674]: PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.6/dist-packages/python_etcd-0.4.5.dist-info'<br class="">Feb 15 09:35:19 sr635-1 systemd[1]: nova-compute.service: Main process exited, code=exited, status=1/FAILURE<br class=""><br class="">Meanwhile, in a different deployment, which runs nova-compute 20.3.0-ubuntu1~cloud0, we do not experience this issue. Permissions of all the packages in /usr/local/lib/python3.6/dist-packages/ are all identical. When we remove all packages once again (python-etcd etc), nova-compute is able to start without any issue.<br class=""><br class="">Anyone experiencing the same, or has a workaround?</blockquote><div class=""><br class=""></div><div class="">I've not experienced this directly - have you got the apparmor enabled on one of the deployments but not the other? That's a charm configuration option.  You would also see a DENIED message in the kern.log file if this is enabled (I think).</div><div class=""><br class=""></div><div class="">Regards</div><div class=""><br class=""></div><div class="">James</div></div></div></div></blockquote></div><br class=""></div></body></html>