-
Notifications
You must be signed in to change notification settings - Fork 355
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
add msa system pool volume disks alerts resources #761
Merged
Merged
Changes from 13 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
7fa7e4e
add msa report
oneWLuo 46be721
add msa report
oneWLuo 6c7c8b6
delete
luojiagen bf870c9
add msa report
luojiagen ac7e043
add msa report
luojiagen 8d41a1b
add msa report
luojiagen c99a206
Merge pull request #273 from luojiagen/hpe_msa
luopan-code 9d2e3fe
Merge branch 'master' into hpe_msa
tanjiangyu-ghca 88c9146
update msa code and insert trap info
luojiagen a586f06
update msa code and insert trap info
luojiagen 2be6172
Optimize dictionary values
luojiagen 438c305
Optimize dictionary values
luojiagen daf11d5
Merge pull request #285 from luojiagen/hpe_msa
luopan-code 22f9345
Basic problems of modifying code
luojiagen 1634b91
Basic problems of modifying code
luojiagen 5811eba
Basic problems of modifying code
luojiagen 8e5d08e
Basic problems of modifying code
luojiagen e9a077b
Basic problems of modifying code
luojiagen aef0655
Basic problems of modifying code
luojiagen d97e73e
Basic problems of modifying code
luojiagen 11cc4f7
Basic problems of modifying code
luojiagen a2c0db9
Basic problems of modifying code
luojiagen 8ad901a
Basic problems of modifying code
luojiagen c17d3e0
Basic problems of modifying code
luojiagen 8da358a
Basic problems of modifying code
luojiagen ba26f36
Basic problems of modifying code
luojiagen 4dded25
Merge pull request #292 from luojiagen/hpe_msa
luopan-code 7579def
Merge branch 'master' into hpe_msa
luojiagen 813d9c4
Add storage status:degraded
luojiagen 7e77527
Add storage status:degraded
luojiagen 6fdc7f3
Add storage status:degraded
luojiagen 5f42770
Merge pull request #313 from luojiagen/hpe_msa
luopan-code edfa46f
update vendor info
luojiagen 141c0a9
update vendor info
luojiagen c1c8486
update vendor info
luojiagen 71aa1be
update vendor info
luojiagen e762d71
Merge pull request #318 from luojiagen/hpe_msa
luopan-code 0622c15
update vendor info,alert info
luojiagen 934de63
update vendor info,alert info
luojiagen 8986c23
update vendor info,alert info
luojiagen f551569
update vendor info,alert info
luojiagen e3d07e1
update vendor info,alert info
luojiagen e74da26
update vendor info,alert info
luojiagen e1a817a
update vendor info,alert info
luojiagen 4aa9d09
update vendor info,alert info
luojiagen 76f2290
update vendor info,alert info
luojiagen ec4ba13
update vendor info,alert info
luojiagen 19acd4f
update vendor info,alert info
luojiagen 43e430d
Merge pull request #322 from luojiagen/hpe_msa
ghca-cxl 62f605f
update vendor info,alert info
luojiagen ba192ff
update vendor info,alert info
luojiagen 1642873
update alert info
luojiagen 2a2bfb5
Merge pull request #338 from luojiagen/hpe_msa
ghca-cxl 571387e
update alert info
luojiagen b6cd7e3
Merge pull request #345 from luojiagen/hpe_msa
ghca-cxl 5c7b236
update alert info time
luojiagen 0e43727
update vendor info,alert info
luojiagen f3ad701
update vendor info,alert info
luojiagen 38c7355
Merge pull request #351 from luojiagen/hpe_msa
ghca-cxl c847a98
Merge branch 'master' into hpe_msa
tanjiangyu-ghca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
from delfin.drivers import driver | ||
from delfin.drivers.hpe.hpe_msa import ssh_handler | ||
from delfin.drivers.hpe.hpe_msa.ssh_handler import SSHHandler | ||
|
||
|
||
class HpeMsaStorDriver(driver.StorageDriver): | ||
|
||
def __init__(self, **kwargs): | ||
super().__init__(**kwargs) | ||
self.ssh_hanlder = ssh_handler.SSHHandler(**kwargs) | ||
|
||
def reset_connection(self, context, **kwargs): | ||
self.ssh_hanlder.login() | ||
|
||
def get_storage(self, context): | ||
return self.ssh_hanlder.get_storage(self.storage_id) | ||
luojiagen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
def list_storage_pools(self, context): | ||
return self.ssh_hanlder.list_storage_pools(self.storage_id) | ||
|
||
def list_volumes(self, context): | ||
return self.ssh_hanlder.list_storage_volume(self.storage_id) | ||
|
||
def list_controllers(self, context): | ||
return self.ssh_hanlder.\ | ||
list_storage_controller(self.storage_id) | ||
|
||
def list_ports(self, context): | ||
return self.ssh_hanlder.list_storage_ports(self.storage_id) | ||
|
||
def list_disks(self, context): | ||
return self.ssh_hanlder.list_storage_disks(self.storage_id) | ||
|
||
def list_alerts(self, context, query_para=None): | ||
return self.ssh_hanlder.list_storage_error(query_para) | ||
|
||
def add_trap_config(self, context, trap_config): | ||
pass | ||
|
||
def remove_trap_config(self, context, trap_config): | ||
pass | ||
|
||
@staticmethod | ||
def parse_alert(context, alert): | ||
return SSHHandler.parse_alert(alert) | ||
|
||
def clear_alert(self): | ||
luojiagen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
pass |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong spelling of word
ssh_hanlder
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next version has been updated with parameters