Alexys Jacob
c24e0e5599
dist/common/scripts/scylla_util.py: coding style fixes
...
dist/common/scripts/scylla_util.py:388:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:414:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:418:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:453:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:468:5: E722 do not use bare 'except'
dist/common/scripts/scylla_util.py:472:1: E302 expected 2 blank lines, found 1
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20181104120832.11273-1-ultrabug@gentoo.org >
2018-11-14 19:25:09 +02:00
Vlad Zolotarov
84d341a12d
dist: change the sysconfig parameter name to reflect the new semantics
...
We tune NIC and disks together now. Change the sysconfig parameter to
reflect this new semantics.
However if we detect an old parameter name in the scylla-server we would
still update it thereby keeping the support for old installations.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2018-10-31 15:28:13 -04:00
Vlad Zolotarov
7950062a82
scylla_util.py::sysconfig_parser: introduce has_option()
...
has_option() returns TRUE if a given configuration option is set.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2018-10-31 15:27:00 -04:00
Vlad Zolotarov
9a5373254a
dist: scylla_setup and scylla_sysconfig_setup: change paremeters names to reflect new semantics
...
Change the name of the corresponding parameter (--setup-nic) to reflect
the fact that we tune not just NIC now but rather NIC and disks together.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2018-10-31 15:27:00 -04:00
Vlad Zolotarov
0e47d8bb1d
dist: use perftune.py to tune disks and NIC
...
Tune disks using perftune.py together with NIC.
This is needed because disk(s) and NIC tuning has to be
performed using the mode (for non-NVMe disks).
We tune disks based on the current content of /etc/scylla/scylla.yaml.
Don't use scylla-blocktune for optimizing disks' performance
any more.
Unite the decision to optimize the NIC and disks tuning.
Optimize or not optimize them both together.
Disable disk tuning for DPDK and "virtio" modes for now.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2018-10-31 15:27:00 -04:00
Takuya ASADA
f3c3b9183c
dist/debian: use relocatable package to produce .deb
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
2018-10-24 11:29:47 +00:00
Alexys Jacob
eebbae066a
dist/common/scripts/scylla_setup: fix gentoo linux installed package detection
...
return code is expected to be 0 when installed package was found
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20181002123433.4702-1-ultrabug@gentoo.org >
2018-10-07 16:46:02 +03:00
Alexys Jacob
850d046551
dist/common/scripts/scylla_ntp_setup: fix gentoo linux systemd service name
...
fix typo as ntpd package systemd service is named ntpd, not sntpd
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20181002123802.5576-1-ultrabug@gentoo.org >
2018-10-07 16:46:01 +03:00
Alexys Jacob
54151d2039
dist/common/scripts/scylla_cpuscaling_setup: fix file open mode for writing
...
gentoo linux part tries to open the configuration file without the
write flag, leading to an exception
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20181002123957.6010-1-ultrabug@gentoo.org >
2018-10-07 16:46:00 +03:00
Alexys Jacob
6d6764133b
dist/common/scripts: coding style fixes
...
dist/common/scripts/scylla_blocktune.py:24:10: E401 multiple imports on one line
dist/common/scripts/scylla_blocktune.py:27:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_blocktune.py:35:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_blocktune.py:48:1: E305 expected 2 blank lines after class or function definition, found 1
dist/common/scripts/scylla_blocktune.py:52:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_blocktune.py:59:5: E306 expected 1 blank line before a nested definition, found 0
dist/common/scripts/scylla_blocktune.py:74:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_blocktune.py:81:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_blocktune.py:87:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_config_get.py:26:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_config_get.py:43:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_config_get.py:53:1: E305 expected 2 blank lines after class or function definition, found 1
dist/common/scripts/scylla_util.py:18:22: E401 multiple imports on one line
dist/common/scripts/scylla_util.py:19:22: E401 multiple imports on one line
dist/common/scripts/scylla_util.py:24:1: F401 'string' imported but unused
dist/common/scripts/scylla_util.py:32:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:50:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:61:30: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:75:53: E703 statement ends with a semicolon
dist/common/scripts/scylla_util.py:79:32: E272 multiple spaces before keyword
dist/common/scripts/scylla_util.py:80:25: E703 statement ends with a semicolon
dist/common/scripts/scylla_util.py:85:32: E201 whitespace after '['
dist/common/scripts/scylla_util.py:85:51: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:130:34: E201 whitespace after '['
dist/common/scripts/scylla_util.py:130:65: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:170:1: E266 too many leading '#' for block comment
dist/common/scripts/scylla_util.py:172:11: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:174:10: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:178:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:181:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:184:17: E201 whitespace after '['
dist/common/scripts/scylla_util.py:184:50: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:186:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:193:16: E201 whitespace after '['
dist/common/scripts/scylla_util.py:193:76: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:195:18: E201 whitespace after '{'
dist/common/scripts/scylla_util.py:195:27: E203 whitespace before ':'
dist/common/scripts/scylla_util.py:195:41: E203 whitespace before ':'
dist/common/scripts/scylla_util.py:195:48: E202 whitespace before '}'
dist/common/scripts/scylla_util.py:203:25: E201 whitespace after '['
dist/common/scripts/scylla_util.py:203:54: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:204:76: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:208:27: E703 statement ends with a semicolon
dist/common/scripts/scylla_util.py:217:27: E201 whitespace after '['
dist/common/scripts/scylla_util.py:217:62: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:238:25: E201 whitespace after '['
dist/common/scripts/scylla_util.py:238:87: E202 whitespace before ']'
dist/common/scripts/scylla_util.py:257:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:258:11: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:259:11: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:268:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:277:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:280:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:283:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:286:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:297:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:302:5: E722 do not use bare except'
dist/common/scripts/scylla_util.py:305:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:325:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:329:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:335:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:338:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:341:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:343:81: E231 missing whitespace after ','
dist/common/scripts/scylla_util.py:352:1: E305 expected 2 blank lines after class or function definition, found 1
dist/common/scripts/scylla_util.py:352:21: E231 missing whitespace after ':'
dist/common/scripts/scylla_util.py:352:41: E231 missing whitespace after ':'
dist/common/scripts/scylla_util.py:352:65: E231 missing whitespace after ':'
dist/common/scripts/scylla_util.py:353:1: E302 expected 2 blank lines, found 0
dist/common/scripts/scylla_util.py:358:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:360:22: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:365:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:367:11: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:370:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:373:15: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:374:14: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:375:14: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:376:20: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:385:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:388:9: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:389:9: E225 missing whitespace around operator
dist/common/scripts/scylla_util.py:393:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:396:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:399:1: E302 expected 2 blank lines, found 1
dist/common/scripts/scylla_util.py:432:1: E302 expected 2 blank lines, found 1
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20180918213707.6069-1-ultrabug@gentoo.org >
2018-09-30 11:00:37 +03:00
Avi Kivity
8f5e80e61a
Revert "setup: add the lazytime XFS version"
...
This reverts commit f828fe0d59 . It causes
scylla_raid_setup to fail on CentOS 7.
Fixes #3784 .
2018-09-26 11:10:07 +01:00
Glauber Costa
f828fe0d59
setup: add the lazytime XFS version
...
Starting with kernel 4.17 XFS will support the lazytime mount option.
That will be beneficial for Scylla as updating times synchronously is
one of our current sources of stalls.
Fortunately, older kernels are able to parse the option and just ignore
it. We verified that to be the case in a 4.15 kernel on ubuntu.
Therefore, just add the option unconditionally.
Signed-off-by: Glauber Costa <glauber@scylladb.com >
Message-Id: <20180920170017.13215-1-glauber@scylladb.com >
2018-09-20 20:12:44 +03:00
Takuya ASADA
bd8a5664b8
dist/common/scripts/scylla_raid_setup: create scylla-server.service.d when it doesn't exist
...
When /etc/systemd/system/scylla-server.service.d/capabilities.conf is
not installed, we don't have /etc/systemd/system/scylla-server.service.d/,
need to create it.
Fixes #3738
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180904015841.18433-1-syuu@scylladb.com >
2018-09-04 10:12:32 +03:00
Takuya ASADA
ff55e3c247
dist/common/scripts/scylla_raid_setup: refuse start scylla-server.service when RAID volume is not mounted
...
Since the Linux system abort booting when it fails to mount fstab entries,
user may not able to see an error message when we use fstab to mount
/var/lib/scylla on AMI.
Instead of abort booting, we can just abort to start scylla-server.service
when RAID volume is not mounted, using RequiresMountsFor directive of systemd
unit file.
See #3640
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180824185511.17557-1-syuu@scylladb.com >
2018-08-26 10:55:34 +03:00
Takuya ASADA
2ef1b094d7
dist/common/scripts/scylla_setup: don't proceed RAID setup until user type 'done'
...
Need to wait user confirmation before running RAID setup.
See #3659
Fixes #3681
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180810194507.1115-1-syuu@scylladb.com >
2018-08-11 18:48:05 +03:00
Takuya ASADA
b7cf3d7472
dist/common/scripts/scylla_setup: don't mention about interactive mode prompt when running on non-interactive mode
...
Skip showing message when it's non-interactive mode.
Fixes #3674
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180810191945.32693-1-syuu@scylladb.com >
2018-08-11 18:48:03 +03:00
Takuya ASADA
ef9475dd3c
dist/common/scripts/scylla_setup: check existance of housekeeping.cfg before asking to run version check
...
Skip asking to run version check when housekeeping.cfg is already
exists.
Fixes #3657
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180807232313.15525-1-syuu@scylladb.com >
2018-08-11 18:48:02 +03:00
Takuya ASADA
ad7bc313f7
dist/common/scripts: pass format variables to colorprint()
...
When we use str.format() to pass variables on the message it will always
causes Exception like "KeyError: 'red'", since the message contains color
variables but it's not passed to str.format().
To avoid the error we need to pass all format variables to colorprint()
and run str.format() inside the function.
Fixes #3649
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180803015216.14328-1-syuu@scylladb.com >
2018-08-08 18:37:50 +03:00
Takuya ASADA
15825d8bf1
dist/common/scripts/scylla_setup: print message when EC2 instance is optimized for Scylla
...
Currently scylla_ec2_check exits silently when EC2 instance is optimized
for Scylla, it's not clear a result of the check, need to output
message.
Note that this change effects AMI login prompt too.
Fixes #3655
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180808024256.9601-1-syuu@scylladb.com >
2018-08-08 10:17:52 +03:00
Takuya ASADA
652eb5ae0e
dist/common/scripts/scylla_setup: fix typo on interactive setup
...
Scylls -> Scylla
Fixes #3656
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180808002443.1374-1-syuu@scylladb.com >
2018-08-08 09:15:13 +03:00
Takuya ASADA
a300926495
dist/common/scripts/scylla_setup: use specified NIC ifname correctly
...
Interactive NIC selection prompt always returns 'eth0' as selected NIC name
mistakenly, need to fix.
Fixes #3651
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180803020724.15155-1-syuu@scylladb.com >
2018-08-06 20:59:19 +03:00
Takuya ASADA
2cd99d800b
dist/common/scripts/scylla_ntp_setup: fix typo
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <1533070539-2147-1-git-send-email-syuu@scylladb.com >
2018-08-01 10:31:07 +03:00
Takuya ASADA
032b26deeb
dist/common/scripts/scylla_ntp_setup: fix typo
...
Comment on Python is "#" not "//".
Fixes #3629
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180730091022.4512-1-syuu@scylladb.com >
2018-07-30 12:30:53 +03:00
Takuya ASADA
8e4d1350c9
dist/common/scripts/scylla_ntp_setup: ignore ntpdate error
...
Even ntpdate fails to adjust clock ntpd may able to recover it later,
ignore ntpdate error keep running the script.
Fixes #3629
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180726080206.28891-1-syuu@scylladb.com >
2018-07-26 14:44:53 +03:00
Amos Kong
0fcdab8538
scylla_setup: nic setup dialog is only for interactive mode
...
Current code raises dialog even for non-interactive mode when we pass options
in executing scylla_setup. This blocked automatical artifact-test.
Fixes #3549
Signed-off-by: Amos Kong <amos@scylladb.com >
Message-Id: <58f90e1e2837f31d9333d7e9fb68ce05208323da.1531824972.git.amos@scylladb.com >
2018-07-17 16:31:18 +03:00
Takuya ASADA
9479ff6b1e
dist/common/scripts/scylla_prepare: fix error when /etc/scylla/ami_disabled exists
...
On this part shell command wasn't converted to python3, need to fix.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180715075015.13071-1-syuu@scylladb.com >
2018-07-16 09:29:38 +03:00
Takuya ASADA
ee61660b76
dist/common/scripts/scylla_ec2_check: support custom NIC ifname on EC2
...
Since some AMIs using consistent network device naming, primary NIC
ifname is not 'eth0'.
But we hardcoded NIC name as 'eth0' on scylla_ec2_check, we need to add
--nic option to specify custom NIC ifname.
Fixes #3584
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180712142446.15909-1-syuu@scylladb.com >
2018-07-12 18:22:28 +03:00
Takuya ASADA
8f80d23b07
dist/common/scripts/scylla_util.py: fix typo
...
Fix typo, and rename get_mode_cpu_set() to get_mode_cpuset(), since a
term 'cpuset' is not included '_' on other places.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180711141923.12675-1-syuu@scylladb.com >
2018-07-12 10:14:55 +03:00
Takuya ASADA
58e6ad22b2
dist/common/scripts: drop scylla_lib.sh
...
Drop scylla_lib.sh since all bash scripts depends on the library is
already converted to python3, and all scylla_lib.sh features are
implemented on scylla_util.py.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180711114756.21823-1-syuu@scylladb.com >
2018-07-11 14:54:56 +03:00
Avi Kivity
693cf77022
Merge "more conversion from bash to python3" from Takuya
...
"Converted more scripts to python3."
* 'script_python_conversion2_v2' of https://github.com/syuu1228/scylla :
dist/common/scripts/scylla_util.py: make run()/out() functions shorter
dist/ami: install python34 to run scylla_install_ami
dist/common/scripts/scylla_ec2_check: move ec2 related code to class aws_instance
dist/common/scripts: drop class concolor, use colorprint()
dist/ami/files/.bash_profile: convert almost all lines to python3
dist/common/scripts: convert node_exporter_install to python3
dist/common/scripts: convert scylla_stop to python3
dist/common/scripts: convert scylla_prepare to python3
2018-07-11 13:14:23 +03:00
Takuya ASADA
1a5a40e5f6
dist/common/scripts/scylla_util.py: use os.open(O_EXCL) to verify disk is unused
...
To simplify is_unused_disk(), just try to open the disk instead of
checking multiple block subsystems.
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180709102729.30066-1-syuu@scylladb.com >
2018-07-09 13:29:15 +03:00
Takuya ASADA
929ba016ed
dist/common/scripts/scylla_util.py: strip double quote from sysconfig parameter
...
Current sysconfig_parser.get() returns parameter including double quote,
it will cause problem by append text using sysconfig_parser.set().
Fixes #3587
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180706172219.16859-1-syuu@scylladb.com >
2018-07-08 10:47:41 +03:00
Takuya ASADA
a98b4b705c
dist/common/scripts/scylla_util.py: make run()/out() functions shorter
...
Refactored these functions to make them simpler.
2018-07-08 01:13:36 +09:00
Takuya ASADA
4e04fb7d68
dist/common/scripts/scylla_ec2_check: move ec2 related code to class aws_instance
...
There is duplicated code on both scylla_ec2_check and class aws_instance
on scylla_util.py, so drop these code from scylla_ec2_check and use
class aws_instance.
2018-07-08 01:13:36 +09:00
Takuya ASADA
99d5ca03e7
dist/common/scripts: drop class concolor, use colorprint()
...
To print colored console output with simplar code, drop class concolor
and use colorprint() instead.
2018-07-08 01:13:36 +09:00
Takuya ASADA
14d117363b
dist/ami/files/.bash_profile: convert almost all lines to python3
...
Since it's .bash_profile we cannot make the file to python3 script but
almost all lines are rewritten to python3, .bash_profile just launch it.
2018-07-08 01:13:35 +09:00
Takuya ASADA
25c3249d8d
dist/common/scripts: convert node_exporter_install to python3
...
Convert bash script to python3.
2018-07-08 01:13:35 +09:00
Takuya ASADA
505fcc92f7
dist/common/scripts: convert scylla_stop to python3
...
Convert bash script to python3.
2018-07-08 01:13:35 +09:00
Takuya ASADA
eb369942bd
dist/common/scripts: convert scylla_prepare to python3
...
Convert bash script to python3.
2018-07-08 01:13:35 +09:00
Vlad Zolotarov
7495c8e56d
dist: scylla_lib.sh: get_mode_cpu_set: split the declaration and ssignment to the local variable
...
In bash local variable declaration is a separate operation with its own exit status
(always 0) therefore constructs like
local var=`cmd`
will always result in the 0 exit status ($? value) regardless of the actual
result of "cmd" invocation.
To overcome this we should split the declaration and the assignment to be like this:
local var
var=`cmd`
Fixes #3508
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
Message-Id: <1529702903-24909-3-git-send-email-vladz@scylladb.com >
2018-07-07 18:04:19 +03:00
Vlad Zolotarov
f3ca17b1a1
dist: scylla_lib.sh: get_mode_cpu_set: don't let the error messages out
...
References #3508
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
Message-Id: <1529702903-24909-2-git-send-email-vladz@scylladb.com >
2018-07-07 18:04:18 +03:00
Takuya ASADA
4df982fe07
dist/common/scripts/scylla_sysconfig_setup: fix typo
...
Signed-off-by: Takuya ASADA <syuu@scylladb.com >
Message-Id: <20180705133313.16934-1-syuu@scylladb.com >
2018-07-05 16:38:14 +03:00
Alexys Jacob
8c03c1e2ce
Support Gentoo Linux on node_health_check script.
...
Gentoo Linux was not supported by the node_health_check script
which resulted in the following error message displayed:
"This s a Non-Supported OS, Please Review the Support Matrix"
This patch adds support for Gentoo Linux while adding a TODO note
to add support for authenticated clusters which the script does
not support yet.
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org >
Message-Id: <20180703124458.3788-1-ultrabug@gentoo.org >
2018-07-03 20:18:13 +03:00
Takuya ASADA
d0f39ea31d
dist/common/scripts/scylla_raid_setup: verify specified disks are unused
...
Currently only scylla_setup interactive mode verifies selected disks are
unused, on non-interactive mode we get mdadm/mkfs.xfs program error and
python backtrace when disks are busy.
So we should verify disks are unused also on scylla_raid_setup, print
out simpler error message.
2018-07-03 14:50:34 +09:00
Takuya ASADA
3289642223
dist/common/scripts/scylla_raid_setup: add --force-raid to construct raid even only one disk is specified
...
User may want to start RAID volume with only one disk, add an option to
force constructing RAID even only one disk specified.
2018-07-03 14:50:34 +09:00
Takuya ASADA
e0c16c4585
dist/common/scripts/scylla_setup: don't accept disk path if it's not block device
...
Need to ignore input when specified path is not block device.
2018-07-03 14:50:34 +09:00
Takuya ASADA
24ca2d85c6
dist/common/scripts/scylla_raid_setup: verify specified disk paths are block device
...
Verify disk paths are block device, exit with error if not.
2018-07-03 14:50:34 +09:00
Takuya ASADA
99b5cf1f92
dist/common/scripts/scylla_sysconfig_setup: verify NIC existance
...
Verify NIC existance before writing sysconfig file to prevent causing
error while running scylla.
See #2442
2018-07-03 14:50:34 +09:00
Takuya ASADA
972ce88601
dist/common/scripts/scylla_setup: allow input multiple disk paths on RAID disk prompt
...
Allow "/dev/sda1,/dev/sdb1" style input on RAID disk prompt.
2018-06-29 01:37:19 +09:00
Takuya ASADA
a83c66b402
dist/common/scripts/scylla_raid_setup: skip constructing RAID0 when only one disk specified
...
When only one disk specified, create XFS directly on the disk instead of
creating RAID0 volume on the disk.
2018-06-29 01:37:19 +09:00