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