backup_restore: cassandra temporary system tables needs special handling
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R2.20 |
Fix Committed
|
Undecided
|
aswani kumar | |||
R2.21.x |
Fix Committed
|
Undecided
|
aswani kumar | |||
R2.22.x |
Fix Committed
|
Undecided
|
aswani kumar | |||
R3.0 |
Fix Committed
|
Undecided
|
aswani kumar | |||
Trunk |
Fix Committed
|
Undecided
|
aswani kumar |
Bug Description
There are some special tables in cassandra "system" keyspace such us "hints' which will store data temporarily.
when a snapshot is done during the time when data is present in hints table, it creates hints/snapshots
Later(after the data from hints table is removed by system) when fab backup_cassandra_db is executed, this task creates snapshots, and relay on the presence of snapshots dir(https:/
As the hints table has snapshots dir from earlier snpshot(not from fab backup_
However the hints/snapshots/ will not not have the <new-timestamap>, so the rsync fails (
https:/
description: | updated |
description: | updated |
description: | updated |
information type: | Proprietary → Public |
Logs:
-------
2016-03-30 15:51:46:864349: Fatal error: sudo() received nonzero return code 23 while executing! ecking= no -o UserKnownHostsF ile=/dev/ null" mydata/ data/system/ hints/snapshots /1459378293426 root@99. 1.1.26: /root/sdkvse4/ ecking= no -o UserKnownHostsF ile=/dev/ null\" mydata/ data/system/ hints/snapshots /1459378293426 root@99. 1.1.26: /root/sdkvse4/ "
2016-03-30 15:51:46:864349:
2016-03-30 15:51:46:864349: Requested: rsync -avzR -e "ssh -o StrictHostKeyCh
2016-03-30 15:51:46:864349: Executed: sudo -S -p 'sudo password:' /bin/bash -l -c "cd /var/lib/cassandra/ && rsync -avzR -e \"ssh -o StrictHostKeyCh
2016-03-30 15:51:46:864349:
2016-03-30 15:51:46:864389: Aborting.
2016-03-30 15:51:46:864389:
2016-03-30 15:51:47:092934: Backup cassandra DB Failed .... Aborting
2016-03-30 15:51:47:092985: