Skip to content

Install guide

Installing mas-tools.com Inspection Form Editor

Install mas-tools.com Inspection Form Editor on the OpenShift cluster of your IBM Maximo Application Suite: what gets installed, the overlay, the deploy, the options users need in Manage, and the removal.

This guide installs mas-tools.com Inspection Form Editor on an OpenShift cluster that runs IBM Maximo Application Suite (MAS) with Manage. At the end, people open the editor in the browser, sign in through MAS, and build and revise the inspection forms of Manage with their own rights.

Two people usually share the work. The OpenShift administrator runs sections 1 to 7, 10 and 11. The Maximo administrator runs section 8. Section 9 needs both: it changes Manage’s workspace with oc and Manage’s own settings.

We checked this guide against the editor. Our test system runs MAS with path routing and Manage 9.2.6 with the HSE add-on. Where a command reads your cluster, the guide shows what it printed on our test system, so you can compare.

On this page, the names of our own systems are replaced: our domains by apps.example.com and apps2.example.com, our registry by registry.example.com, our Manage workspace by main, and our clusters by “our test system” and “our second test system”, or by <test-system> and <second-test-system> in a path. Also, a printed output shows version 1.0.0, the first release. Everything else in the commands and their output is as it ran.

What gets installed

To plan the installation, read first what it puts into the cluster and into Manage.

In the MAS core namespace:

  • One pod with the editor: the web interface and the API. It runs beside IBM’s own MAS components and signs people in through MAS.
  • A data volume of 1 GiB, mounted at /data. It holds the named choice lists, the acceptance of the licence agreement and the last user count.
  • A ConfigMap with one file, config.yaml, which holds the editor’s settings.
  • A Route under the suite’s domain: the path /mas-tools-inspection-form-editor under path routing, or the host mas-tools-inspection-form-editor.<domain> under subdomain routing.
  • A Service, a NetworkPolicy and a Certificate from the MAS internal ClusterIssuer.
  • The editor’s own service account, with a Role that may read and write one Secret, mas-tools-inspection-form-editor-license, and read MAS’s Suite. The Role grants no other right.
  • Three Secrets: the OIDC client’s id and secret, the registry pull secret, and the licence Secret, which the deploy creates empty. cert-manager adds a fourth, mas-tools-inspection-form-editor-cert-internal, with the key and the certificate of the Certificate. It renews that Secret 30 days before the year of the certificate ends; the administration guide says why the pod then needs a restart.
  • An OIDC client registered with coreidp, MAS’s sign-in.

The editor installs nothing in Manage: no automation script, no application, no security group, no object structure and no database change. It reads and writes the forms through IBM’s stock object structure MXAPIINSPFORM, as the signed-in user, and it follows the options of IBM’s Inspection Forms application, MANAGEINSPFORM. Section 8 lists every option a user needs.

What runs where:

mermaid diagrammermaid diagram

1. What you need

To prepare the installation, check this list first.

What Detail
MAS and Manage MAS 9.2 with Manage and one Manage workspace. We tested on Manage 9.2.6.
OpenShift The cluster that runs MAS, with cert-manager and the MAS internal ClusterIssuer. MAS installs both.
Rights in the cluster oc login as a user who may create Deployments, Services, Routes, Secrets, PVCs, ConfigMaps, Certificates, NetworkPolicies, Jobs, ServiceAccounts, Roles and RoleBindings in the MAS core namespace. The full run of deploy/deploy.sh also reads two objects of the whole cluster: the ClusterIssuer (oc get clusterissuer) and the list of nodes (oc get node). A role in the namespace alone grants neither. To create the editor’s Role, the user must hold what the Role grants: get, update and patch on Secrets, and get and list on the Suites (suites.core.mas.ibm.com) of the namespace. Section 3 reads the Suite and the ManageWorkspace with -A, in every namespace.
Tools oc with oc kustomize, curl, jq and openssl. skopeo reads an image’s digest.
The image Access from the cluster to the registry that holds the image mas-tools-inspection-form-editor, or a mirror of it. Section 2 explains it.
Room on a node The pod requests 250m CPU and 128Mi of memory, and may use up to 1 CPU and 2Gi.
Storage A storage class that gives a ReadWriteOnce volume of 1Gi, the cluster’s default class.
Manage’s attachments A volume for Manage’s attached documents and the right server time zone. Section 9 explains both.

2. The image

To deploy the editor, you need its container image. It holds the server and the web interface. It needs no internet access at run time: it talks to MAS and Manage inside your cluster, and the browser loads nothing from another site.

