Chapter 4. Managing Containers

Starting with Red Hat CloudForms 4.0, CloudForms Management Engine allows for container management. The orchestration system can be OpenShift Enterprise or Atomic Enterprise Platform. These systems can be added to the CloudForms Management Engine appliance as container providers. You can also connect your container providers with OpenStack, RHEV, or VMware vCenter environments.

The Containers area in the top menu bar has options to manage containers, containers providers, images, nodes, registries, pods, and other components.

4.1. Core Concepts

The following is a list of some of the core concepts and objects you will encounter when using CloudForms Management Engine with OpenShift Enterprise or Atomic Enterprise Platform. Many of these objects come from Kubernetes, which is extended by OpenShift Enterprise to provide a more feature-rich development life cycle platform.

4.2. Insight and Control

CloudForms Management Engine can connect to OpenShift Enterprise and Atomic Enterprise Platform containers providers and supports managing them similarly to how infrastructure and cloud providers are managed. This allows you to gain control over different aspects of your environment and answer questions such as:

  • How many containers exist in my environment?
  • Does a specific node have enough resources?
  • How many distinct images are used?
  • Which image registries are used?

When CloudForms Management Engine connects to a containers environment, it collects information on different areas of the environment:

  • Entities such as pods, nodes, or services.
  • Basic relationships between the entities, for example: Which services are serving which pods?
  • Advanced insight into relationships, for example: Which two different containers are using the same image?
  • Additional information, such as events, projects, routes (OpenShift Enterprise only), and metrics.

4.2.1. Cross-Providers Insight

Cross-providers insight is a feature that connects all layers of infrastructure, cloud, and containers known to CloudForms Management Engine and collects data for analysis.

It supports cross-linking all of the layers available in the following environments:

  • OpenStack
  • oVirt or RHEV
  • VMware vCenter

The collected information includes all the data available in other (infrastructure or cloud) providers.

4.2.2. Working with the Containers Overview Page

The information on all containers providers and entities known to CloudForms Management Engine is summarized on the Containers Overview page. The Overview page provides links to other summary pages which contain further information on the containers providers and entities.

Containers Overview

Working with the Containers Overview Page

  1. Navigate to ContainersOverview.
  2. Click the desired containers entity, or provider, if applicable, for viewing the summary with further information.

4.2.3. Viewing a Containers Provider Summary

A Containers Provider summary page allows you to view information on different aspects of a containers provider, for example:

  • Status of the provider and its components.
  • Relationships between different entities of the containers provider. These relationships are summarized in the Relationships box on the right-hand side of the summary page.

    Entity Relationships
  • Additional information on aggregated capacity of all CPU cores of all nodes, and aggregated capacity of all memory of all nodes.

Viewing a Containers Provider Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.

4.2.4. Viewing a Container Nodes Summary

A Container Node summary page allows you to view information on different aspects of a container node, for example:

  • How many entities are on a node?
  • What is the capacity and utilization?
  • What are the versions of the underlying operating system and software?

Viewing a Container Nodes Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Nodes.
  4. Click the desired container node for viewing.
  5. Alternatively, you can access the desired container node from ContainersContainer Nodes.

4.2.4.1. Viewing a Container Nodes Timeline

You can view the timeline of events for a node. To access the timeline from a container nodes summary page, click Monitoring (Monitoring), and then Timelines (Timelines).

For more information on working with timelines, see the following procedure:

4.2.5. Viewing a Containers Summary

A Containers summary page allows you to view information on different aspects of a container, for example:

  • What are the relationships of the container to a related node, pod, or image?
  • Which node is the container running on?
  • Which part of a pod is the container?
  • What is the container ID?
  • What is the name of the container image? What are other properties of the container image (for example, tag)?

Viewing a Containers Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Containers.
  4. Click the desired container for viewing.
  5. Alternatively, you can access the desired container from ContainersContainers.

4.2.6. Viewing a Container Images Summary

A Container Images summary page allows you to view information on different aspects of a container image, for example:

  • Which containers are using the image?
  • Which image registry is the image coming from?

Viewing a Container Images Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Images.
  4. Click the desired image for viewing.
  5. Alternatively, you can access the desired image from ContainersContainer Images.

4.2.7. Viewing an Image Registries Summary

An Image Registries summary page allows you to view information on different aspects of an image registry, for example:

  • How many images are coming from the registry? What are the images?
  • Which containers are using images from the registry?
  • What is the host and port of the registry?

Viewing an Image Registries Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Image Registries.
  4. Click the desired image registry for viewing.
  5. Alternatively, you can access the desired image registry from ContainersImage Registries.

4.2.8. Viewing a Pods Summary

A Pods summary page allows you to view information on different aspects of a pod, for example:

  • Which containers are part of the pod?
  • Which services reference the pod?
  • Which node does the pod run on?
  • Is the pod controlled by a replicator?
  • What is the IP address of the pod?

Viewing a Pods Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Pods.
  4. Click the desired pod for viewing.
  5. Alternatively, you can access the desired pod from ContainersPods.

4.2.9. Viewing a Replicators Summary

A Replicators summary page allows you to view information on different aspects of a replicator, for example:

  • What is the number of requested pods?
  • What is the number of current pods?
  • What are the labels and selector for the replicator?

Viewing a Replicators Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Replicators.
  4. Click the desired replicator for viewing.
  5. Alternatively, you can access the desired replicator from ContainersReplicators.

4.2.10. Viewing a Container Services Summary

A Container Services summary page allows you to view information on different aspects of a container service, for example:

  • What are the pods that the container service provides traffic to?
  • What are the port configurations for the container service?
  • What are the labels and selector for the container service?

Viewing a Container Services Summary

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. In the Relationships box on the right-hand side of the summary page, click Services.
  4. Click the desired service for viewing.
  5. Alternatively, you can access the desired service from ContainersContainer Services.

4.2.11. Using the Topology Widget

The Topology widget is an interactive topology graph, showing the status and relationships between the different entities of the containers providers that CloudForms Management Engine has access to.

  • The topology graph includes pods, containers, services, nodes, virtual machines, hosts, routes, and replicators within the overall containers provider environment.
  • Each entity in the graph displays a color indication of its status.
  • Hovering over any individual graph element will display a summary of details for the individual element.
  • Double-click the entities in the graph to navigate to their summary pages.
  • It is possible to drag elements to reposition the graph.
  • Click the legend at the top of the graph to show or hide entities.
  • Click Display Names on the right-hand side of the page to show or hide entity names.
Topology Widget

Viewing the Topology Widget

  1. Navigate to ContainersProviders.
  2. Click the desired containers provider for viewing the provider summary.
  3. On the provider summary page, click Topology in the Overview box on the right-hand side of the page.

4.2.12. Running a SmartState Analysis

Perform a SmartState Analysis of a container image to inspect the packages included in an image.

Running a SmartState Analysis

  1. Navigate to ContainersContainer Images.
  2. Check the container image to analyze. You can check multiple images.
  3. Click Configuration (Configuration), and then Perform SmartState Analysis (Perform SmartState Analysis).

    The container image is scanned. The process will copy over any required files for the image. After reloading the image page, all new or updated packages are listed.

    To monitor the status of container image SmartState Analysis tasks, navigate to ConfigureTasks. The status of each task is displayed including time started, time ended, what part of the task is currently running, and any errors encountered.