Skip to content

Instantly share code, notes, and snippets.

View ideepika's full-sized avatar
🎯
Focusing

Deepika Upadhyay ideepika

🎯
Focusing
View GitHub Profile
```
=== Force promote cepheast ===
2022-03-08T19:11:57.504+0000 7f6e80fa5200 20 librbd::asio::ContextWQ: 0x5620afd6f0d0 ContextWQ:
2022-03-08T19:11:57.504+0000 7f6e80fa5200 20 librbd::AsioEngine: 0x5620afd87c60 AsioEngine:
2022-03-08T19:11:57.504+0000 7f6e80fa5200 10 librbd::ImageCtx: 0x5620afd23e40 ImageCtx: image_name=test-demote-sb, image_id=
2022-03-08T19:11:57.504+0000 7f6e80fa5200 5 librbd::io::Dispatcher: 0x5620afd8b1c0 register_dispatch: dispatch_layer=10
2022-03-08T19:11:57.505+0000 7f6e80fa5200 5 librbd::io::QueueImageDispatch: 0x5620afd8b280 QueueImageDispatch: ictx=0x5620afd23e40
2022-03-08T19:11:57.505+0000 7f6e80fa5200 5 librbd::io::Dispatcher: 0x5620afd8b1c0 register_dispatch: dispatch_layer=1
2022-03-08T19:11:57.505+0000 7f6e80fa5200 5 librbd::io::QosImageDispatch: 0x5620afd8b320 QosImageDispatch: ictx=0x5620afd23e40
2022-03-08T19:11:57.506+0000 7f6e80fa5200 5 librbd::io::Dispatcher: 0x5620afd8b1c0 register_dispatch: dispatch_layer=2
todo mirror:
improve rbd mirror stats
add notification queue in CLusterWatcher.cc
make pool replayer async

Mirror.cc: init, run, appropriate handling of mirrors
threading
poolpeers, metacache, adminsock hook, 
```
-4112> 2021-12-23T10:03:47.913+0000 7f7b09ffb700 1 lockdep using id 4092
-4111> 2021-12-23T10:03:47.913+0000 7f7b09ffb700 1 lockdep using id 4093
-4110> 2021-12-23T10:03:47.913+0000 7f7b09ffb700 20 librbd::io::Dispatcher: 0x5565b2d011c0 send: dispatch_spec=0x5565b2d8b5b0
-4109> 2021-12-23T10:03:47.914+0000 7f7b09ffb700 20 librbd::io::QosImageDispatch: 0x5565b2d547f0 write: tid=11706, image_extents=[604999680,4096]
-4108> 2021-12-23T10:03:47.914+0000 7f7b09ffb700 20 librbd::io::FlushTracker: 0x5565b2bdf7f0 start_io: tid=11706, flush_tid=3994
-4107> 2021-12-23T10:03:47.914+0000 7f7b09ffb700 20 librbd::exclusive_lock::ImageDispatch: 0x7f7ad0004fb0 write: tid=11706, image_extents=[604999680,4096]
-4106> 2021-12-23T10:03:47.914+0000 7f7b09ffb700 20 librbd::io::RefreshImageDispatch: 0x5565b2d537a0 write: tid=11706, image_extents=[604999680,4096]
-4105> 2021-12-23T10:03:47.914+0000 7f7b09ffb700 20 librbd::io::WriteBlockImageDispatch: 0x5565b2be61c0 write: tid=11706
-4104> 2021-12-23T10:03:47.914+0000
#!/bin/bash
set -ex
echo "===setup clusters ==="
mon=1 osd=1 mds=0 ../src/mstart.sh site-a --short -n --without-dashboard
mon=1 osd=1 mds=0 ../src/mstart.sh site-b --short -n --without-dashboard
echo "===rbd mirror setup for clusters ==="
key=$(../src/mrun site-a ceph auth get client.admin --format=json | jq -r .[0].key)
mon_host_a=$(grep "mon host" run/site-a/ceph.conf | awk '{print $4}')
from ubuntu:focal
RUN apt-get -y update
RUN apt-get install git
if [[ -z $TMUX ]]; then
builtin exit
return
fi
panes=$(tmux list-panes | wc -l)
wins=$(tmux list-windows | wc -l)
count=$(($panes + $wins - 1))
if [ $count -eq 1 ]; then
tmux detach
(gdb)  thread apply all bt full

Thread 17 (Thread 0x7fffdaffd700 (LWP 1427008)):
#0  0x00007ffff719a2fc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
No symbol table info available.
#1  0x00007ffff1a0d8f0 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib64/libstdc++.so.6
No symbol table info available.
#2  0x00007ffff43103b7 in SafeTimer::timer_thread (this=0x5555559cf520) at ../src/common/Timer.cc:108
        now = {__d = {__r = 21223118594831413}}
This file has been truncated, but you can view the full file.
2021-05-12T20:45:03.597+0530 7fcf901af540 10 public_network
2021-05-12T20:45:03.597+0530 7fcf901af540 10 public_addr -
2021-05-12T20:45:03.597+0530 7fcf901af540 10 public_addrv
2021-05-12T20:45:03.598+0530 7fcf901af540 1 imported monmap:
epoch 0
fsid 13669b0c-7ab0-4042-92f2-b602b262ff53
last_changed 2021-05-12T20:45:03.411417+0530
created 2021-05-12T20:45:03.411417+0530
min_mon_release 15 (octopus)
election_strategy: 1
@ideepika
ideepika / gist:843c38c088b4ca58de104005af9ba213
Created April 19, 2021 06:38
46875#change-191972-save.log
This file has been truncated, but you can view the full file.
GitHub pull request #40891 of commit 7bef7e9b3b19cbbc3f4f185fe0e0caa2faae544a, no merge conflicts.
Running as SYSTEM
Setting status of 7bef7e9b3b19cbbc3f4f185fe0e0caa2faae544a to PENDING with url https://jenkins.ceph.com/job/ceph-pull-requests/73665/ and message: 'running make check'
Using context: make check
[EnvInject] - Loading node environment variables.
[EnvInject] - Preparing an environment for the build.
[EnvInject] - Keeping Jenkins system variables.
[EnvInject] - Keeping Jenkins build variables.
[EnvInject] - Injecting as environment variables the properties content
TERM=xterm