Feature #5846
closedinstall.upgrade: need support for yum-based systems as well
Added by Tamilarasi muthamizhan over 10 years ago. Updated over 10 years ago.
0%
Description
right now, we support install.upgrade task in teuthology only for ubuntu.
We need to be able to support all non-ubuntu systems [Centos, RHEL, Fedora] as well.
Updated by Ian Colle over 10 years ago
- Translation missing: en.field_story_points set to 5.00
Updated by Tamilarasi muthamizhan over 10 years ago
- Assignee changed from Tamilarasi muthamizhan to Zack Cerza
Updated by Tamilarasi muthamizhan over 10 years ago
hi Zack, install.upgrade worked on Debian.
on RHEL test setup, though am trying to upgrade to next branch, it seems to pick the master branch instead of next and fails.
attaching below the teuthology output,
2013-08-09T17:38:22.200 INFO:teuthology.run_tasks:Running task install.upgrade... 2013-08-09T17:38:22.200 INFO:teuthology.task.install:extra packages: [] 2013-08-09T17:38:22.200 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'sudo lsb_release -is' 2013-08-09T17:38:22.278 DEBUG:teuthology.misc:System to be installed: RedHatEnterpriseServer 2013-08-09T17:38:22.278 INFO:teuthology.task.install:Upgrading ceph rpm packages: ceph-debug, ceph-radosgw, ceph-test, ceph-devel, ceph, ceph-fuse, rest-bench, libcephfs_jni1, libcephfs1, python-ceph 2013-08-09T17:38:22.278 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'arch' 2013-08-09T17:38:22.426 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'lsb_release -is' 2013-08-09T17:38:22.589 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'lsb_release -rs' 2013-08-09T17:38:22.748 INFO:teuthology.task.install:config is {'all': {'branch': 'next'}} 2013-08-09T17:38:22.749 INFO:teuthology.task.install:Host ubuntu@burnupi28.front.sepia.ceph.com is: RedHatEnterpriseServer 6.3 x86_64 2013-08-09T17:38:22.749 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'arch' 2013-08-09T17:38:22.891 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'lsb_release -is' 2013-08-09T17:38:23.052 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'lsb_release -rs' 2013-08-09T17:38:23.208 INFO:teuthology.task.install:config is {'all': {'branch': 'next'}} 2013-08-09T17:38:23.208 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'sudo lsb_release -is' 2013-08-09T17:38:23.368 DEBUG:teuthology.misc:System to be installed: RedHatEnterpriseServer 2013-08-09T17:38:23.368 INFO:teuthology.task.install:Repo base URL: http://gitbuilder.ceph.com/ceph-rpm-centos6-x86_64-basic/ref/master 2013-08-09T17:38:23.368 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'wget -q -O- http://gitbuilder.ceph.com/ceph-rpm-centos6-x86_64-basic/ref/master/version' 2013-08-09T17:38:23.554 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'sudo rpm -ev ceph-release' 2013-08-09T17:38:23.695 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'sudo rpm -Uv http://gitbuilder.ceph.com/ceph-rpm-centos6-x86_64-basic/ref/master/noarch/ceph-release-1-0.el6.noarch.rpm' 2013-08-09T17:38:24.165 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: "sudo sed -i ':a;N;$!ba;s/enabled=1\\ngpg/enabled=1\\npriority=1\\ngpg/g' /etc/yum.repos.d/ceph.repo" 2013-08-09T17:38:24.278 DEBUG:teuthology.orchestra.run:Running [10.214.135.34]: 'sudo yum -y install ceph-debug-0.67-rc3.176.gb221a42.el6 ceph-radosgw-0.67-rc3.176.gb221a42.el6 ceph-test-0.67-rc3.176.gb221a42.el6 ceph-devel-0.67-rc3.176.gb221a42.el6 ceph-0.67-rc3.176.gb221a42.el6 ceph-fuse-0.67-rc3.176.gb221a42.el6 rest-bench-0.67-rc3.176.gb221a42.el6 libcephfs_jni1-0.67-rc3.176.gb221a42.el6 libcephfs1-0.67-rc3.176.gb221a42.el6 python-ceph-0.67-rc3.176.gb221a42.el6' 2013-08-09T17:38:40.207 ERROR:teuthology.task.install:Loaded plugins: priorities, product-id, security, subscription-manager Updating certificate-based repositories. 2013-08-09T17:38:40.207 ERROR:teuthology.task.install:Loaded plugins: priorities, product-id, security, subscription-manager Updating certificate-based repositories. 119 packages excluded due to repository priority protections Setting up Install Process No package ceph-debug-0.67-rc3.176.gb221a42.el6 available. No package ceph-radosgw-0.67-rc3.176.gb221a42.el6 available. No package ceph-test-0.67-rc3.176.gb221a42.el6 available. No package ceph-devel-0.67-rc3.176.gb221a42.el6 available. No package ceph-0.67-rc3.176.gb221a42.el6 available. No package ceph-fuse-0.67-rc3.176.gb221a42.el6 available. No package rest-bench-0.67-rc3.176.gb221a42.el6 available. No package libcephfs_jni1-0.67-rc3.176.gb221a42.el6 available. No package libcephfs1-0.67-rc3.176.gb221a42.el6 available. No package python-ceph-0.67-rc3.176.gb221a42.el6 available. Unable to read consumer identity Not using downloaded repomd.xml because it is older than what we have: Current : Fri Aug 9 20:55:54 2013 Downloaded: Fri Aug 9 20:35:35 2013 Not using downloaded repomd.xml because it is older than what we have: Current : Fri Aug 9 20:55:51 2013 Downloaded: Fri Aug 9 20:35:32 2013 Not using downloaded repomd.xml because it is older than what we have: Current : Fri Aug 9 20:55:51 2013 Downloaded: Fri Aug 9 20:35:32 2013 Error: Nothing to do 2013-08-09T17:38:40.207 ERROR:teuthology.run_tasks:Saw exception from tasks Traceback (most recent call last): File "/home/tamil/next/teuthology/teuthology/run_tasks.py", line 27, in run_tasks manager.__enter__() File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__ return self.gen.next() File "/home/tamil/next/teuthology/teuthology/task/install.py", line 779, in upgrade _upgrade_rpm_packages(ctx, config, remote, pkgs, branch) File "/home/tamil/next/teuthology/teuthology/task/install.py", line 727, in _upgrade_rpm_packages _run_and_log_error_if_fails(remote, args) File "/home/tamil/next/teuthology/teuthology/task/install.py", line 64, in _run_and_log_error_if_fails stderr=response, File "/home/tamil/next/teuthology/teuthology/orchestra/remote.py", line 47, in run r = self._runner(client=self.ssh, **kwargs) File "/home/tamil/next/teuthology/teuthology/orchestra/run.py", line 267, in run r.exitstatus = _check_status(r.exitstatus) File "/home/tamil/next/teuthology/teuthology/orchestra/run.py", line 263, in _check_status raise CommandFailedError(command=r.command, exitstatus=status, node=host) CommandFailedError: Command failed on 10.214.135.34 with status 1: 'sudo yum -y install ceph-debug-0.67-rc3.176.gb221a42.el6 ceph-radosgw-0.67-rc3.176.gb221a42.el6 ceph-test-0.67-rc3.176.gb221a42.el6 ceph-devel-0.67-rc3.176.gb221a42.el6 ceph-0.67-rc3.176.gb221a42.el6 ceph-fuse-0.67-rc3.176.gb221a42.el6 rest-bench-0.67-rc3.176.gb221a42.el6 libcephfs_jni1-0.67-rc3.176.gb221a42.el6 libcephfs1-0.67-rc3.176.gb221a42.el6 python-ceph-0.67-rc3.176.gb221a42.el6'
Updated by Zack Cerza over 10 years ago
Argh. I found the bug.
Inside _get_baseurlinfo_and_dist(), config['branch'] is checked but config['all']['branch'] is not. So it defaults to using master for the uri.
Updated by Zack Cerza over 10 years ago
- Start date changed from 08/02/2013 to 08/08/2013
Spent a good amount of time on this last night but had a lot of trouble getting machines locked to test the fix. Figured it out this morning.
Updated by Zack Cerza over 10 years ago
- Subject changed from install.upgrade: need support for non ubuntu systems as well to install.upgrade: need support for yum-based systems as well