Skip to content

Conversation

@grahamc
Copy link
Contributor

@grahamc grahamc commented Jul 8, 2021

Motivation and Context

Test zfs.get_prop on encryption and encryptionroot. These tests are novel because today they appear to always return "off" and null, respectively. Reported in #12337

Description

See above.

How Has This Been Tested?

I'm hoping the GitHub CI will run them and verify they fail 😬

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Library ABI change (libzfs, libzfs_core, libnvpair, libuutil and libzfsbootenv)
  • Documentation (a change to man pages or other documentation)

Checklist:

It appears that the current behavior is broken:

* 'encryption' always being "off"
* 'encryptionroot' always being null

Signed-off-by: Graham Christensen <graham@determinate.systems>
Copy link
Member

@gmelikov gmelikov left a comment

Choose a reason for hiding this comment

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

LGTM, but we should merge it after fixes to remain CI green for others.

@jwk404
Copy link
Contributor

jwk404 commented Jul 12, 2021

LGTM also, and I agree with @gmelikov about landing the tests after the bug is fixed. @grahamc is that something you're working on?

@jwk404 jwk404 added the Status: Blocked Depends on another pending change label Jul 12, 2021
@grahamc
Copy link
Contributor Author

grahamc commented Jul 14, 2021

I took a look at it with Matt's suggestion of:

Looks like it is not handled there so it will zcp_get_system_prop() will fall back on get_zap_prop() which may not be doing exactly the right thing for this property.

but I didn't make any progress. I don't think I can fix this bug, sorry.

@jwk404
Copy link
Contributor

jwk404 commented Jul 22, 2021

I'm going to close out this PR, while adding a note in 12337 that we need to be sure to commit these tests once the bug is fixed.

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

Labels

Status: Blocked Depends on another pending change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants