Skip to content
ImagineWorld

Using the IBM Edge Application Manager Web UI

node_idnode-book_real-world-edge-computing_chapter-17-using-the-ibm-edge-application-manager-web-ui
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num17
chapter_titleUsing the IBM Edge Application Manager Web UI
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 17 — Using the IBM Edge Application Manager Web UI

Section titled “Chapter 17 — Using the IBM Edge Application Manager Web UI”

There are a few differences between the Linux Foundation Edge (LFEdge) Open Horizon open-source project and the IBM Edge Application Manager (IEAM) that we would like to discuss here. IEAM is primarily just a commercial distribution of the Open Horizon project. However, one of the main enhancements that has been made and delivered with IEAM is the inclusion of a web user interface (UI) for managing the various capabilities of Open Horizon.

We will now teach you how to use the IEAM web UI, navigate your fleet of Edge nodes, and perform various tasks through the UI in this chapter.

In this chapter, we’re going to cover the following main topics:

  • Logging into the home screen of IEAM
  • Navigating the main tabs of the UI
  • Exploring the Edge nodes in your organization
  • Publishing and editing your services
  • Creating deployment policies to initiate the deployment of your service
  • Viewing and managing patterns

All the tasks that we demonstrate in this chapter are based on capabilities provided by Open Horizon and discussed throughout the rest of this book. However, you will only be able to perform the UI activities depicted here if you have acquired a license to the IEAM product. You can contact IBM here to learn more about obtaining access to IEAM:

https://www.ibm.com/products/edge-application-manager?mhsrc=ibmsearch_a&mhq=edge%20application%20manager

When you first come into IEAM, you may be offered different mechanisms for authenticating your identity. The mechanism you use will depend on how your administrator has created credentials for you – either using your enterprise LDAP system, the OpenShift authentication service, or the IBM Cloud credential system.

  1. If you are the system administrator for IEAM then you must use your IBM-provided credentials. Otherwise, using your Enterprise LDAP is a common and popular choice for most installations.

Figure 17.1 – Authentication selection screen

  1. In this case, I will log in through my Enterprise LDAP using my provided username and credentials.

Figure 17.2 – Login screen

  1. If I belong to multiple organizations, I will be presented with one of them to log into. In this case, I will log into the demo organization.

Figure 17.3 – Organization selection popup

  1. You will then be presented with the home page for the system under your organization.

Figure 17.4 – Home page

  1. The home screen shows you a summary of your organization’s Edge deployment. In this case, I have 1,040 Edge nodes registered, of which 1,034 are Edge devices, and 6 are Edge servers (aka clusters).

Figure 17.5 – Node type details

Of those 1,040 nodes, 967 are running policy-based service deployments, and 68 are running patterns. We are not experiencing errors on any nodes at this time.

Figure 17.6 – Deployment details

In addition, we can see that 410 nodes are using x86 (aka amd64) architecture, 195 are using the PowerPC architecture, 214 are using a 64-bit ARM, and 221 are using 32-bit ARM architecture. You can get the actual count by hovering over the bar of interest.

Figure 17.7 – Node architecture details

Next, let’s examine how to navigate the main tabs of the UI.

Along the top of the home page, you will see four tabs.

Figure 17.8 – Home tabs

These correspond to the different areas of interest within IEAM. By default, the home screen will display the Edge nodes in your organization. By selecting the other tabs you will be presented with the services in your organization, or public to your organization:

Figure 17.9 – Services home page

By selecting the Patterns tab, you will be presented with the patterns in your organization, or that are public to your organization:

Figure 17.10 – Patterns home page

By selecting the Policies tab, you will be presented with the deployment policies in your organization:

Figure 17.11 – The Policies home page

We will delve deeper into each of these areas next, starting with the nodes in your organization.

Exploring the Edge nodes in your organization

Section titled “Exploring the Edge nodes in your organization”

Returning to the Nodes tab, you can get a list view of your nodes by pressing the list button on the right of your screen.

Figure 17.12 – Node list view selection

This will list all the nodes in your organization.

Figure 17.13 – Node list screen

If needed, you can return to the summary version by pressing the graphics view button just to the left of the list button.

Figure 17.14 – Graphics view selection

You can sort the list by pressing any of the headings at the top of the list. For example, I can sort the nodes by their name by pressing the Name heading in ascending order (or in descending order if I click that header twice).

Figure 17.15 – Name sorting

You can also filter your nodes in the Find nodes field by including a filter string:

Figure 17.16 – The Find nodes field

In this case, I will filter for cameras in my organization, but you can also filter on Owner, Architecture, Heartbeat, Node State, Deployment Type, Node Type, Installation Name, or Location by selecting the intended field in the query pull-down.

Figure 17.17 – Filter type pull-down

By clicking on the node name, you can drill into more information about that node.

Figure 17.18 – Node selection

This will bring up the Node details page for that node, providing more information about the node – its name, ID, owner, and so on – as well as any errors that may be occurring with the deployment of the service on that node, properties that were set when the node was registered, any constraints that have been set for the node, and any deployment policies that are currently active on the node.

Figure 17.19 – The Node details page

Don’t worry if you can’t see all the details on this page – this is here mostly just to give you a sense of its layout. However, let’s take a closer look at some of that information.

This node has both properties that affect the deployment of workloads on the node (“deployment properties”) as well as properties that affect the application of management activities such as when and where to update the node agent at that node.

Notice that some of the properties are prefaced with openhorizon. These properties are set automatically by the system. Other properties (those without the openhorizon preface) were set by the owner of the node, indicating attributes of the node they believe are important.

Figure 17.20 – Node properties

To highlight a couple of these, this node has 2 cores (openhorizon.cpu=2), 957 Mbytes of memory (openhorizon.memory=957), is designated as a security camera (type=SecurityCam), video streaming is enabled (video-stream-enabled=true), and does not have a GPU installed (GPUenabled=false).

You can edit these properties from the UI by pressing the pencil button in the upper-right corner of the field.

The constraints of the node will be evaluated against any deployment policies (and any service policies inherited by that deployment policy) when determining whether to place a workload on this node.

In this case, the constraint is that this node can only host security monitoring workloads, or workloads that are intended to check on inventory stock.

Figure 17.21 – Node constraints

In addition, no constraints have been set for when agent updates can occur on this node.

You can edit these constraints from the UI by pressing the pencil button in the upper-right corner of the field.

No services have been deployed to this node at this time.

Figure 17.22 – Deployed services

You can use the Nodes page to explore or modify information about your Edge node – device or server.

Now let’s turn our attention to the Services tab.

Figure 17.23 – The Services page

By default, you will see these services listed as a set of cards. Or, as with the Nodes tab, you can press the list view button in the upper right to get a list of your services.

Figure 17.24 - Services list view selection

We’ll stay on the cards view for a moment. Notice that some services may have multiple architectures – that is, they have been compiled to run on multiple different architectures.

Figure 17.25 – Multiple architectures

Or, they may have multiple versions.

Figure 17.26 – Multiple versions

Or, they may have both.

Figure 17.27 – Multiple architectures and versions

In any of these cases, clicking on the service card will bring up a side window with all of the variations of the service listed each on their own card.

Figure 17.28 – Selecting a specific service to deploy

Clicking on a particular service version and architecture will open the service details window.

Figure 17.29 – The Service details page

Don’t worry if you can’t see all the details on this page – this is here mostly just to give you a sense of its layout. However, let’s take a closer look at some of that information.

Similar to the Node details screen, the Service details page includes general information about the service – such as its name, owner, version, and architecture.

Figure 17.30 – Service general information

Any facts about the service are included as properties. In particular, this service was developed with the intent of doing security monitoring (purpose=security-monitoring).

Figure 17.31 – Service properties

However, this service also has constraints. It requires at least 200 Mbytes of memory to run (openhorizon.memory is greater than or equal to 200), and video streaming must be enabled on the device (video-stream-enabled is equal to true).

Figure 17.32 – Service policy constraints

As with Node properties and Node constraints, either of these can be edited directly in the UI by pressing the pencil button in the upper-right corner of the field.

In this example, there are no deployment policies that reference this service at this time.

Figure 17.33 – Service deployment policies

Clicking on the Deployment patterns tab, we see no patterns have been created that depend on the service.

Figure 17.34 – Service deployment patterns

This service does not depend on any environment variables.

Figure 17.35 – Service environment variables

If the service depended on any secrets, they would be listed on this page. In this case, the service has no secrets; it depends on the Management Hub Vault.

Figure 17.36 – Service secrets

It has no dependencies on any other services.

Figure 17.37 – Service dependencies

You can use the Services page to examine or update details about your service.

Creating deployment policies to initiate a deployment of your service

Section titled “Creating deployment policies to initiate a deployment of your service”

To deploy a service, you must create a deployment policy for that service. We could do that from the Policies tab on the home page. However, we can also create one more directly for this service:

  1. Returning to the Deployment policies tab on the Service details page, press the Add policy button.

Figure 17.38 – The Add policy button

This will take you to the Deploy with policy wizard.

Figure 17.39 – Deployment policy wizard

  1. Enter a deployment policy name, optionally give it a description to make it easier to remember what this deployment policy is trying to do, and press the Next button.

Figure 17.40 – Name your deployment policy

  1. Next, you will select the services to be included in this deployment policy. Note that the movedetection service has already been selected on the right. That is due to having created the deployment policy from within the service that you were focused on.

Figure 17.41 – Select your service

You can select other services to include in this deployment policy from the list on the left. You can use the demo tab (representing the services that have been published in your organization), or the Shared services tab for any services that other organizations may have made public to you. Also, you can filter on either of these lists using the Find a service field.

