-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NFS exports restored as read-only #2912 #2927
NFS exports restored as read-only #2912 #2927
Conversation
Fix translation of DB dump derived config-save field names to NFS export create API field names. Affects Web-UI surfaced NFS export config of: - Access type ('Writable'/'Read only') - Response type ('async'/'sync') for NFS exports created via a config restore process. Note that we maintain DB dump derived config-save field names in the generated API calls (ignored currently), to enable future API field name alignment to DB model field names. At which point the additional fields added here to the API payload would themselves become redundant and up for deprecation, and in the change-over period ignored.
TestingAn rpm was build and installed on a Leap 15.6 OS host using this PRs branch. The following Shares & their respective NFS exports were created:
And OS config confirmed:
This config was then saved via SYSTEM -> Config Backups - "Backup current config" (button). All NFS exports (above) where then deleted, and the following Shares and a single NFS export was created via the Web-UI: Shares:
A prior issue reproducer config-save file (containing a saved NFS export for NFS-share) was then uploaded and replayed, resulting in:
Note the newly added repeat value fields of 'mod_choice', and 'sync_choice' in the above.
The original 4 NFS exports pertaining to the still existing shares was also then replayed/applied; resulting in:
Reflected in the underlying OS config:
|
Merging as per last comment test result. We appear to now successfully restore 'Access type', as per issue detailed failure. And similarly to have also fixed an identical failure found during development re restoring 'Response type'. |
Fix translation of DB dump derived config-save field names to NFS export create API field names.
Fixes #2912
Affects Web-UI surfaced NFS export config of:
Note that we maintain DB dump derived config-save field names in the generated API calls (ignored currently), to enable future API field name alignment to DB model field names. At which point the additional fields added here to the API payload would themselves become redundant and up for deprecation, and in the change-over period ignored.