Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2431

Test Failure - MONGODB-AWS Auth macOS 10.14 Python

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12, 3.11.2, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      https://evergreen.mongodb.com/task/mongo_python_driver_aws_auth_test__platform~macos_1014_python_version~system_python_aws_auth_test_4.4_30523d282cae2120543bb4a8494c99aa6ceab81f_20_11_12_19_04_55

       [2020/11/12 23:45:45.787] Running command 'shell.exec' in "run aws auth test with regular aws credentials" (step 3.3 of 8)
       [2020/11/12 23:45:45.881] + set -o errexit
       [2020/11/12 23:45:45.881] + echo 'Running MONGODB-AWS authentication tests'
       [2020/11/12 23:45:45.881] + set +x
       [2020/11/12 23:45:45.881] ++ command -v virtualenv
       [2020/11/12 23:45:45.881] + VIRTUALENV=/usr/local/bin/virtualenv
       [2020/11/12 23:45:45.881] + PYTHON=python
       [2020/11/12 23:45:45.881] + '[' -z python ']'
       [2020/11/12 23:45:45.881] + authtest
       [2020/11/12 23:45:45.881] + '[' Windows_NT = '' ']'
       [2020/11/12 23:45:45.881] + echo 'Running MONGODB-AWS authentication tests with python'
       [2020/11/12 23:45:45.881] Running MONGODB-AWS authentication tests
       [2020/11/12 23:45:45.881] Running MONGODB-AWS authentication tests with python
       [2020/11/12 23:45:45.886] + python --version
       [2020/11/12 23:45:45.886] Python 2.7.16
       [2020/11/12 23:45:45.886] + /usr/local/bin/virtualenv -p python --system-site-packages --never-download venvaws
       [2020/11/12 23:45:46.070] New python executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws/bin/python2.7
       [2020/11/12 23:45:46.070] Also creating executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws/bin/python
       [2020/11/12 23:45:47.673] Installing setuptools, pip, wheel...done.
       [2020/11/12 23:45:47.673] Running virtualenv with interpreter /usr/local/opt/python@2/bin/python
       [2020/11/12 23:45:47.677] + '[' Windows_NT = '' ']'
       [2020/11/12 23:45:47.677] + . venvaws/bin/activate
       [2020/11/12 23:45:47.677] ++ deactivate nondestructive
       [2020/11/12 23:45:47.677] ++ unset -f pydoc
       [2020/11/12 23:45:47.677] ++ '[' -z '' ']'
       [2020/11/12 23:45:47.677] ++ '[' -z '' ']'
       [2020/11/12 23:45:47.677] ++ '[' -n /bin/bash ']'
       [2020/11/12 23:45:47.677] ++ hash -r
       [2020/11/12 23:45:47.677] ++ '[' -z '' ']'
       [2020/11/12 23:45:47.677] ++ unset VIRTUAL_ENV
       [2020/11/12 23:45:47.677] ++ '[' '!' nondestructive = nondestructive ']'
       [2020/11/12 23:45:47.677] ++ VIRTUAL_ENV=/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws
       [2020/11/12 23:45:47.677] ++ export VIRTUAL_ENV
       [2020/11/12 23:45:47.677] ++ _OLD_VIRTUAL_PATH=/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/drivers-tools/mongodb/bin:/Users/mci/.yarn/bin:/Users/mci/.config/yarn/global/node_modules/.bin:/opt/node/bin:/usr/sbin:/usr/local/opt/python@2/bin:/usr/local/opt/ant@1.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
       [2020/11/12 23:45:47.677] ++ PATH=/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws/bin:/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/drivers-tools/mongodb/bin:/Users/mci/.yarn/bin:/Users/mci/.config/yarn/global/node_modules/.bin:/opt/node/bin:/usr/sbin:/usr/local/opt/python@2/bin:/usr/local/opt/ant@1.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
       [2020/11/12 23:45:47.677] ++ export PATH
       [2020/11/12 23:45:47.677] ++ '[' -z '' ']'
       [2020/11/12 23:45:47.677] ++ '[' -z '' ']'
       [2020/11/12 23:45:47.677] ++ _OLD_VIRTUAL_PS1=
       [2020/11/12 23:45:47.677] ++ '[' x '!=' x ']'
       [2020/11/12 23:45:47.679] +++ basename /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws
       [2020/11/12 23:45:47.679] ++ PS1='(venvaws) '
       [2020/11/12 23:45:47.679] ++ export PS1
       [2020/11/12 23:45:47.679] ++ alias pydoc
       [2020/11/12 23:45:47.679] ++ '[' -n /bin/bash ']'
       [2020/11/12 23:45:47.679] ++ hash -r
       [2020/11/12 23:45:47.679] + pip install '.[aws]'
       [2020/11/12 23:45:48.978] Processing /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src
       [2020/11/12 23:45:48.978] Collecting pymongo-auth-aws<2.0.0 (from pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.223]   Downloading https://artifactory.corp.mongodb.com/artifactory/api/pypi/pypi/packages/b2/c7/bc939477a76e071032670a5585a3d86bec6f33932593827b88052e8cf736/pymongo_auth_aws-1.0.2-py2.py3-none-any.whl
       [2020/11/12 23:45:49.452] Requirement already satisfied: botocore in /usr/local/lib/python2.7/site-packages (from pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.459] Requirement already satisfied: requests<3.0.0 in /usr/local/lib/python2.7/site-packages (from pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.472] Requirement already satisfied: jmespath<1.0.0,>=0.7.1 in /usr/local/lib/python2.7/site-packages (from botocore->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.476] Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /usr/local/lib/python2.7/site-packages (from botocore->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.480] Requirement already satisfied: urllib3<1.26,>=1.20; python_version != "3.4" in /usr/local/lib/python2.7/site-packages (from botocore->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.491] Requirement already satisfied: docutils<0.16,>=0.10 in /usr/local/lib/python2.7/site-packages (from botocore->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.494] Requirement already satisfied: idna<2.8,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests<3.0.0->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.496] Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests<3.0.0->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.498] Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python2.7/site-packages (from requests<3.0.0->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.500] Requirement already satisfied: six>=1.5 in /usr/local/lib/python2.7/site-packages (from python-dateutil<3.0.0,>=2.1->botocore->pymongo-auth-aws<2.0.0->pymongo==3.11.1.dev1)
       [2020/11/12 23:45:49.515] Installing collected packages: pymongo-auth-aws, pymongo
       [2020/11/12 23:45:49.515]   Found existing installation: pymongo 3.5.1
       [2020/11/12 23:45:49.516]     Not uninstalling pymongo at /usr/local/lib/python2.7/site-packages, outside environment /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/venvaws/bin/..
       [2020/11/12 23:45:50.880]   Running setup.py install for pymongo: started
       [2020/11/12 23:45:50.880]     Running setup.py install for pymongo: finished with status 'done'
       [2020/11/12 23:45:51.092] You are using pip version 9.0.3, however version 20.2.4 is available.
       [2020/11/12 23:45:51.092] You should consider upgrading via the 'pip install --upgrade pip' command.
       [2020/11/12 23:45:51.668] + python test/auth_aws/test_auth_aws.py
       [2020/11/12 23:45:51.668] ...
       [2020/11/12 23:45:51.668] ----------------------------------------------------------------------
       [2020/11/12 23:45:52.243] Ran 3 tests in 0.244s
       [2020/11/12 23:45:52.243] OK
       [2020/11/12 23:45:52.243] + deactivate
       [2020/11/12 23:45:52.243] + unset -f pydoc
       [2020/11/12 23:45:52.243] + '[' -z _ ']'
       [2020/11/12 23:45:52.243] + PATH=/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/drivers-tools/mongodb/bin:/Users/mci/.yarn/bin:/Users/mci/.config/yarn/global/node_modules/.bin:/opt/node/bin:/usr/sbin:/usr/local/opt/python@2/bin:/usr/local/opt/ant@1.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
       [2020/11/12 23:45:52.243] + export PATH
       [2020/11/12 23:45:52.243] + unset _OLD_VIRTUAL_PATH
       [2020/11/12 23:45:52.243] + '[' -z '' ']'
       [2020/11/12 23:45:52.243] + '[' -n /bin/bash ']'
       [2020/11/12 23:45:52.243] + hash -r
       [2020/11/12 23:45:52.243] + '[' -z _ ']'
       [2020/11/12 23:45:52.243] + PS1=
       [2020/11/12 23:45:52.243] + export PS1
       [2020/11/12 23:45:52.243] + unset _OLD_VIRTUAL_PS1
       [2020/11/12 23:45:52.243] + unset VIRTUAL_ENV
       [2020/11/12 23:45:52.243] + '[' '!' '' = nondestructive ']'
       [2020/11/12 23:45:52.243] + unset -f deactivate
       [2020/11/12 23:45:52.243] + rm -rf venvaws
       [2020/11/12 23:45:52.296] Successfully installed pymongo-3.11.1.dev1 pymongo-auth-aws-1.0.2
       [2020/11/12 23:45:52.296] Finished 'shell.exec' in "run aws auth test with regular aws credentials" in 6.510003574s
       [2020/11/12 23:45:52.296] Running command 'shell.exec' in "run aws auth test with assume role credentials" (step 4.1 of 8)
       [2020/11/12 23:45:52.512] /usr/local/lib/python2.7/site-packages/virtualenv.py:1047: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
       [2020/11/12 23:45:52.512]   import imp
       [2020/11/12 23:45:52.559] Using base prefix '/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9'
       [2020/11/12 23:45:52.559] New python executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python3.9
       [2020/11/12 23:45:52.559] Also creating executable in /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python
       [2020/11/12 23:45:52.559] ERROR: The executable /data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv/bin/python3.9 is not functioning
       [2020/11/12 23:45:52.559] ERROR: It thinks sys.prefix is '/usr/local/Cellar/python@3.9/3.9.0_1/Frameworks/Python.framework/Versions/3.9' (should be '/data/mci/d1de1a1943ca42ab82064dbabed0a5c2/src/mongovenv')
       [2020/11/12 23:45:52.559] ERROR: virtualenv is not compatible with this system or executable
       [2020/11/12 23:45:52.569] Running virtualenv with interpreter /usr/local/bin/python3
       [2020/11/12 23:45:52.569] Command failed: command encountered problem: error waiting on process '39b22b81-ce96-418a-bcd8-2ab60de7cec9': exit status 100
       [2020/11/12 23:45:52.569] Task completed - FAILURE.
      

      Looks like the tests themselves passed but something after caused the task to fail.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: