Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Commit

Permalink
- more updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonw committed May 29, 2020
1 parent 6dba646 commit 65f2434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
4 changes: 4 additions & 0 deletions chroma_core/models/client_mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ def get_deps(self, state=None):
state = self.state

deps = []

if self.host.immutable_state:
return DependAll(deps)

if state == "mounted":
# Depend on this mount's host having LNet up. If LNet is stopped
# on the host, this filesystem will be unmounted first.
Expand Down
13 changes: 1 addition & 12 deletions chroma_core/models/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -898,19 +898,8 @@ class Meta:
ordering = ["id"]

def get_deps(self):
# Moving out of unconfigured into lnet_unloaded will mean that lnet will start monitoring and responding to
# the state. Once we start monitoring any state other than unconfigured is acceptable.
deps = self._common_deps()

if self.target_object.lnet_configuration:
deps.append(
DependOn(
self.target_object.lnet_configuration,
"lnet_unloaded",
unacceptable_states=["unconfigured"]
)
)

return DependAll(deps)

def description(self):
Expand All @@ -933,7 +922,7 @@ class Meta:
def get_deps(self):
deps = self._common_deps()

if self.target_object.lnet_configuration:
if self.target_object.lnet_configuration and not self.target_object.immutable_state:
deps.append(
DependOn(
self.target_object.lnet_configuration,
Expand Down

0 comments on commit 65f2434

Please sign in to comment.