Skip to content

qa: align quota.max_bytes to 4MB or 4KB in test_volumes.py#53160

Closed
lxbsz wants to merge 1 commit intoceph:mainfrom
lxbsz:fix_sizequota_new
Closed

qa: align quota.max_bytes to 4MB or 4KB in test_volumes.py#53160
lxbsz wants to merge 1 commit intoceph:mainfrom
lxbsz:fix_sizequota_new

Conversation

@lxbsz
Copy link
Member

@lxbsz lxbsz commented Aug 26, 2023

The quota.max_bytes must be aligned to 4MB if greater than or equal to 4MB, otherwise must align to 4KB.

Contribution Guidelines

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows

The quota.max_bytes must be aligned to 4MB if greater than or equal
to 4MB, otherwise must align to 4KB.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
@lxbsz lxbsz requested review from a team, dparmar18, rishabh-d-dave and vshankar August 26, 2023 02:44
@github-actions github-actions bot added cephfs Ceph File System tests labels Aug 26, 2023

# create 4 files of 1MB
self._do_subvolume_io(subvolname, subvolume_group=group, number_of_files=4)
# create 7 files of 1MB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to bump up number of files from 4 to 7?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, because the osize value changed from 4MB --> 8MB.

Comment on lines +1523 to +1524
# create one file of 8MB
file_size=self.DEFAULT_FILE_SIZE*8
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to be 8MB and not 8MiB, I hope this is not going to cause problems at IS_ALIGNED(x, a) (((x) & (int64_t(a) - 1)) == 0)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here the a is going to be 1 << 22 or 1 << 12

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, will fix them all.


# try creating w/ same subvolume name with size -- should set quota
self._fs_cmd("subvolumegroup", "create", self.volname, group, "1000000000")
self._fs_cmd("subvolumegroup", "create", self.volname, group, "1073741824") // 1GB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change // to #

@lxbsz
Copy link
Member Author

lxbsz commented Sep 14, 2023

Will fix this together with #50910.

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

Labels

cephfs Ceph File System tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants