Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Oct 2013 06:44:48 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        mexas@bris.ac.uk, bsam@passap.ru
Cc:        freebsd-ports@freebsd.org
Subject:   Re: poudriere bug [WAS:  Re: poudriere zfs setup help ]
Message-ID:  <526E4E30.7040900@FreeBSD.org>
In-Reply-To: <201310281121.r9SBL0uS015356@mech-cluster241.men.bris.ac.uk>
References:  <201310281121.r9SBL0uS015356@mech-cluster241.men.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--xGkEhEJQif5bII5VcchcP046ifSpf9RsX
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 10/28/2013 6:21 AM, Anton Shterenlikht wrote:
>>From bsam@passap.ru Fri Oct 25 11:47:07 2013
>>>>>>> I'm getting this error:
>>>>>>> =3D> SHA256 Checksum OK for pkg-1.1.4.tar.xz.
>>>>>>> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system
>>>>>>> *** Error code 1
>>>>>>>
>>>>>>> So something is wrong with my setup?
>>>>>>> Does this look all right:
>>>>>>>
>>>>>>> # poudriere jails -l
>>>>>>> JAILNAME             VERSION              ARCH    METHOD  PATH
>>>>>>> ia64                 10.0-ALPHA5 r256218  ia64    svn+https /pdr/=
jails/ia64
>>>>>>> # poudriere ports -l
>>>>>>> PORTSTREE            METHOD     PATH
>>>>>>> default              svn+https  /pdr/ports/default
>>>>>>> # df
>>>>>>> Filesystem                   1K-blocks     Used    Avail Capacity=
  Mounted on
>>>>>>> /dev/da0p2                    60931274 49946430  6110344    89%  =
  /
>>>>>>> devfs                                1        1        0   100%  =
  /dev
>>>>>>> /dev/da0p1                      409504     1184   408320     0%  =
  /efi
>>>>>>> tank/poudriere/data           31736572     1290 31735281     0%  =
  /pdr/data
>>>>>>> tank/poudriere/jails/ia64     33931466  2196185 31735281     6%  =
  /pdr/jails/ia64
>>>>>>> tank/poudriere/ports/default  32633749   898468 31735281     3%  =
  /pdr/ports/default
>>>>>>> tank                          31735313       32 31735281     0%  =
  /tank
>>>>>>> tank/poudriere                31735314       33 31735281     0%  =
  /tank/poudriere
>>>>>>> tank/poudriere/jails          31735312       31 31735281     0%  =
  /tank/poudriere/jails
>>>>>>> tank/poudriere/ports          31735312       31 31735281     0%  =
  /tank/poudriere/ports
>>>>>>> #=20
>>>>>>>
>>>>>>> # grep "^[A-Z]" /usr/local/etc/poudriere.conf
>>>>>>> ZPOOL=3Dtank
>>>>>>> FREEBSD_HOST=3Dhttps://svn0.eu.freebsd.org
>>>>>>> RESOLV_CONF=3D/etc/resolv.conf
>>>>>>> BASEFS=3D/pdr
>>>>>>> USE_PORTLINT=3Dyes
>>>>>>> USE_TMPFS=3Dyes
>>>>>>> DISTFILES_CACHE=3D/usr/ports/distfiles
>>>>>>> SVN_HOST=3Dsvn0.eu.FreeBSD.org
>>>>>>> CHECK_CHANGED_OPTIONS=3Dverbose
>>>>>>> CHECK_CHANGED_DEPS=3Dyes
>>>>>>> PKG_REPO_SIGNING_KEY=3D/root/pkg.key
>>>>>>> CCACHE_DIR=3D/var/cache/ccache
>>>>>>> SAVE_WRKDIR=3Dyes
>>>>>>> #=20
>>>>>>>
>>>>>>> What am I missing?
>>>>>>>
>>>>>>> On another box I set up poudriere with no zfs
>>>>>>> and it works all right. So I think I messed up
>>>>>>> the zfs setup.
>>>>>>
>>>>>> You may try to use "poudriere testport -i ...". Then poudriere wil=
l
>>>>>> not umount jail (it will be umounted when you exit the jail comman=
d
>>>>>> propmt) and you may explore the system (i.e. mount, jls, etc.) to
>>>>>> find out what's going on.
>>>>>
>>>>> ok, so after a failure, still in a jail:
>>>>>
>>>>> root@ia64-default:~ # df
>>>>> Filesystem                            1K-blocks    Used    Avail Ca=
pacity  Mounted on
>>>>> tank/poudriere/jails/ia64-default-ref  33930819 2198542 31732277   =
  6%    /
