Skip to contentSkip to conversation

jewel backports: cephfs.InvalidValue: error in setxattr

DISCUSSION Loic Dachary 4 participants 6 messages Aug 15, 2016 – Aug 29, 2016

lore
Share & tools
lore
#0 lore raw

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr

This is jewel with a number of CephFS related backports

https://github.com/ceph/ceph/tree/jewel-backports but I can't see which one could cause that kind of error.

There are a few differences between the jewel and master branch of ceph-qa-suite, but it does not seem to be the cause;

git log --no-merges --oneline --cherry-mark --left-right ceph/jewel...ceph/master -- suites/fs

Quoted 4 lines

ed1e7f1 suites/fs: fix log whitelist for inotable repair 41e51eb suites: fix asok_dump_tree.yaml
c669f1e cephfs: add test for dump tree admin socket command 60dc968 suites/fs: log whitelist for inotable repair

= 1558a48 fs: add snapshot tests to mds thrashing
= b9b18c7 fs: add snapshot tests to mds thrashing

Quoted 5 lines

dc165e6 cephfs: test fragment size limit
4179c85 suites/fs: use simple messenger some places
367973b cephfs: test readahead is working
795d586 suites/fs/permission: run qa/workunits/fs/misc/{acl.sh,chmod.sh} 45b8e9c suites/fs: fix config for enabling libcephfs posix ACL

= fe74a2c suites: allow four remote clients for fs/recovery = b970f97 suites: allow four remote clients for fs/recovery

If that rings a bell, let me know. Otherwise I'll keep digging to narrow it down.

Cheers

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#1 lore raw
Quoted 4 lines · Loic Dachary

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

Quoted 9 lines
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr

The error is because MDS had outdated osdmap and thought the newly creately pool does not exist. (MDS has code that makes sure its osdmap is the same as or newer than fs client's osdmap) For this case, It seems both mds and fs client had outdated osdmap. Pool creation was through self.rados. self.rados had the newest olsdmap, but self.fs might have outdated osdmap.

Regards
Yan, Zheng

Quoted 32 lines

This is jewel with a number of CephFS related backports

https://github.com/ceph/ceph/tree/jewel-backports but I can't see which one could cause that kind of error.

There are a few differences between the jewel and master branch of ceph-qa-suite, but it does not seem to be the cause;

git log --no-merges --oneline --cherry-mark --left-right ceph/jewel...ceph/master -- suites/fs

Quoted 4 lines

ed1e7f1 suites/fs: fix log whitelist for inotable repair 41e51eb suites: fix asok_dump_tree.yaml
c669f1e cephfs: add test for dump tree admin socket command 60dc968 suites/fs: log whitelist for inotable repair

= 1558a48 fs: add snapshot tests to mds thrashing
= b9b18c7 fs: add snapshot tests to mds thrashing

Quoted 5 lines

dc165e6 cephfs: test fragment size limit
4179c85 suites/fs: use simple messenger some places
367973b cephfs: test readahead is working
795d586 suites/fs/permission: run qa/workunits/fs/misc/{acl.sh,chmod.sh} 45b8e9c suites/fs: fix config for enabling libcephfs posix ACL

= fe74a2c suites: allow four remote clients for fs/recovery = b970f97 suites: allow four remote clients for fs/recovery

If that rings a bell, let me know. Otherwise I'll keep digging to narrow it down.

Cheers

--
Loïc Dachary, Artisan Logiciel Libre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi Yan,

Quoted 15 lines · Zheng
Quoted 4 lines · Loic Dachary

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

Quoted 9 lines
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr
Quoted 6 lines

The error is because MDS had outdated osdmap and thought the newly creately pool does not exist. (MDS has code that makes sure its osdmap is the same as or newer than fs client's osdmap) For this case, It seems both mds and fs client had outdated osdmap. Pool creation was through self.rados. self.rados had the newest olsdmap, but self.fs might have outdated osdmap.

Interesting. Do you know why this happens ? Is there a specific pull request that causes this ?

Thanks a lot for your help !

Quoted 42 lines

Regards
Yan, Zheng

Quoted 24 lines

This is jewel with a number of CephFS related backports

https://github.com/ceph/ceph/tree/jewel-backports but I can't see which one could cause that kind of error.

There are a few differences between the jewel and master branch of ceph-qa-suite, but it does not seem to be the cause;

git log --no-merges --oneline --cherry-mark --left-right ceph/jewel...ceph/master -- suites/fs

Quoted 4 lines

ed1e7f1 suites/fs: fix log whitelist for inotable repair 41e51eb suites: fix asok_dump_tree.yaml
c669f1e cephfs: add test for dump tree admin socket command 60dc968 suites/fs: log whitelist for inotable repair

= 1558a48 fs: add snapshot tests to mds thrashing
= b9b18c7 fs: add snapshot tests to mds thrashing

Quoted 5 lines

dc165e6 cephfs: test fragment size limit
4179c85 suites/fs: use simple messenger some places
367973b cephfs: test readahead is working
795d586 suites/fs/permission: run qa/workunits/fs/misc/{acl.sh,chmod.sh} 45b8e9c suites/fs: fix config for enabling libcephfs posix ACL

= fe74a2c suites: allow four remote clients for fs/recovery = b970f97 suites: allow four remote clients for fs/recovery

If that rings a bell, let me know. Otherwise I'll keep digging to narrow it down.

Quoted 8 lines

Cheers

--
Loïc Dachary, Artisan Logiciel Libre
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre
#3 lore raw
Quoted 25 lines · Loic Dachary

Hi Yan,

Quoted 15 lines · Zheng
Quoted 4 lines · Loic Dachary

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

Quoted 9 lines
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr
Quoted 6 lines

The error is because MDS had outdated osdmap and thought the newly creately pool does not exist. (MDS has code that makes sure its osdmap is the same as or newer than fs client's osdmap) For this case, It seems both mds and fs client had outdated osdmap. Pool creation was through self.rados. self.rados had the newest olsdmap, but self.fs might have outdated osdmap.

Quoted 3 lines

Interesting. Do you know why this happens ? Is there a specific pull request that causes this ?

Thanks a lot for your help !

Not sure about the specific PR, but in general when running commands referencing pools, you need a new enough OSDMap to see the pool everywhere it's used. We have a lot of logic and extra data passing in the FS layers to make sure those OSDMaps appear transparently, but if you create the pool through RADOS the FS clients have no idea of its existence and the caller needs to wait themselves.
-Greg

#4 lore raw
Quoted 28 lines · Gregory Farnum
Quoted 27 lines · Loic Dachary

Hi Yan,

Quoted 15 lines · Zheng
Quoted 4 lines · Loic Dachary

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

Quoted 9 lines
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr
Quoted 6 lines

The error is because MDS had outdated osdmap and thought the newly creately pool does not exist. (MDS has code that makes sure its osdmap is the same as or newer than fs client's osdmap) For this case, It seems both mds and fs client had outdated osdmap. Pool creation was through self.rados. self.rados had the newest olsdmap, but self.fs might have outdated osdmap.

Interesting. Do you know why this happens ? Is there a specific pull request that causes this ?

Quoted 8 lines
Quoted 1 line

Thanks a lot for your help !

Not sure about the specific PR, but in general when running commands referencing pools, you need a new enough OSDMap to see the pool everywhere it's used. We have a lot of logic and extra data passing in the FS layers to make sure those OSDMaps appear transparently, but if you create the pool through RADOS the FS clients have no idea of its existence and the caller needs to wait themselves.

Loic, was this failure reproducible or a one off?

What's supposed to happen here is that Client::ll_setxattr calls wait_for_latest_osdmap when it sees a set to ceph.dir.layout.pool, and thereby picks up the pool that was just created. It shouldn't be racy :-/

There is only the MDS log from this failure, in which the EINVAL is being generated on the server side. Hmm.

John

#5 lore raw

Hi John,

Quoted 31 lines · John Spray
Quoted 30 lines · Gregory Farnum
Quoted 28 lines · Loic Dachary

Hi Yan,

Quoted 15 lines · Zheng
Quoted 4 lines · Loic Dachary

Hi John,

http://pulpito.ceph.com/loic-2016-08-15_07:35:11-fs-jewel-backports-distro-basic-smithi/364579/ has the following error:

Quoted 9 lines
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: /volumes/grpid/volid
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:create_volume: grpid/volid, create pool fsvolume_volid as data_isolated =True.
2016-08-15T08:13:22.919 INFO:teuthology.orchestra.run.smithi052.stderr:Traceback (most recent call last):
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "<string>", line 11, in <module>
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "/usr/lib/python2.7/dist-packages/ceph_volume_client.py", line 632, in create_volume
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:    self.fs.setxattr(path, 'ceph.dir.layout.pool', pool_name, 0)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:  File "cephfs.pyx", line 779, in cephfs.LibCephFS.setxattr (/srv/autobuild-ceph/gitbuilder.git/build/out~/ceph-10.2.2-351-g431d02a/src/build/cephfs.c:10542)
2016-08-15T08:13:22.920 INFO:teuthology.orchestra.run.smithi052.stderr:cephfs.InvalidValue: error in setxattr
Quoted 6 lines

The error is because MDS had outdated osdmap and thought the newly creately pool does not exist. (MDS has code that makes sure its osdmap is the same as or newer than fs client's osdmap) For this case, It seems both mds and fs client had outdated osdmap. Pool creation was through self.rados. self.rados had the newest olsdmap, but self.fs might have outdated osdmap.

Interesting. Do you know why this happens ? Is there a specific pull request that causes this ?

Thanks a lot for your help !

Quoted 8 lines
Quoted 6 lines

Not sure about the specific PR, but in general when running commands referencing pools, you need a new enough OSDMap to see the pool everywhere it's used. We have a lot of logic and extra data passing in the FS layers to make sure those OSDMaps appear transparently, but if you create the pool through RADOS the FS clients have no idea of its existence and the caller needs to wait themselves.

Loic, was this failure reproducible or a one off?

It was a one off. See http://tracker.ceph.com/issues/16344#note-21 for two other runs of the same job, in an attempt to reproduce it.

Quoted 15 lines

What's supposed to happen here is that Client::ll_setxattr calls wait_for_latest_osdmap when it sees a set to ceph.dir.layout.pool, and thereby picks up the pool that was just created. It shouldn't be racy :-/

There is only the MDS log from this failure, in which the EINVAL is being generated on the server side. Hmm.

John
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 1 line
Loïc Dachary, Artisan Logiciel Libre