Skip to content
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

remove ntp from core #20623

Merged
merged 1 commit into from
Oct 6, 2020
Merged

remove ntp from core #20623

merged 1 commit into from
Oct 6, 2020

Conversation

kbrock
Copy link
Member

@kbrock kbrock commented Sep 29, 2020

We took time and timezone out of our app because it makes more sense to configure those parameters at the time of deployment. Tools like cockpit do that configuration for us. appliance console 99

Those configuration screens, also configure ntp server. Since ntp server is time related, this makes sense. The pr referenced above even has a comment that says we should remove this attribute next.

This PR removes ntp configuration from the core. It also needs to be removed from the ui.
Also will remove it from the ui.

We are removing ntp server here because it either needs to be add to the api, or removed from the system.
We need to make a decision so we can move forward with ManageIQ/manageiq-api#892

/cc @bdunne @skateman

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

Overall 👍 Can you set up a cross-repo test for this?

@@ -32333,10 +32333,6 @@ msgstr ""
msgid "Attach Volume"
msgstr ""

#: ../app/views/cloud_volume/attach.html.haml:25
msgid "Device Mountpoint"
Copy link
Member

Choose a reason for hiding this comment

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

Is this related?

Copy link
Member

Choose a reason for hiding this comment

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

@kbrock got the ✂️ in a groove and did a little too much.
✂️ 🔥 ✂️ 🔥 ✂️ 🔥

🍰 🍪 👏 🙇 😍 🎉

Copy link
Member

Choose a reason for hiding this comment

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

Mountpoint has ntp buried in it. Hence the overzealous ✂️ ✂️ ✂️ ✂️

@bdunne bdunne self-assigned this Sep 30, 2020
Copy link
Member

@jrafanie jrafanie left a comment

Choose a reason for hiding this comment

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

Other than the extra lines deleted pointed out by Brandon, I think this greatly depends on the results of the discussion in ManageIQ/manageiq-api#892 or that discussion should move here.

@@ -32333,10 +32333,6 @@ msgstr ""
msgid "Attach Volume"
msgstr ""

#: ../app/views/cloud_volume/attach.html.haml:25
msgid "Device Mountpoint"
Copy link
Member

Choose a reason for hiding this comment

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

@kbrock got the ✂️ in a groove and did a little too much.
✂️ 🔥 ✂️ 🔥 ✂️ 🔥

🍰 🍪 👏 🙇 😍 🎉

@@ -11,7 +11,6 @@
"Example (Boolean): #{__FILE__} -s 1 -p ui/mark_translated_strings -v true -t boolean\n" \
"Example (Symbol): #{__FILE__} -s 1 -p workers/worker_base/queue_worker_base/ems_metrics_collector_worker/defaults/poll_method -v escalate -t symbol\n" \
"Example (Float): #{__FILE__} -s 1 -p capacity/profile/1/vcpu_commitment_ratio -v 1.5 -t float" \
"Example (Array): #{__FILE__} -s 1 -p ntp/server -v 0.pool.ntp.org,1.pool.ntp.org -t array"
Copy link
Member

Choose a reason for hiding this comment

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

ooh, you found that one too... nice

# dozens of calls to `systemctl restart chronyd` simultaneously.
# Instead, this method will allow it to only happen once on
# the reload of settings in evmserverd.
private def activate_settings_for_appliance
Copy link
Member

Choose a reason for hiding this comment

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

❤️

ntp settings can be updated at configuration time along with timezone
and current time. makes more sense to consolidate these in one place.
Since all 3 are so necessary, they are available from the cloud/infra
configuration scripts and ui
@miq-bot
Copy link
Member

miq-bot commented Oct 2, 2020

Checked commit kbrock@50c6272 with ruby 2.6.3, rubocop 0.69.0, haml-lint 0.28.0, and yamllint
8 files checked, 0 offenses detected
Everything looks fine. 🍰

@kbrock
Copy link
Member Author

kbrock commented Oct 2, 2020

ok, fine. added mount points back. made my numbers worse but guess you gotta do what you gotta do.

kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 2, 2020
@kbrock
Copy link
Member Author

kbrock commented Oct 2, 2020

cross repo: ManageIQ/manageiq-cross_repo-tests#182

let me know if you want me to hit more repos with that

kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 3, 2020
Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

👍 LGTM, just waiting on cross-repo tests to go green

kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 5, 2020
kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 5, 2020
kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 5, 2020
kbrock added a commit to kbrock/manageiq-cross_repo-tests that referenced this pull request Oct 5, 2020
@kbrock
Copy link
Member Author

kbrock commented Oct 5, 2020

Ugh - don't know what my problem was but now cross repo tests are passing and this is good to go

Copy link
Member

@bdunne bdunne left a comment

Choose a reason for hiding this comment

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

Based on the discussions, it seems like everyone agrees that configuring NTP servers is something that does not belong in the application. (And it's also been removed from the UI in ManageIQ/manageiq-ui-classic#7369)

@bdunne bdunne merged commit efac3b0 into ManageIQ:master Oct 6, 2020
@bdunne
Copy link
Member

bdunne commented Oct 6, 2020

@kbrock Do you think we need a DB migration to remove any SettingsChange records for NTP servers?

@kbrock kbrock deleted the no_time_like_now branch June 10, 2022 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants