| Summary: | [RFE] add support for automatically answer yes for all questions | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Alex Jia <ajia> |
| Component: | atomic | Assignee: | Lokesh Mandvekar <lsm5> |
| Status: | CLOSED ERRATA | QA Contact: | atomic-bugs <atomic-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.4 | CC: | dwalsh |
| Target Milestone: | rc | Keywords: | Extras, FutureFeature |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-12-06 17:41:53 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: | |
Fixed in atomic-1.13 atomic --assumeyes atomic -y Now both work. The option works well for deleting docker images and automatically cleanup storage imported path. # rpm -q atomic atomic-1.13.5-1.el7.x86_64 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://rhn.redhat.com/errata/RHBA-2016-2857.html |
Description of problem: We have some interactive operations in atomic command, it will be convenient for users if we can support for automatically answer yes for all questions like '--assumeyes' option in dnf. Version-Release number of selected component (if applicable): [cloud-user@atomic-host-001 atomic]$ cat /etc/redhat-release Red Hat Enterprise Linux Atomic Host release 7.2 [cloud-user@atomic-host-001 atomic]$ atomic host status State: idle Deployments: ● rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard Version: 7.2.7 (2016-08-25 18:18:13) Commit: 2c31fbe0af5f907dc541bf23cc8a1ba18bcf9f1d0a74fdcdb17d25043f296d1c OSName: rhel-atomic-host [cloud-user@atomic-host-001 atomic]$ rpm -q atomic atomic-1.10.5-7.el7.x86_64 How reproducible: always. Steps to Reproduce: 1. docker pull some images to local 2. atomic storage export --dir /tmp/export 3. systemctl stop docker 4. atomic storage reset 5. systemctl start docker 6. atomic storage import --dir /tmp/export Actual results: [cloud-user@atomic-host-001 atomic]$ sudo ./atomic storage import --dir /tmp/export Importing image: 11a5107645d4 Importing image: 2b8fd9751c4c Importing container: 911a6948348b Importing volumes atomic import completed successfully Would you like to cleanup (rm -rf /tmp/export) the temporary directory [y/N] Expected results: support for automatically answer yes for all questions Additional info: PR: https://github.com/projectatomic/atomic/pull/573