Commit Graph

17 Commits

Author SHA1 Message Date
Alessio Ababilov
7cba1cd48d Use parallel make to build packages
Parallelize build of dependencies SRPMs and all
binary RPMs.

Implements: blueprint parallel-build
Change-Id: Ieed5aa199e325524390327b823ce3fef0b801f4a
2013-06-25 17:48:09 +03:00
Joshua Harlow
d37e725773 Cleanups after new changes/features.
- Some style adjustments.
- Use SRC_REPOS for mapping repo name to source repository name.
- Split the build_binary into individual tiny functions.
- Fix up the progress bars and iterable logging.
- Ensure that we log that we wrote to /etc/yum.repos.d and leave a trace for later cleanup.
- Quiet some of the new executes (and put there output to files).
- Add a smithy clean_pip() function that will help avoid hitting https://github.com/pypa/pip/issues/982
- Further cleanup of smithy after it being partially rewritten.
- Instead of hard coding 'conf/distros/rhel.yaml' in smithy, take this from the sourced file.
- Ensure that we can't remove packages smithy requires to operate.
- Ensure the package version that py2rpm is building is also trimmed of zeros.

Change-Id: I2df8a47f0115de2684777b64db42e08d50ef4115
2013-06-21 22:23:13 -07:00
Alessio Ababilov
fcbc1ab59d Change build and bootstrap procedure
* add build action to build binary packages
* remove conflicting packages on install phase
* process rhel.yaml to get required RPM package names
* allow including only /usr directory to packages

Build action is run as root after prepare action.

Change-Id: I6beec02e1c6ff48ec24a6ae382aae0193c1af95f
Fixes: bug #1193088
Fixes: bug #1193085
2013-06-21 19:53:15 -07:00
Alessio Ababilov
3f49306540 Switch to pbr
* add requirements.txt and test-requirements.txt
* add .mailmap and MANIFEST.in
* drop autogenerated AUTHORS file

Change-Id: I8228dd0e1d1ceb48e2f9b990a1b5ac877becacca
2013-06-21 17:44:48 -07:00
Alessio Ababilov
052daddfd7 Build OpenStack packages from custom specs
Maintain spec files for OpenStack packages. Start OpenStack daemons
as native system services under different users. Write configuration
to /etc.

Implements: blueprint different-openstack-users
Implements: blueprint purge-config
Implements: blueprint package-novnc

Change-Id: I454c1e88011c75997d879bf8b90cd87c8db3f123
2013-06-17 19:54:07 -07:00
Joshua Harlow
74127fc2a1 Export the packages anvil requires.
Export and ensure that we don't remove the
dependencies that anvil and openstack source
directories requires to operate.

- d2to1 is required to even run setup.py
- setuptools-git (the same)
- pbr (the same)

Fixes bug: #1189707

Change-Id: I099856eba07784afa2b65c3e4ebf6c0abcaab4bd
2013-06-10 20:23:42 -07:00
Joshua Harlow
51c1591d56 Correctly install setuptools-git in package or pip format.
In order to correctly build the openstack dependencies we need
to bring in setuptools-git, or the package builiding process
blows up. In order to do this we need to attempt to install the
rpm, or build the rpm from source and install that.

Change-Id: If4bd64a96f2edda4c4640ffe455e0d6db11e02c6
2013-06-07 22:05:32 -07:00
Joshua Harlow
c65a2370af The epel d2to1 is to old.
Ensure that we build and install the newer d2to1 tool instead
of installing the old one from epel (which does not meet the
version requirements of the openstack components).

Change-Id: Ic2b76a8654adff6874bfa4758798b9e9fb545076
2013-06-05 17:40:14 -07:00
Joshua Harlow
220802d4a5 Ensure we bring in or build d2to1.
Change-Id: I2fcac7a8c533e2ff64caeeaae140b28ce0d0e119
2013-05-31 18:48:54 -07:00
Anastasia Karpinska
1ed84bb3d3 Anvil uninstaller was implemented
Change-Id: I10d8463883a40e8ce99123a6dc758ab30e87d58b
2013-05-31 18:45:08 -07:00
Alessio Ababilov
54d8db1e4d Build RPMs and use YUM to handle dependencies
Implements: blueprint robust-dependencies

Fixes: bug #1157871
Fixes: bug #1184016
Fixes: bug #1184017

Change-Id: I4d1e6d4b1b32473182259d60b1db6918cba889e9
2013-05-31 18:41:59 -07:00
Joshua Harlow
98219a93c0 Untie the keyring and cheetah dependencies for oracle EL.
Change-Id: Ibcba207744ca12d3e35490537bc5322159c17fa8
2013-03-23 18:53:43 -07:00
Joshua Harlow
0af1c94a49 Remove pinning. 2013-03-06 21:43:11 -08:00
Joshua Harlow
f7668c55ae Remove pinning. 2013-03-06 21:42:10 -08:00
Vasyl Khomenko
a72b021d09 Added centos 6.3 support 2013-02-04 23:49:30 +04:00
Joshua Harlow
e0e1067685 Grizzly additions to get it working again
Updated dependency mappings and epel rpm name.
2013-01-23 17:51:34 -08:00
Daniel Mercer
9f61f4adfb Modify smithy to facilitate multi-distribution support
* support for OEL 6.3+ added to smithy
* smithy no longer bootstraps as a side-effect of being run: it asks the user to
  set '--bootstrap' if necessary.
* bootstrap steps and (rpm, pip) package dependencies moved to configuration files
  under tools/bootstrap/$distribution
* common bootstrap code refactored
* rpm installs are now idempotent.
* smithy checksum now based on bootstrap config files
* --force also supported as a command-line flag

TODO:
* pypi installs should probably also be made idempotent
* CentOS support
2012-12-18 12:51:40 -08:00