Skip to content

server: Update use_bytes of storage pools - #4360

Merged
DaanHoogland merged 1 commit into
apache:masterfrom
ravening:storage-pool-stats
Oct 21, 2020
Merged

DaanHoogland merged 1 commit into
apache:masterfrom
ravening:storage-pool-stats

Conversation

@ravening

Copy link
Copy Markdown
Member

Description

Update the used_bytes for all default primary storage pools
Also, get used_bytes of storage pool from the database instead of
memory

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)

Screenshots (if appropriate):

How Has This Been Tested?

Below sql query should return the latest used bytes of the storage pol

mysql> select * from storage_pool\G
*************************** 1. row ***************************
                   id: 1
                 name: primary1
                 uuid: 74d0b-9e65-3183-8345-e749fcd0e
            pool_type: NetworkFilesystem
                 port: 2049
       data_center_id: 1
               pod_id: NULL
           cluster_id: NULL
           used_bytes: 10363076608
       capacity_bytes: 52709818368
         host_address: 10.135.122.14
            user_info: NULL
                 path: /data/primary1
              created: 2020-07-10 09:27:51
              removed: NULL
          update_time: 2020-09-30 10:50:19
               status: Up
storage_provider_name: DefaultPrimary
                scope: ZONE
           hypervisor: KVM
              managed: 0
        capacity_iops: NULL
1 row in set (0.01 sec)

Update the used_bytes for all default primary storage pools
Also get used_bytes of storage pool from database instead of
memory
@weizhouapache weizhouapache changed the title Update use_bytes of storage pools server: Update use_bytes of storage pools Oct 1, 2020
@yadvr
yadvr requested a review from sureshanaparti October 1, 2020 10:14
@yadvr yadvr added this to the 4.15.0.0 milestone Oct 1, 2020
@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan package

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.

@blueorangutan

Copy link
Copy Markdown

Packaging result: ✔centos7 ✔centos8 ✔debian. JID-2230

@DaanHoogland

Copy link
Copy Markdown
Contributor

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests

@blueorangutan

Copy link
Copy Markdown

Trillian test result (tid-3030)
Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7
Total time taken: 30502 seconds
Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr4360-t3030-kvm-centos7.zip
Intermittent failure detected: /marvin/tests/smoke/test_hostha_kvm.py
Smoke tests completed. 84 look OK, 1 have error(s)
Only failed tests results shown below:

Test Result Time (s) Test File
test_hostha_enable_ha_when_host_in_maintenance Error 301.67 test_hostha_kvm.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants