From 6aabac81f030978f44e421d8e56b9a2d16048443 Mon Sep 17 00:00:00 2001 From: "saul.gill" Date: Wed, 19 Apr 2023 11:08:38 +0100 Subject: Removing doc with old info Doc not in appropriate location Info in doc no longer relevant Issue-ID: POLICY-4613 Change-Id: I784be26a7d4bdde2c1ae056058d92df841addad9 Signed-off-by: saul.gill --- docs/clamp/acm/clamp-gui/images/01-gui.png | Bin 5199 -> 0 bytes docs/clamp/acm/clamp-gui/images/02-gui.png | Bin 25399 -> 0 bytes docs/clamp/acm/clamp-gui/images/03-gui.png | Bin 22009 -> 0 bytes docs/clamp/acm/clamp-gui/images/04-gui.png | Bin 3070 -> 0 bytes docs/clamp/acm/clamp-gui/images/05-gui.png | Bin 10977 -> 0 bytes docs/clamp/acm/clamp-gui/images/06-gui.png | Bin 13765 -> 0 bytes docs/clamp/acm/clamp-gui/images/07-gui.png | Bin 13484 -> 0 bytes docs/clamp/acm/clamp-gui/images/08-gui.png | Bin 21202 -> 0 bytes docs/clamp/acm/clamp-gui/images/09-gui.png | Bin 10824 -> 0 bytes docs/clamp/acm/clamp-gui/images/10-gui.png | Bin 8164 -> 0 bytes docs/clamp/acm/clamp-gui/images/11-gui.png | Bin 43677 -> 0 bytes docs/clamp/acm/clamp-gui/images/12-gui.png | Bin 10778 -> 0 bytes docs/clamp/acm/clamp-gui/images/13-gui.png | Bin 42355 -> 0 bytes docs/clamp/acm/clamp-gui/images/14-gui.png | Bin 51361 -> 0 bytes docs/clamp/acm/clamp-gui/images/15-gui.png | Bin 25049 -> 0 bytes docs/clamp/acm/clamp-gui/images/16-gui.png | Bin 10737 -> 0 bytes docs/clamp/acm/clamp-gui/images/17-gui.png | Bin 17073 -> 0 bytes docs/clamp/acm/clamp-gui/images/18-gui.png | Bin 52727 -> 0 bytes docs/clamp/acm/clamp-gui/images/19-gui.png | Bin 54033 -> 0 bytes docs/clamp/acm/clamp-gui/images/20-gui.png | Bin 22866 -> 0 bytes docs/clamp/acm/clamp-gui/images/21-gui.png | Bin 8935 -> 0 bytes docs/clamp/acm/clamp-gui/images/22-gui.png | Bin 7317 -> 0 bytes docs/clamp/acm/clamp-gui/images/23-gui.png | Bin 13755 -> 0 bytes docs/clamp/acm/clamp-gui/policy-gui.rst | 315 --------------------------- docs/clamp/acm/design-impl/clamp-gui-acm.rst | 1 - docs/clamp/clamp.rst | 1 - 26 files changed, 317 deletions(-) delete mode 100644 docs/clamp/acm/clamp-gui/images/01-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/02-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/03-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/04-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/05-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/06-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/07-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/08-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/09-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/10-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/11-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/12-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/13-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/14-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/15-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/16-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/17-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/18-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/19-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/20-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/21-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/22-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/images/23-gui.png delete mode 100644 docs/clamp/acm/clamp-gui/policy-gui.rst diff --git a/docs/clamp/acm/clamp-gui/images/01-gui.png b/docs/clamp/acm/clamp-gui/images/01-gui.png deleted file mode 100644 index 74b13310..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/01-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/02-gui.png b/docs/clamp/acm/clamp-gui/images/02-gui.png deleted file mode 100644 index ba18a13a..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/02-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/03-gui.png b/docs/clamp/acm/clamp-gui/images/03-gui.png deleted file mode 100644 index c3716599..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/03-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/04-gui.png b/docs/clamp/acm/clamp-gui/images/04-gui.png deleted file mode 100644 index 744d6e16..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/04-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/05-gui.png b/docs/clamp/acm/clamp-gui/images/05-gui.png deleted file mode 100644 index 2eb1536d..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/05-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/06-gui.png b/docs/clamp/acm/clamp-gui/images/06-gui.png deleted file mode 100644 index d22b1a7e..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/06-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/07-gui.png b/docs/clamp/acm/clamp-gui/images/07-gui.png deleted file mode 100644 index df28fd5d..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/07-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/08-gui.png b/docs/clamp/acm/clamp-gui/images/08-gui.png deleted file mode 100644 index 5be657b5..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/08-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/09-gui.png b/docs/clamp/acm/clamp-gui/images/09-gui.png deleted file mode 100644 index 156e0f76..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/09-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/10-gui.png b/docs/clamp/acm/clamp-gui/images/10-gui.png deleted file mode 100644 index 9cbcb96e..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/10-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/11-gui.png b/docs/clamp/acm/clamp-gui/images/11-gui.png deleted file mode 100644 index dc68ea52..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/11-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/12-gui.png b/docs/clamp/acm/clamp-gui/images/12-gui.png deleted file mode 100644 index 548c6ba1..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/12-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/13-gui.png b/docs/clamp/acm/clamp-gui/images/13-gui.png deleted file mode 100644 index 09b2dc07..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/13-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/14-gui.png b/docs/clamp/acm/clamp-gui/images/14-gui.png deleted file mode 100644 index 28680efc..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/14-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/15-gui.png b/docs/clamp/acm/clamp-gui/images/15-gui.png deleted file mode 100644 index 0d1c949b..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/15-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/16-gui.png b/docs/clamp/acm/clamp-gui/images/16-gui.png deleted file mode 100644 index 829d790d..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/16-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/17-gui.png b/docs/clamp/acm/clamp-gui/images/17-gui.png deleted file mode 100644 index 03d318d2..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/17-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/18-gui.png b/docs/clamp/acm/clamp-gui/images/18-gui.png deleted file mode 100644 index 8e08ad68..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/18-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/19-gui.png b/docs/clamp/acm/clamp-gui/images/19-gui.png deleted file mode 100644 index 494d37ce..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/19-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/20-gui.png b/docs/clamp/acm/clamp-gui/images/20-gui.png deleted file mode 100644 index 4be441ed..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/20-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/21-gui.png b/docs/clamp/acm/clamp-gui/images/21-gui.png deleted file mode 100644 index 2f49598e..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/21-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/22-gui.png b/docs/clamp/acm/clamp-gui/images/22-gui.png deleted file mode 100644 index 9efe51a0..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/22-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/images/23-gui.png b/docs/clamp/acm/clamp-gui/images/23-gui.png deleted file mode 100644 index f258454a..00000000 Binary files a/docs/clamp/acm/clamp-gui/images/23-gui.png and /dev/null differ diff --git a/docs/clamp/acm/clamp-gui/policy-gui.rst b/docs/clamp/acm/clamp-gui/policy-gui.rst deleted file mode 100644 index 4e8721e2..00000000 --- a/docs/clamp/acm/clamp-gui/policy-gui.rst +++ /dev/null @@ -1,315 +0,0 @@ -.. This work is licensed under a Creative Commons Attribution 4.0 International License. - -.. _clamp-policy-gui-label: - -TOSCA Policy GUI -################ - -.. contents:: - :depth: 4 - -1 - How to run the Front-End Gui -================================ -This section describes how to run the front end on your local machine. - -**Prerequisite:** - -**Building and running CLAMP** - -see -:ref:`Clamp ACM Smoke Tests ` - -**Step 1:** Go to the clamp directory - -.. code-block:: bash - - cd /clamp/extra/bin-for-dev - -**Step 2:** Inside the clamp directory run - -.. code-block:: bash - - ./start-db.sh test - -**Step 3:** Check docker container id - -.. code-block:: bash - - docker ps - -**Step 4:** Log into docker container - -.. code-block:: bash - - docker exec -it 'container_id' bash - -**Step 5:** Go into mariadb shell - -.. code-block:: bash - - mysql -u root -p - -**Step 6:** Enter password - - strong_pitchou - -.. image:: images/01-gui.png - -**Step 7:** Go into cldsdb4 database - -.. code-block:: bash - - use cldsdb4; - -**Step 8:** Verify if there is data in the following table 'loop_templates' - -.. code-block:: bash - - select * from loop_templates; - -** If for some reason the database is empty do the go to the '/docker-entrypoint-initdb.d/dump' directory - -.. code-block:: bash - - ./load-fake-data.sh - -**Step 9:** Once the database is up and running need to start the clamp emulator, by running the following command inside the /clamp/extra/bin-for-dev - -.. code-block:: bash - - ./start-emulator.sh - -**Step 10:** Verify if mariadb and the emulator is running - -.. code-block:: bash - - docker ps - -.. image:: images/02-gui.png - -**Step 11:** Start the backend service by running the command inside the /clamp/extra/bin-for-dev - -.. code-block:: bash - - ./start-backend.sh - - -.. _building-ui-label: - -2 - Checking out and building the UI -==================================== - -**Step 1:** Checkout the UI from the repo - -.. code-block:: bash - - git clone "https://gerrit.nordix.org/onap/policy/gui" - -**Step 2:** Change into the "gui" directory and run the following - -.. code-block:: bash - - mvn clean install - -**Step 3:** Go into the gui-clamp/ui-react directory and run the following - -.. code-block:: bash - - npm install - -**Step 4:** Start the front end UI - -.. code-block:: bash - - npm start --scripts-prepend-node-path - -*If you get the following error* - -.. image:: images/03-gui.png - -.. code-block:: bash - - gedit package.json - -Then change ``"version": "${project.version}",`` to ``"version": "2.1.1",`` - -Save and close, then delete the node_modules directory - -.. code-block:: bash - - rm -rf node_modules/ - -Then run again - -.. code-block:: bash - - npm install - -.. code-block:: bash - - npm start --scripts-prepend-node-path - -**Step 5:** Once the UI starts at localhost:3000 it will ask for credentials: - - Login: admin - Password: password - -3 - How to Commission/Decommission the TOSCA Service Template -============================================================= - -This section describes how to commission and decommission the Tosca Service Template - -** Prerequisite: - -See :ref:`Policy GUI Prerequisites` - -**Step 1:** From the Main Menu Click on TOSCA Automation Composition Dropdown - -.. image:: images/04-gui.png - -**Step 2:** From the Dropdown Menu Select Upload Automation Composition To Commissioning - -.. image:: images/05-gui.png - -**Step 3:** On the window Upload Tosca to Commissioning API Click on the input box that says 'Please Select a file' - -.. image:: images/06-gui.png - -**Step 4:** Once the yaml file is selected click on Upload Tosca Service Template - -.. image:: images/07-gui.png - -**Step 5:** After the upload there should have a message "Upload Success" in green - -.. image:: images/08-gui.png - -**Step 6:** To validate that the TOSCA Service Template has been commissioned click on Manage Commissioned Automation Composition Template - -.. image:: images/09-gui.png - -**Step 7:** In the View Tosca Template Window click on Pull Tosca Service Template - -.. image:: images/10-gui.png - -**Step 8:** Once the Tosca Service Template has been pulled there should be a json object rendered in the window - -.. image:: images/11-gui.png - -**Step 9:** Click on Close close the window - -**Step 10:** Click on Edit Automation Composition Properties - -.. image:: images/12-gui.png - -**Step 11:** In the Change ACM Common Properties change the appropriate properties and click on save and there should have a popup saying 'Changes Saved. Commission When Ready...' - -.. image:: images/13-gui.png - -**Step 12:** After saving the changes click on Commission and should have a Green message saying 'Commissioning Success' - -.. image:: images/14-gui.png - -**Step 13:** To Decommission the Tosca Service Follow Step 6 and 8 - -**Step 14:** Once the json objected is rendered in the window click on delete - -.. image:: images/11-gui.png - -**Step 14:** Once the json objected is rendered in the window click on delete - -.. image:: images/11-gui.png - -**Step 15:** If the delete is successful it should show a message "Delete Successful" - -.. image:: images/15-gui.png - -4 - How to Save Instance Properties and Change The Order State -============================================================== - -This section describes how to save the instance properties and change it's order state - -** Prerequisite: - -see building-ui-label_ - -**Step 1:** Go to the participant http directory - -.. code-block:: bash - - cd /clamp/participant/participant-impl/participant-impl-http - -**Step 2:** Run he following command - -.. code-block:: bash - - mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8080 - -**Step 3:** Go to the participant kubernetes directory - -.. code-block:: bash - - cd /clamp/participant/participant-impl/participant-impl-kubernetes - -**Step 4:** Run he following command - -.. code-block:: bash - - mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8081 - -**Step 5:** Go to the participant policy directory - -.. code-block:: bash - - cd /clamp/participant/participant-impl/participant-impl-policy - -**Step 6:** Run he following command - -.. code-block:: bash - - mvn spring-boot:run -Dspring-boot.run.arguments=--server.port=8082 - -**Step 7:** From the Main Menu Click on Instantiation Management - -.. image:: images/16-gui.png - -**Step 8:** Once the window for Manage Instance is open click on Create Instance - -.. image:: images/17-gui.png - -**Step 9:** With the Window Create Instance Properties Insert a Name and change the appropriate properties and click save - -.. image:: images/18-gui.png - -**Step 10:** After clicking save it should come with a green message saying "Instantiation Properties Success" - -.. image:: images/19-gui.png - -**Step 11:** To delete an instance repeat Step 7 - -.. image:: images/16-gui.png - -**Step 12:** Once the window for Manage Instance is open click on Delete - -.. image:: images/20-gui.png - -* NOTE: The only way to delete the instance properties if the order state has to be UNINITIALISED - -**Step 13:** To change the state click on Change in Manage Instances Window - -.. image:: images/20-gui.png - -**Step 14:** After clicking Change there should have a drop down with specific different ordered states - -.. image:: images/21-gui.png - -**Step 15:** From UNINITIALISED the user can only select Passive Ordered State - -.. image:: images/22-gui.png - -**Step 16:** Click on Save and a Message in Green "Ordered State Change Success" - -.. image:: images/23-gui.png - -* NOTE: Can't change from Passive to Running in a local developer machine, can only change in the production environment - -End of document diff --git a/docs/clamp/acm/design-impl/clamp-gui-acm.rst b/docs/clamp/acm/design-impl/clamp-gui-acm.rst index 90e1c50b..b0a2782f 100644 --- a/docs/clamp/acm/design-impl/clamp-gui-acm.rst +++ b/docs/clamp/acm/design-impl/clamp-gui-acm.rst @@ -47,7 +47,6 @@ Class-based react components are used to render the different pages related to f - Deploying/Undeploying microservices to the policy framework. - Deleting Instances. -Although this GUI deploys microservices, it is a completely different paradigm to the new Automation Composition participant-based deployment of services. Details of the CLAMP GUI are provided in :ref:`clamp-policy-gui-label` 2.1.2 Automation Composition GUI ================================ diff --git a/docs/clamp/clamp.rst b/docs/clamp/clamp.rst index a1c275c1..40ab6790 100644 --- a/docs/clamp/clamp.rst +++ b/docs/clamp/clamp.rst @@ -15,7 +15,6 @@ described in TOSCA. acm/acm-states acm/defining-acms acm/api-protocol/api-protocol-tree - acm/clamp-gui/policy-gui acm/design-impl/design-impl .. note:: -- cgit 1.2.3-korg