~lamont/maas/bug-1645912-2.1

Viewing all changes in revision 5580.

  • Committer: MAAS Lander
  • Author(s): Lee Trager
  • Date: 2017-01-19 19:58:06 UTC
  • mfrom: (5579.1.1 lp1656425_2.1)
  • Revision ID: maas_lander-20170119195806-f4elleba0zgzf3ku
[r=ltrager][bug=1654412][author=ltrager] Backport r5642 from trunk: Only create hard links for the product subarch, not its subarches

Every Ubuntu product in a SimpleStream contains a list of subarches which contain what subarches are a subset of the current product. The rack controller was creating hard links for each subarch in this list. Kernel flavors contain the same subarches list as the generic kernel as the only difference between them is their config. For example both ga-16.04 and ga-16.04-lowlatency have a subarches list of "hwe-{p,q,r,s,t,u,v,w},ga-16.04". Whatever product was processed last ended up owning all of the hard links. The region prevents older subarches from being used so MAAS only needs hard links for the subarches it has downloaded.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: