shapeblue / mbx

🐒📦 Build, run, test monkey-powered local CloudStack dev/qa env
22 stars 7 forks source link

Facing python (pip) issue trying deploy "mbxt-kvm-el8" "mbxt-kvm-el9" on ubntu 22.04 #31

Closed kiranchavala closed 1 year ago

kiranchavala commented 1 year ago

I am trying to run mbx on my local laptop (ubuntu 22.04)

#mbx list
MonkeyBox 🐵 v0.4

Following mbx templates are available:
mbxt-kvm-el7
mbxt-kvm-el8
mbxt-kvm-el9
mbxt-vmware67u3
mbxt-vmware7
mbxt-vmware8
mbxt-xcpng82
mbxt-xenserver71

**❯ mbx deploy 417-kenv mbxt-kvm-el8  mbxt-kvm-el8**

Hittting the following exception related to python 

I have both python2 and python3 installed and also pip2 and pip3 

❯ python2 -V
Python 2.7.18

❯ python3 -V
Python 3.10.6

❯ pip2 --version
pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

❯ pip3 --version
pip 23.0 from /home/kiran/.local/lib/python3.10/site-packages/pip (python 3.10)

WARNING: You are using pip version 20.3.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/bin/python2 -m pip install --upgrade pip' command.
Last metadata expiration check: 0:00:25 ago on Tuesday 31 January 2023 06:40:43 AM GMT.
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Error: 
 Problem 1: cannot install the best candidate for the job
  - nothing provides python needed by cloudstack-management-4.17.2.0-shapeblue0.el7.x86_64
 Problem 2: cannot install the best candidate for the job
  - nothing provides python needed by cloudstack-common-4.17.2.0-shapeblue0.el7.x86_64
  - nothing provides /usr/bin/python needed by cloudstack-common-4.17.2.0-shapeblue0.el7.x86_64
 Problem 3: cannot install the best candidate for the job
  - nothing provides python-pip needed by cloudstack-marvin-4.17.2.0-shapeblue0.el7.x86_64
  - nothing provides python-devel needed by cloudstack-marvin-4.17.2.0-shapeblue0.el7.x86_64
 Problem 4: package cloudstack-integration-tests-4.17.2.0-shapeblue0.el7.x86_64 requires cloudstack-marvin = 4.17.2.0, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides python-pip needed by cloudstack-marvin-4.17.2.0-shapeblue0.el7.x86_64
  - nothing provides python-devel needed by cloudstack-marvin-4.17.2.0-shapeblue0.el7.x86_64

**#❯mbx deploy 417-kenv mbxt-kvm-el9  mbxt-kvm-el9**

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
bash: line 1: pip2: command not found
Last metadata expiration check: 0:00:16 ago on Tue Jan 31 07:06:55 2023.
Error: 
 Problem 1: cannot install the best candidate for the job
  - nothing provides python(abi) = 3.6 needed by cloudstack-common-4.17.2.0-shapeblue0.el7.x86_64
 Problem 2: package cloudstack-management-4.17.2.0-shapeblue0.el7.x86_64 requires cloudstack-common = 4.17.2.0, but none of the providers can be installed
  - cannot install the best candidate for the job
  - nothing provides python(abi) = 3.6 needed by cloudstack-common-4.17.2.0-shapeblue0.el7.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
rohityadavcloud commented 1 year ago

@kiranchavala this is a non-issue, you've used EL7 pkgs on EL8 mgmt server. Try this:

mbx deploy 417-kenv mbxt-kvm-el8 mbxt-kvm-el8 http://packages.shapeblue.com/cloudstack/upstream/el8/4.17