# Failing to run integration tests for opensearch-py repo

**URL:** <https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628>\
**Category:** OpenSearch\
**Tags:** discuss, troubleshoot\
**Created:** [March 26, 2023, 9:03pm UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628 "2023-03-26T21:03:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RomaSaparkhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/romasaparkhan/32/5150_2.png) [@RomaSaparkhan](https://forum.opensearch.org/u/RomaSaparkhan)\
**Post date:** [March 26, 2023, 9:03pm UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628/1 "2023-03-26T21:03:44Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
Opensearch - py repo  
Python 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:20:36) [MSC v.1929 64 bit (AMD64)] on win32  
Docker Desktop 4.17.1 (101757) On Windows 10

**Describe the issue** :

I tried to run the integration tests command line “./.ci/run-tests true 1.3.0” on Git Bash terminal, but it is failing with the message:  
“INFO: Take down node if called twice with the same arguments (DETACH=true) or on seperate terminals .ci/run-opensearch.sh: line 13: opensearch\_node\_name: unbound variable”

**What have I done to tackle the issue?** :

I tried to run the command on different terminals (cmd, PowerShell) and tried to declare the variable opensearch\_node\_name as the location of the docker container in .ci/functions/imports.sh. No results.

**Relevant Logs or Screenshots** :

 ![Снимок экрана (63)](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/372cda9a4c99997158649d4d960f3ad436bcd6c9.png)

---

<div class="post-metadata">

**Author:** ![zloiadil01](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/zloiadil01/32/5222_2.png) [@zloiadil01](https://forum.opensearch.org/u/zloiadil01)\
**Post date:** [March 27, 2023, 5:22am UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628/2 "2023-03-27T05:22:10Z")

</div>

I think problem with the shell script. The error message indicates that the variable opensearch node name is not specified resulting in the script failing. You might try checking to see if the variable is declared in the script file. ci/run-opensearch.sh. If it`s not declared in the script, you could try declare it before running the script.

---

<div class="post-metadata">

**Author:** ![RomaSaparkhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/romasaparkhan/32/5150_2.png) [@RomaSaparkhan](https://forum.opensearch.org/u/RomaSaparkhan)\
**Post date:** [March 27, 2023, 11:37am UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628/3 "2023-03-27T11:37:17Z")

</div>

Yea, I already tried to declare it as a name of the docker container in imports.sh and run-opensearch, but it’s still failing with the same message.

I also tried fixing it using  
script\_path=$(dirname $(realpath -s $0 | tr ‘\’ ‘/’))  
instead of:  
script\_path=$(dirname $(realpath -s $0))  
inside .ci/run-tests.sh and .ci/run-opensearch.sh  
thinking the $0 variable may contain a path with backslashes, which can cause issues with the realpath command (credits to @nurovich14 )

But it also did not help.

---

<div class="post-metadata">

**Author:** ![nurovich14](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@nurovich14](https://forum.opensearch.org/u/nurovich14)\
**Post date:** [March 27, 2023, 12:10pm UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628/4 "2023-03-27T12:10:20Z")

</div>

Has the error been updated or is the terminal displaying the same message?

---

<div class="post-metadata">

**Author:** ![RomaSaparkhan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/romasaparkhan/32/5150_2.png) [@RomaSaparkhan](https://forum.opensearch.org/u/RomaSaparkhan)\
**Post date:** [March 27, 2023, 8:28pm UTC](https://forum.opensearch.org/t/failing-to-run-integration-tests-for-opensearch-py-repo/13628/5 "2023-03-27T20:28:53Z")

</div>

Yes, it’s failing with the same message.
