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

Don't start evmserverd if messaging is not configured #196

Conversation

agrare
Copy link
Member

@agrare agrare commented Oct 13, 2022

Only start evmserverd once database and messaging have been configured

NOTE added a third state to ManageIQ Server: running, not running, not configured so it is consistent with the database status

image

image

Depends on:

Required for:

@agrare agrare force-pushed the dont_start_evmserverd_if_messaging_not_configured branch from 51c2070 to 0fab933 Compare October 13, 2022 19:38
Comment on lines 20 to 22
say e.result.output
say e.result.error
say ""
Copy link
Member

Choose a reason for hiding this comment

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

where is say defined? or is it a global method?

Copy link
Member Author

Choose a reason for hiding this comment

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

I see this used everywhere, can check where it is defined though

Copy link
Member

Choose a reason for hiding this comment

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

I assume it comes from highline globally.

@Fryguy
Copy link
Member

Fryguy commented Oct 13, 2022

Love the refactoring, but wondering if that should be a separate PR? I'm having trouble separating the refactor from the "Dont start evmserverd if messaging not configured"

@Fryguy
Copy link
Member

Fryguy commented Oct 13, 2022

Oh nvm, I didn't see that the "depends on" actually was "built on" (I assumed it was an independent PR).

@agrare
Copy link
Member Author

agrare commented Oct 13, 2022

@Fryguy you mean like #194 ?

@agrare agrare changed the title Dont start evmserverd if messaging not configured [WIP] Dont start evmserverd if messaging not configured Oct 13, 2022
@miq-bot miq-bot added the wip label Oct 13, 2022
@agrare agrare force-pushed the dont_start_evmserverd_if_messaging_not_configured branch 8 times, most recently from 00d4abb to 19c4f04 Compare October 17, 2022 13:14
@Fryguy
Copy link
Member

Fryguy commented Oct 17, 2022

#195 is merged

@agrare agrare force-pushed the dont_start_evmserverd_if_messaging_not_configured branch from 19c4f04 to c3dff5a Compare October 17, 2022 13:45
Comment on lines -190 to -195
def configure_messaging_type(value)
say(__method__.to_s.tr("_", " ").titleize)

ManageIQ::ApplianceConsole::Utilities.rake_run!("evm:settings:set", ["/prototype/messaging_type=#{value}"])
end

Copy link
Member Author

Choose a reason for hiding this comment

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

NOTE this will be the default (once ManageIQ/manageiq#21997 is merged) and will not need to be set by appliance console

@agrare agrare force-pushed the dont_start_evmserverd_if_messaging_not_configured branch from 9b6a8d4 to 1327aca Compare October 17, 2022 15:10
@miq-bot
Copy link
Member

miq-bot commented Oct 17, 2022

Checked commits agrare/manageiq-appliance_console@c3dff5a~...1327aca with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
6 files checked, 0 offenses detected
Everything looks fine. 🍪

@agrare agrare changed the title [WIP] Dont start evmserverd if messaging not configured Don't start evmserverd if messaging is not configured Oct 17, 2022
@agrare
Copy link
Member Author

agrare commented Oct 17, 2022

Okay ran a live test setting up an appliance and works as expected, taking out of WIP

@miq-bot miq-bot removed the wip label Oct 17, 2022
@Fryguy Fryguy merged commit eff5253 into ManageIQ:master Oct 18, 2022
@Fryguy Fryguy self-assigned this Oct 18, 2022
@agrare agrare deleted the dont_start_evmserverd_if_messaging_not_configured branch October 18, 2022 16:36
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 18, 2022
Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
- Don't start evmserverd until messaging is configured (ManageIQ#196)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 19, 2022
Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
- **BREAKING** Don't start evmserverd until messaging is configured (ManageIQ#196)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 19, 2022
Breaking
- Don't start evmserverd until messaging is configured (ManageIQ#196)

Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 19, 2022
Breaking
- Don't start evmserverd until messaging is configured (ManageIQ#196)

Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 19, 2022
Breaking
- Don't start evmserverd until messaging is configured (ManageIQ#196)

Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 20, 2022
Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
- Don't start evmserverd until messaging is configured **BREAKING** (ManageIQ#196)
- Simplify messaging options by saving in yml files (ManageIQ#197)
agrare added a commit to agrare/manageiq-appliance_console that referenced this pull request Oct 20, 2022
Fixed
- Don't require pressing any key twice for message configuration (ManageIQ#193)

Added
- Report messaging configuration on summary info page (ManageIQ#190)

Changed
- Refactor EvmServer operations (ManageIQ#194)
- Only start evmserverd after all application configuration is done (ManageIQ#195)
- **BREAKING** Don't start evmserverd until messaging is configured **BREAKING** (ManageIQ#196)
- Simplify messaging options by saving in yml files (ManageIQ#197)
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.

None yet

3 participants