* why does useradd.bbclass loop retrying its commands?
@ 2014-11-15 5:37 Peter A. Bigot
2014-11-15 16:22 ` Richard Purdie
2014-11-15 21:19 ` Mark Hatle
0 siblings, 2 replies; 4+ messages in thread
From: Peter A. Bigot @ 2014-11-15 5:37 UTC (permalink / raw)
To: OE-core
The useradd, groupadd, and groupmems commands in useradd.bbclass are
executed in a loop with up to 10 failed attempts before they give up.
This appears to have always been the case, as long as that file has been
present.
Is there any reason why an initial failed attempt to execute one of
these commands would be expected to succeed on retry, other than because
delaying failure gives a chance for concurrently executing task to
complete and so satisfy a dependency?
(This isn't the root cause of the pseudo autobuilder failure under
multilib, but it did look plausible for a while.)
Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: why does useradd.bbclass loop retrying its commands?
2014-11-15 5:37 why does useradd.bbclass loop retrying its commands? Peter A. Bigot
@ 2014-11-15 16:22 ` Richard Purdie
2014-11-15 16:53 ` Peter A. Bigot
2014-11-15 21:19 ` Mark Hatle
1 sibling, 1 reply; 4+ messages in thread
From: Richard Purdie @ 2014-11-15 16:22 UTC (permalink / raw)
To: Peter A. Bigot; +Cc: OE-core
On Fri, 2014-11-14 at 23:37 -0600, Peter A. Bigot wrote:
> The useradd, groupadd, and groupmems commands in useradd.bbclass are
> executed in a loop with up to 10 failed attempts before they give up.
> This appears to have always been the case, as long as that file has been
> present.
>
> Is there any reason why an initial failed attempt to execute one of
> these commands would be expected to succeed on retry, other than because
> delaying failure gives a chance for concurrently executing task to
> complete and so satisfy a dependency?
Another recipe can be altering the files and holding the lock so in
theory, yes, the retries can help.
Cheers,
Richard
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: why does useradd.bbclass loop retrying its commands?
2014-11-15 16:22 ` Richard Purdie
@ 2014-11-15 16:53 ` Peter A. Bigot
0 siblings, 0 replies; 4+ messages in thread
From: Peter A. Bigot @ 2014-11-15 16:53 UTC (permalink / raw)
To: Richard Purdie; +Cc: OE-core
On 11/15/2014 10:22 AM, Richard Purdie wrote:
> On Fri, 2014-11-14 at 23:37 -0600, Peter A. Bigot wrote:
>> The useradd, groupadd, and groupmems commands in useradd.bbclass are
>> executed in a loop with up to 10 failed attempts before they give up.
>> This appears to have always been the case, as long as that file has been
>> present.
>>
>> Is there any reason why an initial failed attempt to execute one of
>> these commands would be expected to succeed on retry, other than because
>> delaying failure gives a chance for concurrently executing task to
>> complete and so satisfy a dependency?
> Another recipe can be altering the files and holding the lock so in
> theory, yes, the retries can help.
Makes sense. I do see that extrausers.bbclass has a comment explaining
why it only passes retries=1.
Peter
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: why does useradd.bbclass loop retrying its commands?
2014-11-15 5:37 why does useradd.bbclass loop retrying its commands? Peter A. Bigot
2014-11-15 16:22 ` Richard Purdie
@ 2014-11-15 21:19 ` Mark Hatle
1 sibling, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2014-11-15 21:19 UTC (permalink / raw)
To: openembedded-core
On 11/14/14, 11:37 PM, Peter A. Bigot wrote:
> The useradd, groupadd, and groupmems commands in useradd.bbclass are
> executed in a loop with up to 10 failed attempts before they give up.
> This appears to have always been the case, as long as that file has been
> present.
If multiple recipes/packages have the user, group, or shadow databases open --
the system will block until they are done maniuplating the file.
> Is there any reason why an initial failed attempt to execute one of
> these commands would be expected to succeed on retry, other than because
> delaying failure gives a chance for concurrently executing task to
> complete and so satisfy a dependency?
Depending on system, cores, etc.. we've seen easily it take up to 5-7 tries
before the files unlock and are available for processing.
--Mark
> (This isn't the root cause of the pseudo autobuilder failure under
> multilib, but it did look plausible for a while.)
>
> Peter
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-15 21:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 5:37 why does useradd.bbclass loop retrying its commands? Peter A. Bigot
2014-11-15 16:22 ` Richard Purdie
2014-11-15 16:53 ` Peter A. Bigot
2014-11-15 21:19 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox