Bug 1549546 - spacewalk-channel does not allow adding a parent/base channel to system with no subscriptions.
Summary: spacewalk-channel does not allow adding a parent/base channel to system with ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space28
TreeView+ depends on / blocked
 
Reported: 2018-02-27 12:04 UTC by Laurence Rochfort
Modified: 2018-04-20 12:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-20 12:31:50 UTC
Embargoed:


Attachments (Terms of Use)

Description Laurence Rochfort 2018-02-27 12:04:40 UTC
Description of problem:
When running spacewalk-channel -a -c <PARENT CHANNEL> on a system with no channel subscriptions, it's not possible to add a parent/base channel. The error below is shown.

This is because there's a check to ensure the channel being added is a child of the system's parent channel, but the check takes place even if you're supplying a parent channel and if the system is not subscribed to any channels.

Error message: 

Error communicating with server. The message was:

Error Message:
    Parent of channel <PARENT CHANNEL> is not subscribed to server
Error Class Code: 32
Error Class Info: Channel error

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

How reproducible:
spacewalk-channel -a -c <PARENT CHANNEL> on a system with no channel subscriptions

Actual results:
Error as above. System not subscribed.

Expected results:
System should be subscribed.

Comment 1 Jiří Dostál 2018-03-26 11:57:23 UTC
spacewalk ffd0a4db99f9e588d1498c6fea7c2546e693e71c

Comment 2 Jiří Dostál 2018-03-26 12:16:44 UTC
Moving ON_QA

Comment 3 Jiří Dostál 2018-04-20 12:31:50 UTC
Spacewalk 2.8 has been released.
https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes28


Note You need to log in before you can comment on or make changes to this bug.