2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-22 01:49:48 +00:00

267 Commits

Author SHA1 Message Date
Andrei Pavel
bdacdf235f
[#3831] Adapt Hammer to the /etc/kea-api-password change in kea-ctrl-agent 2025-05-19 11:53:04 +03:00
Andrei Pavel
39ec5d22a6
[#3812] Hammer: Make sure we account for the case when hammer is called on another Kea source tree when installing SSL keys 2025-04-23 13:15:24 +03:00
Andrei Pavel
cc7086aa67
[#3812] Hammer: Remove openssl command altogether 2025-04-22 15:36:41 +03:00
Andrei Pavel
839c12ad2d
[#3812] Hammer: Fix openssl command
Co-authored by: Marcin Godzina <mgodzina@isc.org>
2025-04-22 14:49:41 +03:00
Andrei Pavel
a712eac72d
[#3812] Hammer: Overwrite SSL key only if command succeeded 2025-04-17 17:07:39 +03:00
Andrei Pavel
2ca15ffc7b
[#3812] Hammer: tar.gz -> tar.xz 2025-04-17 14:37:26 +03:00
Andrei Pavel
3f03df01cb
[#3812] Add comment to Hammer 2025-04-17 14:37:25 +03:00
Andrei Pavel
e430e51f48
[#3812] Bump up googletest version to 1.16.0 2025-04-17 14:37:24 +03:00
Andrei Pavel
16e4e7db2e
[#3812] hammer.py: workaround for netconf rpath not working 2025-04-17 14:37:23 +03:00
Andrei Pavel
c25e0f324c
[#3812] hammer.py: Add venv mode to install_meson 2025-04-17 14:37:23 +03:00
Andrei Pavel
bd82578520
[#3812] Fix Meson segfault on Alpine caused by low stack size 2025-04-17 14:37:22 +03:00
Andrei Pavel
6d5a6133a1
[#3812] hammer.py: Add pyinstall_sphinx 2025-04-17 14:37:21 +03:00
Andrei Pavel
80b6846a2a
[#3812] hammer.py: Add pyinstall_meson 2025-04-17 14:37:21 +03:00
Andrei Pavel
b27e64b545
[#3812] Update hammer.py with Meson support 2025-04-17 14:37:20 +03:00
Andrei Pavel
54b3aec38b
[#3812] Fix path of TLS certs when hammer called from path other than root of repo 2025-04-17 14:37:20 +03:00
Andrei Pavel
3727e846c5
[#3812] hammer.py: Use sed -i'' everywhere for better compatibility 2025-04-17 14:37:19 +03:00
Andrei Pavel
dee7f072ff
[#3812] Unrelated: lint hammer.py 2025-04-17 14:37:19 +03:00
Andrei Pavel
09aea441c8
[#3711] hammer.py: Switch to libpq in RHEL too 2025-02-05 16:17:15 +02:00
Andrei Pavel
d1ac5db6fb
[#3711] Update supported systems in hammer.py 2025-02-01 20:07:57 +02:00
Andrei Pavel
7aeb36dafa
[#3711] Remove postgresql server dev packages from hammer.py 2025-02-01 20:07:57 +02:00
Andrei Pavel
3f13320703
[#3738] Do not update repos on FreeBSD in hammer.py 2025-01-30 14:01:43 +02:00
Andrei Pavel
05707e6a70
[#3698] Install gtest sources on FreeBSD
Fixes "checking for gtest source... configure: error: no gtest source at /usr/src/googletest".
2024-12-19 10:56:37 +02:00
Marcin Godzina
331e325d1f [#3664] add alpine 3.21 to hammer 2024-12-18 14:24:57 +00:00
Marcin Godzina
978f0f87ab [#3630] forge db init fix 2024-10-23 11:48:30 +00:00
Andrei Pavel
0411c88f28
[#3559] hammer.py: pkill mariadb_safe before restarting
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-29 07:43:24 +03:00
Andrei Pavel
a08efdbafb
[#3547] hammer.py: wait for start-stop-daemon/mysqld_safe to exit
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-22 10:23:46 +03:00
Andrei Pavel
f54e7c5559
[kea-packaging#8] hammer: stop mariadb before setup
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-13 11:23:15 +03:00
Andrei Pavel
0633f932be
[kea-packaging#8] show logs when _STARTED Kea not found
Also make reading of logs more pythonic.
2024-08-13 01:53:35 +03:00
Andrei Pavel
64fddf7f86
[#3470] unrelated: wait for "mariadb setup"/mysqld_safe to complete before restarting mariadb in alpine
Attempt to fix `start-stop-daemon: /usr/bin/mysqld_safe is already running`
2024-08-08 12:15:48 +03:00
Andrei Pavel
04bd5f616f
[#3470] hammer: install postgresql only if not already installed 2024-08-08 11:03:30 +03:00
Andrei Pavel
dffb0d7baa
[#3470] make hammer.py work better with freebsd 14+
- Remove unnecessary `SET PASSWORD` for mysql
- Remove redundant `sysrc postgresql_enable=yes`. It is done later when
  enabling the service.
- Determine `/var/db/postgres/data*` using glob.
- Add `interactive=true` to onestart command.
2024-08-08 11:03:30 +03:00
Andrei Pavel
3791bb03b0
[#3287] address review 2024-06-20 18:52:09 +03:00
Andrei Pavel
9c35a4db68
[#3287] fix pylint warnings
- C0115: Missing class docstring (missing-class-docstring)
- C0123: Use isinstance() rather than type() for a typecheck. (unidiomatic-typecheck)
- C0201: Consider iterating the dictionary directly instead of calling .keys() (consider-iterating-dictionary)
- C0206: Consider iterating with .items() (consider-using-dict-items)
- C0411: standard import "..." should be placed before "..." (wrong-import-order)
- C0415: Import outside toplevel (...) (import-outside-toplevel)
- C1802: Do not use `len(SEQUENCE)` without comparison to determine if a sequence is empty (use-implicit-booleaness-not-len)
- E0001: Parsing failed: 'invalid syntax (<unknown>, line 2313)' (syntax-error)
- E0401: Unable to import '...' (import-error)
- E0602: Undefined variable 'l' (undefined-variable)
- R0205: Class 'VagrantEnv' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
- E1101: Instance of 'NSECBASE' has no 'dump_fixedpart' member (no-member)
- E1123: Unexpected keyword argument 'capture' in method call (unexpected-keyword-arg)
- R0902: Too many instance attributes (too-many-instance-attributes)
- R0913: Too many arguments (too-many-arguments)
- R0916: Too many boolean expressions in if statement (6/5) (too-many-boolean-expressions)
- R1717: Consider using a dictionary comprehension (consider-using-dict-comprehension)
- R1722: Consider using 'sys.exit' instead (consider-using-sys-exit)
- R1732: Consider using 'with' for resource-allocating operations (consider-using-with)
- R1735: Consider using '{}' instead of a call to 'dict'. (use-dict-literal)
- W0102: Dangerous default value sys.argv[1:] (builtins.list) as argument (dangerous-default-value)
- W0102: Dangerous default value {} as argument (dangerous-default-value)
- W0106: Expression "[f.write('%02x' % x) for x in bin_address]" is assigned to nothing (expression-not-assigned)
- W0107: Unnecessary pass statement (unnecessary-pass)
- W0201: Attribute 'config' defined outside __init__ (attribute-defined-outside-init)
- W0404: Reimport '...' (imported line ...) (reimported)
- W0611: Unused import ... (unused-import)
- W0612: Unused variable '...' (unused-variable)
- W0613: Unused argument '...' (unused-argument)
- W0621: Redefining name '...' from outer scope (line 1471) (redefined-outer-name)
- W0622: Redefining built-in '...' (redefined-builtin)
- W0707: Consider explicitly re-raising using 'raise ... from ...' (raise-missing-from)
- W0718: Catching too general exception Exception (broad-exception-caught)
- W1202: Use lazy % formatting in logging functions (logging-format-interpolation)
- W1203: Use lazy % formatting in logging functions (logging-fstring-interpolation)
- W1308: Duplicate string formatting argument 'connection_type', consider passing as named argument (duplicate-string-formatting-argument)
- W1401: Anomalous backslash in string: '\/'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
- W1406: The u prefix for strings is no longer necessary in Python >=3.0 (redundant-u-string-prefix)
- W1514: Using open without explicitly specifying an encoding (unspecified-encoding)
- W4901: Deprecated module 'optparse' (deprecated-module)
- W4904: Using deprecated class SafeConfigParser of module configparser (deprecated-class)
2024-06-20 18:52:09 +03:00
Andrei Pavel
8e37580e59
[#3287] fix pycodestyle warnings
- E111 indentation is not a multiple of 4
- E117 over-indented
- E125 continuation line with same indent as next logical line
- E127 continuation line over-indented for visual indent
- E128 continuation line under-indented for visual indent
- E129 visually indented line with same indent as next logical line
- E131 continuation line unaligned for hanging indent
- E201 whitespace after '['
- E201 whitespace after '{'
- E202 whitespace before ')'
- E202 whitespace before ']'
- E202 whitespace before '}'
- E203 whitespace before '
- E203 whitespace before ','
- E222 multiple spaces after operator
- E225 missing whitespace around operator
- E228 missing whitespace around modulo operator
- E231 missing whitespace after ','
- E251 unexpected spaces around keyword / parameter equals
- E261 at least two spaces before inline comment
- E262 inline comment should start with '# '
- E265 block comment should start with '# '
- E301 expected 1 blank line, found 0
- E302 expected 2 blank lines, found 1
- E303 too many blank lines (2)
- E305 expected 2 blank lines after class or function definition, found 1
- E306 expected 1 blank line before a nested definition, found 0
- E401 multiple imports on one line
- E402 module level import not at top of file
- E501 line too long
- E502 the backslash is redundant between brackets
- E703 statement ends with a semicolon
- E713 test for membership should be 'not in'
- E722 do not use bare 'except'
- E741 ambiguous variable name 'l'
- W605 invalid escape sequence '\/'
2024-06-20 18:52:09 +03:00
Andrei Pavel
c0acd781c9
[#3287] fix bandit warnings 2024-06-20 18:52:09 +03:00
Andrei Pavel
158b3652d5
[#3350] revert to installing gtest sources for alpine and rpm
This is needed to make --with-gtest-source pass in jenkins.
There was a false misconception that all gtest packages install sources in
/usr/src/googletest. The reality is that alpine and rpm packages install shared
libraries instead.
2024-06-05 15:05:04 +03:00
Andrei Pavel
0bfe6acdac
[#3350] upgrade pip in hammer for rhel
Fixes this on RHEL 8: You are using pip version 9.0.3, however version 24.0 is available.
2024-06-04 11:50:05 +03:00
Andrei Pavel
51d17f49a7
[#3350] clean up some old revision logic in hammer 2024-06-04 11:50:05 +03:00
Andrei Pavel
d53b242a0b
[#3350] put bison and flex as free packages in hammer 2024-06-03 20:28:22 +03:00
Andrei Pavel
d1d3e20b6d
[#3350] install googletest packages in hammer 2024-06-03 20:28:16 +03:00
Marcin Godzina
0103b20ca5
[#3350] Updated gtest version to 1.14 2024-06-03 19:25:26 +03:00
Andrei Pavel
cac91f02b8 [#3445] hammer: add git and change bash to sh 2024-06-03 15:31:42 +00:00
Marcin Godzina
51c83b8780 [#3445] add alpine 3.20 to hammer 2024-06-03 15:31:42 +00:00
Slawek Figiel
be86521a42 [#2773] Update Hammer queries 2024-05-23 14:18:15 +02:00
Marcin Godzina
4500ae99b4 [#3418] remove os check before Postgres ddb grant 2024-05-20 14:15:40 +00:00
Andrei Pavel
c85bdf4df2
[#3393] ignore error in libyang tests
... and add bison and flex to ubuntu for completion
2024-05-17 08:47:55 +03:00
Marcin Godzina
3f7db23b61 [#3382] change to mariadb in ubuntu 24 2024-05-16 06:03:15 +00:00
Marcin Godzina
4f35701630 [#3393] add fedora 40 to hammer 2024-05-13 15:31:11 +00:00
Marcin Godzina
b500325a62 [#3382] add ubuntu 24.04 to hammer 2024-05-13 15:24:04 +00:00
Marcin Godzina
f05be9d466 [#3247] add rocky linux 9 2024-04-24 11:29:29 +00:00