Project

General

Profile

Bug #21028

katello-change-hostname's behavior before installing capsule

Added by Evgeni Golov almost 5 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1493472

Description of problem:

In case you have the satellite-capsule package already installed but you didn't install the capsule yet with satellite-installer, using katello-change-hostname will fail even when trying to see help:

]# katello-change-hostname -h
/usr/bin/katello-change-hostname:40:in `readlink': No such file or directory - /etc/foreman-installer/scenarios.d/last_scenario.yaml (Errno::ENOENT)

Some message informing user about the problem would be nice here.

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

katello-capsule-3.0.0-25.el6sat.noarch

Associated revisions

Revision c57ecc7d (diff)
Added by Evgeni Golov over 4 years ago

Fixes #21028 - make k-c-h --help work without an installed system

/etc/foreman-installer/scenarios.d/last_scenario.yaml might or might not
be there, so let's fall back to `katello` scenario if the file cannot be
found.

History

#1 Updated by The Foreman Bot almost 5 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/536 added

#2 Updated by Evgeni Golov almost 5 years ago

  • Subject changed from katello-change-hostname's behavior before installing capsule to katello-change-hostname's behavior before installing capsule
  • Category set to Tooling
  • Assignee set to Evgeni Golov

#3 Updated by Justin Sherrill almost 5 years ago

  • Legacy Backlogs Release (now unused) set to 250

#4 Updated by Evgeni Golov almost 5 years ago

  • Category deleted (Tooling)
  • Project changed from Katello to Packaging
  • Pull request https://github.com/theforeman/foreman-packaging/pull/1929 added
  • Pull request deleted (https://github.com/Katello/katello-packaging/pull/536)

#5 Updated by Evgeni Golov over 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Ready For Testing to Closed

#6 Updated by Greg Sutcliffe almost 4 years ago

  • Target version deleted (Katello 3.5.0)

Also available in: Atom PDF