User:Caleb Cooper/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Tag: 2017 source edit
 
(35 intermediate revisions by the same user not shown)
Line 1:
{| class="wikitable filterable" width="300"
{{#drawio:ChartName|type=svg|max-width=500px}}
|-
 
!ID
! class="unfilterable" |Name
!Class
!Gender
!Test
|-
|001||Tom||A||M
|
|-
|002||Dan||A||M
|
|-
|003||Ryan||B||M
|
|-
|004||Christine||C||F
|
|-
|005||Jane||D||F
|
|-
|006||Albert||D||M
|
|-
|007||Rose||A||F
|
|-
|008||Viola||B||F
|
|-
|009||Jeramy||C||M
|
|-
|010||Ken||D||M
|
|}
 
{| class="wikitable sortable" width="300"
[[File:Mcafee.png|150px]]
 
 
 
== Issue 1 (no issue in 1.35) ==
<pre class="shell">
Driver Status: Ok
RAID LUN 0 Degraded.<point-here-tr>
*!! RAID LUN contains 256 lost blocks. !!*
(raidtool -W 0) clears blocks.
(raidtool -w 0) lists blocks.
14 Drives (f,2,14,11,8,10,12,1,3,5,4,9,15,13)
<box>RAID 50</box> (64KB sectPerSU)
Capacity 5,185,085,374,464 bytes vc
</pre>
<br/>
{| class="wikitable"
|+
!1
!
!2
!
|-
!ID
! class="unfilterable" |Name
!Class
!Gender
!Test
|-
|001||Tom||A||M
|
|k-
|002||Dan||A||M
|
|-
|003||Ryan||B||M
|
|-
|004||Christine||C||F
|e
|
|-
|005||Jane||D||F
|
|2
|-
|006||Albert||D||M
|
|3-
|007||Rose||A||F
|r
|
|-
|008||Viola||B||F
|
|-
|009||Jeramy||C||M
|
|-
|010||Ken||D||M
|
|}
 
<br />
 
<pre class="shell">
Driver Status: Ok
RAID LUN 0 Degraded.<point-here-tr>
*!! RAID LUN contains 256 lost blocks. !!*
(raidtool -W 0) clears blocks.
(raidtool -w 0) lists blocks.
14 Drives (f,2,14,11,8,10,12,1,3,5,4,9,15,13)
<box>RAID 50</box> (64KB sectPerSU)
Capacity 5,185,085,374,464 bytes
</pre>
<br/><br/>
 
<syntaxhighlight lang="text" highlight="4,7" class="scroll">
Line 58 ⟶ 106:
</syntaxhighlight>
 
== Issue Two ==
 
== Issue 2 ==
{{Expand|This expands|
<pre>
Line 66 ⟶ 113:
asdf
</pre>}}
 
 
== Issue 3 ==
: {{code|zmq_cmd_cleanup_dummy_storage_network.py}}
<syntaxhighlight lang=bash line highlight=36>
#!/usr/bin/python
###########################################################################
# Copyright (C) Dell EMC 2018
# All rights reserved.
# Licensed material -- property of Dell EMC
#
###########################################################################
 
import json
import sys
 
sys.path.append('/cyc_host/cyc_service/lib')
sys.path.append('/cyc_host/cyc_service/lib/util')
 
from zmq_cp_command import *
from util import file_util, log_service
 
 
###########################################################################
# Class to send a request to the CP to clean up storage dummy network.
###########################################################################
class ZmqCpCmdCleanupStorageDummyNetwork(ZmqCpCommand):
cp_command_path = "com.emc.cyclone.contexts.networkconfiguration.domain.commands.ndu.CleanupDummyStorageNetworkCommand"
 
def __init__(self, debug=False, timeout_in_secs=None):
 
super(ZmqCpCmdCleanupStorageDummyNetwork, self).__init__("cleanup_storage_dummy_network", self.cp_command_path,
debug=debug, timeout_in_secs=timeout_in_secs)
 
def response_validator(self):
''' response_validator
Determine if the response has all required info.'''
super(ZmqCpCmdCleanupStorageDummyNetwork, self).response_validator()
 
 
<box>def cleanup_storage_dummy_network():</box>
"""
This method cleans up storage dummy network.
"""
 
try:
rsp = ZmqCpCmdCleanupStorageDummyNetwork().execute()
if rsp[ZmqCpCommand.response_status_tag] == "OK":
returnval = "SUCCESS"
else:
returnval = "FAILURE"
 
except ZmqCpCommandException as err:
log_service.get_logger().error("Failed to execute upload zmq command: {}".format(err))
returnval = "FAILURE"
return returnval
 
 
 
if __name__ == '__main__':
ret = cleanup_storage_dummy_network()
if ret == "SUCCESS":
print("Dummy storage network has been removed successfully")
else:
print("Failed to remove dummy storage network")
 
</syntaxhighlight>