Ticket 17549 - Refund a job or change the RawUsage on QOS
Summary: Refund a job or change the RawUsage on QOS
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Accounting (show other tickets)
Version: 22.05.8
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Megan Dahl
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2023-08-28 15:01 MDT by David King
Modified: 2025-03-11 14:10 MDT (History)
1 user (show)

See Also:
Site: NCSA
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed: 23.11.x
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description David King 2023-08-28 15:01:08 MDT
Hello,

We use QOS's to do billing restrictions. We would like to refund billing on a job and it seems there isn't a mechanism other than increasing the balance. We have an external accounting service that we can't add a supplement easily, but refunds are easy enough.

I would like to make these deposits and balances align. I cannot change the raw usage as I can only set this number to 0. Do we have a way issue a refund to a QOS?

[root@dt-login03 ~]# sacctmgr modify QOS where qos=bbka-delta-gpu set RawUsage=21834514744.146931
sacctmgr: error: Raw usage can only be set to 0 (zero)

Thanks!
Comment 8 Megan Dahl 2023-09-04 15:49:49 MDT
Hello David,

Currently there is not a way to issue a refund to a QOS. However, I will look into adding that feature in 23.11. I will keep you updated on the development.

Regards,
--Megan
Comment 12 Megan Dahl 2023-10-06 16:46:05 MDT
Hello David,

QOS will now be able to be refunded in 23.11. For example, the following command will set qos bbka-delta-gpu’s RawUsage to 21834514744.146931.
> sacctmgr modify QOS where qos=bbka-delta-gpu set RawUsage=21834514744.146931

commit 88df7aef1b04984cc29ef757a9f6dfa74fc89e8d
Author: 	Megan Dahl <megan@schedmd.com>
AuthorDate: Fri Oct 6 16:05:14 2023 -0600

	Allow the RawUsage of QOS to be directly updated by sacctmgr
    
	Before "sacctmgr modify qos set rawusage" could only be used to reset the
	QOS usage.
    
	Now it can be used to set the raw usage to any arbitrary (positive) value.
	(Setting it to 0 it resets the entire qos usage like before.)
    
	Bug 17549

Regards
--Megan