Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
78aaa966
Commit
78aaa966
authored
May 27, 2014
by
Sebastien Ponce
Browse files
Better error messages in case a ceph pool does not have a quota, and thus appears with 0 size
parent
75cb8f14
Changes
2
Hide whitespace changes
Inline
Side-by-side
castor/db/oracleStager.sql
View file @
78aaa966
...
...
@@ -1439,7 +1439,7 @@ BEGIN
UPDATE
/*+ INDEX(Subrequest PK_Subrequest_Id)*/
SubRequest
SET
status
=
dconst
.
SUBREQUEST_FAILED
,
errorCode
=
serrno
.
ENOSPC
,
-- No space left on device
errorMessage
=
'File creation canceled since
diskP
ool is full'
errorMessage
=
'File creation canceled since
p
ool is full'
WHERE
id
=
srId
;
RETURN
;
END
IF
;
...
...
castor/scheduler/diskmanager/reporter.py
View file @
78aaa966
...
...
@@ -111,6 +111,8 @@ class ReporterThread(threading.Thread):
for
dataPool
in
dataPools
:
try
:
totalSpace
=
quotas
[
dataPool
]
if
0
==
totalSpace
:
raise
Exception
(
"Quota missing in datapool %s (set to 0)"
%
dataPool
)
freeSpace
=
totalSpace
-
usedSpace
[
dataPool
]
# fill report
reports
.
append
((
diskServerName
,
dataPool
,
maxFreeSpace
,
minAllowedFreeSpace
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment