-
Notifications
You must be signed in to change notification settings - Fork 2
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
Sle 15 sp3 #9
Sle 15 sp3 #9
Conversation
…ension but we ship .ko.xz bsc#1197290
Replace tab with spaces.
This reads the proposal for the modules watchdog and fence. This is neccessary when reading an earlier configuration.
Pull Request Test Coverage Report for Build 2832162981
💛 - Coveralls |
max lenngth 256 all ascii is allowed 33-126 instead of "*" and "/".
… from 33 until 125 expect of '*' and '/'. The identifier can be 256 character long However, for security and technical reasons, we only allow alphanumeric characters as well as '-' and '_'. The identifier must not be longer than 30 characters and it must be minimum 2 long. Add some check for SID and site identifier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few notes. Feel free to ignore all of them except the one about the Rakefile.
src/lib/sap_ha/configuration.rb
Outdated
@@ -86,6 +86,13 @@ def initialize(role = :master) | |||
@platform = SapHA::Helpers.platform_check | |||
end | |||
|
|||
# Funktion to refresh the proposals of some modules. This is neccessary when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: function
src/lib/sap_ha/semantic_checks.rb
Outdated
@@ -235,8 +239,7 @@ def integer_in_range(value, low, high, message = '', field_name = '') | |||
def sap_sid(value, message = '', field_name = '') | |||
message = "A valid SAP System ID consists of three characters, starts with a letter, and "\ | |||
" must not collide with one of the reserved IDs" if message.nil? || message.empty? | |||
flag = !SAP_SID_REGEXP.match(value).nil? | |||
flag &= !RESERVED_SAP_SIDS.include?(value) | |||
flag = !SAP_SID_REGEXP.match(value).nil? && !RESERVED_SAP_SIDS.include?(value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what just flag = SAP_SID_REGEXP.match?(value) && !RESERVED_SAP_SIDS.include?(value)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be a boolean value.
With your syntax it delivers nil if the regexp does not match and braeks the testcase:
https://github.com/yast/yast-sap-ha/runs/7764069782?check_suite_focus=true#step:6:190
src/lib/sap_ha/system/watchdog.rb
Outdated
@@ -108,11 +108,13 @@ def installed_watchdogs | |||
|
|||
# Get the list of all watchdog available in the system | |||
def list_watchdogs | |||
wmods = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np: I would say this initialization is not needed.
Rakefile
Outdated
@@ -17,7 +17,7 @@ | |||
|
|||
require "yast/rake" | |||
|
|||
Yast::Tasks.submit_to :sle15sp3 | |||
Yast::Tasks.submit_to :sle15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this change is wrong. If you have the right version of yast-rake, then sle15sp3 should work.
❌ Internal Jenkins job #1 failed |
Problem
If someone select an existing configuration the proposals will not read again. Unfortunately the proposal is saved into the configuration too. That is if the proposal was empty for the first time it will be empty next time too.
Furthermore I've detected that the modules in SLE15-SP4 ends with ".ko.zst".
Solution
After reading the selected configuration a new function refresh_all_proposals will be called.
I've changed the code for listing the modules in watchdog.rb tool. Now I'm using .gsub instead of File.basename