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