Skip to content

Commit

Permalink
Renamed storagemond directory and corresponding change to setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
assrinivasan committed May 25, 2024
1 parent 8ad06d9 commit b95d4e2
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 9 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env python3

"""
stormond
SSD device monitoring daemon for SONiC
storagemond
Strage Monitoring device monitoring daemon for SONiC
"""

import os
Expand All @@ -24,7 +24,7 @@ from swsscommon import swsscommon
SIGNALS_TO_NAMES_DICT = dict((getattr(signal, n), n)
for n in dir(signal) if n.startswith('SIG') and '_' not in n)

SYSLOG_IDENTIFIER = "stormond"
SYSLOG_IDENTIFIER = "storagemond"

STORAGE_DEVICE_TABLE_NAME = "STORAGE_INFO"

Expand Down Expand Up @@ -122,7 +122,7 @@ class DaemonStorage(daemon_base.DaemonBase):
# Get Static attributes and update the State DB, once
def get_static_fields(self):

# Get relevant information about each SSD on the device
# Get relevant information about each Storage Device on the switch
for storage_device in self.storage.devices:
try:
if self.storage.devices[storage_device] is None:
Expand All @@ -142,7 +142,7 @@ class DaemonStorage(daemon_base.DaemonBase):
self.log_info("Storage Device: {}, Device Model: {}, Serial: {}, FW: {}".format(storage_device, static_kvp_dict["device_model"], static_kvp_dict["serial"], static_kvp_dict["firmware"]))
self.read_static_fields[storage_device] = True

# update SSD Device Status to DB
# update Storage Device Status to DB
self.update_storage_info_status_db(storage_device, self.static_fields, static_kvp_dict)
self.updated_static_fields_statedb[storage_device] = True

Expand Down Expand Up @@ -171,7 +171,7 @@ class DaemonStorage(daemon_base.DaemonBase):
.format(storage_device, dynamic_kvp_dict["health"], dynamic_kvp_dict["temperature"], dynamic_kvp_dict["io_reads"], \
dynamic_kvp_dict["io_writes"], dynamic_kvp_dict["reserved_blocks"]))

# update SSD Device Status to DB
# update Storage Device Status to DB
self.update_storage_info_status_db(storage_device, self.dynamic_fields, dynamic_kvp_dict)

except Exception as ex:
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions sonic-stormond/setup.py → sonic-storagemond/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
setup(
name='sonic-stormond',
version='1.0',
description='SSD status daemon for SONiC',
description='Storage Device status daemon for SONiC',
license='Apache 2.0',
author='SONiC Team',
author_email='linuxnetdev@microsoft.com',
url='https://github.com/sonic-net/sonic-platform-daemons',
maintainer='Ashwin Srinivasan',
maintainer_email='assrinivasan@microsoft.com',
scripts=[
'scripts/stormond',
'scripts/storagemond',
],
setup_requires=[
'pytest-runner',
Expand All @@ -38,6 +38,6 @@
'Programming Language :: Python :: 2.7',
'Topic :: System :: Hardware',
],
keywords='sonic SONiC ssd Ssd SSD ssdmon',
keywords='sonic SONiC ssd Ssd SSD ssdmond storage stormond storagemond',
test_suite='setup.get_test_suite'
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b95d4e2

Please sign in to comment.