>>>>> root@ia64-default:~ # ls -al /usr/ports/ports-mgmt/pkg
>>>>> total 15
>>>>> drwxr-xr-x   3 root  wheel     8 Oct  9 13:23 .
>>>>> drwxr-xr-x  85 root  wheel    86 Oct  9 13:23 ..
>>>>> -rw-r--r--   1 root  wheel  2544 Oct  9 13:23 Makefile
>>>>> -rw-r--r--   1 root  wheel   127 Oct  9 13:23 distinfo
>>>>> drwxr-xr-x   2 root  wheel    13 Oct  9 13:23 files
>>>>> -rw-r--r--   1 root  wheel    87 Oct  9 13:23 pkg-descr
>>>>> -rw-r--r--   1 root  wheel    73 Oct  9 13:23 pkg-message
>>>>> -rw-r--r--   1 root  wheel  1420 Oct  9 13:23 pkg-plist
>>>>> root@ia64-default:~ # whoami
>>>>> root
>>>>> root@ia64-default:~ # mkdir /usr/ports/ports-mgmt/pkg/work
>>>>> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system

The WRKDIRPREFIX should be set to /wrkdirs in the jail's make.conf. Can
you go into the jail and show the contents of /etc/make.conf?

>>>>> root@ia64-default:~ #=20
>>>>>
>>>>> On ufs this would mean something is seriously wrong.
>>>>> But on zfs, I'm not so sure.
>>>>> Perhaps I'm not understanding it right.
>>>>
>>>> Actually I meant to investigate host, not jail. Jail ment to just
>>>> exist. Sorry to be not clear. (I usually use sysutils/tmux to have
>>>> one seccion and several terminals at a host.) So look at commands
>>>> (at the host, not in the jail): mount, jls. Does somtethig looks
>>>> suspicious?
>>>
>>> Still no luck. Now I cannot even get 'poudriere testport -i'
>>> to leave the jail intact. I get:

A fix for testport -i is coming today.

>>>
>>> # poudriere testport -i -o ports-mgmt/pkg -j ia64
>>> =3D=3D=3D=3D>> Creating the reference jail... done
>>> *skip*
>>> =3D> SHA256 Checksum OK for pkg-1.1.4.tar.xz.
>>> mkdir: /usr/ports/ports-mgmt/pkg/work: Read-only file system
>>> *** Error code 1
>>>
>>> Stop.
>>> make[1]: stopped in /usr/ports/ports-mgmt/pkg
>>> *** Error code 1
>>>
>>> Stop.
>>> make: stopped in /usr/ports/ports-mgmt/pkg
>>> =3D=3D=3D=3D>> Cleaning up
>>> =3D=3D=3D=3D>> Umounting file systems
>>> #=20
>>>
>>> I also tried "-I" option - still the same - the jail
>>> is unmounted after the failure.
>>>
>>> This is poudriere-3.0.11.
>>>
>>> What else can I try?
>>
>> Investigate your system as I had described earlier.
>=20
> The root cause of this seems to be that
> the poudriere ports tree is nullfs mounted read-only.
> I don't know why, but this seems to be a bug.

No, this is intended and not a bug.

> I updated this ticket, which seems to report a similar issue:
>=20
> https://fossil.etoilebsd.net/poudriere/tktview?name=3D15bf9880c4

This is unrelated.

>=20
> Thanks
>=20
> Anton
>=20
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org=
"
>=20


--=20
Regards,
Bryan Drewery


--xGkEhEJQif5bII5VcchcP046ifSpf9RsX
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJSbk4wAAoJEG54KsA8mwz5dkIQALq5VVQoBS4ooX/Xh7OjhaQc
OcXolIWNv19iL1Xfby+Uz4sZa6Y48ZgA59zMMDHs7bN2O0rb7wcQVhFxNJrf3FCI
r+jsXPhsGb1u4A5VUoppFBdfcVBnrSXPrQ1Ffk6060FBGQbgwkHsC5jViIxPldC4
/ZkuIWhIl1pGb4+Z+ETfDy8T/b7TTsxE6fj8A4s6bGxvBO5xsoR1hjeqX7dJqwzo
8j2e6Tj4R55ZOxWufc7smBBFaHhKLRt0ozenIy91S+UfFslvgUxAhuLtkj6RlfP5
+ww6XfVf4He8YyWICrHDVwLbPM06u8do6BvEGbrKnQWDToYeRYkj63o1gY1k5KYB
9Eh8HkemTA6dMqiZ3vyYsIXYVFFEkQS3YeTwVfokRwDCejDtSmcyu08Emkao6Uhh
cEKI4iOfA7dSUjhh+xhu9BeloMhKYH1FKHzzJYmNuNJnZ4845Uh4ekXINAB03/dr
P+WWKNoEEOPM1BCV0VQ2LDOyttYUQ7U94tb5tvG/pQrKrejwpYyduGyWZJVBQAJF
e93iJKJVtdyHNSeOP593f59fsat38+dMgMx2v5e6D73EKwkiphN20VqtrKcQ1p2b
GtXAMH9dc5KnCmqa32Z7l6JFn+3K34xa7Oj2usNmpnEmrYVfuDMT68NeFgaU4V5b
HBUvR/qBCoXMAI96VSPE
=kwoR
-----END PGP SIGNATURE-----

--xGkEhEJQif5bII5VcchcP046ifSpf9RsX--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?526E4E30.7040900>