one
one copied to clipboard
`onevm recover --delete-db` doesn't update ETIME and RETIME
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)