Using owner with write_files in cloud config breaks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Setting the owner of a file injected with cc_write_files now breaks on raring and saucy, as the ubuntu is not found.
Traceback (most recent call last):
File "/usr/lib/
cc.
File "/usr/lib/
return self._runners.
File "/usr/lib/
results = functor(*args)
File "/usr/lib/
write_
File "/usr/lib/
util.
File "/usr/lib/
raise OSError("Unknown user or group: %s" % (e))
OSError: Unknown user or group: 'getpwnam(): name not found: ubuntu'
This is because the cc_write_files step happens very early, and before the cc_users_groups step, and current cloud images no longer include the ubuntu user.
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
(2 years on and) the bug still affects cloud-init
cc_write_files should be run after the users have been set up