Today the image lies in our own registry, registry.example.com/library/mas-tools-inspection-form-editor. The pipeline builds it on every push that changes the app, and tags it with the short commit. The tag latest follows the main branch. A public image with a signature comes with version 1.0; “What is still open” says more.

Refer to an image by its digest. A digest names exactly one build, and it stays the same in a mirror. This prints the digest of a tag:

skopeo inspect --format '{{.Digest}}' docker://<registry>/mas-tools-inspection-form-editor:<tag>

Mirror the image for a cluster without access to our registry. skopeo copy --preserve-digests keeps the digest, and the second command shows the same digest from the mirror:

skopeo copy --preserve-digests docker://<registry>/mas-tools-inspection-form-editor@sha256:<digest> docker://<your-mirror>/mas-tools-inspection-form-editor:<tag>
skopeo inspect --format '{{.Digest}}' docker://<your-mirror>/mas-tools-inspection-form-editor:<tag>

A mirror that wants a login needs it on both commands: --dest-creds <user>:<password> for the copy and --creds for the inspect. Read the password without an echo, as section 5 shows.

The cluster’s own registry as the mirror. On our second test system, the mirror is OpenShift’s internal registry. The copy goes to its route, with the login of oc, and the pod pulls from the registry’s service name:

skopeo copy --preserve-digests --dest-creds "kubeadmin:$(oc whoami -t)" \
  docker://<registry>/mas-tools-inspection-form-editor@sha256:<digest> \
  docker://$(oc get route default-route -n openshift-image-registry -o jsonpath='{.spec.host}')/<core-ns>/mas-tools-inspection-form-editor:<tag>

The image’s name for IMAGE and for the overlay is then image-registry.openshift-image-registry.svc:5000/<core-ns>/mas-tools-inspection-form-editor. Add --dest-tls-verify=false when the route’s certificate is not trusted on your machine. The internal registry wants a login for every pull. For an image of this registry the script makes no pull secret: the editor’s pods pull with the login of their own service account, which the cluster renews (section 5).

deploy/deploy.sh and deploy/undeploy.sh name quay.io/mas-tools.com/inspection-form-editor when you name no image. That image does not exist yet, so name the image with IMAGE every time.

3. Find your cluster’s values

To write the overlay of section 4, you need a few facts about your MAS installation. Each row gives the command that finds the value. The last column holds the value of our test system, as its overlay names it.

Value Placeholder Command On our test system
Core namespace and instance <core-ns>, <instance> oc get suite -A mas-dev-core, dev
Routing mode oc get suite -n <core-ns> -o jsonpath='{.items[0].spec.settings.routingMode}' path
Domain <domain> oc get suite -n <core-ns> -o jsonpath='{.items[0].spec.domain}' apps.example.com
Manage workspace <workspace> oc get manageworkspace -A -o jsonpath='{.items[0].metadata.labels.mas\.ibm\.com/workspaceId}' main
Manage’s default server bundle <bundle> oc get manageworkspace <instance>-<workspace> -n mas-<instance>-manage -o jsonpath='{.spec.settings.deployment.serverBundles[?(@.isDefault==true)].name}' all
Manage’s service for that bundle oc get svc -n mas-<instance>-manage <instance>-<workspace>-<bundle> dev-main-all
The internal ClusterIssuer oc get clusterissuer mas-<instance>-core-internal-issuer mas-dev-core-internal-issuer
MAS’s OAuth administrator Secret oc get secret <instance>-credentials-oauth-admin -n <core-ns> dev-credentials-oauth-admin
The right to create the Role oc auth can-i create roles -n <core-ns> yes

An empty routing mode means subdomain routing. A Manage split into several server bundles has one service per bundle, and the editor uses the one marked as the default. The issuer must show Ready.

4. Write the overlay for your cluster

To give the editor your cluster’s values, you write a kustomize overlay. The folder deploy/ is part of the editor’s repository, and until version 1.0 you work in a copy of that repository; the install kit of version 1.0 will hold the same folder. deploy/base/ holds the editor’s objects for any cluster. An overlay in deploy/overlays/<cluster>/ adds the values of one cluster. Start from the overlay of our test system:

cp -r deploy/overlays/<test-system> deploy/overlays/<cluster>

Then change these files.

kustomization.yaml: set namespace to your core namespace. Set the image’s newName to the registry you pull from. deploy.sh pins the digest on top, so the tag there matters only for a plain oc apply.

certificate.yaml: put your namespace into the three DNS names and your issuer into issuerRef:

spec:
  dnsNames: [mas-tools-inspection-form-editor.svc, mas-tools-inspection-form-editor.<core-ns>.svc, mas-tools-inspection-form-editor.<core-ns>.svc.cluster.local]
  issuerRef: { name: mas-<instance>-core-internal-issuer, kind: ClusterIssuer, group: cert-manager.io }

deployment.yaml: a JSON patch sets the cluster’s values in the pod’s environment. Each replace comes after a test of the variable’s name. So a change in the base stops the build before a value lands in the wrong variable. Change only the values:

Variable On our test system Your value under path routing Your value under subdomain routing
NAMESPACE mas-dev-core <core-ns> <core-ns>
ROUTING_MODE path path subdomain
BASE_PATH /mas-tools-inspection-form-editor /mas-tools-inspection-form-editor empty
DOMAIN apps.example.com <domain> <domain>
AUTH_OIDC_URI https://apps.example.com/oidc/endpoint/MaximoAppSuite https://<domain>/oidc/endpoint/MaximoAppSuite https://auth.<domain>/oidc/endpoint/MaximoAppSuite
AUTH_API_URI https://apps.example.com/auth/api/auth https://<domain>/auth/api/auth https://auth.<domain>/api/auth
AUTH_LOGOUT_URI https://apps.example.com/auth/ibm_security_logout https://<domain>/auth/ibm_security_logout https://auth.<domain>/ibm_security_logout
TOKEN_URL https://coreidp.mas-dev-core.svc/oidc/endpoint/MaximoAppSuite/token https://coreidp.<core-ns>.svc/oidc/endpoint/MaximoAppSuite/token the same
MANAGE_PUBLIC_URL https://apps.example.com/manage/main/maximo https://<domain>/manage/<workspace>/maximo https://<workspace>.manage.<domain>/maximo
MANAGE_INTERNAL_URL https://dev-main-all.mas-dev-manage.svc/manage/main/maximo https://<instance>-<workspace>-<bundle>.mas-<instance>-manage.svc/manage/<workspace>/maximo https://<instance>-<workspace>-<bundle>.mas-<instance>-manage.svc/maximo
TRUST_PROXY_HOPS 2 1, or 2 behind a load balancer that ends TLS the same

When mas-tools.com Data Import or mas-tools.com Data Export already runs in the namespace, take its TRUST_PROXY_HOPS: it stands behind the same routers. This prints it:

oc get deploy mas-tools-data-import -n <core-ns> -o jsonpath='{.spec.template.spec.containers[0].env[?(@.name=="TRUST_PROXY_HOPS")].value}{"\n"}'

An empty MANAGE_INTERNAL_URL makes the pod call Manage through its public route. The internal service is faster, so use it where it exists. The administration guide explains every variable of the pod.

config.yaml: the editor’s settings. Name the users who may open the editor’s administration in Admin.Users, with their MAS login names. Without the line, only MAXADMIN may open it:

Admin.Users: [MAXADMIN, <your-user>]

The administration guide lists every setting. The pod refuses to start with a wrong value in this file, and its log line names the setting.

MAS instances with another name than dev: the registration of the OIDC client reads MAS’s Secret dev-credentials-oauth-admin. The name holds the instance of our test system, dev. On your instance, change dev-credentials-oauth-admin to <instance>-credentials-oauth-admin in deploy/register-oidc.job.yaml and in deploy/undeploy.sh before the first deploy.

Check the overlay before you apply it. It must render, and no set-by-overlay may be left. On our machine the overlay of our test system printed this:

$ oc kustomize deploy/overlays/<test-system> | grep -c set-by-overlay
0
$ oc kustomize deploy/overlays/<test-system> | grep '^kind:'
kind: ConfigMap
kind: Service
kind: PersistentVolumeClaim
kind: Deployment
kind: Certificate
kind: NetworkPolicy

Run the same for your overlay, with your folder’s name.

5. The first deploy

To bring the editor into the cluster, run deploy/deploy.sh once with your own oc login. It reads the namespace, the host and the path from your overlay, so the Route and the pod always agree. It uses the oc context it is given and never changes it.

OVERLAY=<cluster> IMAGE=<registry>/mas-tools-inspection-form-editor:<tag> IMAGE_DIGEST=sha256:<digest> ./deploy/deploy.sh

The script needs a pull secret for any registry that wants a login. When mas-tools.com Data Explorer or mas-tools.com Data Import already runs in the namespace, copy its pull secret, and no password passes through your shell:

REGISTRY_PULL_FROM=mas-tools-data-explorer-registry-pull OVERLAY=<cluster> \
  IMAGE=<registry>/mas-tools-inspection-form-editor:<tag> IMAGE_DIGEST=sha256:<digest> ./deploy/deploy.sh

When the image lies in the cluster’s own registry, the script needs no pull secret and makes none. Every service account of a namespace may pull that namespace’s images, and the editor’s pods then pull with the login of their own account:

OVERLAY=<cluster> IMAGE=image-registry.openshift-image-registry.svc:5000/<core-ns>/mas-tools-inspection-form-editor:<tag> \
  IMAGE_DIGEST=sha256:<digest> ./deploy/deploy.sh

Do not copy a service account’s registry secret for this. Such a secret holds a token that the cluster renews, and a copy keeps the old one. On our second test system a copy worked at the install, and some hours later the pod stood in ImagePullBackOff with authentication required. The script removes such a copy, mas-tools-inspection-form-editor-registry-pull, when it finds one.

For any other registry the script copies a pull secret only while the editor has none. After a wrong first try, delete mas-tools-inspection-form-editor-registry-pull and the Job mas-tools-inspection-form-editor-oidc-register, and run the script again.

Otherwise the script creates the pull secret from two environment variables, and only when that secret does not exist yet. Read the password without an echo:

export REGISTRY_USER=<user>
read -rs REGISTRY_PASSWORD; export REGISTRY_PASSWORD
OVERLAY=<cluster> IMAGE=<registry>/mas-tools-inspection-form-editor:<tag> IMAGE_DIGEST=sha256:<digest> ./deploy/deploy.sh

The script runs these steps and prints each one:

  1. It checks your login and the issuer.
  2. It names the image the cluster pulls.
  3. It creates the OIDC client’s Secret with a generated value. The value lands in the cluster’s Secret only.
  4. It creates the registry pull secret, or copies the one you named. In step 3b it creates the editor’s service account with its Role and RoleBinding, and the empty licence Secret when that is missing. A licence installed later is never reset by a deploy.
  5. It applies the overlay: the Certificate, the PVC, the ConfigMap, the NetworkPolicy, the Deployment and the Service.
  6. It waits for the certificate, then creates the Route with the issued CA.
  7. It registers the OIDC client with coreidp through a short Job in the cluster.
  8. It waits for the rollout and checks the result.

The last step prints the client id in MAS’s sign-in redirect, the editor’s version through the Route, the answers of /readyz and /metrics from inside the pod, and the status of a call from the pod to MAS’s internal API with the client certificate. The script ends with DONE: open https://<host><path>/ and sign in. On our second test system the last two steps printed this:

== 6. register the OIDC client with coreidp (in-cluster Job)
job.batch/mas-tools-inspection-form-editor-oidc-register created
coreidp HTTP 201
Registration OK

== 7. rollout + verify
Waiting for deployment "mas-tools-inspection-form-editor" rollout to finish: 0 of 1 updated replicas are available...
deployment "mas-tools-inspection-form-editor" successfully rolled out
  route -> 302 to coreidp:
    client_id=mas-tools-inspection-form-editor
  version through the Route (no login):
{"app":"mas-tools-inspection-form-editor","appVersion":"1.0.0","apiVersion":"v1","buildId":"54696257","sessionCheck":true,"masSession":{"idleTimeout":1800,"countdown":30,"cookieDomain":"apps2.example.com"}}
  readiness and metrics on the internal port, from inside the pod:
    /readyz 200 {"ready":true,"checks":{"data":{"ok":true},"config":{"ok":true}}}
    /metrics 200 mtif_build_info{api="v1",build="54696257",manage_version="9.2.5",version="1.0.0"} 1
  mTLS to internalapi from the pod:
    internalapi HTTP 200

== DONE: open https://apps2.example.com/mas-tools-inspection-form-editor/ and sign in

Between the two lines of step 6 the Job prints coreidp’s answer as one line of JSON, with the client’s secret replaced by <redacted>.

Later updates need only the new image. This applies the overlay and waits for the rollout. It leaves the Secrets, the Route and the OIDC client as they are:

APPLY_ONLY=1 OVERLAY=<cluster> IMAGE=<registry>/mas-tools-inspection-form-editor:<tag> IMAGE_DIGEST=sha256:<digest> ./deploy/deploy.sh

On our test system the pipeline runs this command for every commit. It printed:

== apply-only: overlay <test-system> with registry.example.com/library/mas-tools-inspection-form-editor:d95edfb0@sha256:70ea2b91e5c3078c042e1521119c7bca29a7133670340d435372f8125bfb420f
  as=system:admin  overlay=<test-system>  ns=mas-dev-core  routing=path  url=https://apps.example.com/mas-tools-inspection-form-editor
  manage internal=https://dev-main-all.mas-dev-manage.svc/manage/main/maximo
  image=registry.example.com/library/mas-tools-inspection-form-editor:d95edfb0@sha256:70ea2b91e5c3078c042e1521119c7bca29a7133670340d435372f8125bfb420f
configmap/mas-tools-inspection-form-editor-config unchanged
service/mas-tools-inspection-form-editor unchanged
persistentvolumeclaim/mas-tools-inspection-form-editor-data unchanged
deployment.apps/mas-tools-inspection-form-editor configured
certificate.cert-manager.io/mas-tools-inspection-form-editor-cert-internal unchanged
networkpolicy.networking.k8s.io/mas-tools-inspection-form-editor unchanged
Waiting for deployment "mas-tools-inspection-form-editor" rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for deployment "mas-tools-inspection-form-editor" rollout to finish: 0 of 1 updated replicas are available...
deployment "mas-tools-inspection-form-editor" successfully rolled out

It stops with a message before it applies anything when the editor’s service account is missing: that account comes from the full run. The Deployment stops the old pod before the new one starts, because the volume can belong to one pod only. So the editor is away for the seconds the new pod needs to start.

6. The licence Secret

To keep the editor’s licence apart from every other app, the editor has a Secret of its own, mas-tools-inspection-form-editor-license. The first deploy creates it empty. Without a licence, the free edition applies: a form keeps at most 10 questions, and at most 3 users hold a non-read option of Inspection Forms.

The editor reads only this Secret. mas-tools.com Data Import and mas-tools.com Data Export keep theirs, mas-tools-data-tools-license, and the editor neither reads nor writes it. A licence of one product is refused by the other.

The administrator of the editor installs a licence file on the administration screen. The editor checks the signature and the MAS domain before it stores the file, and a refused file leaves the Secret as it was. The administration guide describes it. The pod may read and change the Secret, and it may not create it, because Kubernetes cannot limit the right to create by name. So a deploy creates it, and deploy/undeploy.sh leaves it in place.

An OpenShift administrator can also write the file into the Secret directly. The pod reads the file’s text from the key license, and it reads the Secret once a minute:

oc set data secret/mas-tools-inspection-form-editor-license -n <core-ns> --from-file=license=<licence-file>

We have not run this command on our test system; the administration screen is the way we tested. A file written this way skips the checks of the screen, so the screen then shows whether the licence holds.

7. The editor’s own volume

To keep the editor’s own data through a restart and an update, the pod mounts the volume mas-tools-inspection-form-editor-data at /data. The base asks for 1Gi with ReadWriteOnce. The volume holds three files:

File Holds
choice-lists.json The named choice lists of every organization.
terms-accepted.json Every acceptance of the licence agreement: the user, the time and the version.
license-users.json The last count of the users that the licence counts.

The forms themselves live in Manage, so the volume holds no form. The named choice lists exist only here, so back them up; the administration guide shows how. The pod is ready only while it can write to /data: /readyz writes a small file there and reads it back.

8. What users and the administrator need in Manage

To give people access, grant the options below to their security groups in Manage’s Security Groups application. The editor follows the options of IBM’s Inspection Forms application, MANAGEINSPFORM, together with the options of the object structure MXAPIINSPFORM. Manage checks the second on every request. Each action needs its options in both, and the editor offers only what both allow.

Options Who needs them What for Without them
READ in the application MANAGEINSPFORM; READ in the object structure MXAPIINSPFORM every user Open the editor: the list of forms, a form, the preview, the comparison of two revisions, and the export of a revision to a file. The page “No access to the inspection forms”.
CREATE in the application MANAGEINSPFORM; INSERT in the object structure MXAPIINSPFORM a user who changes forms Make a new form: an empty one, a copy of a form, and the import of a file as a new form. A copy or a file with rules needs SAVE as well, because Manage takes the rules in a second request. The editor does not offer the action.
SAVE in the object structure MXAPIINSPFORM a user who changes forms Change a Draft or a Pending revision, add and remove its attachments, save and change the named choice lists, and let Manage check a formula. The form opens read-only: “You can read this form. Changing it needs the option SAVE of the object structure MXAPIINSPFORM.”
REVISION in the application MANAGEINSPFORM; INSERT, SAVE in the object structure MXAPIINSPFORM a user who changes forms Create a revision, and import a file as the next revision. The editor does not offer the action.
REVIEW in the application MANAGEINSPFORM; SAVE in the object structure MXAPIINSPFORM a user who changes forms Switch the setting “Require review” of a form, as IBM’s application offers it. The setting “Require review” shows read-only: “Changing it needs the option REVIEW of the application MANAGEINSPFORM.”
REVISION in the application MANAGEINSPFORM; SAVE in the object structure MXAPIINSPFORM a user who changes forms Give or change the reason of an Active revision. The reason of an Active revision is shown read-only.
ACTIVATE in the application MANAGEINSPFORM; STATUS in the object structure MXAPIINSPFORM a user who changes forms Activate a revision. The editor does not offer the action.
DEACTIVATE in the application MANAGEINSPFORM; STATUS in the object structure MXAPIINSPFORM a user who changes forms Deactivate a revision. The editor does not offer the action.
DELETE in the application MANAGEINSPFORM; DELETE in the object structure MXAPIINSPFORM a user who changes forms Delete a Draft or a Pending revision. The editor does not offer the action.
ACTIVATE, CREATE, DEACTIVATE, DELETE, REVISION, REVIEW in the application MANAGEINSPFORM the licence’s user count Each active user who holds one of these options through any security group counts against the licence’s user limit. READ alone does not count. The user is not counted.
READ in the object structure MXAPISITE a user who changes forms The active sites that a new form may name. Only the default site of the user’s profile is offered: “Your account cannot read the list of sites, so only the default site of your profile is offered.”
READ in the object structure MXAPIORGANIZATION a user who changes forms The active organizations that a new form may name, with their descriptions, also an organization without a site. The New form dialog offers the organizations of the sites the user reads, without their descriptions.
READ in the object structure MXAPISYNONYMDOMAIN every user The field types and the form types Manage holds, with their internal values. The boxes of a field’s type and of a form’s type offer them, and a field whose type is a value of the customer’s own opens as the type it stands for. The boxes offer the types Manage ships. A field whose type is a value of the customer’s own opens read-only.
READ in the object structure MXAPIMVI a user who changes forms The image analysis models of Maximo Visual Inspection that an upload field offers by name. The box of the model takes a typed model id.
READ in the object structure MXAPIMETER a user who changes forms The meters that a meter field offers and checks. A save writes the meter’s type and unit into the field. A rule on a meter field learns from the meter whether it is characteristic. An import and a question taken from the library check their meters. The box takes any name, the form check names no missing meter, and a save leaves the meter’s type and unit as they are. A rule on a meter field goes by the type Manage holds beside the field.
READ in the object structure MXAPIDOMAIN a user who changes forms The domains that a domain field offers and checks, and the domain’s type on a save. The values a rule on a domain field or a characteristic meter offers and checks. A choice list that equals a domain says so. An import and a question taken from the library check their domains. The box takes any name, the form check names no missing domain, and no choice list is matched to a domain. A rule on a domain value takes a typed value, and the form check warns that it could not check it.
READ in the object structure MXAPIDOCTYPE a user who changes forms The document folders that an upload field and an attachment offer and check. An import and a question taken from the library check their folders. The box takes any name, and the form check names no missing folder.
READ in the object structure MXAPIAUTOSCRIPT a user who changes forms The automation scripts that the Form tab offers as form scripts, the ones whose name holds MXAPIINSPECTIONRES, with their descriptions, as IBM’s application lists them. A user who changes forms adds and removes them there. The Form tab names the form scripts this system lacks, and an import checks them. The Form tab shows the names of the form’s scripts and says why the list of scripts to add is missing. It cannot say which form scripts the system lacks.
READ in the object structure MXAPIJOBPLAN every user Where a form is used: the job plans and the job plan tasks that name it. The count says “Not readable with your account”, with Manage’s answer. It never shows 0.
READ in the object structure MXAPIROUTES every user Where a form is used: the route stops that name it. The count says “Not readable with your account”, with Manage’s answer. It never shows 0.
READ in the object structure MXAPIWODETAIL every user Where a form is used: the open work orders that name it. The count says “Not readable with your account”, with Manage’s answer. It never shows 0.
READ in the object structure MXAPIINSPRESULT every user The inspection results of a form, and the pending inspections that an activation moves. The count says that the results are not readable, and the activation dialog cannot say which inspections move.
READ in the object structure MXAPIPROP a user who changes forms The system property mxe.app.inspection.UpdatePendingResults, which decides whether an activation moves pending inspections. The activation dialog reads it. The activation dialog says that the account cannot read the property.
READ in the object structure REP_SECURITY the administrator of the editor The licence’s user count: the security groups that hold a counted option, with their members. The count fails, and the Users section of the administration names Manage’s answer.
READ in the object structure MXAPISYNONYMDOMAIN the administrator of the editor The licence’s user count: the values of MAXUSERSTATUS that mean active. The count fails, and the Users section of the administration names Manage’s answer.

