Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
6380686c
Commit
6380686c
authored
Apr 19, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grid.promise: fix create promise folder for the first time with wrong permissions
parent
f4a82992
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
slapos/grid/promise/__init__.py
slapos/grid/promise/__init__.py
+1
-1
slapos/grid/promise/generic.py
slapos/grid/promise/generic.py
+1
-0
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+0
-1
No files found.
slapos/grid/promise/__init__.py
View file @
6380686c
...
...
@@ -539,7 +539,7 @@ class PromiseLauncher(object):
failed_promise_name
=
promise_name
stat_info
=
os
.
stat
(
self
.
partition_folder
)
chownDirectory
(
self
.
p
artition_folde
r
,
stat_info
.
st_uid
,
stat_info
.
st_gid
)
chownDirectory
(
self
.
p
romise_output_di
r
,
stat_info
.
st_uid
,
stat_info
.
st_gid
)
if
failed_promise_name
:
raise
PromiseError
(
"Promise %r failed."
%
failed_promise_name
)
slapos/grid/promise/generic.py
View file @
6380686c
...
...
@@ -161,6 +161,7 @@ class GenericPromise(object):
logger_handler
=
logging
.
StreamHandler
(
self
.
__logger_buffer
)
self
.
__log_file
=
None
else
:
mkdir_p
(
self
.
__log_folder
)
self
.
__log_file
=
os
.
path
.
join
(
self
.
__log_folder
,
'%s.log'
%
self
.
__title
...
...
slapos/grid/slapgrid.py
View file @
6380686c
...
...
@@ -621,7 +621,6 @@ stderr_logfile_backups=1
def
_checkPromiseList
(
self
,
partition
,
force
=
True
,
check_anomaly
=
False
):
instance_path
=
os
.
path
.
join
(
self
.
instance_root
,
partition
.
partition_id
)
promise_log_path
=
os
.
path
.
join
(
instance_path
,
PROMISE_LOG_FOLDER_NAME
)
mkdir_p
(
promise_log_path
)
self
.
logger
.
info
(
"Checking %s promises..."
%
partition
.
partition_id
)
uid
,
gid
=
None
,
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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