Bug 1659197

Summary: lxc-templates package missing dependencies declaration
Product: [Fedora] Fedora Reporter: Fedor Ra <12.2018_bugzilla.redhat.com>
Component: lxcAssignee: Thomas Moschny <thomas.moschny>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 29CC: admiller, fedora, karlthered, pokorra.mailinglists, sagarun, silas, thomas.moschny
Target Milestone: ---   
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: 2019-03-09 17:25:05 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 Fedor Ra 2018-12-13 19:37:50 UTC
Description of problem:

/usr/share/lxc/templates/lxc-download from the lxc-templates package assumes the presence of the following tools, which are not declared as package dependencies:

tar
wget
gpg (optional?)

Version-Release number of selected component (if applicable):

lxc-templates-3.0.3-1.fc29.x86_64

How reproducible:

always

Steps to Reproduce:
1. install Fedora with minimal-environment package group
2. lxc-create -t download -n test

Actual results:

ERROR: Missing required tool: wget

Expected results:

expect a dialog with available images for download

Additional info:

Comment 1 Artur Frenszek-Iwicki 2019-03-05 13:57:33 UTC
A missing /usr/bin/gpg results in the following message:

ERROR: Missing recommended tool: gpg
You can workaround this by using --no-validate.

Comment 2 Thomas Moschny 2019-03-09 17:25:05 UTC
This is intentional. It is simply not feasible specifying all tools used by templates as dependencies. The templates will check existence of needed tools and error out early (or at least they should.)