Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-1350

[agent installer ui] Prevent duplicate InfraEnv creation to support OVE Late-Binding workflow

XMLWordPrintable

      User Story:

      Currently, the agent installer UI creates an infra-env and cluster object as soon as the user clicks on the "Next" button on the first page of cluster creation wizard after filling in the required details. However, with late binding approach, the infraenv will be automatically created by the agent-register-infraenv.service which is the first service to run using late binding.

      This leads to UI attempting to create infraenv again leading to an error on the UI

      ERROR: duplicate key value violates unique constraint \"infra_envs_pkey\" (SQLSTATE 23505)
      

      Every time a new OVE ISO is created a new infraenv will be generated and baked in the ISO which will be registered using the agent-register-infraenv.service when a node is booted using the OVE ISO.

      In case of OVE, the UI should check if an infraenv is already created. If yes, only create a cluster object.

              rawagner@redhat.com Rastislav Wagner
              ppinjark@redhat.com pawan pinjarkar
              Rastislav Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: