Bug 1538986
| Summary: | ServiceInstance can't recover from the invalid version update | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Qixuan Wang <qixuan.wang> |
| Component: | Service Broker | Assignee: | Jason Montleon <jmontleo> |
| Status: | CLOSED ERRATA | QA Contact: | Zihan Tang <zitang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.9.0 | CC: | aos-bugs, chezhang, jmatthew, jmontleo, qixuan.wang, zitang |
| Target Milestone: | --- | ||
| Target Release: | 3.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
undefined
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-03-28 14:23:11 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Qixuan Wang
2018-01-26 10:27:21 UTC
Can you tell me how you updated the version to 6? (In reply to Jason Montleon from comment #1) > Can you tell me how you updated the version to 6? Hi, version and other information are encoded with base64 and stored in the secret,so I changed its secret to update the version. Note: Step 1 and 2 can be skipped. Get the decoded parameters from web UI->secret->reveal secret 1. # oc get secret rh-mariadb-apb-parametersxxx -o yaml | grep parameters parameters: eyJteXNxbF9kYXRhYmFzZSI6ImRldmVsIiwibXlzcWxfdXNlciI6ImRldmVsIiwibXlzcWxfdmVyc2lvbiI6IjUuNiIsInNlcnZpY2VfbmFtZSI6Im15c3FsIiwibXlzcWxfcGFzc3dvcmQiOiIxMTExMTEifQ== 2. Decode parameters # echo -n 'eyJteXNxbF9kYXRhYmFzZSI6ImRldmVsIiwibXlzcWxfdXNlciI6ImRldmVsIiwibXlzcWxfdmVyc2lvbiI6IjUuNiIsInNlcnZpY2VfbmFtZSI6Im15c3FsIiwibXlzcWxfcGFzc3dvcmQiOiIxMTExMTEifQ==' | base64 -d {"mysql_database":"devel","mysql_user":"devel","mysql_version":"5.6","service_name":"mysql","mysql_password":"111111"} 3. Encode parameters with a new mysql_version (or use online base64 tool) # echo -n '{"mysql_database":"devel","mysql_user":"devel","mysql_version":"6","service_name":"mysql","mysql_password":"111111"}' | base64 eyJteXNxbF9kYXRhYmFzZSI6ImRldmVsIiwibXlzcWxfdXNlciI6ImRldmVsIiwibXlzcWxfdmVy c2lvbiI6IjYiLCJzZXJ2aWNlX25hbWUiOiJteXNxbCIsIm15c3FsX3Bhc3N3b3JkIjoiMTExMTEx In0= 4. Use this new encoded one to update the secret pamaters # oc edit secret rh-mariadb-apb-parametersxxx 5. Increase spec.updateRequests by 1 each time once secret is updated # oc edit serviceinstance <mysql_serviceinstance> https://github.com/openshift/ansible-service-broker/pull/713 Incrementing the UpdateRequest without making any valid changes can also produce an identical deployment config during update so we need to take care not to delete it in those cases. https://github.com/ansibleplaybookbundle/postgresql-apb/pull/31 https://github.com/ansibleplaybookbundle/mariadb-apb/pull/22 https://github.com/ansibleplaybookbundle/mysql-apb/pull/22 Asb image is 1.1.9 and ready for test , change to ON_QA. Verified.
ASB : 1.1.9 ;
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-ansible-service-broker:v3.9
Service-catalog : 0.1.3
brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-service-catalog:v3.9
Downstream image.
update postgresql apb
version 9.7->9.9 ->9.5 , succeed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2018:0489 |