New issue
Advanced search Search tips

Issue 870923 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

DevserverProvisionTask fails to create primarygroup at the right moment

Reported by jrbarnette@chromium.org, Aug 3

Issue description

Trying to provision a devserver with `bin/run_server_task DevserverProvisionTask`,
I ran into the following error:

[chromeos15-infra-devserver14.cros.corp.google.com] out: Notice: /Stage[main]/Profiles::Base::Chromeos_test/Exec[chown chromeos-test depot_tools]/returns: chown: invalid group: ‘chromeos-test:primarygroup’
[chromeos15-infra-devserver14.cros.corp.google.com] out: Error: chown chromeos-test:primarygroup -R /home/chromeos-test/depot_tools returned 1 instead of one of [0]
[chromeos15-infra-devserver14.cros.corp.google.com] out: Error: /Stage[main]/Profiles::Base::Chromeos_test/Exec[chown chromeos-test depot_tools]/returns: change from notrun to 0 failed: chown chromeos-test:primarygroup -R /home/chromeos-test/depot_tools returned 1 instead of one of [0]

The message seems to say that there's no entry for 'primarygroup' in
/etc/group.  However, after the failure, checking the contents of /etc/group
shows that the group is in fact present.

Seeing that there was no evident cause for the failure, I retried.  On the
second attempt, the command succeeded.

Attached is the full log, showing the first attempt (failure), and the
second attempt (success) as a single file.

 
deploy-14.log
68.4 KB View Download
Status: Available (was: Untriaged)
Trying the command myself, on a dummy file:

chromeos-test@chromeos15-infra-devserver14:~$ touch foo
chromeos-test@chromeos15-infra-devserver14:~$ chown --from chromeos-test:chromeos-test chromeos-test:primarygroup foo 
chown: changing ownership of ‘foo’: Operation not permitted
chromeos-test@chromeos15-infra-devserver14:~$ chown --from chromeos-test:chromeos-test chromeos-test:chromeos-test:primarygroup foo 
chown: invalid group: ‘chromeos-test:chromeos-test:primarygroup’
chromeos-test@chromeos15-infra-devserver14:~$ 

So no idea what's up there.
> Trying the command myself, on a dummy file:

When I ran it, it failed the first time because 'primarygroup' had
no entry in /etc/group.  However, _after_ the failure, there was an
entry for the group.  Thus, it passed the second time.

As for the failures in #c1 - the first failed because it has to be
run with 'sudo'.  The second failed because the command line syntax
was wrong.  The first failure _does_ demonstrate that the entry in
/etc/group was present and working (but that was expected, because
the server has already been deployed).

Sign in to add a comment