Open bapt opened 10 years ago
My tests seem to indicated the jails aren't always correctly updated. I used the timestamp on /usr/bin/ftp to have something to compare against.
I've made a tester script and ran it, creating multiple jails with poudriere, version 3.1.1. All jails were deleted, created, updated.
root@freebsd1:/usr/local/poudriere_data/packages # ls -l /usr/local/poudriere/jails/*/usr/bin/ftp | column -r-xr-xr-x 3 root wheel 136536 Nov 11 22:03 /usr/local/poudriere/jails/10_1_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 131896 Nov 11 23:52 /usr/local/poudriere/jails/10_1_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 136536 Nov 11 22:03 /usr/local/poudriere/jails/10_1_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 131896 Nov 11 23:52 /usr/local/poudriere/jails/10_1_2015Q1_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141064 Dec 4 2012 /usr/local/poudriere/jails/9_1_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 132796 Dec 4 2012 /usr/local/poudriere/jails/9_1_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141064 Dec 4 2012 /usr/local/poudriere/jails/9_1_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 132796 Dec 4 2012 /usr/local/poudriere/jails/9_1_2015Q1_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141408 Jan 18 18:15 /usr/local/poudriere/jails/9_3_2014Q2_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 133048 Jan 18 18:04 /usr/local/poudriere/jails/9_3_2014Q2_i386/usr/bin/ftp -r-xr-xr-x 3 root wheel 141408 Jan 18 18:37 /usr/local/poudriere/jails/9_3_2015Q1_amd64/usr/bin/ftp -r-xr-xr-x 3 root wheel 133048 Jan 18 18:26 /usr/local/poudriere/jails/9_3_2015Q1_i386/usr/bin/ftp
as you see the 9.1 ones were affected all the time, getting stuck right on the initial update. All 9.3 ones successfully updated this time.
Now, for the interesting part: I put the 9.3 freebsd-update in the 9.1 buildjail and the mtree error disappeared.
I think this means:
Sorry. just found that the 9.1 update didn't work anyway, the timestamp is unchanged. Replacing freebsd-update just covered up the error nicely. :)
9.3 final result all fine as you can see above, but it did show errors too. Only safe way out seems to find why the mtree error comes up with poudriere.
Occurs on FreeBSD 10.0-RELEASE host with poudriere-devel from ports. Jails are 10.0-RELEASE-[amd64,i386] and 9.3-RELEASE-[amd64,i386]. Appears to be purely spurious as jails are updated correctly.
To reproduce: create jails from FTP. for pdrj in
poudriere jail -l -q -n
; do poudriere jail -u -j $pdrj if [ $? -ne 0 ]; then echo "Error updating jail $pdrj" fi done10.0-RELEASE jails will show no errors, 9.3-RELEASE jails will show the error: Installing updates...mtree: line 2: no parent node