We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d22a9d7 commit b811205Copy full SHA for b811205
src/cephadm/cephadmlib/daemon_identity.py
@@ -88,6 +88,14 @@ def container_name(self) -> str:
88
name = f'ceph-{self.fsid}-{self.daemon_type}-{self.daemon_id}-{self.subcomponent}'
89
return name.replace('.', '-')
90
91
+ @property
92
+ def unit_name(self) -> str:
93
+ # NB: This is a minor hack because a subcomponent may be running as part
94
+ # of the same unit as the primary. However, to fix a bug with iscsi
95
+ # this is a quick and dirty workaround for distinguishing the two types
96
+ # when generating --cidfile and --conmon-pidfile values.
97
+ return f'ceph-{self.fsid}@{self.daemon_type}.{self.daemon_id}.{self.subcomponent}'
98
+
99
@property
100
def legacy_container_name(self) -> str:
101
raise ValueError(
0 commit comments