Hide Forgot
Description of problem: There is only newest kickstart distribution downloaded by cdn-sync with "--no-packages" and one empty directory created after sync in /var/satellite/rhn/kickstart/. Version-Release number of selected component (if applicable): Satellite-5.8-RHEL-6-20161114.n.1-Satellite-x86_64 How reproducible: always Steps to Reproduce: 1. # cdn-sync -c rhel-x86_64-server-6 --no-packages Actual results: Only newest KS distribution is synced and one strange extra empty directory appears in /var/satellite/rhn/kickstart/ # cdn-sync -c rhel-x86_64-server-6 --no-packages 07:30:30 ====================================== 07:30:30 | Channel: rhel-x86_64-server-6 07:30:30 ====================================== 07:30:30 Sync of channel started. 07:30:30 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os 07:30:41 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os has 3714 errata. 07:31:25 Kickstartable tree not detected (no valid treeinfo file) 07:31:25 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/kickstart 07:31:27 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/kickstart has 0 errata. 07:31:27 Kickstartable tree ks-rhel-x86_64-server-6-6.8 already synced. Updating content... 07:31:27 Gathering all files in kickstart repository... 07:31:52 Downloading 152 files. 07:32:54 Sync of channel completed in 0:02:24. 07:32:54 Total time: 0:02:24 # ls /var/satellite/rhn/kickstart/ ks-rhel-x86_64-server-6-6.8 rhel-6-server-rpms__6Server__x86_64 Expected results: All KS distributions should be synced, no extra content appears on the disk
fixed in spacewalk master: 87fc3d5409c624eddd07fb04411345cbcad79b1b eb3a4085e3f50cab5d5255c4109a9deec7978fc2
Tested on Satellite-5.8-RHEL-6-20170521.n.0, spacewalk-backend-2.5.3-133.el6sat # cdn-sync -c rhel-x86_64-server-6 --no-packages 06:00:01 ====================================== 06:00:01 | Channel: rhel-x86_64-server-6 06:00:01 ====================================== 06:00:01 Sync of channel started. 06:00:01 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os 06:00:26 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os has 4029 errata. 06:00:37 Syncing 4029 new errata to channel. 06:00:51 Kickstartable tree not detected (no valid treeinfo file) 06:00:51 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/kickstart 06:00:55 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.9/x86_64/kickstart has 0 errata. 06:00:55 Added new kickstartable tree ks-rhel-x86_64-server-6-6.9. Downloading content... 06:00:55 Gathering all files in kickstart repository... 06:01:57 Downloading 343 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:03:14 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/kickstart 06:03:18 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.8/x86_64/kickstart has 0 errata. 06:03:19 Added new kickstartable tree ks-rhel-x86_64-server-6-6.8. Downloading content... 06:03:19 Gathering all files in kickstart repository... 06:04:18 Downloading 298 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:05:22 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.6/x86_64/kickstart 06:05:25 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.6/x86_64/kickstart has 0 errata. 06:05:26 Added new kickstartable tree ks-rhel-x86_64-server-6-6.6. Downloading content... 06:05:26 Gathering all files in kickstart repository... 06:06:13 Downloading 101 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:09:11 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.3/x86_64/kickstart 06:09:15 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.3/x86_64/kickstart has 0 errata. 06:09:16 Added new kickstartable tree ks-rhel-x86_64-server-6-6.3. Downloading content... 06:09:16 Gathering all files in kickstart repository... 06:10:09 Downloading 189 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:11:00 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.1/x86_64/kickstart 06:11:09 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.1/x86_64/kickstart has 0 errata. 06:11:11 Added new kickstartable tree ks-rhel-x86_64-server-6-6.1. Downloading content... 06:11:11 Gathering all files in kickstart repository... 06:12:16 Downloading 185 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:13:22 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.4/x86_64/kickstart 06:13:26 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.4/x86_64/kickstart has 0 errata. 06:13:26 Added new kickstartable tree ks-rhel-x86_64-server-6-6.4. Downloading content... 06:13:26 Gathering all files in kickstart repository... 06:14:16 Downloading 203 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:15:05 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.7/x86_64/kickstart 06:15:09 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.7/x86_64/kickstart has 0 errata. 06:15:10 Added new kickstartable tree ks-rhel-x86_64-server-6-6.7. Downloading content... 06:15:10 Gathering all files in kickstart repository... 06:16:02 Downloading 243 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:29:40 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.2/x86_64/kickstart 06:29:44 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.2/x86_64/kickstart has 0 errata. 06:29:44 Added new kickstartable tree ks-rhel-x86_64-server-6-6.2. Downloading content... 06:29:44 Gathering all files in kickstart repository... 06:30:39 Downloading 188 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:31:23 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/6/6.5/x86_64/kickstart 06:31:26 Repo https://cdn.redhat.com/content/dist/rhel/server/6/6.5/x86_64/kickstart has 0 errata. 06:31:27 Added new kickstartable tree ks-rhel-x86_64-server-6-6.5. Downloading content... 06:31:27 Gathering all files in kickstart repository... 06:32:17 Downloading 203 kickstart files. Downloading kickstarts: |##################################################| 100.0% 06:39:42 Sync of channel completed in 0:39:41. 06:39:42 Total time: 0:39:41 # cdn-sync -c rhel-x86_64-server-7 --no-packages 07:24:10 ====================================== 07:24:10 | Channel: rhel-x86_64-server-7 07:24:10 ====================================== 07:24:10 Sync of channel started. 07:24:10 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os 07:24:27 Repo https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os has 1894 errata. 07:24:34 Syncing 1894 new errata to channel. 07:24:43 Kickstartable tree not detected (no valid treeinfo file) 07:24:43 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/kickstart 07:24:47 Repo https://cdn.redhat.com/content/dist/rhel/server/7/7.3/x86_64/kickstart has 0 errata. 07:24:48 Added new kickstartable tree ks-rhel-x86_64-server-7-7.3. Downloading content... 07:24:48 Gathering all files in kickstart repository... 07:26:06 Downloading 138 kickstart files. Downloading kickstarts: |##################################################| 100.0% 07:26:46 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart 07:27:00 Repo https://cdn.redhat.com/content/dist/rhel/server/7/7.1/x86_64/kickstart has 0 errata. 07:27:01 Added new kickstartable tree ks-rhel-x86_64-server-7-7.1. Downloading content... 07:27:01 Gathering all files in kickstart repository... 07:27:55 Downloading 128 kickstart files. Downloading kickstarts: |##################################################| 100.0% 07:28:35 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/kickstart 07:28:40 Repo https://cdn.redhat.com/content/dist/rhel/server/7/7.2/x86_64/kickstart has 0 errata. 07:28:40 Added new kickstartable tree ks-rhel-x86_64-server-7-7.2. Downloading content... 07:28:40 Gathering all files in kickstart repository... 07:29:27 Downloading 125 kickstart files. Downloading kickstarts: |##################################################| 100.0% 07:30:08 Repo URL: https://cdn.redhat.com/content/dist/rhel/server/7/7.0/x86_64/kickstart 07:30:12 Repo https://cdn.redhat.com/content/dist/rhel/server/7/7.0/x86_64/kickstart has 0 errata. 07:30:13 Added new kickstartable tree ks-rhel-x86_64-server-7-7.0. Downloading content... 07:30:13 Gathering all files in kickstart repository... 07:30:59 Downloading 116 kickstart files. Downloading kickstarts: |##################################################| 100.0% 07:31:42 Sync of channel completed in 0:07:32. 07:31:42 Total time: 0:07:32 # ls -l /var/satellite/rhn/kickstart/ total 112 <...> drwxr-x---. 12 apache apache 4096 May 23 06:12 ks-rhel-x86_64-server-6-6.1 drwxr-x---. 12 apache apache 4096 May 23 06:30 ks-rhel-x86_64-server-6-6.2 drwxr-x---. 12 apache apache 4096 May 23 06:10 ks-rhel-x86_64-server-6-6.3 drwxr-x---. 12 apache apache 4096 May 23 06:14 ks-rhel-x86_64-server-6-6.4 drwxr-x---. 12 apache apache 4096 May 23 06:33 ks-rhel-x86_64-server-6-6.5 drwxr-x---. 11 apache apache 4096 May 23 06:06 ks-rhel-x86_64-server-6-6.6 drwxr-x---. 11 apache apache 4096 May 23 06:29 ks-rhel-x86_64-server-6-6.7 drwxr-x---. 11 apache apache 4096 May 23 06:04 ks-rhel-x86_64-server-6-6.8 drwxr-x---. 11 apache apache 4096 May 23 06:02 ks-rhel-x86_64-server-6-6.9 drwxr-x---. 8 apache apache 4096 May 23 07:31 ks-rhel-x86_64-server-7-7.0 drwxr-x---. 8 apache apache 4096 May 23 07:28 ks-rhel-x86_64-server-7-7.1 drwxr-x---. 8 apache apache 4096 May 23 07:29 ks-rhel-x86_64-server-7-7.2 drwxr-x---. 8 apache apache 4096 May 23 07:26 ks-rhel-x86_64-server-7-7.3 VERIFIED