Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1511980 - [RFE] using satellite-sync with --mount-point add check between subscriptions and channels
Summary: [RFE] using satellite-sync with --mount-point add check between subscriptions...
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 580
Hardware: All
OS: All
Target Milestone: ---
Assignee: Jan Dobes
QA Contact: Red Hat Satellite QA List
Depends On:
TreeView+ depends on / blocked
Reported: 2017-11-10 14:49 UTC by jjansky
Modified: 2017-11-13 16:22 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-11-13 16:22:29 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description jjansky 2017-11-10 14:49:45 UTC
Description of problem:
When i use satellite-sync --list-channels --mount-point=<mount_point> i see all channels from mount point even if i do not have subscription for them. As result if i sync them it only take place in DB and filesystem, but i will not be able to use it. No error is thrown and --list-channels shows every channel in mount-point

Version-Release number of selected component (if applicable):
Sat 5.7, Sat 5.8

How reproducible:
100 %.

Steps to Reproduce:
1. Download ISO for offline synchronization of Satellite
2. Mount ISO
3. satellite-sync --list-channels --mount-point=<mount_point>
4. satellite-sync --channel=rhel-x86_64-server-5-els --mount-point=<mount_point>

Actual results:
Channel sync without any problem, it missing in WebUI and it consumes space in DB and filesystem.

Expected results:
During step 3. restrict list to channels on which Satellite have subscriptions or during step 4. throw error, something like "You tried synchronized channel on which you do not have subscription"

Ideally both

Comment 1 Tomas Lestach 2017-11-13 16:22:29 UTC
What is described, is actually the designed and expected behavior.

satellite-sync -l -m <mount_point> correctly shows the content of the dump. The content of the dump is not depended on your current manifest. It just shows, what's in there.

And yes, you may sync the content into your Satellite. But without being entitled to use this content, Sat 5 won't show you appropriate channels. If you re-activated your Sat 5 with another manifest, the channels would become visible and usable for you.
The behavior is very similar to a scenario, when one org in Sat 5 is entitled to use this content, while the other isn't. Or when you do not prolong one of your subscriptions. You still have the content in the Sat5, it just won't be visible for you/your org.

I do not see any problem with the current behavior and there's no plan to change it. Therefor I'm closing the BZ NOTABUG.

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