Commit 0a1701a
Fix/Implement license server check (#603)
* Added main structure of the code.
Added also a function which ping an IP:Port using python.
Helping fix issue #595
* Added 'check_license_server' before running MAPDL
in any of the modes.
* Added error class for
license_sever_connection_error.
* Implemented error handeling in `launcher`
* Fixing license server ip and port check.
* Fixing grammar.
* Added optional argument to `launch_mapdl` to
avoid license server check.
* Implemented lmutil license check.
However it seems to not work properly.
This method is not recommended anymore but it is keep for the moment.
* Created `license.py`.
Preparing to move everything related to licensing there.
* Moved license functions to license.py
* Adding new local license file check.
* Adding new functions for checking the file.
* Major changes.
Added file server log checking.
Restructured completelely 'license.py'
Added thread behaviour to the license checking in launcher.py
Improved behaviour of `LicenseServerConnectionError`
# Aiming to fix #595
* Fixed the license client file name.
Now it is dynamically obtained from passed version parameter.
Added detailed message to `LicenseServerConnectionError`.
* Cleaning a bit
* Doing some cosmetical changes.
Removing unnecessary parameter.
* Implemented `ansysli_util` method.
* Formating error class.
* Added functionality to check multiple licenses when
using ansysli_util
* Refurbished 'LicenseServerConnectionError' class.
* Format fixing
* Format fixing
* Added licdebug naming pattern to match
previous and future versions.
* Added some comments.
* Apply suggestions from code review
Co-authored-by: jleonatti <[email protected]>
* Update ansys/mapdl/core/license.py
Co-authored-by: jleonatti <[email protected]>
* Apply suggestions from code review
Co-authored-by: jleonatti <[email protected]>
* Format fixing
* flake8 fixes
* cleanup licensing
* style fixes
* Fixed file name spelling
* Removed unnecesary functions.
Format file using flake8.
* Removed unnecesary test function
* Debugging
* Added docstrings.
Format fixed.
* Format fxing
* Spell checking.
* Fixing test_licensing.
Many test cannot be executed when the license is not local.
* Fixing import function.
* Added a way-out to the while in `check_license_file`
Added global variables.
* Fixing testing
* Spell checking.
* More details to check_license_file docstring.
* More details to check_license_file docstring.
* Update ansys/mapdl/core/errors.py
Co-authored-by: Alex Kaszynski <[email protected]>
* Update ansys/mapdl/core/licensing.py
Co-authored-by: Alex Kaszynski <[email protected]>
* add basic test for licencing for get_licdebug_msg
* additional fixes
* style fixes
* renaming function
* Added a bit in docstring.
* fix windows testing
* ``get_licdebug_tail`` now gets all the lines, not one by one.
Added double quote wrapper around cmd command in case of Windows.
* Reduced the amount of attemps at connect in 'mapdl_grpc'.
implemented more robuts time limit for checking.
Now it stops if timeout or the maximum amount of attemps is reached.
* Reduced the amount of attemps at connect in 'mapdl_grpc'.
implemented more robuts time limit for checking.
Now it stops if timeout or the maximum amount of attemps is reached.
* Fixing licensing tests.
* Grammar fixing.
* Fixing test in docker.
* format fxing.
* Small changes in the documentation.
In the section of running MAPDL to clarify when to use `launch_mapdl` or `Mapdl`.
* Fixing wrong rst markup.
* Cleaning PR.
* Small fixes and cleaning.
* permit failed MAPDL start
* add additional licensing docs and options
* fix test asserts on pass
* Update ansys/mapdl/core/licensing.py
Co-authored-by: German <[email protected]>
Co-authored-by: jleonatti <[email protected]>
Co-authored-by: Alex Kaszynski <[email protected]>1 parent 4b5a87d commit 0a1701a
File tree
9 files changed
+728
-90
lines changed- .github/workflows
- ansys/mapdl/core
- doc/source/getting_started
- tests
9 files changed
+728
-90
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
78 | 85 | | |
79 | 86 | | |
80 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
674 | 678 | | |
675 | 679 | | |
676 | 680 | | |
677 | | - | |
| 681 | + | |
678 | 682 | | |
679 | 683 | | |
680 | 684 | | |
| |||
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
706 | | - | |
707 | | - | |
| 710 | + | |
| 711 | + | |
708 | 712 | | |
709 | 713 | | |
710 | 714 | | |
| |||
715 | 719 | | |
716 | 720 | | |
717 | 721 | | |
718 | | - | |
| 722 | + | |
719 | 723 | | |
720 | 724 | | |
721 | | - | |
| 725 | + | |
722 | 726 | | |
723 | 727 | | |
724 | 728 | | |
725 | | - | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
| |||
745 | 749 | | |
746 | 750 | | |
747 | 751 | | |
| 752 | + | |
748 | 753 | | |
749 | 754 | | |
750 | 755 | | |
| |||
856 | 861 | | |
857 | 862 | | |
858 | 863 | | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
859 | 868 | | |
860 | 869 | | |
861 | 870 | | |
| |||
1028 | 1037 | | |
1029 | 1038 | | |
1030 | 1039 | | |
1031 | | - | |
1032 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
1033 | 1043 | | |
1034 | 1044 | | |
1035 | 1045 | | |
| |||
1045 | 1055 | | |
1046 | 1056 | | |
1047 | 1057 | | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | | - | |
1072 | | - | |
1073 | | - | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
1083 | 1064 | | |
1084 | | - | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
1088 | 1113 | | |
1089 | 1114 | | |
1090 | 1115 | | |
| |||
0 commit comments