== sanity-sec test 86a: nodemap version policy blocks or allows client versions ========================================================== 16:34:00 (1789677240) 192.168.202.118@tcp:/lustre /mnt/lustre lustre rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg218-client.virtnet /mnt/lustre (opts:) oleg218-server: error: nodemap 'c0' does not exist oleg218-server: nodemap_del: Invalid argument pdsh@oleg218-client: oleg218-server: ssh exited with exit code 1 On MGS 192.168.202.118, active = nodemap.active=1 oleg218-server: error: invalid ioctl: 000ce06a errno: 22: Invalid argument oleg218-server: error: nodemap_set_version_policy: cannot set version policy 'warn:*' on nodemap 'c0': Invalid argument pdsh@oleg218-client: oleg218-server: ssh exited with exit code 22 oleg218-server: nodemap_set_version_policy: missing glob pdsh@oleg218-client: oleg218-server: ssh exited with exit code 4 define which client versions may connect from a nodemap usage: nodemap_set_version_policy --name NODEMAP_NAME --policy {allow|block} [--glob VERSION_GLOB] On MGS 192.168.202.118, c0.version_policy = nodemap.c0.version_policy=block:0.0.* Starting client oleg218-client.virtnet: -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Mount client oleg218-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Started clients oleg218-client.virtnet: 192.168.202.118@tcp:/lustre on /mnt/lustre type lustre (rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose) 192.168.202.118@tcp:/lustre /mnt/lustre lustre rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg218-client.virtnet /mnt/lustre (opts:) On MGS 192.168.202.118, c0.version_policy = nodemap.c0.version_policy=block:2.17.* Starting client oleg218-client.virtnet: -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre mount.lustre: mount 192.168.202.118@tcp:/lustre at /mnt/lustre failed: Permission denied Mount client oleg218-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre On MGS 192.168.202.118, c0.version_policy = nodemap.c0.version_policy=allow:2.17.* Starting client oleg218-client.virtnet: -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Mount client oleg218-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Started clients oleg218-client.virtnet: 192.168.202.118@tcp:/lustre on /mnt/lustre type lustre (rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose) 192.168.202.118@tcp:/lustre /mnt/lustre lustre rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose 0 0 Stopping client oleg218-client.virtnet /mnt/lustre (opts:) On MGS 192.168.202.118, c0.version_policy = nodemap.c0.version_policy=allow:0.0.* Starting client oleg218-client.virtnet: -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre mount.lustre: mount 192.168.202.118@tcp:/lustre at /mnt/lustre failed: Permission denied Mount client oleg218-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre On MGS 192.168.202.118, c0.version_policy = nodemap.c0.version_policy=allow:* Starting client oleg218-client.virtnet: -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Mount client oleg218-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.202.118@tcp:/lustre /mnt/lustre Started clients oleg218-client.virtnet: 192.168.202.118@tcp:/lustre on /mnt/lustre type lustre (rw,flock,checksum,encrypt,lazystatfs,lruresize,nolock,statfs_project,nosync_on_close,nouser_fid2path,user_xattr,verbose) On MGS 192.168.202.118, active = nodemap.active=0