Bug 1567854
| Summary: | [APB] apb init --dep option does not work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | sunzhaohua <zhsun> |
| Component: | Service Broker | Assignee: | Dylan Murray <dymurray> |
| Status: | CLOSED ERRATA | QA Contact: | sunzhaohua <zhsun> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.10.0 | CC: | aos-bugs, chezhang, jiazha, jmatthew, zitang |
| Target Milestone: | --- | ||
| Target Release: | 3.10.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-07-30 19:13:03 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: | |||
Confirming that I see the same. Looks like the dependency functionality has been stripped from init. https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=679545 brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/apb-tools:v3.10.0-0.16.0.4 Verified with latest image in brew.
Will wait for the rpm ready to double verify.
# apb init my-dep-apb --dep docker.io/mariadb:latest
groupadd: GID '0' already exists
usermod: group 'apb' does not exist
Initializing /mnt/my-dep-apb for an APB.
Generating playbook files
Successfully initialized project directory at: /mnt/my-dep-apb
Please run *apb prepare* inside of this directory after editing files.
# cat my-dep-apb/apb.yml
version: 1.0
name: my-dep-apb
description: This is a sample application generated by apb init
bindable: False
async: optional
metadata:
displayName: my-dep
dependencies: ['docker.io/mariadb:latest']
plans:
- name: default
description: This default plan deploys my-dep-apb
free: True
metadata: {}
parameters: []
Verified
# apb version
Version: apb-1.2.5
# apb init my-dep-apb --dep docker.io/mariadb:latest
Initializing /mnt/my-dep-apb for an APB.
Generating playbook files
Successfully initialized project directory at: /mnt/my-dep-apb
Please run *apb prepare* inside of this directory after editing files.
# cat my-dep-apb/apb.yml
version: 1.0
name: my-dep-apb
description: This is a sample application generated by apb init
bindable: False
async: optional
metadata:
displayName: my-dep
dependencies: ['docker.io/mariadb:latest']
plans:
- name: default
description: This default plan deploys my-dep-apb
free: True
metadata: {}
parameters: []
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:1816 |
Description of problem: apb init --dep option does not work Version-Release number of selected component (if applicable): openshift:3.10 apb: 1.2.1 How reproducible: Always Steps to Reproduce: 1. apb init my-dep-apb --dep docker.io/mariadb:latest 2. cd my-dep-apb 3. cat apb.yml Actual results: use --dep option, dependencies does not show in apb.yml. version: 1.0 name: my-dep-apb description: This is a sample application generated by apb init bindable: False async: optional metadata: displayName: my-dep plans: - name: default description: This default plan deploys my-dep-apb free: True metadata: {} parameters: [] Expected results: use --dep option, dependencies: ['docker.io/mariadb:latest'] should show in apb.yml. Additional info: