2 Discovering the Oracle Private Cloud Appliance

This chapter provides instructions for discovery of the Oracle Private Cloud Appliance (PCA) through Enterprise Manager Cloud Control 13c.

The following topics are provided:

2.1 Installing the Management Agent on Oracle PCA

Before discovering the Oracle PCA in Enterprise Manager, you must first prepare the PCA and install a Management Agent. Follow the steps below to properly configure your Oracle PCA:

  1. Change the oracle user password to a known password on both management nodes of the PCA Rack:
    # passwd oracle
    
  2. Verify the VIP and public Enterprise Manager IP are in the /etc/hosts file on both management nodes and on the Enterprise Manager Host:
    YOUR.VIP vip-host1.example.com vca1-vip-vip
    YOUR.EMIP  em-host1.example.com em01
    
  3. On an the active management node, create an agent directory on the shared NFS directory:
    # mkdir /nfs/shared_storage/oemagent
    # chown oracle !$
    # chgrp dba !$
    
  4. Open an Enterprise Manager agent port in the firewall by running the following command. Make sure you choose the same port while pushing the agent in step 5:
    # iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport <agent_port> -j ACCEPT
    # service iptables save
    # service iptables restart
    

    Note:

    • By default, the Enterprise Manager agent port 3872 is pre-populated by PCA software. If you use this default Enterprise Manager agent port 3872 for pushing the agent, then this step is not needed.

    • However, if the non-default port is used for Enterprise Manager agent, the steps do need to be executed on passive management node.

    • If the agent port is different to the default port (3872), you must configure the firewall for that particular port, as 3872 is set by default in the PCA management node setup.

  5. Push the Management Agent from the OMS. From Enterprise Manager Cloud Control:
    1. From the Setup menu, select Add Target, then select Add Targets Manually.
    2. In the Add Host Targets area of the Add Targets Manually page, click Install Agent on Host. The Add Host wizard will begin.
    3. Add a Host and Platform. On this page, click Add and select Manually. Enter a host name (fully qualified) in the Host field. This name should be the fully qualified virtual IP host name of the PCA rack for deploying the agent. Select Linux x86-64 from the Platform drop-down menu. Figure 2-1 shows an example:

      Figure 2-1 Add Host Target: Host and Platform


      Image showing Add Host Target

      Note:

      The target host's platform is defaulted based on a combination of factors, including hints received from automated discovery and the platform of the OMS host. The default is a suggestion; however, you should check the platform details before processing to the next step.

      If the platform name is appended with "Agent Software Unavailable," then download the software for that platform using Enterprise Manager's Self Update feature.

      Click Next.

    4. On the Installation Details page (Figure 2-2), enter the following information:
      • Installation Base Directory: /nfs/shared_storage/oemagent
      • Instance Directory: /nfs/shared_storage/oemagent/agent_inst (This value is automatically completed based on the Installation Base Directory input.)
      • Named Credential: <agent_username>

        Note:

        If this is the first time you are adding a credential, an add icon (add named credential icon) appears. Click this icon for a dialogue box that prompts for the credentials of the agent user (oracle/password for example).

        Create a Named Credential for the oracle user with the password you set in step 1 above.

        Once created, that credential and any other credentials that have already been added to Enterprise Manager will be available for selection. For an existing installation of an Enterprise Manager, a user may already have the necessary credentials available for selection for Oracle PCA discovery.

      • Privileged Delegation Setting: Leave the default. By default, this field is populated with /usr/bin/sudo -u %RUNAS% %COMMAND%
      • Port: By default, this field is populated with 3872
      • Preinstallation Script: Leave this field blank.
      • Postinstallation Script: Leave this field blank.
      • Additional Parameters: Leave this field blank.

      Figure 2-2 Add Host Targets: Installation Details


      Image Add Target, installation details

      Once the fields are complete, click Next.

    5. On the Review page, review the details of the host information. Click Deploy Agent.
  6. Run the privileged agent scripts on the active node:
    # cd /u01/oemagent -or- cd /nfs/shared_storage/oemagent
    #./agent_13.2.0.0.0/root.sh
    # /u01/app/oraInventory/orainstRoot.sh
    

    Note:

    If the EM agent has not been configured with sudo permissions then you must run this script.
  7. On the active management node, set the emd property AgentListenOnAllNICs to false by running following command with the agent user (i.e., oracle):
    <Agent_BASE_DIR>/agent_inst/bin/emctl setproperty agent -name "AgentListenOnAllNICs" -value "false"
    
  8. Copy the following agent installation files to the passive management node (ovcamn06r1 is passive in this example):
    # scp /etc/init.d/gcstartup root@ovcamn06r1:/etc/init.d/
    # rsync -og /etc/oragchomelist root@ovcamn06r1:/etc/oragchomelist
    # rsync -rog /u01/app/oraInventory/ oracle@ovcamn06r1:/u01/app/oraInventory/
    
  9. On the active management node, remove all gc rc.d links (no startup of agent on startup):
    # for x in `find /etc/rc.*/rc* | grep gcstart`; do rm $x; done
    
  10. Restart the Enterprise Manager agent on the active management node as root from the startup script or as oracle from the agent's emctl command:
    #  /etc/init.d/gcstartup stop
    #  /etc/init.d/gcstartup start
    

    or

    % /nfs/shared_storage/oemagent/agent_inst/bin/emctl stop agent
    % /nfs/shared_storage/oemagent/agent_inst/bin/emctl start agent
    

