]
Petr Kremensky commented on WFWIP-251:
--------------------------------------
The following events could be found in wildflyserver resource description after the scale
down:
{code}
Events:
Type Reason Age From
Message
---- ------ ---- ----
-------
Warning WildFlyServerScaledown 2m14s (x6 over 3m41s) wildflyserver-controller
Transaction recovery slowed down the scaledown.
Warning WildFlyServerScaledown 2m14s (x5 over 2m55s) wildflyserver-controller Errors
during transaction recovery scaledown processing. Consult operator log.
{code}
Operator error logs on scale down
---------------------------------
Key: WFWIP-251
URL:
https://issues.jboss.org/browse/WFWIP-251
Project: WildFly WIP
Issue Type: Bug
Components: OpenShift
Reporter: Petr Kremensky
Assignee: Ondrej Chaloupka
Priority: Critical
Labels: operator
Attachments: operator-logs.txt
Error messages can be found in operator logs after user performs a scale down task.
*reproduce*
* deploy operator {noformat}./build/run-openshift.sh{noformat}
* deploy quickstart project from operator repository {noformat}oc apply -f
deploy/crds/quickstart-cr.yaml{noformat}
* wait for both replicas to be ready {noformat}oc get pods -w
NAME READY STATUS RESTARTS AGE
quickstart-0 1/1 Running 0 32s
quickstart-1 1/1 Running 0 32s
wildfly-operator-5bcb545b46-2bjs8 1/1 Running 0 102s{noformat}
* scale down to 1 {noformat}oc patch wildflyserver quickstart -p
'[{"op":"replace", "path":"/spec/replicas",
"value":1}]' --type json{noformat}
* see the [^operator-logs.txt]
*actual*
Error messages in operator log
{noformat}
{"level":"error","ts":1571213256.675551,"logger":"wildlfyserver_resources","msg":"Failed
to update
resource","WildFlyServer.Namespace":"wildfly-test","WildFlyServer.Name":"quickstart","Resource.Name":"quickstart","Resource.Type":"*v1.StatefulSet","error":"Operation
cannot be fulfilled on statefulsets.apps \"quickstart\": the object has been
modified; please apply your changes to the latest version and try
again","stacktrace":"github.com/go-logr/zapr.(*zapLog...
{"level":"error","ts":1571213256.6756332,"logger":"wildflyserver_controller","msg":"Failed
to update
StatefulSet.","StatefulSet.Namespace":"wildfly-test","StatefulSet.Name":"quickstart","error":"Operation
cannot be fulfilled on statefulsets.apps \"quickstart\": the object has been
modified; please apply your changes to the latest version and try
again","stacktrace":"github.com/go-logr/zapr.(*zapLog...
{"level":"error","ts":1571213256.675672,"logger":"kubebuilder.controller","msg":"Reconciler
error","controller":"wildflyserver-controller","request":"wildfly-test/quickstart","error":"Operation
cannot be fulfilled on statefulsets.apps \"quickstart\": the object has been
modified; please apply your changes to the latest version and try
again","stacktrace":"github.com/go-logr/zapr.(*zapLog...
{noformat}
*expected*
No error messages in operator log.
Operator image build from
[
0a221ea|https://github.com/wildfly/wildfly-operator/commit/0a221eac5eb462...]