Project

Profile

Help

Issue #5761

closed

Multi-variant repos are always creating a new repo version

Added by fao89 about 5 years ago. Updated almost 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

urls:
http://mirror.linux.duke.edu/pub/centos/8/BaseOS/x86_64/os/
http://mirror.linux.duke.edu/pub/centos/8/BaseOS/x86_64/kickstart/

========================================== FAILURES ===========================================                                                                                               
_________________________ SyncTestCase.test_centos8_baseos_on_demand __________________________                                                                                               

self = <pulp_rpm.tests.performance.test_sync.SyncTestCase testMethod=test_centos8_baseos_on_demand>                                                                                           

    def test_centos8_baseos_on_demand(self):                                                                                                                                                  
        """Sync CentOS 8 BaseOS."""                                                                                                                                                           
>       self.rpm_sync(url=CENTOS8_BASEOS_URL)                                                                                                                                                 

pulp_rpm/tests/performance/test_sync.py:138:                                                                                                                                                  
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _                                                                                               
pulp_rpm/tests/performance/test_sync.py:130: in rpm_sync                                                                                                                                      
    self.assertEqual(latest_version_href, repo['latest_version_href'])                                                                                                                        
E   AssertionError: '/pul[16 chars]ories/rpm/rpm/e6ca1296-2e59-4f49-955a-084a477c6073/versions/2/' != '/pul[16 chars]ories/rpm/rpm/e6ca1296-2e59-4f49-955a-084a477c6073/versions/4/'          
E   - /pulp/api/v3/repositories/rpm/rpm/e6ca1296-2e59-4f49-955a-084a477c6073/versions/2/
E   ?                                                                                 ^
E   + /pulp/api/v3/repositories/rpm/rpm/e6ca1296-2e59-4f49-955a-084a477c6073/versions/4/
E   ?                                                                                 ^
____________________ SyncTestCase.test_centos8_kickstart_baseos_on_demand _____________________

self = <pulp_rpm.tests.performance.test_sync.SyncTestCase testMethod=test_centos8_kickstart_baseos_on_demand>

    def test_centos8_kickstart_baseos_on_demand(self):
        """Kickstart Sync CentOS 8 BaseOS."""
>       self.rpm_sync(url=CENTOS8_KICKSTART_BASEOS_URL)

pulp_rpm/tests/performance/test_sync.py:146: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
pulp_rpm/tests/performance/test_sync.py:130: in rpm_sync
    self.assertEqual(latest_version_href, repo['latest_version_href'])
