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

Harmonization of resource names for SAP HANA SR clusters #20401

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

jankohoutek
Copy link
Contributor

@jankohoutek jankohoutek commented Oct 15, 2024

Copy link

Great PR! Please pay attention to the following items before merging:

Files matching lib/**.pm:

  • Consider adding or extending unit tests in t/

This is an automatically generated QA checklist based on modified files.

Copy link
Contributor

@alvarocarvajald alvarocarvajald left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -129,11 +129,12 @@ sub run_cmd {

sub get_promoted_hostname {
my ($self) = @_;
my $master_resource_type = get_var('USE_SAP_HANA_SR_ANGI') ? "mst" : "msl";
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see mst_ resources in SUSE/qe-sap-deployment#284. Are they coming later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, It's preparation for angi code.

@@ -298,11 +299,12 @@ sub is_hana_resource_running {
my ($self, %args) = @_;
$args{quiet} //= 0;
my $hostname = $self->{my_instance}->{instance_id};
my $master_resource_type = get_var('USE_SAP_HANA_SR_ANGI') ? "mst" : "msl";
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@jankohoutek jankohoutek Oct 15, 2024

Choose a reason for hiding this comment

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

? It's local one line statement. What we will benefit from have it in sub?

Copy link
Contributor

Choose a reason for hiding this comment

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

to keep this logic centralized, let say tomorrow we want to change setting name and/or triplet to use as name

@@ -208,10 +208,11 @@ sub run {
# Do the HANA "magic" if needed
if ($cluster_type eq 'hana') {
my $remoteHost = $hostname;
my $master_resource_type = get_var('USE_SAP_HANA_SR_ANGI') ? "mst" : "msl";
Copy link
Contributor

Choose a reason for hiding this comment

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

I can see this file only used in schedule schedule/publiccloud/ha_sap.yml

It this schedule or test module still used anywhere? Is there a way to run a VR for this change? Is this test code related to qe-sap-deployment?

Copy link
Contributor Author

@jankohoutek jankohoutek Oct 15, 2024

Choose a reason for hiding this comment

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

DUNNO. It's another hard coded resource name and now it will work much better, if run.

Copy link
Member

@asmorodskyi asmorodskyi left a comment

Choose a reason for hiding this comment

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

LGTM

@jankohoutek jankohoutek merged commit 3ae5433 into os-autoinst:master Oct 23, 2024
10 checks passed
feri pushed a commit to feri/os-autoinst-distri-opensuse that referenced this pull request Oct 30, 2024
…#20401)

* Harmonization of resource names for HANA HA

* Update 11_hacluster.t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants