User Tools

Site Tools


tasks:lab-extras

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tasks:lab-extras [2017/01/24 19:09]
dgalloway [How-To]
tasks:lab-extras [2017/01/25 17:05]
dgalloway [Managing packages in lab-extras]
Line 4: Line 4:
 http://​apt-mirror.front.sepia.ceph.com/​lab-extras/​ http://​apt-mirror.front.sepia.ceph.com/​lab-extras/​
  
-An example of a time we'd want to use this is when a package from CentOS 7.3 has a bugfix we want to test on CentOS 7.2.  The RPM can be downloaded from the CentOS 7.repo, placed in the CentOS 7 lab-extras repo and installed. ​ Example: http://​tracker.ceph.com/​issues/​18094+An example of a time we'd want to use this is when a package from CentOS 7.3 has a bugfix we want to test on CentOS 7.2.  The RPM can be downloaded from the CentOS 7.2 CM (testing) ​repo, placed in the CentOS 7 lab-extras repo and installed. ​ Example: http://​tracker.ceph.com/​issues/​18094
  
 ===== How-To ===== ===== How-To =====
Line 13: Line 13:
   - ''​createrepo %%--%%update /​home/​apt-mirror/​mirror/​lab-extras/​centos7/''​   - ''​createrepo %%--%%update /​home/​apt-mirror/​mirror/​lab-extras/​centos7/''​
  
 +===== Installing the package =====
 +Since ceph-cm-ansible makes sure the lab-extras repo is present on all testnodes, a quick way to update a single package on all testnodes would be to run an ansible playbook. ​ Here's an example from when nfs-utils was done.
 +
 +<​code>​
 +## ansible-playbook thisplaybook.yml --limit="​smithi*,​mira*"​
 +
 +- hosts:
 +    - testnodes
 +  become: true
 +  tasks:
 +
 +  - name: Upgrade nfs-utils to lab-extras version
 +    yum:
 +      name: nfs-utils
 +      state: latest
 +    when: ansible_distribution == '​CentOS'​
 +</​code>​
 +
 +This updated the version to nfs-utils-1.3.0-0.**35**.el7.x86_64. ​ You can make sure no hosts got left behind by running ''​ansible -a "rpm -qa nfs-utils"​ mira | grep -B 1 nfs-utils-1.3.0-0.33.el7.x86_64''​.
tasks/lab-extras.txt ยท Last modified: 2021/03/20 00:15 by djgalloway