E   AssertionError: '/pul[16 chars]ories/rpm/rpm/b410edad-0844-42a0-8fcc-69e42bd5afdb/versions/2/' != '/pul[16 chars]ories/rpm/rpm/b410edad-0844-42a0-8fcc-69e42bd5afdb/versions/4/'
E   - /pulp/api/v3/repositories/rpm/rpm/b410edad-0844-42a0-8fcc-69e42bd5afdb/versions/2/
E   ?                                                                                 ^
E   + /pulp/api/v3/repositories/rpm/rpm/b410edad-0844-42a0-8fcc-69e42bd5afdb/versions/4/
E   ?                                                                                 ^
{
   "count":4,
   "next":null,
   "previous":null,
   "results":[
      {
         "pulp_href":"/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/",
         "pulp_created":"2019-11-19T17:24:10.330642Z",
         "number":4,
         "base_version":null,
         "content_summary":{
            "added":{
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packageenvironment":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packagegroup":{
                  "count":25,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               }
            },
            "removed":{
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packageenvironment":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packagegroup":{
                  "count":25,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               }
            },
            "present":{
               "rpm.package":{
                  "count":8252,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packagecategory":{
                  "count":5,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.modulemd_defaults":{
                  "count":40,
                  "href":"/pulp/api/v3/content/rpm/modulemd_defaults/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.distribution_tree":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/distribution_trees/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packagegroup":{
                  "count":67,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packagelangpacks":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packagelangpacks/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.modulemd":{
                  "count":57,
                  "href":"/pulp/api/v3/content/rpm/modulemds/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               },
               "rpm.packageenvironment":{
                  "count":6,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/4/"
               }
            }
         }
      },
      {
         "pulp_href":"/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/",
         "pulp_created":"2019-11-19T17:23:26.642185Z",
         "number":3,
         "base_version":null,
         "content_summary":{
            "added":{
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packageenvironment":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packagegroup":{
                  "count":25,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               }
            },
            "removed":{
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packageenvironment":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packagegroup":{
                  "count":25,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               }
            },
            "present":{
               "rpm.package":{
                  "count":8252,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packagecategory":{
                  "count":5,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.modulemd_defaults":{
                  "count":40,
                  "href":"/pulp/api/v3/content/rpm/modulemd_defaults/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.distribution_tree":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/distribution_trees/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packagegroup":{
                  "count":67,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packagelangpacks":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packagelangpacks/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.modulemd":{
                  "count":57,
                  "href":"/pulp/api/v3/content/rpm/modulemds/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               },
               "rpm.packageenvironment":{
                  "count":6,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/3/"
               }
            }
         }
      },
      {
         "pulp_href":"/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/",
         "pulp_created":"2019-11-19T17:21:51.977187Z",
         "number":2,
         "base_version":null,
         "content_summary":{
            "added":{
               "rpm.package":{
                  "count":2720,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packageenvironment":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagegroup":{
                  "count":34,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.distribution_tree":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/distribution_trees/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               }
            },
            "removed":{
               "rpm.packagecategory":{
                  "count":3,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packageenvironment":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagegroup":{
                  "count":25,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_removed=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               }
            },
            "present":{
               "rpm.package":{
                  "count":8252,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagecategory":{
                  "count":5,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.modulemd_defaults":{
                  "count":40,
                  "href":"/pulp/api/v3/content/rpm/modulemd_defaults/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.distribution_tree":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/distribution_trees/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagegroup":{
                  "count":67,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packagelangpacks":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packagelangpacks/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.modulemd":{
                  "count":57,
                  "href":"/pulp/api/v3/content/rpm/modulemds/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               },
               "rpm.packageenvironment":{
                  "count":6,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/2/"
               }
            }
         }
      },
      {
         "pulp_href":"/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/",
         "pulp_created":"2019-11-19T17:20:07.197186Z",
         "number":1,
         "base_version":null,
         "content_summary":{
            "added":{
               "rpm.package":{
                  "count":5532,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagecategory":{
                  "count":5,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagegroup":{
                  "count":58,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.modulemd_defaults":{
                  "count":40,
                  "href":"/pulp/api/v3/content/rpm/modulemd_defaults/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.modulemd":{
                  "count":57,
                  "href":"/pulp/api/v3/content/rpm/modulemds/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagelangpacks":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packagelangpacks/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packageenvironment":{
                  "count":4,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version_added=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               }
            },
            "removed":{

            },
            "present":{
               "rpm.package":{
                  "count":5532,
                  "href":"/pulp/api/v3/content/rpm/packages/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagecategory":{
                  "count":5,
                  "href":"/pulp/api/v3/content/rpm/packagecategories/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.modulemd_defaults":{
                  "count":40,
                  "href":"/pulp/api/v3/content/rpm/modulemd_defaults/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagegroup":{
                  "count":58,
                  "href":"/pulp/api/v3/content/rpm/packagegroups/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packagelangpacks":{
                  "count":1,
                  "href":"/pulp/api/v3/content/rpm/packagelangpacks/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.modulemd":{
                  "count":57,
                  "href":"/pulp/api/v3/content/rpm/modulemds/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               },
               "rpm.packageenvironment":{
                  "count":4,
                  "href":"/pulp/api/v3/content/rpm/packageenvironments/?repository_version=/pulp/api/v3/repositories/rpm/rpm/6ded69da-e353-4310-a9e9-754b7eb83208/versions/1/"
               }
            }
         }
      }
   ]
}
Actions #1

Updated by fao89 about 5 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89

Added by Fabricio Aguiar about 5 years ago

Revision 638170ff | View on GitHub

Splitting content between repo and sub-repo

https://pulp.plan.io/issues/5761 closes #5761

Actions #2

Updated by fao89 about 5 years ago

  • Status changed from ASSIGNED to POST
Actions #3

Updated by Anonymous about 5 years ago

  • Status changed from POST to MODIFIED

Added by Fabricio Aguiar almost 5 years ago

Revision bf95b9fc | View on GitHub

Splitting content between repo and sub-repo

https://pulp.plan.io/issues/5761 closes #5761

(cherry picked from commit 638170ff648f859b05fa18d77494a93fc2a7f71d)

Actions #4

Updated by Anonymous almost 5 years ago

Actions #5

Updated by ttereshc almost 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF