If you directly poke around in your chroot, you'll need to make sure to run cros_sdk once after each reboot to get everything mounted back into the correct place.
The new implementation does need lvm2 and thin-provisioning-tools.
If you don't have those and don't want to install them, you can continue creating non-loopback chroots by passing --nouse-image to cros_sdk.
Hi Benjamin,This PSA is heavy to me and I had spent some time to understand. In particular, I pay attention to the behavior changes before and after. So follow-up questions..On Wed, Aug 2, 2017 at 8:35 AM, Benjamin Gordon <bmgo...@chromium.org> wrote:If you directly poke around in your chroot, you'll need to make sure to run cros_sdk once after each reboot to get everything mounted back into the correct place.Q. Before this change, even after I reboot the system, I have a direct directory access to ~/chromium/chroot. After this change, won't I have, until I issue the command "cros_sdk" at least once?
The new implementation does need lvm2 and thin-provisioning-tools.Q. After this change, will "cros_sdk" command start to fail, at the time of chroot creation, if those dependencies are not installed?
If you don't have those and don't want to install them, you can continue creating non-loopback chroots by passing --nouse-image to cros_sdk.Q. Do you plan to update the developer guide?
Q. I used to use "mount --bind" to access the outside chroot from the inside. Will it be impacted?
The new implementation does need lvm2 and thin-provisioning-tools. If you don't have those and don't want to install them, you can continue creating non-loopback chroots by passing --nouse-image to cros_sdk.
--Thanks,Benjamin
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
On Wed, Aug 2, 2017 at 8:35 AM, Benjamin Gordon <bmgo...@chromium.org> wrote:The new implementation does need lvm2 and thin-provisioning-tools. If you don't have those and don't want to install them, you can continue creating non-loopback chroots by passing --nouse-image to cros_sdk.This is what I get trying to cros_sdk after repo sync:$ cros_sdkThe tool(s) lvchange, lvcreate, lvs, pvscan, vgchange, vgcreate, vgs were not found.Please install the appropriate package in your host.Example(ubuntu):sudo apt-get install <packagename>this message is quite cryptic: what is "the appropriate package", how does one find out? It would be good to show it at least for ubuntu, the recommended OS.
--
> We are seeing build issues related to CL
> https://chromium-review.googlesource.com/c/553462/12/scripts/cros_sdk.
> py
>
>
> chromiumos/chromite/scripts/cros_sdk.py", line 718, in main
>
> parent_ns_file = open('/proc/%d/ns/mnt' % (os.getppid(),))
>
> IOError: [Errno 2] No such file or directory: '/proc/56943/ns/mnt'
>
> Build step 'Execute shell' marked build as failure.
>
> The issue persists despite using cros_sdk --enter --nouse-image.
>
> Another related issue is that while trying to delete cros_sdk,
> chroot.build shows as device or resource busy. Trying with sudo,
> unmounting the dir or checking for background processes related to
> chroot does not seem to work either.
>
> Chroot.build is being created with root user instead of the actual
> user running the build, which is causing an issue with automated builds.
>
> Please let us know what are we missing?
> email to chromium-os-dev+unsubscribe@chromium.org.
17:49:48: INFO: Determining required toolchain updates...
17:49:49: INFO: Updating packages:
17:49:49: INFO: ['sys-libs/libcxx', 'sys-kernel/linux-headers', 'sys-libs/libcxxabi']
17:49:49: INFO: RunCommand: /mnt/host/source/chromite/bin/parallel_emerge --oneshot --update --getbinpkg --usepkgonly sys-libs/libcxx sys-kernel/linux-headers sys-libs/libcxxabi
Traceback (most recent call last):
File "/mnt/host/source/chromite/bin/parallel_emerge", line 168, in <module>
DoMain()
File "/mnt/host/source/chromite/bin/parallel_emerge", line 164, in DoMain
commandline.ScriptWrapperMain(FindTarget)
File "/mnt/host/source/chromite/lib/commandline.py", line 889, in ScriptWrapperMain
target = find_target_func(target)
File "/mnt/host/source/chromite/bin/parallel_emerge", line 139, in FindTarget
module = cros_import.ImportModule(target)
File "/mnt/host/source/chromite/lib/cros_import.py", line 43, in ImportModule
module = __import__(target)
File "/mnt/host/source/chromite/scripts/parallel_emerge.py", line 122, in <module>
KILLED = multiprocessing.Event()
File "/usr/lib64/python2.7/multiprocessing/__init__.py", line 211, in Event
return Event()
File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 302, in __init__
self._cond = Condition(Lock())
File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 147, in __init__
SemLock.__init__(self, SEMAPHORE, 1, 1)
File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 75, in __init__
sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)
OSError: [Errno 28] No space left on device
> email to chromium-os-d...@chromium.org.
My BKM is to periodically nuke the chroot and all the cache(s). This will help manage the disk usage. But you take the hit to download the tarball on next cros_sdk.
Run “cros clean –clobber –debug”
--
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.
$cros_sdk --nouse-image* Generating locale-archive: forcing # of jobs to 117:57:38: INFO: Determining required toolchain updates...17:57:39: INFO: Nothing to update!17:57:39: INFO: Nothing to clean!INFO cros_sdk:make_chroot: Running emerge curl sudo gentoolkit ...* Generating locale-archive: forcing # of jobs to 1
Traceback (most recent call last):File "/mnt/host/source/chromite/bin/parallel_emerge", line 168, in <module>DoMain()File "/mnt/host/source/chromite/bin/parallel_emerge", line 164, in DoMaincommandline.ScriptWrapperMain(FindTarget)File "/mnt/host/source/chromite/lib/commandline.py", line 889, in ScriptWrapperMaintarget = find_target_func(target)File "/mnt/host/source/chromite/bin/parallel_emerge", line 139, in FindTargetmodule = cros_import.ImportModule(target)File "/mnt/host/source/chromite/lib/cros_import.py", line 43, in ImportModulemodule = __import__(target)File "/mnt/host/source/chromite/scripts/parallel_emerge.py", line 122, in <module>KILLED = multiprocessing.Event()File "/usr/lib64/python2.7/multiprocessing/__init__.py", line 211, in Eventreturn Event()File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 302, in __init__self._cond = Condition(Lock())File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 147, in __init__SemLock.__init__(self, SEMAPHORE, 1, 1)File "/usr/lib64/python2.7/multiprocessing/synchronize.py", line 75, in __init__sl = self._semlock = _multiprocessing.SemLock(kind, value, maxvalue)OSError: [Errno 28] No space left on device
You received this message because you are subscribed to a topic in the Google Groups "Chromium OS dev" group.
To unsubscribe from this topic, visit https://groups.google.com/a/chromium.org/d/topic/chromium-os-dev/yVEWDR7wDfA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to chromium-os-dev+unsubscribe@chromium.org.
On Tue, Aug 29, 2017 at 9:04 PM, Pratik Prajapati <pratik.p...@gmail.com> wrote:From my earlier email,Filesystem Size Used Avail Use% Mounted ontmpfs 16G 133M 16G 1% /dev/shmThis issue has really blocked me 100% :( Is this a bug on cros_sdk?
I don't think this is a known issue. Could you provide a list of steps that get into this state, e.g. does it affect a fresh chroot, do you have to run a particular command inside the chroot to see the problem, etc?Thanks,Benjamin
Hi Benjamin,This is just fresh chroot.Steps:my depot tools are also latest.I just do "cros_sdk --nouse-image" to create chroot environment and i see the issue.i get same error without --nouse-image param also.
You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-dev+unsubscribe@chromium.org.