Comment 5 for bug 1841816

Revision history for this message
Paride Legovini (paride) wrote :

Hi gcstang, thanks for providing the configuration file, however it seems that it's still not enough to describe the complete context which made your system run into the problem you are describing. The cloud-init.log file shows that cloud-init tried to add *both* the 'clouduser' and 'cloud-user' users, encountering an error on both cases:

  useradd: cannot create directory /home/cloud-user
  [...]
  useradd: cannot create directory /home/clouduser

and from journal.txt:

  OSError: [Errno 13] Permission denied: '/home/clouduser'

moreover cloud-init tries to setup the 'opc' user, but fails:

__init__.py[INFO]: User opc already exists, skipping
  util.py[DEBUG]: Running command ['passwd', '-l', 'opc']
  util.py[WARNING]: Failed to disable password for user opc

  Command: ['passwd', '-l', 'opc']
  Exit code: 1
  Stdout: Locking password for user opc.
          passwd: Error (password not set?)

My impression here is that cloud-init is trying to configure a dirty system. What would help is a more complete picture with some more context; in other words: can you describe which steps are needed to reproduce this issue from scratch?

Again, please set the bug status back to New after providing additional information. Thanks!