Sizes of attributes and attributenames....
Hi,
I'm getting bitten in tests/ceph-disk.sh by.
2 osd.0 0 boot
-1 osd.0 0 backend (filestore) is unable to support max object name[space] len
-1 osd.0 0 osd max object name len = 2048
-1 osd.0 0 osd max object namespace len = 256
-1 osd.0 0 (63) File name too long
1 journal close test-ceph-disk/dir/journal
-1 ** ERROR: osd init failed: (63) File name too long
And it seems that I did have this fixed in one run or another, but now it raises it scary head again.
Now I think it is posible to fix this by starting vstart -short, but that does not cut it with other tests, so it seems.
Now the actual test is:
int FileStore::validate_hobject_key(const hobject_t &obj) const {
unsigned len = LFNIndex::get_max_escaped_name_len(obj); return len > m_filestore_max_xattr_value_size ? -ENAMETOOLONG : 0;
}
So the actual question is:
It is not about file size, but the maximum length for an attribute NAME to be stored with a file?
--WjW
Quoted 14 lines · Willem Jan Withagen
Hi,
I'm getting bitten in
tests/ceph-disk.shby.2 osd.0 0 boot
-1 osd.0 0 backend (filestore) is unable to support max object name[space] len
-1 osd.0 0 osd max object name len = 2048
-1 osd.0 0 osd max object namespace len = 256
-1 osd.0 0 (63) File name too long
1 journal close test-ceph-disk/dir/journal
-1 ** ERROR: osd init failed: (63) File name too long
Quoted 4 lines
And it seems that I did have this fixed in one run or another, but now it raises it scary head again.
Now I think it is posible to fix this by starting vstart -short, but that does not cut it with other tests, so it seems.
I think we either need to do --short unconditionally for the make check vstart tests, or have an environment variable that does it conditionally. I'm inclined to do it unconditionally... Loic, does that seem reasonable? That way make check can work reliably on ext4.
sage
Quoted 20 lines · Sage Weil
Quoted 14 lines · Willem Jan Withagen
Hi,
I'm getting bitten in
tests/ceph-disk.shby.2 osd.0 0 boot
-1 osd.0 0 backend (filestore) is unable to support max object name[space] len
-1 osd.0 0 osd max object name len = 2048
-1 osd.0 0 osd max object namespace len = 256
-1 osd.0 0 (63) File name too long
1 journal close test-ceph-disk/dir/journal
-1 ** ERROR: osd init failed: (63) File name too longQuoted 4 lines
And it seems that I did have this fixed in one run or another, but now it raises it scary head again.
Now I think it is posible to fix this by starting vstart -short, but that does not cut it with other tests, so it seems.
Quoted 4 lines
I think we either need to do --short unconditionally for the make check vstart tests, or have an environment variable that does it conditionally. I'm inclined to do it unconditionally... Loic, does that seem reasonable? That way make check can work reliably on ext4.
I've now "fixed" it, rather bluntly, in:common/config_opts.h, like:
#if defined(__FreeBSD__)
// Assuming ZFS OPTION(filestore_max_inline_xattr_size_other, OPT_U32, 2048) #else OPTION(filestore_max_inline_xattr_size_other, OPT_U32, 512) #endif
While that works for my porting and testing, I would definitely not consider that a permanent band-aid.
If this would be the way to go, then it is perhaps smart to also add some filestore_*_zfs options, and work from there.
Even if it is only for the time being, it is for me a workable option.
But as far as I can tell you are aiming for the names of attributes to be max 2048? and filenames 256? is it that simple?
Thinking about this leads me to a more roadmap type question:
Now the future problem occurs if people are going to connect OSDs to the cluster that are of different origine. Like we now have a few nodes running:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
running on btrfs (that is the way things started here, me being a ZFS fan)
How would they interact with systems running XFS, BlueStore or FreeBSD/ZFS.?
Either there is a least common denominator, thus reducing everything to the worst available length.
Or there is a "serious" conversion glue layer
Or it is not really wanted/supported/allowed in all mixes and combinations.
Just curious....
--WjW
Quoted 36 lines · Willem Jan Withagen
Quoted 20 lines · Sage Weil
Quoted 14 lines · Willem Jan Withagen
Hi,
I'm getting bitten in
tests/ceph-disk.shby.2 osd.0 0 boot
-1 osd.0 0 backend (filestore) is unable to support max object name[space] len
-1 osd.0 0 osd max object name len = 2048
-1 osd.0 0 osd max object namespace len = 256
-1 osd.0 0 (63) File name too long
1 journal close test-ceph-disk/dir/journal
-1 ** ERROR: osd init failed: (63) File name too longQuoted 4 lines
And it seems that I did have this fixed in one run or another, but now it raises it scary head again.
Now I think it is posible to fix this by starting vstart -short, but that does not cut it with other tests, so it seems.Quoted 4 lines
I think we either need to do --short unconditionally for the make check vstart tests, or have an environment variable that does it conditionally. I'm inclined to do it unconditionally... Loic, does that seem reasonable? That way make check can work reliably on ext4.
I've now "fixed" it, rather bluntly, in:
common/config_opts.h, like:#if
defined(__FreeBSD__)
// Assuming ZFSOPTION(filestore_max_inline_xattr_size_other, OPT_U32, 2048)#elseOPTION(filestore_max_inline_xattr_size_other, OPT_U32, 512)#endif
Quoted 2 lines
While that works for my porting and testing, I would definitely not consider that a permanent band-aid.
Ah, I think this is the right direction. Instead of redefining other, though, can you add a _zfs option (like the other types) and update the code to use that if the fs type is zfs?
Quoted 7 lines
Now the future problem occurs if people are going to connect OSDs to the cluster that are of different origine. Like we now have a few nodes running:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
running on btrfs (that is the way things started here, me being a ZFS fan)
These options are a layer down from the configured limits. The (presumably cluster-wide) config option will specify what name length limits are set, and individual osds will refuse to start if they can't support that given what they believe the backend fs cna do (based on the above options).
sage
Quoted 37 lines · Sage Weil
Quoted 36 lines · Willem Jan Withagen
Quoted 20 lines · Sage Weil
Quoted 14 lines · Willem Jan Withagen
Hi,
I'm getting bitten in
tests/ceph-disk.shby.2 osd.0 0 boot
-1 osd.0 0 backend (filestore) is unable to support max object name[space] len
-1 osd.0 0 osd max object name len = 2048
-1 osd.0 0 osd max object namespace len = 256
-1 osd.0 0 (63) File name too long
1 journal close test-ceph-disk/dir/journal
-1 ** ERROR: osd init failed: (63) File name too longQuoted 4 lines
And it seems that I did have this fixed in one run or another, but now it raises it scary head again.
Now I think it is posible to fix this by starting vstart -short, but that does not cut it with other tests, so it seems.Quoted 4 lines
I think we either need to do --short unconditionally for the make check vstart tests, or have an environment variable that does it conditionally. I'm inclined to do it unconditionally... Loic, does that seem reasonable? That way make check can work reliably on ext4.
I've now "fixed" it, rather bluntly, in:
common/config_opts.h, like:#if
defined(__FreeBSD__)
// Assuming ZFSOPTION(filestore_max_inline_xattr_size_other, OPT_U32, 2048)#elseOPTION(filestore_max_inline_xattr_size_other, OPT_U32, 512)#endif
Quoted 6 lines
Quoted 2 lines
While that works for my porting and testing, I would definitely not consider that a permanent band-aid.
Ah, I think this is the right direction. Instead of redefining other, though, can you add a
_zfsoption (like the other types) and update the code to use that if the fs type is zfs?
Right, I''ll go and start putting this in. this was the shortest path without changing much. Thusfar the tests actually complete with the zfs conditionals I made.
But I do not have the feeling that there are UnitTests that actually stress these boundaries?
So now osd-markdown is the only one not working for me. Next to not fully understanding the test. :(
Quoted 8 lines
Quoted 7 lines
Now the future problem occurs if people are going to connect OSDs to the cluster that are of different origine. Like we now have a few nodes running:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
running on btrfs (that is the way things started here, me being a ZFS fan)
Quoted 5 lines
These options are a layer down from the configured limits. The (presumably cluster-wide) config option will specify what name length limits are set, and individual osds will refuse to start if they can't support that given what they believe the backend fs cna do (based on the above options).
Oke, so as long as people keep moving "forward" and the limit grow bigger in that process, nothing should happen. Unless a platforms want to join the cluster that cannot meet the limits. And than that is a no go.
--WjW