anuket-project / anuket-specifications

Anuket specifications
https://docs.anuket.io
123 stars 117 forks source link

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

Open rkjain opened 3 years ago

rkjain commented 3 years ago

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   
pgoyal01 commented 3 years ago

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

rkjain commented 3 years ago

Yes, https://cntt-n.github.io/CNTT/doc/ref_cert/RC2/chapters/chapter03.html

rkjain commented 3 years ago

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