# All files / src/app/ceph/block/rbd-details rbd-details.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    1405x

     <ng-template #usageNotAvailableTooltipTpl>
      <ng-container i18n>Only available for RBD images with <strong>fast-diff</strong> enabled</ng-container>
    </ng-template>

    <tabset *ngIf="selection?.hasSingleSelection">
      <tab i18n-heading
           heading="Details">
        <table class="table table-striped table-bordered">
          <tbody>
            <tr>
              <td i18n
                  class="bold col-sm-1">Name</td>
              <td class="col-sm-3">{{ selectedItem.name }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Pool</td>
              <td class="col-sm-3">{{ selectedItem.pool_name }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Data Pool</td>
              <td class="col-sm-3">{{ selectedItem.data_pool | empty }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Created</td>
              <td class="col-sm-3">{{ selectedItem.timestamp | cdDate }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Size</td>
              <td class="col-sm-3">{{ selectedItem.size | dimlessBinary }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Objects</td>
              <td class="col-sm-3">{{ selectedItem.num_objs | dimless }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Object size</td>
              <td class="col-sm-3">{{ selectedItem.obj_size | dimlessBinary }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Features</td>
              <td class="col-sm-3">
                <span *ngFor="let feature of selectedItem.features_name">
                  <span class="badge badge-pill badge-primary margin-right-sm">{{ feature }}</span>
                </span>
              </td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Provisioned</td>
              <td class="col-sm-3">
                <span *ngIf="selectedItem.features_name?.indexOf('fast-diff') === -1">
                  <span class="text-muted"
                        [tooltip]="usageNotAvailableTooltipTpl"
                        placement="right"
                        i18n>N/A</span>
                </span>
                <span *ngIf="selectedItem.features_name?.indexOf('fast-diff') !== -1">
                  {{ selectedItem.disk_usage | dimlessBinary }}
                </span>
              </td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Total provisioned</td>
              <td class="col-sm-3">
                <span *ngIf="selectedItem.features_name?.indexOf('fast-diff') === -1">
                  <span class="text-muted"
                        [tooltip]="usageNotAvailableTooltipTpl"
                        placement="right"
                        i18n>N/A</span>
                </span>
                <span *ngIf="selectedItem.features_name?.indexOf('fast-diff') !== -1">
                  {{ selectedItem.total_disk_usage | dimlessBinary }}
                </span>
              </td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Striping unit</td>
              <td class="col-sm-3">{{ selectedItem.stripe_unit | dimlessBinary }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Striping count</td>
              <td class="col-sm-3">{{ selectedItem.stripe_count }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Parent</td>
              <td class="col-sm-3">
                <span *ngIf="selectedItem.parent">{{ selectedItem.parent.pool_name }}
                  /{{ selectedItem.parent.image_name }}
                  @{{ selectedItem.parent.snap_name }}</span>
                <span *ngIf="!selectedItem.parent">-</span>
              </td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Block name prefix</td>
              <td class="col-sm-3">{{ selectedItem.block_name_prefix }}</td>
            </tr>
            <tr>
              <td i18n
                  class="bold col-sm-1">Order</td>
              <td class="col-sm-3">{{ selectedItem.order }}</td>
            </tr>
          </tbody>
        </table>
      </tab>
      <tab i18n-heading
           heading="Snapshots">
        <cd-rbd-snapshot-list [snapshots]="selectedItem.snapshots"
                              [poolName]="selectedItem.pool_name"
                              [rbdName]="selectedItem.name"></cd-rbd-snapshot-list>
      </tab>
      <tab i18n-heading
           heading="Configuration">
        <cd-rbd-configuration-table [data]="selectedItem['configuration']"></cd-rbd-configuration-table>
      </tab>
    </tabset>

    <ng-template
      #poolConfigurationSourceTpl
      let-row="row"
      let-value="value">
      <ng-container *ngIf="+value; else global">
        <strong i18n i18n-tooltip tooltip="This setting overrides the global value">Image</strong>
      </ng-container>
      <ng-template #global><span i18n i18n-tooltip tooltip="This is the global value. No value for this option has been set for this image.">Global</span></ng-template>
    </ng-template>