2.2 Discovering the Oracle PCA in Enterprise Manager

The steps below provide the prerequisites and instructions to discover an Oracle Private Cloud Appliance (PCA) target in Enterprise Manager Cloud Control:

  1. From the Setup menu, select Add Targets, and then select Add Targets Manually (Figure 2-3):

    Figure 2-3 Add Targets Manually Menu


    Image: Add Targets Manually Menu

  2. On the Add Targets Manually page (Figure 2-4), click Add Targets Using Guided Process.

    Figure 2-4 Add Targets Manually


    Image Add Targets Manually

  3. On the Add Using Guided Process window, select Private Cloud Appliance. Click Add (Figure 2-5) to begin the discovery wizard.

    Figure 2-5 Select Private Cloud Appliance


    Image Select Private Cloud Appliance

  4. On the Discovery Inputs page (Figure 2-6), you will need to enter the Monitoring Agent host location.

    Figure 2-6 PCA Discovery Wizard: Discovery Input


    Image PCA Discovery Wizard: Discovery Input

    Click the Search icon to display the Select Discovery Agent pop-up window:

    Figure 2-7 Select Discovery Agent


    Image Select Discovery Agent

    Select the URL from the available list. Once you select the URL, the Management Agent field on the Discovery Input page should auto-populate with the required information.

    Click Next.

  5. On the Discovery Prerequisites page (Figure 2-8), a series of checks are conducted automatically. Any errors returned must be resolved before continuing.

    Figure 2-8 PCA Discovery Wizard: Discovery Prerequisites


    PCA Image Discovery Wizard: Discovery Prerequisites

    Note:

    If you get error severity messages, you must resolve the errors then click Reload to run the prerequisites check again.

    Click Next.

    A confirmation pop-up window (Figure 2-9) will appear to show how many targets to be discovered:

    Figure 2-9 Confirmation Window


    Image Confirmation Window

    Click Close to continue.

  6. On the Discovered Targets page (Figure 2-10), select the targets you want included in the discovered PCA rack. By default, all available targets are pre-selected.

    Figure 2-10 PCA Discovery Wizard: Discovered Targets


    Image PCA Discovery Wizard: Discovered Targets

    Click Next.

  7. On the Monitoring Credentials page, the credentials must be set for each component in the Oracle PCA rack. A red status flag is shown for all components where the credentials are not set.

    For each component type, click the Edit icon. In the Monitoring Credentials pop-up (Figure 2-11), enter the user name and password for each component in the Oracle PCA rack:

    Figure 2-11 Component Monitoring Credentials


    Image Component Monitoring Credentials

    Note:

    For the InfiniBand Switch, enter public in the Community String mandatory field input.

    You can select Use same credentials for all in the credential's edit dialog to use the same credentials for all targets of the type. Figure 2-12 shows an example of the Monitoring Credentials page with all credentials set:

    Figure 2-12 PCA Discovery Wizard: Monitoring Credentials


    Image PCA Discovery Wizard: Monitoring Credentials

    Click Next.

  8. On the System Review page, click Promote Targets to promote all components of the Oracle PCA rack. If any component fails the promotion process, click Back to update the inputs for that component. A pop-up window will appear to show the progress. Once complete (Figure 2-13), click Close.

    Figure 2-13 Target Promotion Confirmation


    Image Target Promotion Confirmation

    Figure 2-14 shows an example of completed promotion of all components:

    Figure 2-14 PCA Discovery Wizard: System Review


    Image PCA Discovery Wizard: System Review

    Click Close.

2.3 Registering Oracle VM Manager

The Oracle VM Manager provides the user interface that allows you to create guest virtual machines. Before you use the Oracle VM Manager to manage virtualization targets in Enterprise Manager, you must register an existing installation of the Oracle VM Manager

