Bug 1459818

Summary: Build instructions fails
Product: [oVirt] ovirt-engine-sdk-python Reporter: Fabrice Bacchella <fabrice.bacchella>
Component: BuildAssignee: Ondra Machacek <omachace>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hrazdil <rhrazdil>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.1.5CC: bugs, juan.hernandez, lsvaty, lveyde, mperina, omachace
Target Milestone: ovirt-4.1.5Flags: rule-engine: ovirt-4.1+
lsvaty: testing_ack+
Target Release: 4.1.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ovirt-engine-sdk4-4.1.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-23 08:02:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Fabrice Bacchella 2017-06-08 09:28:09 UTC
In the build instructions, the dependencies listed are gcc, libxml2-devel and python-devel.

But running from the master branch, I got:

    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (format-check) on project python-sdk: Command execution failed. Cannot run program "flake8" (in directory "/ovirt-engine-sdk/sdk"): error=2, No such file or directory -> [Help 1]

So I installed python-flake8, it run slightly longer, I now got:

[INFO] --- exec-maven-plugin:1.2.1:exec (test) @ python-sdk ---
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'nosetests'
4.2.1.a2

Also, the pom.xml says:

          <configuration>
            <source>1.8</source>
            <target>1.8</target>
          </configuration>

So a java 8 installation is needed.

Comment 1 Fabrice Bacchella 2017-06-08 15:43:58 UTC
Ok, installing python-nose helped, but now I got:

[INFO] --- exec-maven-plugin:1.2.1:exec (build) @ python-sdk ---
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: invalid command 'bdist_wheel'
4.2.1.a2

Comment 2 Fabrice Bacchella 2017-06-08 16:14:45 UTC
Ok, last additions:

python-wheel
python2-rpm-macros

Comment 3 Lukas Svaty 2017-07-11 06:40:52 UTC
What was the change here? Can you propose verification steps?

Comment 4 Ondra Machacek 2017-07-11 11:11:08 UTC
Follow the instructions in:

  https://github.com/oVirt/ovirt-engine-sdk/blob/master/README.adoc

And check if you succeed to build the SDK.

Comment 5 Radim Hrazdil 2017-08-02 13:37:08 UTC
Verified that build succeeds when following instructions given in comment 4.