== sanity-sec test 86a: nodemap version policy blocks or allows client versions ========================================================== 16:36:41 (1789677401) 192.168.206.142@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 oleg642-client.virtnet /mnt/lustre (opts:) oleg642-server: error: nodemap 'c0' does not exist oleg642-server: nodemap_del: Invalid argument pdsh@oleg642-client: oleg642-server: ssh exited with exit code 1 On MGS 192.168.206.142, active = nodemap.active=1 oleg642-server: error: invalid ioctl: 000ce06a errno: 22: Invalid argument oleg642-server: error: nodemap_set_version_policy: cannot set version policy 'warn:*' on nodemap 'c0': Invalid argument pdsh@oleg642-client: oleg642-server: ssh exited with exit code 22 oleg642-server: nodemap_set_version_policy: missing glob pdsh@oleg642-client: oleg642-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.206.142, c0.version_policy = nodemap.c0.version_policy=block:0.0.* Starting client oleg642-client.virtnet: -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Mount client oleg642-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Started clients oleg642-client.virtnet: 192.168.206.142@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.206.142@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 oleg642-client.virtnet /mnt/lustre (opts:) On MGS 192.168.206.142, c0.version_policy = nodemap.c0.version_policy=block:2.17.* Starting client oleg642-client.virtnet: -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre mount.lustre: mount 192.168.206.142@tcp:/lustre at /mnt/lustre failed: Permission denied Mount client oleg642-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre On MGS 192.168.206.142, c0.version_policy = nodemap.c0.version_policy=allow:2.17.* Starting client oleg642-client.virtnet: -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Mount client oleg642-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Started clients oleg642-client.virtnet: 192.168.206.142@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.206.142@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 oleg642-client.virtnet /mnt/lustre (opts:) On MGS 192.168.206.142, c0.version_policy = nodemap.c0.version_policy=allow:0.0.* Starting client oleg642-client.virtnet: -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre mount.lustre: mount 192.168.206.142@tcp:/lustre at /mnt/lustre failed: Permission denied Mount client oleg642-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre On MGS 192.168.206.142, c0.version_policy = nodemap.c0.version_policy=allow:* Starting client oleg642-client.virtnet: -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Mount client oleg642-client.virtnet: mount -t lustre -o user_xattr,flock 192.168.206.142@tcp:/lustre /mnt/lustre Started clients oleg642-client.virtnet: 192.168.206.142@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.206.142, active = nodemap.active=0