When you delete a tenant, all components of the tenant are permanently removed, including all provisioning stores, user stores, directories, and databases. The tenant is unregistered from the provisioning server, and deleted from the environment. Any ports that were assigned for use by the tenant are available again. Tenant data is backed up, so that you can recreate a tenant if required.
During deletion, the tenant tag is removed from the system. You can later create another tenant environment with the same name and tag.
Any partnerships created through the Single Sign-on service are not removed when you delete the tenant environment.
Important: When you delete a tenant environment after the Identity Management service has already been removed, be sure to enable Provisioning for the tenant from the Management Console before removing the tenant.
Follow these steps:
<Host>:8080/iam/immanage/
You will not observe any change on the screen.
"[Delete.cpp:338][Reduce][ERROR][sm-xpsxps-03340] Cannot delete a related record. (CA.SM::UserDirectory@0e-000621de-79d1-1485-8f37-38450a82d0cb(cm3Tenant Directory):CA.SM::IMSDirectory@32-00074f6b-79d1-1485-8f37-38450a82d0cb(cm3 Tenant Directory).CA.SM::IMSDirectory.UserDirectoryLink)"
CA.SM::IMSDirectory@32-00074f6b-79d1-1485-8f37-38450a82d0cb.
service S98sm stop
Service S98sm start
service S98smAdminUI stop
Service S98smAdminUI start
su – dsa
cd /opt/CA/Directory/dxserver/config/knowledge
# CA DXserver/config/knowledge/
#
# Knowledge configuration file written by dxagent
#
# Refer to the Admin Guide for the format of the set dsa command.
set dsa "s010130009046-cam-tenant-cm3" =
{
prefix = <o ca><ou cam><ou cm3>
dsa-name = <o ca><ou cam><ou cm3><cn s010130009046-cam-tenant-cm3>
dsa-password = "secret"
address = ipv4 "s010130009046" port 50006
disp-psap = DISP
snmp-port = 50006
console-port = 50007
auth-levels = clear-password
dsp-idle-time = 50
multi-write-group = primary
dsa-flags = multi-write, no-service-while-recovering, multi-write-group-hub
trust-flags = allow-check-password, trust-conveyed-originator
link-flags = ssl-encryption-remote
};
set write-precedence= s010130009046-cam-tenant-cm1, s010130009046-cam-tenant-cm3, s010130009046-cam-tenant-cm4
set write-precedence= s010130009046-cam-tenant-cm1, s010130009046-cam-tenant-cm4;
su - dsa dxserver stop all dxserver start all
Repeat steps the preceding three commands on the Provisioning Server, CA IAM Connector Server, Policy Server, and Directory Server.
# CA DXserver/config/knowledge/
#
# Knowledge configuration file written by dxagent
#
# Refer to the Admin Guide for the format of the set dsa command.
set dsa "tenant-cm3-s010130009046" =
{
prefix = <dc cm3>
dsa-name = <dc etadb><cn tenant-cm3-s010130009046>
dsa-password = "secret"
address = ipv4 "s010130009046" port 20904
disp-psap = DISP
snmp-port = 20904
console-port = 20905
auth-levels = clear-password
dsp-idle-time = 50
dsa-flags = multi-write, no-service-while-recovering, multi-write-group-hub
trust-flags = allow-check-password, trust-conveyed-originator
link-flags = ssl-encryption-remote
};
set write-precedence = s010130009046-impd-main, s010130009046-impd-inc, s010130009046-impd-co, s010130009046-impd-notify, tenant-cm1-s010130009046, tenant-cm3-s010130009046, tenant-cm4-s010130
set write-precedence = s010130009046-impd-main, s010130009046-impd-inc, s010130009046-impd-co, s010130009046-impd-notify, tenant-cm1-s010130009046, tenant-cm4-s010130
su - dsa dxserver stop <host name>-cam-tenant-<tenant tag>
For example, s010130009046-cam-tenant-cm3)
dxserver stop tenant-<tenant tag>-<host name> stop
For example, tenant-cm17-s010130009046.
su - dsa cd /opt/CA/Directory/dxserver/data ls *<tenant tag>*
Delete all files returned from the preceding command.
cam-tenant-<tenant tag>.ldif
tenant-<tenant tag>-<hostname>.db
tenant-<tenant tag>-<hostname>.tx
<host name>-cam-tenant-<tenant tag>-.db
<hostname-cam>--tenant-<tenant tag>-.tx
For example:
cam-tenant-cm3.ldif tenant-cm3-s010130009046.db tenant-cm3-s010130009046.tx tenant-cm3-s010130009046.db tenant-cm3-s010130009046.tx.
su - dsa cd /opt/CA/Directory/dxserver/config/knowledge delete tenant-<tenant tag>-<hostname>.dxc
For example, tenant-cm3-s010130009046.dxc
Delete <host name> -cam-tenant-<tenant tag>.dxc . For example:
s010130009046-cam-tenant-cm3.dxc.
su - dsa cd /opt/CA/Directory/dxserver/config/settings
Delete tenant-<tenant tag>-<hostname>.dxc .For example, tenant-cm3-s010130009046.dxc)
Delete <host-name>-cam-tenant-<tenant tag>.dxc. For example, s010130009046-cam-tenant-cm3.dxc)
cd /opt/CA/Directory/dxserver/config/servers
Remove tenant-<tenant tag>-<hostname>.dxi. For example:
tenant-cm3-s010130009046.dxi
Remove <host name>-cam-tenant-<tenant tag>.dxi. For example: s010130009046-cam-tenant-cm3.dxi.
su – dsa
cd /opt/CA/Directory/dxserver/config/ssld/personalities
remove <host-name>-cam-tenant-<tenant tag>.pem. For example:
s010130009046-cam-tenant-cm3).pem
Remove tenant-<tenant tag>-<hostname>.pem. For example:
tenant-cm11-s010130009046.pem
su – dsa
cd /opt/CA/Directory/dxserver/config/autostart
Remove <host name>-cam-tenant-<tenant tag> tenant-<tenant tag>-<hostname>. For example:
s010130009046-cam-tenant-cm3
tenant-cm3-s010130009046
su – dsa
cd /opt/CA/Directory/dxserver/config/limits
Remove <host name>-cam-tenant-<tenant tag>.dxc. For example:
s010130009046-cam-tenant-cm3.dxc
su – dsa
cd /opt/CA/Directory/dxserver/config/logging/
remove tenant-<tenant Name>-<DIR Server>.dxc
remove <DIR Server>-cam-tenant-<Tenant Name>.dxc
<host name>-cam-tenant-<tenant tag>. For example:
s010130009046-cam-tenant-cm3
tenant-<tenant tag>-<host name> stop. For example:
tenant-cm17-s010130009046
Use port 20391
User DN eTDSAContainerName=DSAs,eTNamespaceName=CommonObjects,dc=etadb
Password <your password for Provisioning DSA)
Goto etadb –im – CommonObjects – Configuration – Parameters – Tenant Data – Tenant Identifiers
Delete eTConfigPramValue for the tenant tag.
If you support Disaster Recovery, export and import Derby. Refer to the Disaster Recovery Guide for steps to delete a tenant.
Tips for redeploying a deleted tenant
Note:For high availability, you need to follow the steps for each leg, but you should only need to delete the tenant and directory from management console on the first leg.
For disaster recovery, follow the same steps at both sites, but you should only need to delete the tenant and directory from the management console at the primary site.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|