From a3a2ad4b3a1c768ac918a282e26b63834f01859d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 10 2018 05:35:06 +0000 Subject: import pcs-0.9.162-5.el7 --- diff --git a/.gitignore b/.gitignore index b0123c2..970d968 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,17 @@ SOURCES/HAM-logo.png -SOURCES/backports-3.6.8.gem +SOURCES/backports-3.9.1.gem SOURCES/ethon-0.10.1.gem -SOURCES/ffi-1.9.17.gem +SOURCES/ffi-1.9.18.gem SOURCES/mock-1.0.1.tar.gz -SOURCES/multi_json-1.12.1.gem +SOURCES/multi_json-1.12.2.gem SOURCES/open4-1.3.4.gem SOURCES/orderedhash-0.0.6.gem -SOURCES/pcs-0.9.158.tar.gz +SOURCES/pcs-0.9.162.tar.gz +SOURCES/pyagentx-0.4.pcs.1.tar.gz SOURCES/rack-1.6.4.gem SOURCES/rack-protection-1.5.3.gem -SOURCES/rack-test-0.6.3.gem +SOURCES/rack-test-0.7.0.gem SOURCES/rpam-ruby19-1.2.1.gem SOURCES/sinatra-1.4.8.gem SOURCES/sinatra-contrib-1.4.7.gem -SOURCES/tilt-2.0.6.gem +SOURCES/tilt-2.0.8.gem diff --git a/.pcs.metadata b/.pcs.metadata index f56a5ce..e7a6117 100644 --- a/.pcs.metadata +++ b/.pcs.metadata @@ -1,16 +1,17 @@ 80dc7788a3468fb7dd362a4b8bedd9efb373de89 SOURCES/HAM-logo.png -5c9dd0d5552d242ee6bb338a9097e85f0a0a45d5 SOURCES/backports-3.6.8.gem +016e62f4967d7d5706bb3c2fce0dd0c004067151 SOURCES/backports-3.9.1.gem 0e362edc1035fa4adc3e52fcc27d15e796e6e9cf SOURCES/ethon-0.10.1.gem -499119750963bd1266b4184e169eb9da76462e2a SOURCES/ffi-1.9.17.gem +2d92e5efb7753c02d277cba9ad333bb9d51998b0 SOURCES/ffi-1.9.18.gem baa3446eb63557a24c4522dc5a61cfad082fa395 SOURCES/mock-1.0.1.tar.gz -b418d7b93e99a6f7d1acb70453470aace4599d1a SOURCES/multi_json-1.12.1.gem +f4d122fe287c5199040abbcd24c8082e1b0cdf93 SOURCES/multi_json-1.12.2.gem 41a7fe9f8e3e02da5ae76c821b89c5b376a97746 SOURCES/open4-1.3.4.gem 709cc95025009e5d221e37cb0777e98582146809 SOURCES/orderedhash-0.0.6.gem -20c9d1566e18693c291deb3a23c87cc86d23be3d SOURCES/pcs-0.9.158.tar.gz +c088d3046113a6f2a6aed22fd1e1fb3daf43b5b5 SOURCES/pcs-0.9.162.tar.gz +276a92c6d679a71bd0daaf12cb7b3616f1a89b72 SOURCES/pyagentx-0.4.pcs.1.tar.gz 0a1eea6d7bb903d8c075688534480e87d4151470 SOURCES/rack-1.6.4.gem 1c28529c1d7376c61faed80f3d3297905a14c2b3 SOURCES/rack-protection-1.5.3.gem -6fd5a7f881a65ef93b66e21556ef67fbe08a2fcc SOURCES/rack-test-0.6.3.gem +3f41699c1c19ff2e2353583afa70799ced351a36 SOURCES/rack-test-0.7.0.gem a90e5a60d99445404a3c29a66d953a5e9918976d SOURCES/rpam-ruby19-1.2.1.gem 3377f6140321523d7751bed3b2cc8a5201d8ec9f SOURCES/sinatra-1.4.8.gem 83742328f21b684d6ce6c4747710c6e975b608e7 SOURCES/sinatra-contrib-1.4.7.gem -f41d9747b29b38c1dc015bc71d5df691022d9716 SOURCES/tilt-2.0.6.gem +ac4b5bc216a961287b3c2ebde877c039d2f1a83d SOURCES/tilt-2.0.8.gem diff --git a/SOURCES/bz1165821-01-pcs-CLI-GUI-should-be-capable-of.patch b/SOURCES/bz1165821-01-pcs-CLI-GUI-should-be-capable-of.patch deleted file mode 100644 index 3cf3446..0000000 --- a/SOURCES/bz1165821-01-pcs-CLI-GUI-should-be-capable-of.patch +++ /dev/null @@ -1,240 +0,0 @@ -From 75488b2abdedb58715a21e365573a64e4ab1c324 Mon Sep 17 00:00:00 2001 -From: Ondrej Mular -Date: Tue, 30 May 2017 16:47:55 +0200 -Subject: [PATCH] squash bz1165821 pcs CLI/GUI should be capable of - -e60e02d store binary data in the corosync authkey file - -bf45303 cli: add option --no-hardened to 'cluster setup' - -97dff2f web UI: add option to create not hardened cluster ---- - pcs/cli/common/parse_args.py | 2 +- - pcs/cluster.py | 23 ++++++++++++++++------- - pcs/lib/tools.py | 5 ++++- - pcs/pcs.8 | 4 +++- - pcs/usage.py | 3 +++ - pcs/utils.py | 1 + - pcsd/pcs.rb | 1 + - pcsd/pcsd.rb | 3 ++- - pcsd/remote.rb | 3 +++ - pcsd/views/manage.erb | 9 +++++++++ - 10 files changed, 43 insertions(+), 11 deletions(-) - -diff --git a/pcs/cli/common/parse_args.py b/pcs/cli/common/parse_args.py -index e2250c7..5b87fbc 100644 ---- a/pcs/cli/common/parse_args.py -+++ b/pcs/cli/common/parse_args.py -@@ -32,7 +32,7 @@ PCS_LONG_OPTIONS = [ - "miss_count_const=", "fail_recv_const=", - "corosync_conf=", "cluster_conf=", - "booth-conf=", "booth-key=", -- "remote", "watchdog=", "device=", -+ "remote", "watchdog=", "device=", "no-hardened", - #in pcs status - do not display resorce status on inactive node - "hide-inactive", - # pcs resource (un)manage - enable or disable monitor operations -diff --git a/pcs/cluster.py b/pcs/cluster.py -index 0fc5e2c..0a9289b 100644 ---- a/pcs/cluster.py -+++ b/pcs/cluster.py -@@ -70,7 +70,11 @@ from pcs.lib.node import NodeAddresses, NodeAddressesList - from pcs.lib.nodes_task import check_corosync_offline_on_nodes, distribute_files - from pcs.lib import node_communication_format - import pcs.lib.pacemaker.live as lib_pacemaker --from pcs.lib.tools import environment_file_to_dict, generate_key -+from pcs.lib.tools import ( -+ environment_file_to_dict, -+ generate_binary_key, -+ generate_key, -+) - - def cluster_cmd(argv): - if len(argv) == 0: -@@ -381,7 +385,8 @@ def cluster_setup(argv): - node_list, - options["transport_options"], - options["totem_options"], -- options["quorum_options"] -+ options["quorum_options"], -+ modifiers["hardened"] - ) - process_library_reports(messages) - -@@ -453,11 +458,12 @@ def cluster_setup(argv): - file_definitions.update( - node_communication_format.pcmk_authkey_file(generate_key()) - ) -- file_definitions.update( -- node_communication_format.corosync_authkey_file( -- generate_key(random_bytes_count=128) -+ if modifiers["hardened"]: -+ file_definitions.update( -+ node_communication_format.corosync_authkey_file( -+ generate_binary_key(random_bytes_count=128) -+ ) - ) -- ) - - distribute_files( - lib_env.node_communicator(), -@@ -736,7 +742,8 @@ def cluster_setup_parse_options_cman(options, force=False): - return parsed, messages - - def cluster_setup_create_corosync_conf( -- cluster_name, node_list, transport_options, totem_options, quorum_options -+ cluster_name, node_list, transport_options, totem_options, quorum_options, -+ is_hardened - ): - messages = [] - -@@ -752,6 +759,8 @@ def cluster_setup_create_corosync_conf( - - totem_section.add_attribute("version", "2") - totem_section.add_attribute("cluster_name", cluster_name) -+ if not is_hardened: -+ totem_section.add_attribute("secauth", "off") - - transport_options_names = ( - "transport", -diff --git a/pcs/lib/tools.py b/pcs/lib/tools.py -index cd2d7f9..b9d7505 100644 ---- a/pcs/lib/tools.py -+++ b/pcs/lib/tools.py -@@ -9,7 +9,10 @@ import os - - - def generate_key(random_bytes_count=32): -- return binascii.hexlify(os.urandom(random_bytes_count)) -+ return binascii.hexlify(generate_binary_key(random_bytes_count)) -+ -+def generate_binary_key(random_bytes_count): -+ return os.urandom(random_bytes_count) - - def environment_file_to_dict(config): - """ -diff --git a/pcs/pcs.8 b/pcs/pcs.8 -index 4edfc72..aee8b3a 100644 ---- a/pcs/pcs.8 -+++ b/pcs/pcs.8 -@@ -205,7 +205,7 @@ Add specified utilization options to specified resource. If resource is not spec - auth [node] [...] [\fB\-u\fR username] [\fB\-p\fR password] [\fB\-\-force\fR] [\fB\-\-local\fR] - Authenticate pcs to pcsd on nodes specified, or on all nodes configured in the local cluster if no nodes are specified (authorization tokens are stored in ~/.pcs/tokens or /var/lib/pcsd/tokens for root). By default all nodes are also authenticated to each other, using \fB\-\-local\fR only authenticates the local node (and does not authenticate the remote nodes with each other). Using \fB\-\-force\fR forces re\-authentication to occur. - .TP --setup [\fB\-\-start\fR [\fB\-\-wait\fR[=]]] [\fB\-\-local\fR] [\fB\-\-enable\fR] \fB\-\-name\fR [] [...] [\fB\-\-transport\fR udpu|udp] [\fB\-\-rrpmode\fR active|passive] [\fB\-\-addr0\fR [[[\fB\-\-mcast0\fR
] [\fB\-\-mcastport0\fR ] [\fB\-\-ttl0\fR ]] | [\fB\-\-broadcast0\fR]] [\fB\-\-addr1\fR [[[\fB\-\-mcast1\fR
] [\fB\-\-mcastport1\fR ] [\fB\-\-ttl1\fR ]] | [\fB\-\-broadcast1\fR]]]] [\fB\-\-wait_for_all\fR=<0|1>] [\fB\-\-auto_tie_breaker\fR=<0|1>] [\fB\-\-last_man_standing\fR=<0|1> [\fB\-\-last_man_standing_window\fR=