ppouliot / puppet-openstack_hyper_v

A starting point for building Windows/Hyper-V OpenStack Compute nodes
Other
6 stars 4 forks source link

How to generate egg file for nova source, in general nova source building process #33

Closed vijaytripathi closed 11 years ago

vijaytripathi commented 11 years ago

Hi Luis,

As I see in manifests file we need to generate egg file for nova source (e.g. F:\Shared\Software\OpenStack\nova-2013.1.2-py2.7.egg). Can you please help us in understanding flow of nova source build process in our module. Do we manually generate egg file always or is there some repo.

Meanwhile I am also learning this process, but your help would be as always greatly appreciated which would help us in saving valuable time.

Thanks, Vijay

luisfdez commented 11 years ago

Yes, the module now requires a nova egg manually built. I don't know why there is no official egg for nova, but I din't find it in the stantard repos. Do you know how to generate the egg?

The ideal scenario would be to clone the repos and built it automatically, @ppouliot can add more details about this approach. It's feasible but it needs time for refactoring and improving 3rd modules.

It's a pleasure to help you guys! Your tests will be more objective than mines and also help to understand/document how to use the module properly and which points should be improved to make it easier.

Thanks!

vijaytripathi commented 11 years ago

Thanks Luis, I haven't generated egg file ever. Meanwhile I am learning would it possible for you to share a working egg file so that I can test it quickly.

Thanks, Vijay

luisfdez commented 11 years ago

Ok, I've just created one for you: https://dl.dropboxusercontent.com/u/15770715/nova-2013.1.3-py2.7.egg (let me know when it is downloaded to delete it)

Quick steps to build the egg:

- Machine with: python environment (all dependencies used in the module) and git.
- Clone nova repo and checkout a tag (2013.1.3 in this case).
- move to dir and execute: python setup.py bdist_egg (git needs to be on the PATH).
- the egg will be available in the dist folder.
vijaytripathi commented 11 years ago

Thanks Luis. I have downloaded file and noted down steps to build egg in my local enviornment