Skip to contentSkip to conversation

nvmet: store DHCHAP attributes

PATCH In review [email protected] 2 participants 2 messages Aug 23, 2025 – Sep 30, 2025 NVMe

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmet: store DHCHAP attributes

From: Hannes Reinecke <[email protected]>

The DHCHAP authentication is stored under hosts/, and are starting with 'dhchap_'. So add a 'dhchap' attribute group for the host object to correctly save and restore DHCHAP values.

---
 nvmet/nvme.py | 1 +
 1 file changed, 1 insertion(+)
nvmet/nvme.py +1 -0
index 59efdb5..679116e 100644
@@ -892,6 +892,7 @@ class Host(CFSNode):
         '''
         super(Host, self).__init__()
 
+        self.attr_groups = ['dhchap']
         self.nqn = nqn
         self._path = "%s/hosts/%s" % (self.configfs_dir, nqn)
         self._create_in_cfs(mode)
Signature · 1 line
2.43.0
#1 lore raw
Quoted 16 lines · On 8/22/25 13:51, [email protected] wrote:

From: Hannes Reinecke <[email protected]>

The DHCHAP authentication is stored under hosts/, and are starting with 'dhchap_'. So add a 'dhchap' attribute group for the host object to correctly save and restore DHCHAP values.

---
  nvmet/nvme.py | 1 +
  1 file changed, 1 insertion(+)
nvmet/nvme.py +0 -0
index 59efdb5..679116e 100644

nvmet/nvme.py class Host(CFSNode): · line 898

Quoted 7 lines
nvmet/nvme.py +1 -0
@@ -892,6 +892,7 @@ class Host(CFSNode):
          '''
          super(Host, self).__init__()
 
+        self.attr_groups = ['dhchap']
          self.nqn = nqn
          self._path = "%s/hosts/%s" % (self.configfs_dir, nqn)
          self._create_in_cfs(mode)

Christoph?
Ping?

Cheers,

Hannes

Signature · 4 lines
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich