Project

General

Profile

Bug #33861

Fix setting value on inherited attributes in middleware

Added by Vaibhav Chauhan about 1 year ago. Updated about 1 year ago.

Status:
Done
Priority:
No priority
Assignee:
William Grzybowski
Category:
Middleware
Target version:
Severity:
Low Medium
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

using old UI

```
before switching from Inherits(always) => Always

root@freenas:~ # midclt call pool.dataset.query '[["id", "=", "zpool/d0/z0"]]' '{"get": true}' | jq .sync {
"value": "ALWAYS",
"rawvalue": "always",
"parsed": "always",
"source": "INHERITED"
}

after switching from Inherits(always) => Always
root@freenas:~ # midclt call pool.dataset.query '[["id", "=", "zpool/d0/z0"]]' '{"get": true}' | jq .sync {
"value": "ALWAYS",
"rawvalue": "always",
"parsed": "always",
"source": "LOCAL"
}
```

doing same operation with middleware

```
root@freenas:~ # midclt call pool.dataset.query '[["id", "=", "zpool/d0/z0"]]' '{"get": true}' | jq .sync {
"value": "ALWAYS",
"rawvalue": "always",
"parsed": "always",
"source": "INHERITED"
}
root@freenas:~ # midclt call pool.dataset.update zpool/d0/z0 '{"sync": "ALWAYS"}'
null
root@freenas:~ # midclt call pool.dataset.query '[["id", "=", "zpool/d0/z0"]]' '{"get": true}' | jq .sync {
"value": "ALWAYS",
"rawvalue": "always",
"parsed": "always",
"source": "INHERITED"
}
```

Associated revisions

Revision 8125e03c (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/zfs): setting value on inherited attributes

Fixes #1253
Ticket: #33861

Revision 48daa02f (diff)
Added by William Grzybowski about 1 year ago

fix(middlewared/zfs): setting value on inherited attributes

Fixes #1253
Ticket: #33861

History

#2 Updated by William Grzybowski about 1 year ago

  • Status changed from Unscreened to In Progress
  • Target version set to 11.2-BETA1
  • Severity changed from New to Low Medium
  • Needs QA changed from Yes to No
  • Needs Doc changed from Yes to No
  • Needs Merging changed from Yes to No

#3 Updated by William Grzybowski about 1 year ago

  • Status changed from In Progress to Done

#4 Updated by Dru Lavigne about 1 year ago

  • Subject changed from sync values are little bit different when using OLD v/s new UI to Fix setting value on inherited attributes in middleware

Also available in: Atom PDF