DevserverProvisionTask fails to create primarygroup at the right moment
Reported by
jrbarnette@chromium.org,
Aug 3
|
|
Issue descriptionTrying 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.
,
Aug 6
> 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 |
|
Comment 1 by jkop@chromium.org
, Aug 6