-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(slurmctld): use peer relation for ingress ip
These changes add a peer relation for the slurmctld charm and replace using the slurmd interface to obtain the ingress_address with the new slurmctld-peer relation. The reason for this change is that we do not want to depend on the existence of the slurmd relation in order to know our ip. Using a peer relation we will always have resolvability so long as juju knows the ip address of the unit.
- Loading branch information
1 parent
60eae44
commit 70657d6
Showing
5 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright (c) 2024 Omnivector Corp | ||
# See LICENSE file for licensing details. | ||
|
||
"""Custom exceptions for the slurmctld operator.""" | ||
|
||
|
||
class IngressAddressUnavailableError(Exception): | ||
"""Exception raised when a slurm operation failed.""" | ||
|
||
@property | ||
def message(self) -> str: | ||
"""Return message passed as argument to exception.""" | ||
return self.args[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters