Hi, It is possible that tests pick /etc/ceph/ceph.conf although they should not. Do you have such a file on your machine ? Cheers On 16/02/2016 21:41, Willem Jan Withagen (EcoRacks) wrote: > Hi, > > Apart from the trouble this testscript is giving on general.... > > I'd like to shre two observations: > In TestCephDisk.test_list_dmcrypt_data > ======== > for seq in xrange(TMP_MAX): > name = names.next() > file = _os.path.join(dir, prefix + name + suffix) > try: >> _os.mkdir(file, 0700) > E OSError: [Errno 13] Permission denied: > '/var/lib/ceph/tmp/mnt.j5qCU5' > ========= > Which was due to the previous run (as root) , so directories were owned > by root. > > And once I fixed that one, by chown-ing stuff: > ========= > E assert [{'partitions...: '/dev/Xda'}] == > [{'partitions'...: '/dev/Xda'}] > E At index 0 diff: {'partitions': [{'mount': None, > 'type': 'data', 'is_partition': True, 'state': 'unprepared', 'fs_type': > None, 'uuid': '56244cf5-83ef-4984-888a-2d8b8e0e04b2', 'dmcrypt': > {'holders': ['dm-0'], 'type': 'plain'}, 'ptype': > '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', 'path': '/dev/Xda1'}], 'path': > '/dev/Xda'} != {'partitions': [{'type': 'data', 'state': 'active', > 'dmcrypt': {'holders': ['dm-0'], 'type': 'plain'}, 'mount': '/', 'uuid': > '56244cf5-83ef-4984-888a-2d8b8e0e04b2', 'is_partition': True, 'fs_type': > 'xfs', 'ceph_fsid': None, 'whoami': None, 'ptype': > '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', 'path': '/dev/Xda1'}], 'path': > '/dev/Xda'} > E Full diff: > E - [{'partitions': [{'dmcrypt': {'holders': ['dm-0'], > 'type': 'plain'}, > E + [{'partitions': [{'ceph_fsid': None, > E + 'dmcrypt': {'holders': ['dm-0'], > 'type': 'plain'}, > E - 'fs_type': None, > E ? ^^^^ > E + 'fs_type': 'xfs', > E ? ^^^^^ > E 'is_partition': True, > E - 'mount': None, > E ? ^^^^ > E + 'mount': '/', > E ? ^^^ > E 'path': '/dev/Xda1', > E 'ptype': '4fbd7e29-9d25-41b8-afd0-5ec00ceff05d', > E - 'state': 'unprepared', > E ? ^^^^ ----- > E + 'state': 'active', > E ? ^^^^^ > E 'type': 'data', > E - 'uuid': > '56244cf5-83ef-4984-888a-2d8b8e0e04b2'}], > E > ? -- > E + 'uuid': > '56244cf5-83ef-4984-888a-2d8b8e0e04b2', > E + 'whoami': None}], > E 'path': '/dev/Xda'}] > > tests/test_main.py:347: AssertionError > ----------------------------- Captured stderr call > ----------------------------- > DEBUG:ceph_disk.main:main_list: /dev/Xda1 ptype = > 4fbd7e29-9d25-41b8-afd0-5ec00ceff05d uuid = > 56244cf5-83ef-4984-888a-2d8b8e0e04b2 > INFO:ceph_disk.main:Running command: /usr/sbin/blkid -s TYPE /dev/dm-0 > DEBUG:ceph_disk.main:Mounting /dev/dm-0 on /var/lib/ceph/tmp/mnt.jzy74c > with options > INFO:ceph_disk.main:Running command: /usr/bin/mount -t xfs -o -- > /dev/dm-0 /var/lib/ceph/tmp/mnt.jzy74c > mount: only root can use "--options" option > DEBUG:ceph_disk.main:main_list: {'Xda': ['Xda1']}, uuid_map = > {'56244cf5-83ef-4984-888a-2d8b8e0e04b2': '/dev/Xda1'}, space_map = {} > INFO:ceph_disk.main:list_dev(dev = /dev/Xda1, ptype = > 4fbd7e29-9d25-41b8-afd0-5ec00ceff05d) > INFO:ceph_disk.main:Running command: /usr/sbin/blkid -s TYPE /dev/dm-0 > ========= > > Thusfar I've grown used to the fact that script can be run as non-root. > Not sure if that was just coincidence, or by design. > > And if by design, it would be nice to separate root and non-root scripts... > > --WjW > > > -- > To unsubscribe from this list: send the line "unsubscribe ceph-devel" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Loïc Dachary, Artisan Logiciel Libre -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html