pbs_snapshot --obfuscate option is partially obfuscating the PBS data captured

Description

PBS snapshot obfuscation is not complete, but currently happening on partial PBS data. It should be applied on whole PBS data captured.
Example a custom resource foo4 created is replaced only in sched_config, but not in any other data:

pbs_snapshot --obfuscate -o ~/tars/

[root@skhvm snapshot_20170804_15_36_09]# cat ../obfuscate.map
Attributes Values: {'host': {'rAtSE/1|exec': 'lJPjLWrYrqcG', 'rAtSE/0|exec': 'CiHrRrhunRfg', '*': 'j', 'skhvm': 'rAtSE'}, 'Mom': {'skhvm': 'LIQdL'}, 'group': {'saritah': 'KGOYPhA'}, 'user': {'': '', 'uzapiXG': 'cLLKMOA', 'saritah': 'mRAlVkE', 'pbsadmin': 'ewfAlVkq', 'KGOYPhA': 'uzapiXG', 'Scheduler': 'GBUDAsSGA'}, 'resources_available.vnode': {'lt[1]': 'meURU', '<various>': 'yyvhRDLrI', 'lt[0]': 'EIIOm', 'skhvm': 'ACUmr'}}
Resources Values: {}
Attributes Keys: {'17.2.0.201': 'wxsHLlHfhM', '192.168.33.34': 'dDajOGZSlPNvG'}
Resources Keys: {'foo4': 'WAOO', 'foo1': 'pIDl', 'foo2': 'ktBh', 'foo3': 'JvgY'}[root@skhvm snapshot_20170804_15_36_09]#
[root@skhvm snapshot_20170804_15_36_09]#
[root@skhvm snapshot_20170804_15_36_09]# grep -R foo4 *
mom_priv/hooks/resourcedef:foo4 type=string_array
server/qmgr_ps.out:# Create and define resource foo4
server/qmgr_ps.out:create resource foo4
server/qmgr_ps.out:set resource foo4 type = string_array
server/qmgr_pr.out:# Create and define resource foo4
server/qmgr_pr.out:create resource foo4
server/qmgr_pr.out:set resource foo4 type = string_array
server_logs/20170803:08/03/2017 14:35:50;0004;Server@skhvm;Resc;foo4;created at request of root@skhvm
server_logs/20170803:08/03/2017 14:35:50;0004;Server@skhvm;Resc;foo4;attributes set: type = string_array
server_priv/hooks/resourcedef:foo4 type=string_array
server_priv/resourcedef:foo4 type=string_array
[root@skhvm snapshot_20170804_15_36_09]#
[root@skhvm snapshot_20170804_15_36_09]#
[root@skhvm snapshot_20170804_15_36_09]# *grep -R WAOO **
sched_priv/sched_config:resources: ncpus,mem,arch,host,vnode,aoe,pIDl,ktBh,JvgY,WAOO
[root@skhvm snapshot_20170804_15_36_09]#

Reference link for Design documentation:
https://pbspro.atlassian.net/wiki/spaces/PD/pages/51614810

Acceptance Criteria

None

Status

Assignee

Ravi Agrawal

Reporter

sarita kh

Severity

None

OS

None

Start Date

None

Pull Request URL

None

Story Points

1

Components

Priority

High
Configure