Public bug reported:

When running ci tests, we encountered and error where the tests running
were newer than the curtin used to handle the install.

There was a small race with the archive, curtainer installed a binary
package and the source package it pulled was one revision newer:

After this operation, 18.2 MB of additional disk space will be used.
Get:1 xenial-updates/main amd64 binutils amd64 
2.26.1-1ubuntu1~16.04.6 [2311 kB]
Get:2 xenial/main amd64 
curtin-common all 17.1-575-g6d23a6f-0ubuntu1~ubuntu16.04.1 [11.3 kB]
Get:3 xenial-updates/main amd64 libdpkg-perl 
all 1.18.4ubuntu1.3 [195 kB]
Get:4 xenial/main amd64 
python3-curtin all 17.1-575-g6d23a6f-0ubuntu1~ubuntu16.04.1 [106 kB]
Get:5 xenial/main amd64 make amd64 4.1-6 [151 
Get:6 xenial-updates/main amd64 dpkg-dev all 
1.18.4ubuntu1.3 [584 kB]
Get:7 xenial/main amd64 curtin 
all 17.1-575-g6d23a6f-0ubuntu1~ubuntu16.04.1 [2610 B]
Fetched 3362 kB in 1s (3069 kB/s)

This installs 17.1-575

Notice the source package version:

Need to get 299 kB of source archives.
Get:1 xenial/main curtin 
17.1-576-g15c15c7-0ubuntu1~ubuntu16.04.1 (tar) [298 kB]
Get:2 xenial/main curtin 
17.1-576-g15c15c7-0ubuntu1~ubuntu16.04.1 (dsc) [1149 B]
dpkg-source: warning: extracting unsigned source package 
dpkg-source: info: extracting curtin in curtin-17.1-576-g15c15c7
dpkg-source: info: unpacking 

This fetches source 17.1-576

curtainer needs to compare curtin --version with the src/curtin/
and raise an error if there is a mismatch.

Attaching console log

** Affects: curtin (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  curtainer needs to check installed version vs. source version

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to