Commit Graph

48 Commits

Author SHA1 Message Date
Warren Usui
ae74abda26 Fix capitalization of CentOS
Fixes: #5313
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-06-11 14:14:07 -07:00
tamil
335185d309 added support for rhel
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-10 15:41:48 -07:00
tamil
4eb8f8984a merged system_value for rpms
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-07 17:40:39 -07:00
tamil
754301bbec support install task for fedora
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-06-07 17:28:21 -07:00
Warren Usui
ed9af6cd97 Merge branch 'wip-RhelInstall-wusui' 2013-06-07 15:00:39 -07:00
Dan Mick
c95698045d task/install.py: extraneous subscript in upgrade() for only some remotes
Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-06-06 15:42:27 -07:00
Warren Usui
8f4de687c8 Rhel support added
Fixes: #4946
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-28 17:06:45 -07:00
Sage Weil
d7ec089280 install: make overrides grouped by project
This lets us set different overrides for e.g. ceph vs samba, and makes it
so the schedule_teuthology.sh overrides don't specify a ceph sha1 for
samba installs.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-17 18:53:02 -07:00
tamil
5caa2bdecc default project to ceph and extra_pkgs to none
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-05-08 16:05:34 -07:00
Warren Usui
f1dfcba5ee Merge branch 'wip-teuth4768a-wusui'
Conflicts:
	teuthology/task/install.py
2013-05-07 19:27:51 -07:00
Sage Weil
783b92fecb install: default to ceph project throughout
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-07 16:00:26 -07:00
Sage Weil
f1be93f913 install: only remove ceph data of project is ceph
Signed-off-by: Sage Weil <sage@inktank.com>
2013-05-06 18:04:00 -07:00
Sam Lang
980973dc55 task/install.py: Allow installation of non-ceph
Generalizes the install task to specify a "project" which defaults to
'ceph', but can be configured to install different project packages,
for example:

install:
  project: samba
  extra_packages: samba

The default install task uses 'ceph' as the project, and relies on an
existing set of defined packages to install.  For other projects, the
packages to be installed must be specified with the extra_packages
field.  Multiple install tasks can be specified:

install:
install:
  project: samba
  extra_packages: samba

Which installs ceph packages and then samba packages.

Also, cleanup in nuke.py so that nuke and install use the same list of
packages when doing the remove steps.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
2013-05-06 17:37:25 -07:00
Warren Usui
33c154ce9a Fix teuthology installations on physical Centos machines.
Yum installs of packages specify a pacakge number.  Initial
install of yum source changed to not fail if already done.
Added yum cleans where necessary.

Fixes: #4768
Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-05-06 11:22:38 -07:00
Josh Durgin
8f76d2ee13 Merge remote branch 'origin/next' 2013-05-01 09:52:02 -07:00
Sage Weil
de745dba8a install.upgrade: apt-get install instead of upgrade
Upgrade does not actually upgrade in some cases; use install!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-28 10:28:52 -07:00
Sage Weil
1e52fb9b81 install: prefer 'branch' over 'sha1'
The upgrade tasks specify 'branch' in the job file, but the
schedule_suite.sh script sets a sha1 in the overrides.  Make
the upgrade tests actually test an upgrade by preferring branch
over sha1 when both are specified.

This is fragile, but ought to do the trick for now!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-04-28 09:35:45 -07:00
tamil
2bbac6e482 added extra packages required by ceph-deploy for rbd and rados tests
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-04-19 18:13:01 -07:00
Dan Mick
dc457093b7 Revert "Revert "Install.py: Prevent prompts from breaking apt""
This reverts commit 67a616a979.

Sigh.  As it turns out, /etc/default/grub being hacked also
causes the same problem.  I think there's a way to fix that cleanly
as well, but until then, replacing the "accept installed version"
hack here so jobs can run.
2013-04-17 10:34:20 -05:00
Dan Mick
1b65b8fe1a Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

With the changes to ceph-qa-chef and the teuthology kernel task,
we're no longer touching packaged file /etc/grub.d/10_linux, which
was the reason for this apt forcing.  Remove so that we find other
package problems that might be masked by this; we can always
put it back if there are such problems until we can fix those as well.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit c2b0828b19)
2013-04-17 10:34:20 -05:00
Sandon Van Ness
df3d70fd62 Install.py: Prevent prompts from breaking apt
Change apt commands to prevent prompts from coming up (forcing
non-interactive mode) so things like grub or other stuff doesn't
break teuthology runs.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-17 10:34:20 -05:00
Dan Mick
f69ddafde7 Revert "Revert "Install.py: Prevent prompts from breaking apt""
This reverts commit 67a616a979.

Sigh.  As it turns out, /etc/default/grub being hacked also
causes the same problem.  I think there's a way to fix that cleanly
as well, but until then, replacing the "accept installed version"
hack here so jobs can run.
2013-04-15 11:24:31 -07:00
Dan Mick
67a616a979 Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

With the changes to ceph-qa-chef and the teuthology kernel task,
we're no longer touching packaged file /etc/grub.d/10_linux, which
was the reason for this apt forcing.  Remove so that we find other
package problems that might be masked by this; we can always
put it back if there are such problems until we can fix those as well.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
(cherry picked from commit c2b0828b19)
2013-04-12 15:49:24 -07:00
Dan Mick
c2b0828b19 Revert "Install.py: Prevent prompts from breaking apt"
This reverts commit 5995ae7e78.

With the changes to ceph-qa-chef and the teuthology kernel task,
we're no longer touching packaged file /etc/grub.d/10_linux, which
was the reason for this apt forcing.  Remove so that we find other
package problems that might be masked by this; we can always
put it back if there are such problems until we can fix those as well.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
2013-04-12 10:57:41 -07:00
Sandon Van Ness
41028847f8 Install.py: Prevent prompts from breaking apt
Change apt commands to prevent prompts from coming up (forcing
non-interactive mode) so things like grub or other stuff doesn't
break teuthology runs.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-04 19:40:21 -07:00
Sandon Van Ness
5995ae7e78 Install.py: Prevent prompts from breaking apt
Change apt commands to prevent prompts from coming up (forcing
non-interactive mode) so things like grub or other stuff doesn't
break teuthology runs.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-04-04 19:15:14 -07:00
Sage Weil
466fede77b install: need sudo when purging /var/lib/ceph
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-23 20:53:51 -07:00
Sage Weil
4a6e3b97e3 install, nuke: explicitly purge /var/lib/ceph
The packages won't do this anymore.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-22 15:22:38 -07:00
tamil
8ff32eb630 stop and restart daemons as restart only starts.
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-03-20 17:40:46 -07:00
Warren Usui
511f04f2a9 Fixed so that installation works on a brand new CentOS system.
Do yum install rather than yum reinstall for CentOS.
When exiting CentOS, yum erase the ceph-release rpm.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
2013-03-19 10:03:33 -07:00
tamil
23557907d2 s/dist-upgrade/upgrade
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-03-18 16:29:18 -07:00
tamil
fa1faa1f95 added install.upgrade task
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-03-14 18:26:03 -07:00
Sage Weil
85a8baae38 install: do debs for 'Debian'
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-14 16:27:01 -07:00
Sage Weil
46a78afabc install: el6 -> rpm
Slightly more general.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-14 16:26:25 -07:00
Warren Usui
0c75c6b1f7 Added el6 install functionality for CentOS systems.
install_packages, remove_packages and remove_sources are now the
installation and removal functions used by teuthology.  Debian
references have been removed outside of tasks/install.py.  CentOS
functionality parallel to Debian have been added to tasks/install.py,
and el6 references have been added to nuke.py, task/ceph-fuse.y and
task/install.py.

Some files created by CentOS are removed with rm -fr.  This should
be changed once the installation/removal rpm procedure is implemented.

Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
2013-03-14 16:25:18 -07:00
tamil
e0ad6faa5e added 'extras' to install extra packages excluding ceph
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
2013-03-07 17:43:40 -08:00
Sage Weil
1660d896b0 install: install libcephfs-java
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-05 15:12:02 -08:00
Sage Weil
daad53fc4f ceph-fuse: install via install.py
Signed-off-by: Sage Weil <sage@inktank.com>
2013-03-05 14:14:12 -08:00
Sage Weil
c0c33834cf install: poll for packages if wait-for-package: true
If the yaml has

 wait-for-package: true

then block and poll for the packages to appear if they are not already
there.  This is only useful for new branches or explicit sha1's, obviously.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-26 21:02:14 -08:00
Sage Weil
454e161829 install: fix branch/tag/sha1 selection
We were only allowing selection of packages by branch!

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-26 21:01:11 -08:00
Joe Buck
9af61cb617 teuthology: add an extra_packages flag to install
Some tests require additional packages
(e.g., java bindings, hadoop bindings).
Extend the install task to allow for those
packages to be specified in the yaml files.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Sam Lang <sam.lang@inktank.com>
2013-02-26 10:15:45 -08:00
Sage Weil
c85ba56397 install: ignore apt-get update failures on package removal
At that point we don't really care.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-21 15:08:22 -08:00
Josh Durgin
a862d8bf77 Fix unused vars, unused imports, and aliasing
Found by pyflakes

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
2013-02-21 14:47:00 -08:00
Sage Weil
4431e1efab install: be slightly more efficient
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:49:22 -08:00
Sage Weil
00986ce080 install: be more careful about package removal
- call apt separately for each package; it will error out annoyingly if
there is one in the list not in the APT sources.
- use dpkg with appropriate force to clean up broken half-installs.

Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 21:46:37 -08:00
Sage Weil
ecb563b221 install: install libcephfs1[-dbg]
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-20 16:27:52 -08:00
Sage Weil
2653b5a07b install: clean up flavor, distro, arch detection
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 15:40:43 -08:00
Sage Weil
3f7c9bcaa4 move the install to a separate task.
Signed-off-by: Sage Weil <sage@inktank.com>
2013-02-18 15:06:52 -08:00