Bug 1625161
| Summary: | apb provision failed in project which named by pure number | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Zihan Tang <zitang> |
| Component: | Service Broker | Assignee: | Dylan Murray <dymurray> |
| Status: | CLOSED ERRATA | QA Contact: | Zihan Tang <zitang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.11.0 | CC: | aos-bugs, chezhang, dyan, jfan, jiazha, jmatthew, wjiang |
| Target Milestone: | --- | ||
| Target Release: | 3.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-10-11 07:25:55 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: | |||
https://github.com/ansibleplaybookbundle/mariadb-apb/pull/48 https://github.com/ansibleplaybookbundle/mysql-apb/pull/47 https://github.com/ansibleplaybookbundle/mediawiki-apb/pull/42 https://github.com/ansibleplaybookbundle/postgresql-apb/pull/64 https://github.com/openshift/openshift-restclient-python/issues/204 This issue arises from a bug in the dynamic client. I updated our APBs to typecast the variable manually. Verified *-apb: v3.11.0-0.28.0 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:2652 |
Description of problem: when provision in a pure number named project, provison failed as 'Bad Request' TASK [mysql-apb : Set mysql objects state=present] ***************************** failed: [localhost] (item={u'name': u'service.yaml.j2'}) => {"changed": false, "error": 400, "item": {"name": "service.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Service in version \\\"v1\\\" cannot be handled as a Service: v1.Service.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 7, error found in #10 byte of ...|espace\\\": 7879, \\\"name|..., bigger context ...|a663-b025-11e8-b30c-0a580a800006\\\"}, \\\"namespace\\\": 7879, \\\"name\\\": \\\"mysql-67e3a663-b025-11e8-b30c-0a580a|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400} skipping: [localhost] => (item={u'apply': False, u'name': u'pvc.yaml.j2' But provision in project like '50p-r' will succeed. Version-Release number of selected component (if applicable): asb: 1.3.14 postgresql-apb: v3.11.0-0.25.0.0 mariadb-apb: v3.11.0-0.25.0.0 openshift v3.11.0-0.25.0 How reproducible: always Steps to Reproduce: 1. provision postgresql-apb in project 3423 2. 3. Actual results: provision failed , logs in sandbox: postgresql-apb: TASK [postgresql-apb : Set postgresql objects state=present] ******************* failed: [localhost] (item={u'name': u'service.yaml.j2'}) => {"changed": false, "error": 400, "item": {"name": "service.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Service in version \\\"v1\\\" cannot be handled as a Service: v1.Service.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 3, error found in #10 byte of ...|espace\\\": 3423, \\\"name|..., bigger context ...|739c-b024-11e8-b30c-0a580a800006\\\"}, \\\"namespace\\\": 3423, \\\"name\\\": \\\"postgresql-3b33739c-b024-11e8-b30c-0|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400} failed: [localhost] (item={u'apply': True, u'name': u'pvc.yaml.j2'}) => {"changed": false, "error": 400, "item": {"apply": true, "name": "pvc.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"PersistentVolumeClaim in version \\\"v1\\\" cannot be handled as a PersistentVolumeClaim: v1.PersistentVolumeClaim.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 3, error found in #10 byte of ...|espace\\\": 3423, \\\"name|..., bigger context ...|}, \\\"apiVersion\\\": \\\"v1\\\", \\\"metadata\\\": {\\\"namespace\\\": 3423, \\\"name\\\": \\\"postgresql-3b33739c-b024-11e8-b30c-0|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400} failed: [localhost] (item={u'name': u'deployment.yaml.j2'}) => {"changed": false, "error": 400, "item": {"name": "deployment.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"DeploymentConfig in version \\\"v1\\\" cannot be handled as a DeploymentConfig: v1.DeploymentConfig.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 3, error found in #10 byte of ...|espace\\\": 3423, \\\"name|..., bigger context ...|739c-b024-11e8-b30c-0a580a800006\\\"}, \\\"namespace\\\": 3423, \\\"name\\\": \\\"postgresql-3b33739c-b024-11e8-b30c-0|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400} Expected results: provision succeed. Additional info: mysql-apb provision failed log: TASK [mysql-apb : Set mysql objects state=present] ***************************** failed: [localhost] (item={u'name': u'service.yaml.j2'}) => {"changed": false, "error": 400, "item": {"name": "service.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"Service in version \\\"v1\\\" cannot be handled as a Service: v1.Service.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 7, error found in #10 byte of ...|espace\\\": 7879, \\\"name|..., bigger context ...|a663-b025-11e8-b30c-0a580a800006\\\"}, \\\"namespace\\\": 7879, \\\"name\\\": \\\"mysql-67e3a663-b025-11e8-b30c-0a580a|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400} skipping: [localhost] => (item={u'apply': False, u'name': u'pvc.yaml.j2'}) failed: [localhost] (item={u'name': u'deployment.yaml.j2'}) => {"changed": false, "error": 400, "item": {"name": "deployment.yaml.j2"}, "msg": "Failed to create object: {\"kind\":\"Status\",\"apiVersion\":\"v1\",\"metadata\":{},\"status\":\"Failure\",\"message\":\"DeploymentConfig in version \\\"v1\\\" cannot be handled as a DeploymentConfig: v1.DeploymentConfig.ObjectMeta: v1.ObjectMeta.Namespace: ReadString: expects \\\" or n, but found 7, error found in #10 byte of ...|espace\\\": 7879, \\\"name|..., bigger context ...|a663-b025-11e8-b30c-0a580a800006\\\"}, \\\"namespace\\\": 7879, \\\"name\\\": \\\"mysql-67e3a663-b025-11e8-b30c-0a580a|...\",\"reason\":\"BadRequest\",\"code\":400}\n", "reason": "Bad Request", "status": 400}