-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR introduces a "Test deploy" button for each Daemon configuration to verify each step and identify the error. Resolves: #174 --------- Signed-off-by: Andrey Borysenko <[email protected]> Signed-off-by: Alexander Piskun <[email protected]> Co-authored-by: Alexander Piskun <[email protected]>
- Loading branch information
1 parent
13e2393
commit 3bf5132
Showing
20 changed files
with
1,771 additions
and
612 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,7 @@ to join us in shaping a more versatile, stable, and secure app landscape. | |
*Your insights, suggestions, and contributions are invaluable to us.* | ||
]]></description> | ||
<version>2.5.0</version> | ||
<version>2.5.1</version> | ||
<licence>agpl</licence> | ||
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author> | ||
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author> | ||
|
@@ -70,6 +70,9 @@ to join us in shaping a more versatile, stable, and secure app landscape. | |
<job>OCA\AppAPI\BackgroundJob\ProvidersAICleanUpJob</job> | ||
</background-jobs> | ||
<repair-steps> | ||
<post-migration> | ||
<step>OCA\AppAPI\Migration\DaemonUpdateGPUSRepairStep</step> | ||
</post-migration> | ||
<install> | ||
<step>OCA\AppAPI\Migration\DataInitializationStep</step> | ||
<step>OCA\AppAPI\Migration\DaemonUpdateV2RepairStep</step> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
.. _test_deploy: | ||
|
||
Test Deploy Daemon | ||
------------------ | ||
|
||
You can test each Daemon configuration deployment from the AppAPI Admin settings. | ||
|
||
.. image:: ./img/test_deploy.png | ||
|
||
|
||
Status Checks | ||
^^^^^^^^^^^^^ | ||
|
||
The Deploy test installs a `test-deploy <https://github.com/cloud-py-api/test-deploy>`_ ExApp | ||
to verify each step of the deployment process, including a hardware support check - | ||
for each compute device, there is a separate Docker image. | ||
|
||
.. note:: | ||
The Test Deploy ExApp container is not removed after the test as it's needed for logs and status checks. | ||
You can remove it after testing from the External Apps page. | ||
The Docker images are also not removed from the Daemon; you can clean up unused images with the ``docker image prune`` command. | ||
|
||
.. image:: ./img/test_deploy_modal_4.png | ||
|
||
|
||
Register | ||
******** | ||
|
||
The Register step is the first step; it checks if the ExApp is registered in Nextcloud. | ||
|
||
Image Pull | ||
********** | ||
|
||
The Image Pull step downloads the ExApp Docker image. | ||
|
||
Possible errors: | ||
|
||
- Image not found | ||
- Image pull failed (e.g., due to network issues) | ||
- Image pull timeout | ||
|
||
Container Started | ||
***************** | ||
|
||
The Container Started step verifies that the ExApp container is created and started successfully. | ||
|
||
Possible errors: | ||
|
||
- Container failed to start with GPU support | ||
- For NVIDIA, refer to the `NVIDIA Docker configuration docs <https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html>`_. | ||
- For AMD, refer to the `ROCm Docker configuration docs <https://rocm.docs.amd.com/projects/install-on-linux/en/latest/how-to/docker.html>`_. | ||
|
||
|
||
Heartbeat | ||
********* | ||
|
||
The Heartbeat step checks if the container's health check is finished and the container is healthy. | ||
The ExApp might have additional pre-configuration logic during this step. | ||
|
||
Possible errors: | ||
|
||
- ExApp failed to start a web server, e.g., if the port is already in use (this should be visible in the container logs) | ||
|
||
|
||
Init | ||
**** | ||
|
||
The Init step checks if the ExApp is initialized and ready to use. | ||
During the init step, the ExApp may perform downloads of extra stuff required for it. | ||
|
||
Possible errors: | ||
|
||
- Initialization failed (e.g., due to network issues or timeout) | ||
|
||
|
||
Enabled | ||
******* | ||
|
||
The Enabled step checks if the ExApp is enabled and ready to use. | ||
During this step, the ExApp registers all the required and available APIs of the Nextcloud AppFramework. | ||
|
||
Possible errors: | ||
|
||
- ExApp did not respond to the enable request | ||
- ExApp failed to enable due to a failure in registering AppAPI Nextcloud AppFramework APIs (this should be visible both in the container logs and in the Nextcloud logs if there are any errors) | ||
|
||
|
||
Download Logs | ||
^^^^^^^^^^^^^ | ||
|
||
You can download the logs of the last test deploy attempt container. | ||
|
||
.. note:: | ||
Downloading Docker container logs is only possible for containers using the json-file or journald logging drivers. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.