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

250 Commits

Author SHA1 Message Date
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
Marcin Godzina
5390c1978f [#3307] release changes 2024-03-22 15:55:27 +00:00
Tomek Mrugalski
f201707b85 [#3249] hammer fix
- hammer supported-systems works again
2024-03-20 11:07:28 +00:00
Wlodek Wencel
416a072394 [#3237] release changes 2024-01-29 10:17:26 +01:00
Andrei Pavel
223dc3aad3
[#3229] hammer.py prepare-system --just-configure 2024-01-26 11:02:14 +02:00
Wlodzimierz Wencel
fb43fa2fa7 [#3186] arm packages can be build and uploaded, new systems support added 2024-01-03 10:49:14 +00:00
Wlodek Wencel
ce359006a7 [#3128] freeradius removed from hammer.py 2023-12-05 09:15:47 +00:00
Andrei Pavel
60e92acc09
[#3147] trivial hammer fix: don't move files
Don't move files to themselves.

Solves error: mv: 'kea-pkg/isc-kea-2.5.4-r20231113065823.apk' and
'kea-pkg/isc-kea-2.5.4-r20231113065823.apk' are the same file
2023-11-13 12:04:34 +02:00
Andrei Pavel
1b4b3a6b87
[#2969] add tex-gyre back to hammer for debian
tex-gyre is needed for generating PDF with sphinx.
2023-11-13 11:49:32 +02:00
Andrei Pavel
aa36f82f98
[#2969] fix postgresql dependencies on rhel 2023-11-07 09:59:22 +02:00
Andrei Pavel
82b3ee8457
[#2969] regenerate key to avoid SSL errors in DB
Prevents this error that happens on Debian 10:
- SSL error: Unable to get private key from '/etc/mysql/ssl/kea-server.key'
2023-11-07 09:59:22 +02:00
Andrei Pavel
0deb3df1ef
[#2969] fix a logging issue in hammer.py
Not all the lines of output were captured when running execute()
with capture=True.
2023-11-07 09:59:22 +02:00
Andrei Pavel
cafead21a9
[#2969] fix prepare-system in hammer.py
- fixes this error:

```
$ ./hammer.py prepare-system -p local -s fedora -r 36 -w all
  File "hammer.py", line 3031, in _check_system_revision
    msg = msg % (revision, "', '".join(revs))
TypeError: sequence item 0: expected str instance, tuple found
```

- also marks CentOS, FreeBSD 12, and Alpine 3.15 as unsupported
2023-11-07 09:59:22 +02:00
Andrei Pavel
81843f6f2d
[#2969] hammer.py: log error on systemctl restart 2023-11-07 09:59:21 +02:00
Andrei Pavel
7f97f9ce3a
[#2969] remove sphinx-tabs from hammer.py
- use package managers to install sphinx where possible
- simplify the logic in some areas
2023-11-07 09:59:21 +02:00
Andrei Pavel
e375aece9e
[#2969] add sphinx-tabs to fedora, freebsd, alpine 2023-10-26 16:34:22 +03:00
Andrei Pavel
9ff68eba35
[#2969] update supported-systems list in hammer.py 2023-10-26 16:34:22 +03:00
Andrei Pavel
2b553cd929
[#2969] revised the quickstart page
- added link to the cloudsmith tarball page
- added |cloudsmith_repo| substitution
- added sphinx-tabs extension
- changed yum to dnf because with the deprecation of CentOS 7, all
  remaining supported rpm distributions have dnf by default.
- changed `/path/to/your/kea6/config/file.json` to the configuration
  file installed by default `/etc/kea/kea-dhcp6.conf` for easier startup
- regenerated doc/sphinx/src/requirements.txt mainly to include
  sphinx-tabs
- added sphinx-tabs to hammer.py
2023-10-26 16:34:22 +03:00