User Tools

Site Tools


devplayground

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devplayground [2025/06/10 16:25] – [Configuring CephFS Mounts] pdonnelldevplayground [2026/09/14 14:23] (current) – djgalloway
Line 8: Line 8:
  
 ^ Name                                             ^ Notes            ^ ^ Name                                             ^ Notes            ^
-| [[hardware:senta|senta01.front.sepia.ceph.com]]  | General purpose (currently unavailable) | 
-| [[hardware:senta|senta02.front.sepia.ceph.com]]  | General purpose  | 
-| [[hardware:senta|senta03.front.sepia.ceph.com]]  | General purpose  | 
 | [[hardware:vossi|vossi01.front.sepia.ceph.com]]  | General purpose  | | [[hardware:vossi|vossi01.front.sepia.ceph.com]]  | General purpose  |
 | [[hardware:vossi|vossi04.front.sepia.ceph.com]]  | CephFS Team      | | [[hardware:vossi|vossi04.front.sepia.ceph.com]]  | CephFS Team      |
Line 52: Line 49:
 ==== Configuring CephFS Mounts ==== ==== Configuring CephFS Mounts ====
  
-The following script can be run to setup CephFS mounts on a new developer playground machines:+The following ansible playbook can be run to setup CephFS mounts on a new developer playground machines: https://wiki.sepia.ceph.com/doku.php?id=services:cephfs
  
-<code> 
-#!/bin/bash 
  
-HOST="$1" 
- 
-function run { 
-  printf '%s\n' "$*" >&2 
-  "$@" 
-} 
- 
-function mssh { 
-  run ssh "$HOST" -- "$*" 
-} 
- 
-ADMIN_NODE=reesi003.front.sepia.ceph.com 
- 
-mssh echo hi || exit 1 
- 
-mssh sudo mkdir -p -m 755 /etc/ceph 
-ssh "$ADMIN_NODE" 'env CEPH_KEYRING=/etc/ceph/client.sepian.keyring ceph --id sepian config generate-minimal-conf' | mssh sudo tee /etc/ceph/ceph.conf 
-mssh sudo chmod 644 /etc/ceph/ceph.conf 
-ssh "$ADMIN_NODE" 'cat /etc/ceph/client.sepian.keyring' | mssh sudo tee /etc/ceph/client.sepian.keyring 
-mssh sudo chmod 644 /etc/ceph/client.sepian.keyring 
-ssh "$ADMIN_NODE" 'ceph-authtool /etc/ceph/client.sepian.keyring -n client.sepian -p' | mssh sudo tee /etc/ceph/client.sepian.secret 
-mssh sudo chmod 600 /etc/ceph/client.sepian.secret 
- 
-MONS=$(ssh "$ADMIN_NODE" 'env CEPH_KEYRING=/etc/ceph/client.sepian.keyring ceph --id sepian mon dump --format json | jq -r '\''[.mons[] | .public_addrs.addrvec[] | select(.type=="v1").addr] | join(",")'\') 
- 
-function genmount { 
-  local secret=$(mssh sudo cat /etc/ceph/client.sepian.secret) 
-  mssh 'D="'"$2"'"; if ! [ -d "$D" ]; then sudo mkdir -p -- "$D" ; sudo chmod 000 -- "$D" ; sudo chattr +i -- "$D" ; fi' 
-  mssh sudo sed -i "/mds_namespace=$3/d" /etc/fstab 
-  printf '%s:%s\t%s\tceph\tname=sepian,secret=%s,mds_namespace=%s,_netdev%s\t0\t2\n' "$MONS" "$1" "$2" "$secret" "$3" "$4" | mssh sudo tee -a /etc/fstab 
-} 
- 
-mssh sudo umount -l /teuthology 
-mssh sudo umount -l /scratch 
-mssh sudo umount -l /postfile 
- 
-genmount /teuthology-archive /teuthology teuthology ',ro' 
-genmount / /scratch scratch '' 
-genmount / /postfile postfile ',ro' 
- 
-mssh sudo cat /etc/fstab 
-mssh sudo systemctl daemon-reload 
-mssh sudo mount /teuthology 
-mssh sudo mount /scratch 
-mssh sudo mount /postfile 
-mssh sudo ln -sfT /teuthology /a 
-</code> 
 ==== Teuthology scheduling ==== ==== Teuthology scheduling ====
  
Line 115: Line 63:
 active_machine_types: active_machine_types:
   - smithi   - smithi
 +  - trial
 +  - gibba
 EOF EOF
 </code> </code>
  
-Note: killing a run is (generally) still necessary on [[services:teuthology|teuthology VM]]. This is because teuthology-kill requires killing the test processes running there.+Note: killing a run is (generally) still necessary on [[services:teuthology|teuthology host]]. This is because teuthology-kill requires killing the test processes running there. 
 ==== Configuring LVM volumes using spare disks ==== ==== Configuring LVM volumes using spare disks ====
  
devplayground.1749572734.txt.gz · Last modified: by pdonnell