Skip to content

Commit

Permalink
boot_order: increased timeout for fetching boot.iso
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-jugraham committed Sep 26, 2024
1 parent b9aa15f commit e104c1f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def parse_cdroms_attrs(params):

if cdrom1_attrs.get('source') or cdrom2_attrs.get('source'):
cmd = "dnf repolist -v enabled |awk '/Repo-baseurl.*composes.*BaseOS.*os/ {res=$NF} END{print res}'"
repo_url = process.run(cmd, shell=True).stdout_text.strip()
repo_url = process.run(cmd, shell=True, timeout=100).stdout_text.strip()
boot_img_url = os.path.join(repo_url, 'images', 'boot.iso')
if os.path.exists(boot_img_path):
os.remove(boot_img_path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def prepare_device(params, vm_name, bootable_device):
if bootable_device == "cdrom_bootable":
cdrom_path = os.path.join(data_dir.get_data_dir(), 'images', 'boot.iso')
cmd = "dnf repolist -v enabled |awk '/Repo-baseurl.*composes.*BaseOS.*os/ {res=$NF} END{print res}'"
repo_url = process.run(cmd, shell=True).stdout_text.strip()
repo_url = process.run(cmd, shell=True, timeout=100).stdout_text.strip()
boot_img_url = os.path.join(repo_url, 'images', 'boot.iso')
download.get_file(boot_img_url, cdrom_path)
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def prepare_device_attrs(params, vm_name, bootable_device):
if bootable_device == "cdrom_bootable":
cdrom_path = os.path.join(data_dir.get_data_dir(), 'images', 'boot.iso')
cmd = "dnf repolist -v enabled |awk '/Repo-baseurl.*composes.*BaseOS.*os/ {res=$NF} END{print res}'"
repo_url = process.run(cmd, shell=True).stdout_text.strip()
repo_url = process.run(cmd, shell=True, timeout=100).stdout_text.strip()
boot_img_url = os.path.join(repo_url, 'images', 'boot.iso')
download.get_file(boot_img_url, cdrom_path)
else:
Expand Down

0 comments on commit e104c1f

Please sign in to comment.