Figure 17.42 – Select or find your own or shared services

  1. If you have selected all the services you want to include, press the Next button.

Figure 17.43 – Press Next

If your service uses environment variables, you can add or override the values you want supplied to your service as part of this deployment policy next.

Figure 17.44 – Configure variables

If your service had been published for different architectures, you could supply different environment variable values based on their architecture.

  1. Press Next to continue. If your service has any secrets, it depends on whether you can now bind them to entries in your Vault.

Important note

You can bind to different secrets for the same service in different deployments.

In this case, since the service does not depend on any secrets, you won’t be able to bind to anything in the Vault.

Figure 17.45 – Bind secrets

  1. Press Next to continue. You can now indicate how you want the service handled in case it encounters errors in the deployed environment. If your service has multiple versions, you can specify what version the agent should roll back to if the current version has failed a specified number of times within a specified timeframe. For example, this tells the agent to roll back to version 1.0.9 if the current version of the service fails to start 6 times within 17 minutes.

Figure 17.46 – Rollback settings

Since our service does not have any prior versions, we are not able to specify a rollback setting.

However, we can specify whether to prevent further attempts to deploy this service to any node that has had no heartbeat within a specified period of time, or that hasn’t formed any other agreements within a specified period of time.

Figure 17.47 – Node health settings

Leaving these values at 0 will direct Open Horizon to disregard these health settings.

  1. Press Next to continue. You can now supplement the service with any additional constraints or properties you want to include in the evaluation of where to place this service. Notice that the constraints and properties of the service are included on this page for reference.

Figure 17.48 – Add constraints

In this demonstration, we will include the additional constraint that we only want this service deployed to nodes that are intended to perform security checks – for example, detecting whether someone is entering the stock room. We do this by describing a condition on the type property – checking that it is equal to SecurityCam.

Figure 17.49 – Constraint builder

If you have additional conditions you want to specify, you can press the plus button.

  1. If you want to add any other properties – perhaps to state further facts about this deployment – you can do so by pressing the Add more properties button in the Add properties section of the page.

Figure 17.50 – Deployment policy properties

  1. Press Next to continue. This will take you to the summary page – giving you another chance to confirm your selections.

Figure 17.51 – Deployment summary page

Don’t worry if you can’t see all the details on this page – this is here mostly just to give you a sense of its layout. However, let’s take a closer look at some of that information.

  1. When you’re ready, you can press the Deploy service button.

Figure 17.52 – The Deploy service button

This will initiate the deployment processes – evaluating the node, service, and your newly created deployment policies to determine which Edge nodes to place this service.

We can verify this deployment by returning to the Node details page we examined earlier in this chapter in the Deployed services section.

Figure 17.53 – The deployed service on the Node details page

We can see our newly created deployment policy under the Policies tab of the home page.

Figure 17.54 – The Policies page

  1. You can delete this deployment policy by either selecting and going into the Policy details page or simply by pressing the trash can button on the policy in the list view.

Figure 17.55 – Delete button

Deleting the policy will result in abandoning any agreements that were formed previously for that service as part of this deployment policy, and terminating those workloads at each of their respective nodes.

Finally, let’s take a quick look at the Patterns tab of the home page.

Figure 17.56 – The Patterns page

As you may recall from Chapter 6, Register an Edge Node, a pattern can be associated with an Edge node when it is registered. This will instruct Open Horizon to deploy any services referenced in that pattern to that node, irrespective of any other constraints on that service that may be defined in the service or deployment policy for that service.

The patterns that you can associate with the node are listed on this tab.

As with nodes, services, and policies, you can filter the list in the Find patterns field.

You can drill into any given pattern by clicking on its name.

Figure 17.57 – Pattern selection

This will take you to the Pattern details page.

Figure 17.58 – The Pattern details page

There is not much you can do on this page other than examine what has already been defined for it through the hzn command that was used to create it. However, you can delete the pattern from here by pressing the trash button in the upper right.

Figure 17.59 – Delete button

Your pattern will now be deleted.

This book is first and foremost about the LFEdge Open Horizon open-source project. The core functionality that you need to scale your Edge solution is provided by Open Horizon.

However, on occasion, it helps to have the strength of an industry leader stand behind the open source to both ensure its robustness and to take advantage of key enhancements they will have brought to their commercial offering. The IBM Edge Application Manager (IEAM) is exactly that – a commercial distribution of the Open Horizon project.

One of the key enhancements that IBM has made, besides basing the implementation on Red Hat’s OpenShift enterprise Kubernetes platform, is the inclusion of the web-based UI. While we expect that most DevOps practitioners will perform most of their everyday tasks through the Open Horizon CLI or API, it is useful to have a UI through which to monitor the running deployment and perform simple administrative tasks.

In this chapter, you have learned about the UI provided by IEAM, how to navigate the resources under the control of the Management Hub, and how to perform a few particular tasks such as creating a deployment policy.