one icon indicating copy to clipboard operation
one copied to clipboard

`onevm recover --delete-db` doesn't update ETIME and RETIME

Open paczerny opened this issue 2 years ago • 1 comments

Description onevm recover --delete-db doesn't touch the historic record, so it leaves ETIME=0 and RETIME=0. This breaks accounting/showback calculation.

To Reproduce Deploy VM. Stop it by onevm recover --delete-db. onevm show -x see ETIME and RETIME for last history record

Expected behavior If the ETIME and RETIME are 0, set them to actual time.

Details

  • Affected Component: Accounting
  • Version: 6.4 and master

Progress Status

  • [ ] Code committed
  • [ ] Testing - QA
  • [ ] Documentation (Release notes - resolved issues, compatibility, known issues)

paczerny avatar Aug 25 '22 11:08 paczerny

ETIME already fixed in release 6.4.1 #5874 PRs to fix RETIME:

paczerny avatar Aug 28 '22 20:08 paczerny