Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RC2 Ch03] conformance cookbook - installation error due to missing packages #2428

Open
rkjain opened this issue May 13, 2021 · 3 comments
Open
Assignees
Labels
bug Something isn't working New

Comments

@rkjain
Copy link

rkjain commented May 13, 2021

Hi, I am trying to follow the conformance cook book. The installation is failing and is complaining about missing python packages. I am currently running the scripts on ubuntu 18.04. Please Advise. (Update: I also tested the same on ubuntu 20.04, and faced the same issue)

airship@d101:~$ . functest-kubernetes/bin/activate
(functest-kubernetes) airship@d101:~$ (cd functest-kubernetes-src && git checkout -b stable/leguer origin/stable/leguer)
fatal: A branch named 'stable/leguer' already exists.
(functest-kubernetes) airship@d101:~$ ansible-playbook functest-kubernetes-src/ansible/site.cntt.yml
/home/airship/functest-kubernetes/local/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'

PLAY [127.0.0.1] ***************************************************************************************************************************************************************************
TASK [Gathering Facts] *********************************************************************************************************************************************************************ok: [127.0.0.1]

TASK [collivier.xtesting : include_tasks] **************************************************************************************************************************************************included: /home/airship/.ansible/roles/collivier.xtesting/tasks/prechecks.yml for 127.0.0.1

TASK [collivier.xtesting : Checking all volumes exists] ************************************************************************************************************************************ok: [127.0.0.1] => (item=/home/opnfv/functest-kubernetes/config:/root/.kube/config)

TASK [collivier.xtesting : Checking boto exists] *******************************************************************************************************************************************skipping: [127.0.0.1]

TASK [collivier.xtesting : include_tasks] **************************************************************************************************************************************************included: /home/airship/.ansible/roles/collivier.xtesting/tasks/debian.yml for 127.0.0.1

TASK [collivier.xtesting : Installing python-apt] ******************************************************************************************************************************************changed: [127.0.0.1]

TASK [collivier.xtesting : Installing python3-apt] *****************************************************************************************************************************************skipping: [127.0.0.1]

TASK [collivier.xtesting : Installing python-pip] ******************************************************************************************************************************************skipping: [127.0.0.1]

TASK [collivier.xtesting : Installing python3-pip] *****************************************************************************************************************************************skipping: [127.0.0.1]

TASK [collivier.xtesting : Gathering the package facts] ************************************************************************************************************************************[WARNING]: Found "apt" but Failed to import the required Python library (apt) on d101's Python /home/airship/functest-kubernetes/bin/python2. Please read the module documentation and
install it in the appropriate location. If the required library is installed, but Ansible is using the wrong Python interpreter, please consult the documentation on
ansible_python_interpreter
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Could not detect a supported package manager from the following list: ['portage', 'pacman', 'rpm', 'pkg', 'apt'], or the required Python library is not installed. Check warnings for details."}

PLAY RECAP *********************************************************************************************************************************************************************************127.0.0.1                  : ok=5    changed=1    unreachable=0    failed=1    skipped=4    rescued=0    ignored=0   

@rkjain rkjain added the New label May 13, 2021
@pgoyal01
Copy link
Collaborator

@rkjain Can you point to the document such as RC1 Ch03?

@pgoyal01 pgoyal01 added this to To do in RC1 via automation May 13, 2021
@pgoyal01 pgoyal01 added the bug Something isn't working label May 13, 2021
@rkjain
Copy link
Author

rkjain commented May 13, 2021

@pgoyal01 pgoyal01 removed this from To do in RC1 May 13, 2021
@pgoyal01 pgoyal01 changed the title conformance cookbook - installation error due to missing packages [RC2 Ch03] conformance cookbook - installation error due to missing packages May 13, 2021
@rkjain
Copy link
Author

rkjain commented May 25, 2021

This got fixed by installing packages using pip2 and pip3 for both python2 and 3. I was able to proceed and run the daily job on jenkins. However, some of the tests are failing with the below error. Please advise.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working New
Projects
None yet
Development

No branches or pull requests

3 participants