Skip to content

Conversation

mdbooth
Copy link
Contributor

@mdbooth mdbooth commented Jan 16, 2023

The previous SSH test was prone to sporadic failures with a failure rate above 10% for the amphora driver in vh-mecha-central. The HTTP test has been reliable so far in testing.

The liveliness periodic invokes server.sh with -u centos, which both supplied the username to use when logging in via SSH and enabled the test. We no longer require a login username for the test so we add a new option -l which enables the test without taking an option. We retain the -u option for compatibility with the periodic. It can be removed after we have updated the periodic.

The previous SSH test was prone to sporadic failures with a failure rate
above 10% for the amphora driver in vh-mecha-central. The HTTP test has
been reliable so far in testing.

The liveliness periodic invokes server.sh with `-u centos`, which both
supplied the username to use when logging in via SSH and enabled the
test. We no longer require a login username for the test so we add a new
option `-l` which enables the test without taking an option. We retain
the `-u` option for compatibility with the periodic. It can be removed
after we have updated the periodic.
@openshift-ci openshift-ci bot requested a review from mandre January 16, 2023 17:12
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 16, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mdbooth

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

lb_ids+=("${lb_id}")

lb_listener_id="$(openstack loadbalancer listener create --wait --name "$name" -f value -c id --protocol TCP --protocol-port 22 "$lb_id")"
lb_listener_id="$(openstack loadbalancer listener create --wait --name "$name" -f value -c id --protocol TCP --protocol-port 80 "$lb_id")"
Copy link
Contributor

Choose a reason for hiding this comment

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

since you changed the port, I guess we could remove the security group on line 84

but you can also leave it here for debug purpose, no strong opinion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did actually initially take this out along with the icmp one.. However I decided not to remove them because IIUC there are at least theoretically other users of this script?

I wonder if @pierreprinetti knows if these should stay or not.

Copy link
Contributor

Choose a reason for hiding this comment

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

There are not afaik, and actually I believe we could lower complexity by removing options not relevant for the liveness check. And rename it accordingly

@EmilienM
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Jan 16, 2023
@openshift-merge-robot openshift-merge-robot merged commit 8d182f0 into main Jan 16, 2023
@openshift-merge-robot openshift-merge-robot deleted the robustify-liveliness-check branch January 16, 2023 17:39
mdbooth added a commit to shiftstack/release that referenced this pull request Jan 16, 2023
Landing shiftstack/shiftstack-ci#199 and
shiftstack/shiftstack-ci#200 means we no longer
need any complications in the liveliness check relating to users or ssh
keys.
openshift-merge-robot pushed a commit to openshift/release that referenced this pull request Jan 17, 2023
Landing shiftstack/shiftstack-ci#199 and
shiftstack/shiftstack-ci#200 means we no longer
need any complications in the liveliness check relating to users or ssh
keys.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants