Modify

Ticket #849 (closed defect: fixed)

Opened 13 years ago

Last modified 13 years ago

Packages plugin ignores sources from the same URL

Reported by: Jeff Strunk <[email protected]…> Owned by: desai
Priority: major Milestone: Bcfg2 1.1.0 Release
Component: bcfg2-client Version: 1.0
Keywords: Cc: [email protected]

Description

I am using version 1.0.1-1~ppa2~hardy2.

The packages plugin appears to be ignoring APTSource containers if the URL is the same as one it has already seen. I have attached some examples to illustrate this.

The first example is an excerpt from our config.xml. It has 5 APTSource containers with the same URL, but different Versions.

The second attachment shows an ls in the cache directory. It only shows files for the first APTsource container.

In IRC, Sol showed me that I could use multiple Version tags in an APTSource container even though Desai says it shouldn't work. This is not valid when different versions of the OS are stored in the same repository. I first discovered this when I had hardy and jaunty versions of packages in a repository.

Attachments

config.xml (1.3 KB) - added by Jeff Strunk <[email protected]…> 13 years ago.
excerpt from Packages/config.xml
cache_ls.txt (950 bytes) - added by Jeff Strunk <[email protected]…> 13 years ago.
Directory listing of the Packages cache.

Change History

Changed 13 years ago by Jeff Strunk <[email protected]…>

excerpt from Packages/config.xml

Changed 13 years ago by Jeff Strunk <[email protected]…>

Directory listing of the Packages cache.

comment:1 Changed 13 years ago by solj

I was actually incorrect. It looks like you need separate APTSource entries for each Version. Here is my config for lucid using the same URL, but different Versions:

<Sources>
        <!-- Ubuntu sources -->
                <!-- Stock Lucid sources -->
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/ubuntu</URL>
                        <Version>lucid</Version>
                        <Component>main</Component>
                        <Component>multiverse</Component>
                        <Component>restricted</Component>
                        <Component>universe</Component>
                        <Arch>amd64</Arch>
                </APTSource>
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/ubuntu</URL>
                        <Version>lucid-backports</Version>
                        <Component>main</Component>
                        <Component>multiverse</Component>
                        <Component>restricted</Component>
                        <Component>universe</Component>
                        <Arch>amd64</Arch>
                </APTSource>
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/ubuntu</URL>
                        <Version>lucid-updates</Version>
                        <Component>main</Component>
                        <Component>multiverse</Component>
                        <Component>restricted</Component>
                        <Component>universe</Component>
                        <Arch>amd64</Arch>
                </APTSource>
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/ubuntu</URL>
                        <Version>lucid-security</Version>
                        <Component>main</Component>
                        <Component>multiverse</Component>
                        <Component>restricted</Component>
                        <Component>universe</Component>
                        <Arch>amd64</Arch>
                </APTSource>
                <!-- Custom Lucid sources -->
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/medibuntu</URL>
                        <Version>lucid</Version>
                        <Component>free</Component>
                        <Component>non-free</Component>
                        <Arch>amd64</Arch>
                </APTSource>
                <APTSource>
                        <Group>lucid</Group>
                        <URL>http://ftp.ices.utexas.edu/ubuntu-sysnet</URL>
                        <Version>lucid</Version>
                        <Component>main</Component>
                        <Arch>amd64</Arch>
                </APTSource>
</Sources>

I haven't tried using the same URL for different distros, but it seems like it should work.

comment:2 Changed 13 years ago by solj

comment:3 Changed 13 years ago by solj

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from Bcfg2 1.1.0 Release to Bcfg2 1.0.2 Release

Fixed by pulling latest Packages.py from trunk.

comment:4 Changed 13 years ago by solj

  • Milestone changed from Bcfg2 1.0.2 Release to Bcfg2 1.1.0 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.