You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-11-21 09:20:51 +03:00
Allow both mysql and mariadb as owners of the data dir
This commit is contained in:
@@ -453,7 +453,7 @@ class ConfigController:
|
||||
if diag:
|
||||
raise_422_error(
|
||||
module_logger, func_name,
|
||||
f'Invariant checks failed. Details: {diag.strip()}',
|
||||
f'Invariant checks failed. Details:\n{diag.strip()}',
|
||||
exc_info=False
|
||||
)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@ import logging
|
||||
import os
|
||||
from typing import Optional, Tuple
|
||||
|
||||
from mr_kot import Runner, Status, check, check_all, fact, parametrize
|
||||
from mr_kot_fs_validators import GroupIs, HasMode, IsDir, OwnerIs
|
||||
from mr_kot import Runner, Status, any_of, check, check_all, fact, parametrize
|
||||
from mr_kot_fs_validators import Exists, GroupIs, HasMode, IsDir, OwnerIs
|
||||
|
||||
from cmapi_server import helpers
|
||||
from cmapi_server.constants import MCS_DATA_PATH
|
||||
@@ -76,6 +76,7 @@ REQUIRED_LOCAL_DIRS = [
|
||||
def required_dirs_perms(dir: str) -> Tuple[Status, str]:
|
||||
status, ev = check_all(
|
||||
dir,
|
||||
Exists(),
|
||||
IsDir(),
|
||||
HasMode('1755'),
|
||||
)
|
||||
@@ -87,7 +88,10 @@ def required_dirs_ownership(dir: str) -> Tuple[Status, str]:
|
||||
# Check ownership only when not in containers
|
||||
status, ev = check_all(
|
||||
dir,
|
||||
OwnerIs('mysql'),
|
||||
GroupIs('mysql'),
|
||||
Exists(),
|
||||
# The correct owner is mysql, but i've seen mariadb as owner of the mountpoint,
|
||||
# so we allow both
|
||||
any_of(OwnerIs('mysql'), OwnerIs('mariadb')),
|
||||
any_of(GroupIs('mysql'), GroupIs('mariadb')),
|
||||
)
|
||||
return (status, ev)
|
||||
|
||||
@@ -19,5 +19,5 @@ typer==0.15.2
|
||||
pydantic==2.11.7
|
||||
sentry-sdk==2.34.1
|
||||
# Invariant checks
|
||||
mr_kot==0.8.5
|
||||
mr_kot_fs_validators==0.1.0
|
||||
mr_kot==0.9.2
|
||||
mr_kot_fs_validators==0.2.0
|
||||
@@ -144,9 +144,9 @@ more-itertools==10.7.0
|
||||
# cherrypy
|
||||
# jaraco-functools
|
||||
# jaraco-text
|
||||
mr-kot==0.8.5
|
||||
mr-kot==0.9.2
|
||||
# via -r requirements.in
|
||||
mr-kot-fs-validators==0.1.0
|
||||
mr-kot-fs-validators==0.2.0
|
||||
# via -r requirements.in
|
||||
multidict==6.6.4
|
||||
# via
|
||||
|
||||
Reference in New Issue
Block a user