Swift not recognizing mounted drives

Clay Gerrard clay.gerrard at gmail.com
Thu Sep 22 19:06:13 UTC 2022


On Thu, Sep 22, 2022 at 12:36 PM Andrew Boring <andrew at andrewboring.com>
wrote:

>
> Sep 22 13:12:46 [hostname] account-replicator[183238]: Skipping:
> /srv/node/sda is not a directory
>

Ok well that's right here:

https://opendev.org/openstack/swift/src/branch/master/swift/common/db_replicator.py#L813

Which you can look at in constraints is pretty straightforward:

https://opendev.org/openstack/swift/src/branch/master/swift/common/constraints.py#L274


> [root at swift]# file /srv/node/sda
> /srv/node/sda: directory
>
>
ok, that seems like something that works - let's see if we can get closer
to the problem?  What if we use python (as root):

sudo python -c "import os.path; print(os.path.isdir('/srv/node/sda'))"

... or again with the "swift" user

sudo -u swift python -c "import os.path;
print(os.path.isdir('/srv/node/sda'))"

 N.B. the user swift is just the default - use whatever you have set as
"user =" in your config

Also check syslog/journald and security or whatever for any warning logs
about permissions or SELinux

--
Clay Gerrard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.openstack.org/pipermail/openstack-discuss/attachments/20220922/ba19288c/attachment-0001.htm>


More information about the openstack-discuss mailing list