[PKG-Openstack-devel] Bug#887191: python3-tempest should depend on e2fsprogs explicitly

Andreas Henriksson andreas at fatal.se
Tue Jan 23 08:41:02 UTC 2018


On Sun, Jan 14, 2018 at 08:10:21PM +0100, Helmut Grohne wrote:
> Package: python3-tempest
[...]
> /usr/lib/python3/dist-packages/tempest/common/utils/linux/remote_client.py contains mke2fs. According to file it is a C++ source, ASCII text
[...]

Since both python-tempest and python3-tempest is built from the same
source and both seems to have exactly the same symptoms I'm replying to
both at the same time.

>From remote_client.py:

    def make_fs(self, dev_name, fs='ext4'):
        cmd_mkfs = 'sudo /usr/sbin/mke2fs -t %s /dev/%s' % (fs, dev_name)

Please note how mke2fs is invoked with a full path. On Debian the mke2fs
utility doesn't live in that path (unless you're converted to usrmerge,
but packages not assume users have done that - atleast not without a
dependency on the usrmerge conversion package).

Correct path in e2fsprogs package is: /sbin/mke2fs

On top of this, the invokation of the make_fs function is done in
manager.py an looks like this:

            ssh_client.make_fs(dev_name)

This makes me assume that the command is executed on a remote host
over ssh. (Which should have already been obvious since the previous
source file contained the word 'remote' in it.)

A local dependency (or other package relationship) will not help what's
available and installed on the remote host.

My conclusion is thus that this bug report should likely just be closed.
(Or repurposed as a bug report about the incorrect path.)

Regards,
Andreas Henriksson



More information about the Openstack-devel mailing list