Two of Manage’s routes need no option: the user’s profile (whoami) and the user’s options (permission/allowedappoptions). The editor reads a user’s options once a minute, so a new grant works in the editor within a minute.

A default insert site. Beside the options, a user who changes forms needs a default insert site in the user’s profile. Each user sets it in Manage under Profile, Default Information, and an administrator sets it in the Users application. Without it, Manage adds no question, field, rule or attachment to a form that exists, and it answers “BMXAA0012E - A record cannot be created unless a default insert site is defined”. The editor reads the insert site from whoami when a form opens and says on the form screen that it is missing. On a system without IBM’s demo data, an administrator often has none: set it before the first form.

On our test system, IBM’s demo data grants the group INSPECTORSUP the options ACTIVATE, CREATE, DEACTIVATE, DELETE, READ and REVISION of MANAGEINSPFORM, and READ, INSERT, SAVE, DELETE and STATUS of MXAPIINSPFORM. Nobody holds REVIEW there. On another system the groups and their grants differ, so check them in Security Groups before the first user signs in.

The administrator of the editor is a user named in Admin.Users of config.yaml. No Manage option stands for it, because the editor has no application in Manage. That user needs READ in REP_SECURITY and MXAPISYNONYMDOMAIN for the licence’s user count, as the table shows.

9. Manage’s attachment store and server time zone

To keep attached documents and to show the right times, Manage itself needs two settings. The editor reads and writes attachments through Manage, so Manage needs a place for the files that outlives its pod. These settings change Manage and install nothing of the editor.

What we measured on our test system:

  • The workspace had no persistent volume. The folders carried the Windows paths of the demo data, such as \DOCLINKS\ATTACHMENTS. On the Linux pod such a path became one directory with that literal name under /opt/ibm/wlp/output/defaultServer/. So every file lived in the pod, and it was lost with the pod.
  • Manage deletes a document when its last link goes, and it deletes the file with the document. A removed attachment cannot be linked again once no other record holds its document.
  • The workspace had serverTimezone: GMT, and the database writes CET. Manage read each stored time as GMT, so every date showed one hour ahead.

Read your workspace’s two settings first:

oc get manageworkspace <instance>-<workspace> -n mas-<instance>-manage -o jsonpath='{.spec.settings.deployment.persistentVolumes}{"\n"}{.spec.settings.deployment.serverTimezone}{"\n"}'

On our test system, after the change, it printed:

[{"accessModes":["ReadWriteMany"],"mountPath":"/DOCLINKS","pvcName":"doclinks","size":"10Gi","storageClassName":"nfs-client"}]
Europe/Vienna

The repository holds what we applied on our test system, in deploy/manage/. The order:

  1. The doclink properties and the folders’ default paths, deploy/manage/DOCLINKS_VOLUME_01.dbc. It sets these values, as IBM’s support page “How to set up attached documents with file storage in Maximo Manage” gives them:

    Property Value on our test system
    mxe.doclink.doctypes.defpath /DOCLINKS
    mxe.doclink.doctypes.topLevelPaths /DOCLINKS
    mxe.doclink.path01 /DOCLINKS=https://apps.example.com/manage/main/maximo
    mxe.doclink.securedAttachment true

    It also gives nine document folders of IBM’s demo data the default path /DOCLINKS/<folder>, each by its name: ASSIST, Attachments, CAD, Diagrams, Images, Parts, Permits, Steps and Websites. A folder with another name keeps the path it has. The file for our second test system, deploy/manage/<second-test-system>/DOCLINKS_VOLUME_01.dbc, turns every default path that starts with \DOCLINKS\ into one with forward slashes. Two of the properties take effect with the next start of Manage, so the script runs before the patch of step 2. On our test system it ran on the maxinst pod, because an API key of MAXADMIN may not write MXAPIPROP there (BMXAA0024E).

  2. One volume and the time zone, deploy/manage/10-doclinks-volume-and-timezone.json, as one JSON patch of the ManageWorkspace. It is the list that the Suite’s page “Persistent volume claims (PVCs)” edits. The operator makes the claim <instance>-<workspace>-doclinks and mounts it at /DOCLINKS into the server pods and the maxinst pod. serverTimezone becomes the pods’ TZ.

    oc patch manageworkspace <instance>-<workspace> -n mas-<instance>-manage --type=json \
      --patch-file deploy/manage/10-doclinks-volume-and-timezone.json

    The operator rolls the pods. No image is built.

  3. The way back is deploy/manage/19-rollback-no-volume-gmt.json, applied the same way. The properties and the folder paths stay.

On your system, change what belongs to our test system: the storage class (nfs-client there, with ReadWriteMany), the size (10Gi), the workspace’s name and namespace, the address in mxe.doclink.path01, and the time zone. The time zone must be the one the database server writes in.

10. Check the installation

To know that the installation works, run these checks.

Check How Good result
The editor answers curl -s https://<host><path>/api/version JSON with the version and the build
The pod is ready oc get pod -n <core-ns> -l app=mas-tools-inspection-form-editor the pod mas-tools-inspection-form-editor-… Running, 1/1
The build runs the command below mtif_build_info{…} 1 with the build and Manage’s version
The administration Sign in as a user of Admin.Users and open Administration The licence agreement, the licence, the users and the settings
A user Sign in as a user with READ in MANAGEINSPFORM and MXAPIINSPFORM The list of inspection forms

On our test system, the first check printed:

{"app":"mas-tools-inspection-form-editor","appVersion":"1.0.0","apiVersion":"v1","buildId":"d95edfb0","sessionCheck":true,"masSession":{"idleTimeout":1800,"countdown":30,"cookieDomain":"apps.example.com"}}

The readiness and the build, read from inside the pod:

oc exec deploy/mas-tools-inspection-form-editor -n <core-ns> -- bun -e 'for (const p of ["/readyz","/metrics"]) { const r = await fetch("http://127.0.0.1:9090"+p); const t = await r.text(); console.log(p, r.status, p==="/readyz" ? t : t.split("\n").find(l=>l.startsWith("mtif_build_info"))); }'

On our test system it printed:

/readyz 200 {"ready":true,"checks":{"data":{"ok":true},"config":{"ok":true}}}
/metrics 200 mtif_build_info{api="v1",build="2072cc0a",manage_version="9.2.6",version="1.0.0"} 1

11. Remove the app

To take the editor out of the cluster, run deploy/undeploy.sh. It removes the OIDC client registration first, then every object of the editor in the namespace. Name your namespace, and the image, because the removal of the OIDC client runs in a short Job with that image. KEEP_DATA=1 keeps the data volume with the named choice lists:

NS=<core-ns> IMAGE=<registry>/mas-tools-inspection-form-editor:<tag> KEEP_DATA=1 ./deploy/undeploy.sh

The licence Secret stays, so a licence survives a reinstall. This removes it as well:

oc delete secret mas-tools-inspection-form-editor-license -n <core-ns>

Manage holds nothing of the editor, so there is nothing to remove there. The forms that people made are Manage’s own records, and they stay. So do the attachment volume and the time zone of section 9, which belong to Manage.

What is still open

When you plan an installation at a customer, these points are still open:

  • The image. It lies in our own registry today. A public, signed image and an install kit with every file come with version 1.0. Until then, name the image with IMAGE in every call of deploy/deploy.sh and deploy/undeploy.sh.
  • A second system. The installation and the form test also ran on a second test system without demo data. The user guide’s first form was built and activated there, and an attachment outlived a restart of Manage. It has path routing like our test system, and sections 2 and 5 name what we did there. The values for subdomain routing in section 4 are the ones of the other mas-tools.com Data Tools apps; the editor has not run under subdomain routing yet.
  • The MAS instance name. The OIDC registration names the Secret of the instance dev, and section 4 says how to change it. The scripts do not read the instance from the cluster yet.
  • Monitoring. The pod serves its metrics, and the overlay brings no ServiceMonitor, no alerts and no dashboard yet. The administration guide lists the metrics.
  • The doclink properties. We set them on our test system with a script on the maxinst pod. A way to set them with Manage’s own tools is not written down here yet.

← All pages: for administrators

Need help with the installation?

Write to us with your cluster's details. We answer in English and German.