Validating a Fleet

Validate OCI Compute resources so that they're available in Fleet Application Management.

After you create a fleet, the OCI Compute resources are validated before they're used for lifecycle operations. Depending on the prerequisites for OCI Compute and Oracle Database resources for Fleet Application Management, the validation might be a success or failure. If it's successful, the fleet target discovery process starts. See Target Discovery. If validation fails, ensure you meet the following prerequisites and then retry validation:
  • You have added matching rule in the "fams-customer-dg" dynamic group and have added the OCI Compute instance as member of the group. For example,

    All {instance.id = 'ocid1.instance1.oc1.iad:sampleuniqueid1'}

    Or

    You have added all instances that are part of a compartment. For example,

    All {instance.compartment.id = 'ocid1.compartment.oc1.iad:sampleuniqueid2'}

  • You have enabled OS Management Hub to discover and apply patches for Oracle Linux and Microsoft Windows OS. For more information, see Migrating from OS Management to OS Management Hub.
    Important

    If you're already using OS Management instead of OS Management Hub, enable OS Management Service Agent. For more information, see Enabling the OS Management Service Agent Plugin for an Existing Compute Instance.
  • You have enabled the OCI Compute instance run command feature to discover and apply patches for the software running on Compute instances. See Running Commands on an Instance.
  • You have granted sudo permission on Oracle Linux instances to discover and apply patches for the software running on Compute instances. See Grant sudo permissions on Linux instances.

    Ensure you revoke the sudo permission in the following scenarios:

    • After activities are complete
    • When many users have sudo permissions
    • After the conclusion of lifecycle management using Fleet Application Management
    Note

    The sudo privilege is required when product support is needed for Oracle WebLogic Server, Oracle HTTP Server (OHS), and Oracle Java, which aren't OCI-specific.
    1. Open the navigation menu and click Observability & Management. Under Fleet Application Management, click Fleets.
    2. Click the name of the fleet that you want.
      Tip

      To find a fleet by name, enter its name in the Search field.
      The details page for the fleet opens. Fleet Application Management updates the fleet state in real-time, and you can view the fleet state as VALIDATING at the top of the page. The validation can be a success or failure. If the fleet state appears FAILED, verify the prerequisites or click See details and validate the fleet again.
    3. To validate the fleet, click Retry validation.
  • Use the oci fleet-apps-management fleet request-resource-validation command and required parameters to validate the resources in a fleet:

    oci fleet-apps-management fleet request-resource-validation [OPTIONS]

    For a complete list of flags and variable options for Fleet Application Management CLI commands, see the CLI for Fleet Application Management.

  • Run the RequestResourceValidation operation to validate the resources in a fleet.