Jump to content

User:Caleb Cooper/sandbox

From pool
This content is in the User Namespace. User-Pages are ideal for making notes, preparing content, etc.

hj

Issue 1 (no issue in 1.35)

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


1 2 2
k
e 2
3 r


PagePool PagePool  Folder   Class   Speed  DiskClassStr     Unallocated     Unallocated        Total       Disk  AddSpa AddSpa AddSpace    AddSpace        AddSpace                AddSpace             Restripe    Active
 Index   ClassInd  Index    Index   Index                    PageCount      BlockCount      BlockCount    Count  Stats  Failur Failure  OptimalBlockCou OptimalPageCoun             Debug               Reserved  Controller
======= ======== ====== ======== === =============== ============= =============== ============= ====== ==== ====== ====== =============== ============= ============================== ========= ==========
       1        4        3        6     1 <box>Write-Intensive</box>          503203      4122238784      7814439360     20      0      0 (0) Fals       244201230           59620                                (1) None        61640
       1        5        3        6     1 Write-Intensive          805125      4122238784      7814439360     20      0      0 (0) Fals       390721968           95392                                (1) None        61640
       1        6        3        6     1 Write-Intensive          885638      4122238784      7814439360     20      0      0 (0) Fals       429794164          104931                                (1) None        61640
       1       13        3        2     2 10K                     3401762     27867228535     33405320535     95      0      0 (0) Fals      1043916266          254863                                (1) None        61640
       1       14        3        2     2 10K                     5442819     27867228535     33405320535     95      0      0 (0) Fals      1670266026          407780                                (1) None        61640
       1       15        3        2     2 10K                     5987100     27867228535     33405320535     95      0      0 (0) Fals      1837292629          448558                                (1) None        61640
       1       16        3        2     1 10K                    11039261     90433618553    133621282425     95      0      0 (0) Fals      4175665075         1019450                                (1) None        61640
       1       17        3        2     1 10K                    17662817     90433618553    133621282425     95      0      0 (0) Fals      <point-here-tl>6681064120         1631120                                (1) None        61640
       1       18        3        2     1 10K                    19429098     90433618553    133621282425     95      1      0 (0) Fals      7349170532         1794232                                (1) None        61640
Walk: Display 9 of 9


Issue 2

This expands
asdf
<box>asfs</box>
asdf



Issue 3

zmq_cmd_cleanup_dummy_storage_network.py
#!/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")