summaryrefslogtreecommitdiffstats
path: root/base/server/src/engine
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2013-04-03 11:15:22 -0400
committerAbhishek Koneru <akoneru@redhat.com>2013-04-09 14:30:33 -0400
commita6e094ac61ed2ec25bfc4deec882fcff4202c027 (patch)
tree5e3607d44d4f3ccb2e051f8ae2fe1b923b8f930b /base/server/src/engine
parentb7c385c6fb4ce8be999aa7fbc41c457da751f770 (diff)
downloadpki-a6e094ac61ed2ec25bfc4deec882fcff4202c027.tar.gz
pki-a6e094ac61ed2ec25bfc4deec882fcff4202c027.tar.xz
pki-a6e094ac61ed2ec25bfc4deec882fcff4202c027.zip
Remove the respawn logic in deploy scripts.
Remove all the declarations, definitions and invocations of respawn() method in the deploment scripts. Remove the -u update option in pkispawn script. Ticket #542
Diffstat (limited to 'base/server/src/engine')
-rw-r--r--base/server/src/engine/pkiconfig.py4
-rw-r--r--base/server/src/engine/pkimessages.py15
-rw-r--r--base/server/src/engine/pkiparser.py16
-rw-r--r--base/server/src/engine/pkiscriptlet.py6
4 files changed, 1 insertions, 40 deletions
diff --git a/base/server/src/engine/pkiconfig.py b/base/server/src/engine/pkiconfig.py
index ad6c22251..3a3a7df18 100644
--- a/base/server/src/engine/pkiconfig.py
+++ b/base/server/src/engine/pkiconfig.py
@@ -114,10 +114,6 @@ pki_deployed_instance_name = None
pki_secdomain_user = None
pki_secdomain_pass = None
-# PKI Deployment "Optional" Command-Line Variables
-# 'pkispawn' ONLY
-pki_update_flag = False
-
# PKI Deployment "Test" Command-Line Variables
pki_root_prefix = None
diff --git a/base/server/src/engine/pkimessages.py b/base/server/src/engine/pkimessages.py
index a6361dc8b..8a3a280f3 100644
--- a/base/server/src/engine/pkimessages.py
+++ b/base/server/src/engine/pkimessages.py
@@ -121,10 +121,6 @@ PKIDESTROY_EPILOG =\
" prepended to the default PKI instance path which is placed in front\n"\
" of the specified '-i <instance>' parameter.\n\n" +\
PKI_VERBOSITY
-PKIRESPAWN_BEGIN_MESSAGE_2 = "BEGIN respawning subsystem '%s' of "\
- "instance '%s' . . ."
-PKIRESPAWN_END_MESSAGE_2 = "END respawning subsystem '%s' of "\
- "instance '%s'"
PKISPAWN_BEGIN_MESSAGE_2 = "BEGIN spawning subsystem '%s' of "\
"instance '%s' . . ."
PKISPAWN_END_MESSAGE_2 = "END spawning subsystem '%s' of "\
@@ -314,39 +310,28 @@ PKI_CONFIG_NOT_YET_IMPLEMENTED_1 = " %s NOT YET IMPLEMENTED"
# PKI Deployment "Scriptlet" Messages
ADMIN_DOMAIN_DESTROY_1 = "depopulating '%s'"
-ADMIN_DOMAIN_RESPAWN_1 = "repopulating '%s'"
ADMIN_DOMAIN_SPAWN_1 = "populating '%s'"
CONFIGURATION_DESTROY_1 = "unconfiguring '%s'"
-CONFIGURATION_RESPAWN_1 = "reconfiguring '%s'"
CONFIGURATION_SPAWN_1 = "configuring '%s'"
FINALIZATION_DESTROY_1 = "finalizing '%s'"
-FINALIZATION_RESPAWN_1 = "finalizing '%s'"
FINALIZATION_SPAWN_1 = "finalizing '%s'"
INITIALIZATION_DESTROY_1 = "initializing '%s'"
-INITIALIZATION_RESPAWN_1 = "initializing '%s'"
INITIALIZATION_SPAWN_1 = "initializing '%s'"
INSTANCE_DESTROY_1 = "depopulating '%s'"
-INSTANCE_RESPAWN_1 = "repopulating '%s'"
INSTANCE_SPAWN_1 = "populating '%s'"
RESIDUAL_DESTROY_1 = "depopulating '%s'"
-RESIDUAL_RESPAWN_1 = "repopulating '%s'"
RESIDUAL_SPAWN_1 = "populating '%s'"
SECURITY_DATABASES_DESTROY_1 = "removing '%s'"
-SECURITY_DATABASES_RESPAWN_1 = "regenerating '%s'"
SECURITY_DATABASES_SPAWN_1 = "generating '%s'"
SELINUX_DESTROY_1 = "depopulating '%s'"
-SELINUX_RESPAWN_1 = "repopulating '%s'"
SELINUX_SPAWN_1 = "populating '%s'"
SELINUX_DISABLED_DESTROY_1 = "selinux disabled. skipping unlabelling '%s'"
SELINUX_DISABLED_SPAWN_1 = "selinux disabled. skipping labelling '%s'"
SLOT_ASSIGNMENT_DESTROY_1 = "unassigning slots for '%s'"
-SLOT_ASSIGNMENT_RESPAWN_1 = "reassigning slots for '%s'"
SLOT_ASSIGNMENT_SPAWN_1 = "assigning slots for '%s'"
SUBSYSTEM_DESTROY_1 = "depopulating '%s'"
-SUBSYSTEM_RESPAWN_1 = "repopulating '%s'"
SUBSYSTEM_SPAWN_1 = "populating '%s'"
WEBAPP_DEPLOYMENT_DESTROY_1 = "removing '%s'"
-WEBAPP_DEPLOYMENT_RESPAWN_1 = "redeploying '%s'"
WEBAPP_DEPLOYMENT_SPAWN_1 = "deploying '%s'"
SKIP_ADMIN_DOMAIN_SPAWN_1 = "skip populating '%s'"
SKIP_CONFIGURATION_SPAWN_1 = "skip configuring '%s'"
diff --git a/base/server/src/engine/pkiparser.py b/base/server/src/engine/pkiparser.py
index c4bf9b886..047e8614e 100644
--- a/base/server/src/engine/pkiparser.py
+++ b/base/server/src/engine/pkiparser.py
@@ -412,7 +412,7 @@ class PKIConfigParser:
def compose_pki_master_dictionary(self):
"Create a single master PKI dictionary from the sectional dictionaries"
try:
- # 'pkispawn'/'pkirespawn'/'pkidestroy' name/value pairs
+ # 'pkispawn'/'pkidestroy' name/value pairs
config.pki_master_dict['pki_deployment_executable'] =\
config.pki_deployment_executable
config.pki_master_dict['pki_install_time'] = config.pki_install_time
@@ -987,16 +987,6 @@ class PKIConfigParser:
"spawn" + "_" +\
config.USER_DEPLOYMENT_CONFIGURATION + "." +\
config.pki_master_dict['pki_timestamp']
- config.pki_master_dict['pki_default_deployment_cfg_respawn_archive'] =\
- config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
- "respawn" + "_" +\
- config.DEFAULT_DEPLOYMENT_CONFIGURATION + "." +\
- config.pki_master_dict['pki_timestamp']
- config.pki_master_dict['pki_user_deployment_cfg_respawn_archive'] =\
- config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
- "respawn" + "_" +\
- config.USER_DEPLOYMENT_CONFIGURATION + "." +\
- config.pki_master_dict['pki_timestamp']
config.pki_master_dict['pki_manifest'] =\
config.pki_master_dict['pki_subsystem_registry_path'] + "/" +\
"manifest"
@@ -1004,10 +994,6 @@ class PKIConfigParser:
config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
"spawn" + "_" + "manifest" + "." +\
config.pki_master_dict['pki_timestamp']
- config.pki_master_dict['pki_manifest_respawn_archive'] =\
- config.pki_master_dict['pki_subsystem_archive_log_path'] + "/" +\
- "respawn" + "_" + "manifest" + "." +\
- config.pki_master_dict['pki_timestamp']
# Construct the configuration URL containing the one-time pin
# and add this to the "sensitive" key value pairs read in from
# the configuration file
diff --git a/base/server/src/engine/pkiscriptlet.py b/base/server/src/engine/pkiscriptlet.py
index 767b3c609..28706d01c 100644
--- a/base/server/src/engine/pkiscriptlet.py
+++ b/base/server/src/engine/pkiscriptlet.py
@@ -34,12 +34,6 @@ class AbstractBasePkiScriptlet(object):
return
@abc.abstractmethod
- def respawn(self):
- """Retrieve data from the specified PKI dictionary and
- use it to update an existing PKI instance."""
- return
-
- @abc.abstractmethod
def destroy(self):
"""Retrieve data from the specified PKI dictionary and
use it to destroy an existing PKI instance."""