Opened 11 months ago

Closed 11 months ago

Last modified 10 months ago

#855 closed System Defect (fixed)

life-preserver generates wrong list of zpools/resets time to keep snapshots to 1 day

Reported by: yggdrasil Owned by: kris
Priority: minor Milestone:
Component: Life Preserver Version: 9.2-RELEASE
Keywords: life preserver zpool list Configure Keep Cc: trac-bugs@…

Description

When life preserver loads, it shows this:
[DEBUG] Pool list: ("nas", "0 Hour: *", "*", "168", "midgard", "0 Hour: *", "*", "168")

My zpool list:
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
midgard 117G 69.5G 47.5G 59% 1.00x ONLINE -
nas 8.12T 3.23T 4.89T 39% 1.00x ONLINE -

When I open the Configure Box for a zpool, it always resets the "Keep:" box to 1 instead of whatever I had entered before. It seems to keep whatever I enter there and work correctly until the next time I open the Configure dialog.

Attachments (3)

lpreserver_listcron (156 bytes) - added by yggdrasil 11 months ago.
pkg_info_pcbsd-utils (50 bytes) - added by yggdrasil 11 months ago.
pkg_search_pcbsd-utils (1017 bytes) - added by yggdrasil 11 months ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 11 months ago by joshms

  • Owner set to ken

comment:2 Changed 11 months ago by kenmoore

  • Owner changed from ken to kenmoore
  • Status changed from new to assigned

It almost looks like the output of the "lpreserver listcron" command is not being detected properly. Could you paste the result of that command on your box?

The "Keep:" value of 1 is the default if it could not detect the current setup, so I think this again just shows that the GUI is having a problem with parsing the backend "lpreserver" output for some reason.

Do you happen to have your "pcbsd-utils" and "pcbsd-utils-qt4" packages at different versions? They should be in sync in order to work properly.

Changed 11 months ago by yggdrasil

Changed 11 months ago by yggdrasil

Changed 11 months ago by yggdrasil

comment:3 Changed 11 months ago by yggdrasil

I attached the outputs of my commands as separate files. Yes, utils ans utils-qt4 are at different versions, but pkg upgrade shows no available upgrade, and pkg search also lists only the 2 versions. Even force-removing utils-qt4, pkg update'ing, and then reinstalling it didn't change the version number.

comment:4 Changed 11 months ago by kenmoore

  • Owner changed from kenmoore to kris
  • Status changed from assigned to new

Ok, based on your "lpreserver" output it looks like the lpreserver backend itself is what is mangling the information (not the interaction between the two parts, so don't worry about the version mismatch - I was not aware they had different versions normally).

I am forwarding this on to Kris so that he can fix up the backend issue.

comment:5 Changed 11 months ago by kris

  • Resolution set to fixed
  • Status changed from new to closed

Ok, this should be fixed now.

https://github.com/pcbsd/pcbsd/commit/2b45e58571fdff3b4c7aa563b1e0f5ed83c6a422

Can you grab that file and test?

comment:6 Changed 11 months ago by yggdrasil

Yes, that works now, thank you.

comment:7 Changed 10 months ago by yggdrasil

Hi,
very weird, but today I wanted to check some settings in lifepreserver, and it exhibited the same error again. A diff between /usr/local/share/lpreserve/backend/zfslistcron.sh and its backupfile shows that the original file was restored. Maybe due to an update I overlooked? Was this not merged yet in 9?

Note: See TracTickets for help on using tickets.