Project

General

Profile

Bug #30809

Spending a long time to validate the hostname when proceeding with the restore

Added by Waldirio Pinheiro over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
easy
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Description of problem:
When executing the process "foreman-maintain restore <path to the files>" we can see a long time to validate the hostname.

Below the process used to:
---
Validate hostname is the same as backup:

28185 root 20 0 124740 2528 1072 S 10.8 0.0 0:15.40 tar zxf /backup/satellite-backup-2019-08-05-09-41-02/config_files.tar.gz etc/httpd/conf/httpd.conf --to-stdout
---

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

How reproducible:
100%

Steps to Reproduce:
1. Create a backup
2. Restore the same
3.

Actual results:
When the conf file is bigger, the time to validate the hostname increase a lot

Expected results:
Be faster (maybe an external file just with the hostname will be enough)

Additional info:

Associated revisions

Revision 86f64a14 (diff)
Added by Waldirio Pinheiro about 2 years ago

Fixes #30809 - Adding the flag --occurrence=1 on the tar zxf command

History

#1 Updated by Waldirio Pinheiro over 2 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/394 added

#2 Updated by The Foreman Bot over 2 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Waldirio Pinheiro about 2 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF