Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Fixes #6927 - move checks on pulp capsule preconditions to pre_validate hook #96

Merged
merged 1 commit into from
Aug 13, 2014

Conversation

iNecas
Copy link
Member

@iNecas iNecas commented Aug 5, 2014

No description provided.

@iNecas
Copy link
Member Author

iNecas commented Aug 5, 2014


if param('capsule', 'pulp') && param('capsule', 'pulp').value
if system("rpm -q katello &>/dev/null")
error "the pulp node can't be installed on a machine with Katello master"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the actual issue that arises if this is attempted?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are steps leading towards setting the pulp as a node, so quite possibly break the Foretello as a consequence. Not that this particular rpm would be the issue, but we need some mechanism to prevent setting the pulp node on the sat6


unless system("subscription-manager identity | grep identity")
error "The system has to be registered to a Katello instance before installing the node"
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might want todo:

unless system("subscription-manager identity | grep identity && ! grep -q subscription.rhn.redhat.com /etc/rhsm/rhsm.conf")

this will ensure that it is registered to the Satellite and not the Customer Portal

ACK otherwise

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, updated

@iNecas
Copy link
Member Author

iNecas commented Aug 13, 2014

Considering this as an ACK #96 (comment) and merging

iNecas added a commit that referenced this pull request Aug 13, 2014
Fixes #6927 - move checks on pulp capsule preconditions to pre_validate hook
@iNecas iNecas merged commit bc6cfa0 into Katello:master Aug 13, 2014
parthaa pushed a commit to parthaa/katello-installer-1 that referenced this pull request Jan 28, 2016
zjhuntin pushed a commit to zjhuntin/katello-installer that referenced this pull request Oct 30, 2018
Content Views: Creating a version command
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants