All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems whilst running ceph-disk/run-tox.sh
@ 2016-02-16 14:41 Willem Jan Withagen (EcoRacks)
  2016-02-16 15:25 ` Loic Dachary
  0 siblings, 1 reply; 2+ messages in thread
From: Willem Jan Withagen (EcoRacks) @ 2016-02-16 14:41 UTC (permalink / raw)
  To: Ceph Development

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems whilst running ceph-disk/run-tox.sh
  2016-02-16 14:41 Problems whilst running ceph-disk/run-tox.sh Willem Jan Withagen (EcoRacks)
@ 2016-02-16 15:25 ` Loic Dachary
  0 siblings, 0 replies; 2+ messages in thread
From: Loic Dachary @ 2016-02-16 15:25 UTC (permalink / raw)
  To: wjw, Ceph Development

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@vger.kernel.org
> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-16 15:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-16 14:41 Problems whilst running ceph-disk/run-tox.sh Willem Jan Withagen (EcoRacks)
2016-02-16 15:25 ` Loic Dachary

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.