Split HMS from SDP, such that HMS will live on as a separate product,
layered on the SDP.
Many of the files deleted here have already been copied to HMS. See
these HMS changes:
And this branch spec: SDP_Split_2019.2_HMS
In mkrep.sh, HMS-awareness is removed from mkrep.sh, a core SDP script, and
the '-f' (Full Setup) flag has been temporarily removed. This useful
functionality will be restored in an HMS script. This is a big change,
so shellcheck v0.6.0 was implemented to support it.
Corrected dependencies related to bash version and tweaked comments.
Fixed hms status issues.
Fixed issue getting status of SSL-enabled servers requiring SDP environment
(including P4TRUST) to be set, incorporating new irun utility.
Fixed issue with illegal negative exit codes in get_component_status().
Added in-code docs for component status values.
Fixed get_component_list() to remove call-stack info in high-verbosity mode,
due to text output being interpreted as data.
Update to hms script to do two new functions: pull and df.
Pull issues a pull -lj on all the edge/replica servers to get the status
df issues a diskspace on all the servers.
The reason for this is with a hardened edge environment the P4USER does not have permissions
to run these commands on the edge servers. Therefore we need to run them centrally as a super.
This replaces the replica_status commands on the edge.
The updates also includes an update to the p4_vars to change the P4USER on an edge server.
The idea is that P4USER only has super privs on the master on the replica edge servers the default user can only
have admin privs. This is so the box adminstrator in restricted regions can't change the protection table.
Hence the need for pull df centrally as these are the only commands that can't be run on the replicas/edges from the
maintance scripts. It also goes without saying that ssh should only go out from the commit and never back.
Doc typo fixes only, no functional change.
Bypassing pre-commit review.
HMS change, to simplify setup on compliant platforms (i.e. those using bash 4.x).
The shebang line for all bash scripts has been standardized to /bin/bash, and
bash checks for $BASH_VERSION added where needed. References to having a
custom-built /usr/local/bin/bash have been removed.
As a trade-off, non-compliant platforms (way-old Linux and Mac using bash 3.x) will
have a bit more work to do to work with shebang lines.
|#3||20852||tom_tyler||The 'hms -c <cfg>' flag now conveniently looks in /p4/common/config.|
|#2||20805||tom_tyler||Implemented global/central start stop.|
Approving as is since it isn't changing core SDP functionality, and reviewing it all line by line will take some time. We can do that as we move forward with it.
First addition of HMS v1.0 files. This change is a soft launch HMS
for initial deployment and testing.
Updates to HMS-related files are expected and will bypass pre-commit
code review until stabilized.