Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0


## [Unreleased]
### Fixed
- [SCRIPT] [WIPE] Fix HAProxy jail name


## [2.34.4] - 2025-12-17
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ done

# Reset Haproxy configurations
/bin/echo "Resetting Haproxy configurations..."
/usr/sbin/jexec hapropxy service haproxy stop
/usr/sbin/jexec haproxy service haproxy stop
/usr/bin/find /usr/local/etc/haproxy.d/ -not -name backend_session.cfg -type f -delete
/usr/sbin/jexec hapropxy service haproxy start
/usr/sbin/jexec haproxy service haproxy start

# Reset Redis
/bin/echo "Resetting Redis configurations..."
Expand Down
2 changes: 1 addition & 1 deletion vulture_os/system/cluster/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ def get_certificate(self):

def set_state(self, state):
if state in [state_tmp for state_tmp, choice in STATE_CHOICES] and self._vstate != state:
logger.warn(f"[NODE SET STATE] State changed to: {state}")
logger.warning(f"[NODE SET STATE] State changed to: {state}")
self._vstate = state
self.save()

Expand Down
2 changes: 1 addition & 1 deletion vulture_os/system/netif/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
if value:
if netmask2prefix(value) == 0:
try:
test = int(value.replace('/', ''))

Check failure on line 104 in vulture_os/system/netif/form.py

View workflow job for this annotation

GitHub Actions / check

Ruff (F841)

vulture_os/system/netif/form.py:104:21: F841 Local variable `test` is assigned to but never used
except:

Check failure on line 105 in vulture_os/system/netif/form.py

View workflow job for this annotation

GitHub Actions / check

Ruff (E722)

vulture_os/system/netif/form.py:105:17: E722 Do not use bare `except`
raise ValidationError("Netmask/Prefix invalid. (ex: 255.255.255.0 or 24 or 64 (ipv6))")
return value

Expand All @@ -115,11 +115,11 @@
if value:
try:
value = int (value)
except:

Check failure on line 118 in vulture_os/system/netif/form.py

View workflow job for this annotation

GitHub Actions / check

Ruff (E722)

vulture_os/system/netif/form.py:118:13: E722 Do not use bare `except`
raise ValidationError("vlan must be 0 or an integer corresponding to VLAN ID")
else:
value = 0

return value

def clean_fib(self):
Expand All @@ -127,7 +127,7 @@
if value:
try:
value = int (value)
except:

Check failure on line 130 in vulture_os/system/netif/form.py

View workflow job for this annotation

GitHub Actions / check

Ruff (E722)

vulture_os/system/netif/form.py:130:13: E722 Do not use bare `except`
value = 0
else:
value = 0
Expand Down
4 changes: 2 additions & 2 deletions vulture_os/toolkit/network/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def write_network_config(logger):
def remove_netif_configs(logger, rc_confs):
if isinstance(rc_confs, str):
rc_confs = literal_eval(rc_confs)

from system.cluster.models import Cluster
node = Cluster.get_current_node()

Expand Down Expand Up @@ -573,7 +573,7 @@ def make_hostname_resolvable(logger, hostname_ip):

def delete_hostname(logger, hostname):
"""Remove hostname/IP from /etc/hosts

:param logger: API logger (to be called by an API request)
:param hostname: String containing the remote hostname to delete
:return:
Expand Down