Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMC vnx block: Obtain IP information for multiple control nodes #1011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions delfin/drivers/dell_emc/vnx/vnx_block/component_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,3 +901,21 @@ def check_latest_timestamp(self, storage_id):
latest_time = file_latest_time
time.sleep(consts.CHECK_WAITE_TIME_SECONDS)
return latest_time, file_latest_time

def get_alert_sources(self):
try:
ip_list = []
domains = self.navi_handler.get_domain()
if domains:
for domain in domains:
host_ip = domain.get('ip_address')
ip_list.append({'host': host_ip})
return ip_list
except exception.DelfinException as e:
err_msg = "Get alerts sources failed: %s" % (e.msg)
LOG.error(err_msg)
raise e
except Exception as e:
err_msg = "Get alert sources failed: %s" % (six.text_type(e))
LOG.error(err_msg)
raise exception.InvalidResults(err_msg)
3 changes: 3 additions & 0 deletions delfin/drivers/dell_emc/vnx/vnx_block/vnx_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,6 @@ def get_capabilities(context, filters=None):

def get_latest_perf_timestamp(self, context):
return self.com_handler.get_latest_perf_timestamp(self.storage_id)

def get_alert_sources(self, context):
return self.com_handler.get_alert_sources()
Loading