Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot update CURRENT snapshot jail (-m ftp) with -u #337

Open
koobs opened this issue Aug 5, 2015 · 6 comments
Open

Cannot update CURRENT snapshot jail (-m ftp) with -u #337

koobs opened this issue Aug 5, 2015 · 6 comments

Comments

@koobs
Copy link
Member

koobs commented Aug 5, 2015

I create CURRENT and STABLE jails via -c -m ftp, which creates jails via snapshots (either official, or otherwise: allbsd, etc)

Jail configuration for these are:

poudriere jail -i -j 11amd64
Jail name:         11amd64
Jail version:      11.0-CURRENT
Jail arch:         amd64
Jail method:       ftp
Jail mount:        /storage/poudriere/jails/11amd64
Jail fs:           storage/poudriere/jails/11amd64
Jail updated:      2015-08-04 20:38:22
Tree name:         default
Tree method:       portsnap

When attempting to upgrade these jails via -u [-m ftp], the following output is observed:

poudriere jail -u -j 11amd64 -m ftp
[00:00:00] ====>> Upgrading using ftp
/etc/resolv.conf -> /storage/poudriere/jails/11amd64/etc/resolv.conf
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching public key from update2.freebsd.org... failed.
Fetching public key from update5.freebsd.org... failed.
Fetching public key from update4.freebsd.org... failed.
Fetching public key from update6.freebsd.org... failed.
Fetching public key from update3.freebsd.org... failed.
No mirrors remaining, giving up.
11.0-CURRENT
[00:00:03] ====>> Recording filesystem state for clean... done

I'm not sure whether this is a bug, a regression, or unsupported. Suffice it to say, poudriere should be able to update jails based on snapshots from ftp's using the -u flag, without "-m ftp" arguments if the jail has already been created/set to use that method.

The following cases should work:

  • Update jail using same method it was created with (eg: official -> newer official snapshot)
  • Update jail using same method but different url (eg: official -> newer allbsd snapshot)
  • Update jail (that wasn't created using snapshots), using a new/different method and/or url
@norrland
Copy link

norrland commented Apr 5, 2018

Same issue here. Running poudirere-3.2.6 on FreeBSD 11.1-RELEASE-p9.

@grahamperrin
Copy link

grahamperrin commented May 1, 2018

CURRENT … a bug, a regression, or unsupported. …

Something at the back of my mind tells me, unsupported As far as I know, it's not yet supported.

From design · freebsd/poudriere Wiki:

Via ftp

The update of the jail is done by calling freebsd-update

– and base is not yet packaged.

PkgBase - FreeBSD Wiki

@grahamperrin

This comment has been minimized.

@girgen
Copy link

girgen commented Oct 11, 2018

Just creating a new 12.0-current is quite quick:

poudriere jail -c -j 120-amd64-2 -v 12.0-ALPHA9 -m http

@grahamperrin

This comment has been minimized.

@grahamperrin

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants