Open kmr210 opened 4 years ago
any update on this issue is greatly appreciated.
Thanks
Hi,
did you verify that the prerequisite is given, i.e. the project does not already exist ? On the commandline you can verify with: source your UGE env qconf -sprjl
you should not see test123
you can this do programmatically as well by see the config-api/test/test_project.py example...
Andre
Andre,
Thanks for the prompt reply!
I verified it doesn't exist. I followed exact same steps given in the testsuite.
BTW, i have tried this both in Python2.7 and 3.6 versions.
Thanks
So did you try this one and isn't this working for you ?
cd config-api nosetests -s test/test_project.py
this works ok for me (8.6.x = V86_BRANCH and 8.7.x master)
HI,
I have UGE 8.6.7 version deployed, i tried using python2.7/3.6 versions to run PyCl, both failed.
I have updated 'test_values.json' with 2 test projects, you can see it complains 'ObjectAlreadyExists' error. I made sure those 2 test projects are unique in GRD.
Even ACL/Queue, addition also complains the same.
Below is the error log,
Traceback (most recent call last):
File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest
self.test(self.arg)
File "/demo/config-api/test/test_project.py", line 64, in test_add_prj
project = API.add_prj(name=PROJECT_NAME)
File "
Traceback (most recent call last): File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/demo/config-api/test/test_project.py", line 87, in test_get_prj assert (project.data['name'] == PROJECT_NAME) KeyError: 'name' -------------------- >> begin captured logging << -------------------- UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprj 3p4N2H] UgeSubprocess: DEBUG: Exit status: 0 --------------------- >> end captured logging << ---------------------
Traceback (most recent call last): File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/demo/config-api/test/test_project.py", line 111, in test_modify_prj oticket = project.data['oticket'] KeyError: 'oticket' -------------------- >> begin captured logging << -------------------- UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprj 3p4N2H] UgeSubprocess: DEBUG: Exit status: 0 --------------------- >> end captured logging << ---------------------
Traceback (most recent call last): File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest self.test(self.arg) File "/demo/config-api/test/utils.py", line 169, in inner return func(args, **kwargs) File "/demo/config-api/test/test_project.py", line 47, in test_object_not_found assert (False) AssertionError: <uge.objects.project_v1_0.Project object at 0x7fffe9107cf8> = <uge.api.qconf_api.QconfApi object at 0x7fffea2246d8>.get_prj('non_existent_project')
assert (False)
-------------------- >> begin captured logging << -------------------- QconfApi: DEBUG: Configuration: SGE_ROOT=/default, SGE_CELL=tform, SGE_QMASTER_PORT=6444, SGE_EXECD_PORT=6445 QconfExecutor: TRACE: Retrieving UGE version UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -help] UgeSubprocess: DEBUG: Exit status: 0 QconfExecutor: DEBUG: UGE version: 8.6.7 UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprj non_existent_project] UgeSubprocess: DEBUG: Exit status: 0 --------------------- >> end captured logging << ---------------------
Traceback (most recent call last): File "/venv/lib/python3.6/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/demo/config-api/test/test_project.py", line 125, in test_delete_prj assert (len(project_list2) == len(project_list) - 1) AssertionError:
-------------------- >> begin captured logging << -------------------- UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprjl] UgeSubprocess: DEBUG: Exit status: 0 UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprj 3p4N2H] UgeSubprocess: DEBUG: Exit status: 0 UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -dprj 3p4N2H] UgeSubprocess: DEBUG: Exit status: 0 UgeSubprocess: DEBUG: from [qconf_executor.py:78] Invoking: [. /settings.sh; qconf -sprjl] UgeSubprocess: DEBUG: Exit status: 0 --------------------- >> end captured logging << ---------------------
Ran 13 tests in 6.010s
FAILED (errors=3, failures=2)
Maybe there is a mismatch between the current config-api implementation and UGE 8.6.7. Is it possible for you to upgrade your cluster to a more recent UGE patch version ? We arrived already at 8.6.14 and there have been many issues fixed.
I installed the 8.6.7 bits and proceeded as follows:
There seems to be a problem with the packaging of the test dir content since these two files should of course be present...
Thanks for your valuable inputs.
We can't upgrade UGE to latest version at the moment as lot of co-ordination required.
In my case, test dir has all the files required, but it is not letting project/queue addition, not sure why.
How about UGE Cli, can you please through some light on how to use it? so that for missing portions, i will run 'qconf' commands directly.
Thanks a lot!
see AdminsGuideGE.pdf, section 1.6.6 (or search for projects)
HI,
Assuming, you are referring to 'adminsguide' related to UGE PycL, where to find it? please let me know
I could see only developer_guide.md in this repo.
Thanks
It is part of UGE gridengine packages. What do you get if you do: qstat -help | head -1 Usually you find the pdf documentation under $SGE_ROOT/doc. If it is not there you have to install your version specific doc package of UGE. I assume that you are running UGE and no other gridengine distribution or am I wrong ?
HI Team,
When i try to add a project, always throws an error saying ObjectAlreadyExists.
Please help me to resolve this issue,
Below is the problem snippet,
n [19]: print(pp.to_json())
{"object_version": "1.0", "object_class": "Project", "modified_by": "kmr", "modified_on": "2020-07-31T09:35:54.129700", "data": {"name": "test123", "oticket": 0, "fshare": 100, "acl": null, "xacl": null}}
In [30]: pp2=api.add_prj(pycl_object=pp,name=None, data=None, metadata=None, jso ...: n_string=None)
ObjectAlreadyExists Traceback (most recent call last)