If you have not already done so, register the Oracle VM Manager by completing the steps described in the EM Cloud Administration Guide, section: “Registering the Oracle VM Manager."

2.4 Enterprise Manager Agent Recovery After Oracle PCA Upgrade

To recover an Enterprise Manager agent after the Oracle PCA is upgraded:

  1. Backup the oraInventory agent to the NFS-shared location:
    # cd /u01/app
    # tar -cvf EMagent_oraInventory.tar oraInventory
    # cp EMagent_oraInventory.tar /nfs/shared_storage
    
  2. Create the full blackout on Oracle PCA rack.
  3. Update the Oracle PCA rack.
  4. After you have updated the Oracle PCA Rack, copy the oraInventory agent from the NFS-shared location and untar it to the previous oraInventory location:
    # cp /nfs/shared_storage/EMagent_oraInventory.tar /u01/app
    # tar -xvf EMagent_oraInventory.tar
    
  5. Keep the same password you created in Installing the Management Agent on Oracle PCA for the oracle user on both management nodes:
    # passwd oracle
    
  6. Run the privileged agent scripts on the active management node:
    # cd /u01/oemagent
    

    or

    # cd /nfs/shared_storage/oemagent
    
    #./agent_13.2.0.0.0/root.sh
    # /u01/app/oraInventory/orainstRoot.sh
    
  7. On the active management node, remove all gc rc.d links (that is, no startup of agent on startup):
    #  for x in `find /etc/rc.*/rc* | grep gcstart`; do  rm $x; done
    
  8. Copy the following agent installation files to the passive management node (ovcamn06r1 is passive in this example):
    # scp /etc/init.d/gcstartup root@ovcamn06r1:/etc/init.d/
    # rsync -og /etc/oragchomelist root@ovcamn06r1:/etc/oragchomelist
    # rsync -rog /u01/app/oraInventory/ oracle@ovcamn06r1:/u01/app/oraInventory
    
  9. Add the Enterprise Manager agent port to the number chosen during agent push (see Installing the Management Agent on Oracle PCA) (default 3872) to the firewall settings on both management nodes (active and passive):
    # iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport <agent_port> -j ACCEPT
    # service iptables save
    # service iptables start
    

    Note:

    • By default, the Enterprise Manager agent port 3872 is pre-populated by PCA software. If you used this default Enterprise Manager agent port 3872 for pushing the agent, then this step is not needed.

  10. Restart the Enterprise Manager agent on the active management node as root from the startup script or as oracle from the agent's emctl command:
    # /etc/init.d/gcstartup stop
    # /etc/init.d/gcstartup start
    

    or

    % /nfs/shared_storage/oemagent/agent_inst/bin/emctl stop agent
    % /nfs/shared_storage/oemagent/agent_inst/bin/emctl start agent
    
  11. Remove the blackout on Oracle PCA rack.

    Note:

    You must follow all the above steps while upgrading to Oracle PCA 2.3.1 for Enterprise Manager Agent Recovery. Oracle PCA 2.3.1 ships with OVM 3.4.2. You must upgrade the Virtualization Plug-in of the Oracle PCA Management agent to Enterprise Manager for Virtualization v13.2.3.0.0. This results in a smooth upgrade and leverages new features implemented for OVM 3.4.2. The upgrade can be done using the Self Update feature in Enterprise Manager.

2.5 Removing the Oracle PCA Target from Enterprise Manager

To remove the Oracle Private Cloud Appliance (PCA) target from Enterprise Manager monitoring:

Note:

Removing the Oracle PCA target from Enterprise Manager monitoring will also remove all PCA components from monitoring as well (for example, the Compute and Management Nodes, InfiniBand switches, Ethernet and Fabric Interconnect switches, Storage Servers, and so forth).

  1. From the Targets menu, select the Private Cloud Appliance item (Figure 2-15):

    Figure 2-15 Targets Menu


    Image Targets Menu

    Then, on the Targets page, select the Private Cloud Appliance item and click Remove.

  2. Alternatively, you can remove the target from the PCA target home page. Click the Private Cloud Appliance menu, then select Target Setup, then select Remove Target (Figure 2-16):

    Figure 2-16 Remove Target


    Image Remove Target

  3. A confirmation pop-up window appears (Figure 2-17):

    Figure 2-17 PCA Target Removal Confirmation


    Image PCA Target Removal Confirmation

    Click Yes to continue.

  4. After the PCA target is removed, the All Targets page will reload. A confirmation message will show that the PCA target and all of its components have been removed (Figure 2-18):

    Figure 2-18 Oracle PCA Target Removed - All Targets Page


    Image Oracle PCA Target Removed - All Targets Page