Skip to content

mgr/dashboard: Administration > Configuration > rgw_dns_name and rgw_dns_s3website_name not updatable via dashboard #60798

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

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

nmunet
Copy link
Contributor

@nmunet nmunet commented Nov 22, 2024

Fixes: https://tracker.ceph.com/issues/68976

Signed-off-by: Naman Munet [email protected]

Previously: users are not able to edit the configuration which have the 'can_update_at_runtime' flag as false.
Now:

  1. Users will be able to edit the configuration related with 'rgw' by forcefully editing the configuration if the 'can_update_at_runtime' flag is false for it.
  2. After navigating to Administration >> Configuration, by default configuration with filter level:basic is seen

Fixes Includes:

  1. by-passing 'can_update_at_runtime' flag for 'rgw' related configurations as the same can be updated at runtime via CLI. Also implemented a warning popup for user to make force edit to rgw related configurations.
  2. when navigated to Administration >> Configuration, modified configuration will be seen as we see in cli "ceph config dump", instead of configuration with filter level:basic
Screencast.from.2024-11-22.15-33-23.mp4

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

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
  • jenkins test rook e2e

@nmunet nmunet requested a review from a team as a code owner November 22, 2024 10:11
@nmunet nmunet requested review from dnyanee1997 and Achintk1491 and removed request for a team November 22, 2024 10:11
@nmunet nmunet requested review from aaSharma14 and nizamial09 and removed request for aaSharma14 November 22, 2024 10:11
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from 915b4d1 to 13eb9f0 Compare November 25, 2024 10:53
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from 13eb9f0 to d8f4b4e Compare November 26, 2024 07:09
@nmunet
Copy link
Contributor Author

nmunet commented Nov 26, 2024

jenkins retest this please

Copy link
Member

@nizamial09 nizamial09 left a comment

Choose a reason for hiding this comment

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

@nmunet left a few comments here. overall good but there are more room for improvements. thanks

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from d8f4b4e to 986ecaf Compare November 27, 2024 11:00
Copy link
Member

@nizamial09 nizamial09 left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you @nmunet

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from 986ecaf to 923758c Compare November 28, 2024 07:18
@nizamial09
Copy link
Member

jenkins test make check

@nizamial09
Copy link
Member

jenkins test api

@nizamial09
Copy link
Member

jenkins test submodules

@nizamial09
Copy link
Member

jenkins test dashboard

@nmunet
Copy link
Contributor Author

nmunet commented Dec 2, 2024

jenkins test api

@nmunet
Copy link
Contributor Author

nmunet commented Dec 2, 2024

jenkins test dashboard

@nmunet
Copy link
Contributor Author

nmunet commented Dec 2, 2024

jenkins test api

2 similar comments
@nmunet
Copy link
Contributor Author

nmunet commented Dec 3, 2024

jenkins test api

@nmunet
Copy link
Contributor Author

nmunet commented Dec 3, 2024

jenkins test api

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch 2 times, most recently from 3c73d49 to a25916c Compare December 5, 2024 13:31
@github-actions github-actions bot added the tests label Dec 5, 2024
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from a25916c to d80872f Compare December 6, 2024 05:35
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from d80872f to f3ca718 Compare December 6, 2024 07:27
@nmunet
Copy link
Contributor Author

nmunet commented Dec 6, 2024

jenkins test api

@nmunet
Copy link
Contributor Author

nmunet commented Dec 6, 2024

jenkins test dashboard

@nmunet
Copy link
Contributor Author

nmunet commented Dec 6, 2024

jenkins test windows

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from f3ca718 to ebe7ebc Compare December 6, 2024 12:16
@nmunet
Copy link
Contributor Author

nmunet commented Dec 9, 2024

jenkins test api

1 similar comment
@nmunet
Copy link
Contributor Author

nmunet commented Dec 9, 2024

jenkins test api

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from ebe7ebc to a0d7c87 Compare December 10, 2024 06:32
@nmunet
Copy link
Contributor Author

nmunet commented Dec 10, 2024

jenkins test api

@nmunet
Copy link
Contributor Author

nmunet commented Dec 10, 2024

jenkins test windows

@nmunet nmunet requested a review from nizamial09 December 10, 2024 12:09
Copy link
Contributor

@afreen23 afreen23 left a comment

Choose a reason for hiding this comment

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

Please fix the signed-off commit, thanks.

This is a good improvement, thanks 👍🏿

@nmunet nmunet force-pushed the edit-configuration-at-runtime branch 2 times, most recently from 3e13e0e to b559501 Compare December 16, 2024 08:24
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from b559501 to 4bb9c7f Compare December 16, 2024 09:57
@nmunet
Copy link
Contributor Author

nmunet commented Dec 16, 2024

jenkins test make check

…tions are not updatable at runtime

Fixes: https://tracker.ceph.com/issues/68976

Fixes Includes:
1) by-passing 'can_update_at_runtime' flag for 'rgw' related configurations as the same can be updated at runtime via CLI.
Also implemented a warning popup for user to make force edit to rgw related configurations.
2) when navigated to Administration >> Configuration, modified configuration will be seen as we see in cli "ceph config dump",
instead of configuration with filter level:basic

Signed-off-by: Naman Munet <[email protected]>
@nmunet nmunet force-pushed the edit-configuration-at-runtime branch from 4bb9c7f to 3181acc Compare December 16, 2024 16:21
@nmunet
Copy link
Contributor Author

nmunet commented Dec 17, 2024

jenkins test api

@nmunet
Copy link
Contributor Author

nmunet commented Dec 17, 2024

jenkins test make check

Copy link
Contributor

@afreen23 afreen23 left a comment

Choose a reason for hiding this comment

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

Non blocking comments but good for maintenance.

import { CriticalConfirmationModalComponent } from '~/app/shared/components/critical-confirmation-modal/critical-confirmation-modal.component';
import { ModalCdsService } from '~/app/shared/services/modal-cds.service';

const RGW = 'rgw';
Copy link
Contributor

Choose a reason for hiding this comment

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

We dont need to define same constant in both files.
We can move it to a generic file and call from that to both places.

This is for normal housekeeping (not blocking PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

will work on these changes in my next PR related to configuration, as we have more work to do here!
Thanks

@@ -118,7 +123,7 @@ export class ConfigurationFormComponent extends CdForm implements OnInit {
this.configForm.get('values').get(value.section).setValue(sectionValue);
});
}

this.forceUpdate = !this.response.can_update_at_runtime && response.name.includes(RGW);
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a generic helper function and move this alongwith the constant in a generic file calling at both places.

Suggested change
this.forceUpdate = !this.response.can_update_at_runtime && response.name.includes(RGW);
this.forceUpdate = !this.response.can_update_at_runtime && hasRGW(response.name);

@@ -143,7 +145,9 @@ export class ConfigurationComponent extends ListWithDetails implements OnInit {
if (selection.selected.length !== 1) {
return false;
}

return selection.selected[0].can_update_at_runtime;
if ((this.selection.selected[0].name as string).includes(RGW)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ((this.selection.selected[0].name as string).includes(RGW)) {
if (hasRGW(this.selection.selected[0].name)) {

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

Successfully merging this pull request may close these issues.

3 participants