This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/main by this push:
     new 0400765e1f3 packaging: rpm dependencies: which and file (#6638)
0400765e1f3 is described below

commit 0400765e1f39edb73720e3c75d52d258143e69a1
Author: Ann <[email protected]>
AuthorDate: Sat Oct 8 14:38:25 2022 +0800

    packaging: rpm dependencies: which and file (#6638)
    
    createtmplt.sh will use file, and setup-sysvm-tmplt will use which. this is 
log:
    
    /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt: 
line 74: which: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
56: file: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
75: file: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
42: file: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/setup-sysvm-tmplt: 
line 74: which: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
56: file: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
75: file: command not found
    /usr/share/cloudstack-common/scripts/storage/secondary/createtmplt.sh: line 
42: file: command not found
    when no which and file, systemvm template can not be import correctly(not 
decompressed, stay bzip2), then libvirtd will report error:
    
    Could not open backing file: Image is not in qcow2 format
    Then systemvm can not be started.
---
 packaging/centos7/cloud.spec | 2 ++
 packaging/centos8/cloud.spec | 2 ++
 packaging/suse15/cloud.spec  | 2 ++
 3 files changed, 6 insertions(+)

diff --git a/packaging/centos7/cloud.spec b/packaging/centos7/cloud.spec
index e30d6a6ae32..f642c3196fb 100644
--- a/packaging/centos7/cloud.spec
+++ b/packaging/centos7/cloud.spec
@@ -65,6 +65,8 @@ Requires: python
 Requires: python3
 Requires: bash
 Requires: gawk
+Requires: which
+Requires: file
 Requires: bzip2
 Requires: gzip
 Requires: unzip
diff --git a/packaging/centos8/cloud.spec b/packaging/centos8/cloud.spec
index 19a1bf0c368..835d288a849 100644
--- a/packaging/centos8/cloud.spec
+++ b/packaging/centos8/cloud.spec
@@ -60,6 +60,8 @@ Requires: java-11-openjdk
 Requires: python3
 Requires: bash
 Requires: gawk
+Requires: which
+Requires: file
 Requires: bzip2
 Requires: gzip
 Requires: unzip
diff --git a/packaging/suse15/cloud.spec b/packaging/suse15/cloud.spec
index abd7c252f47..b8368aca19b 100644
--- a/packaging/suse15/cloud.spec
+++ b/packaging/suse15/cloud.spec
@@ -60,6 +60,8 @@ Requires: java-11-openjdk
 Requires: python3
 Requires: bash
 Requires: gawk
+Requires: which
+Requires: file
 Requires: bzip2
 Requires: gzip
 Requires: unzip

Reply via email to