Error with CreateUserPlugin and SetUserSSHPublicKeysPlugin

asked 2015-03-05 16:15:57 +0200

davidkkim gravatar image

Hi, CreateUserPlugin and SetUserSSHPublicKeysPlugin failed on Windows 2012 R2 instance with the errors below. Can you please look into these errors?

Thanks, Tae

=========== errors ================ 2015-03-04 16:26:02.704 2148 INFO cloudbaseinit.init [-] Executing plugin 'CreateUserPlugin' 2015-03-04 16:26:02.704 2148 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2015-03-04 16:26:02.954 2148 INFO cloudbaseinit.plugins.windows.createuser [-] Creating user "cloud-user" and setting password 2015-03-04 16:26:05.471 2148 ERROR cloudbaseinit.plugins.windows.createuser [-] User logon failed 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser Traceback (most recent call last): 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\createuser.py", line 63, in execute 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser True) 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\osutils\windows.py", line 419, in createuserlogonsession 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser raise exception.CloudbaseInitException("User logon failed") 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser CloudbaseInitException: User logon failed 2015-03-04 16:26:05.471 2148 TRACE cloudbaseinit.plugins.windows.createuser 2015-03-04 16:26:05.471 2148 ERROR cloudbaseinit.plugins.windows.createuser [-] Cannot create a user logon session for user: "cloud-user"

2015-03-04 16:26:05.815 2148 INFO cloudbaseinit.init [-] Executing plugin 'SetUserSSHPublicKeysPlugin' 2015-03-04 16:26:05.815 2148 DEBUG cloudbaseinit.metadata.services.base [-] Using cached copy of metadata: 'openstack/latest/metadata.json' _getcachedata C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\metadata\services\base.py:74 2015-03-04 16:26:05.815 2148 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' loadclass C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\utils\classloader.py:27 2015-03-04 16:26:06.066 2148 ERROR cloudbaseinit.init [-] plugin 'SetUserSSHPublicKeysPlugin' failed with error '[Error 2] The system cannot find the file specified' 2015-03-04 16:26:06.066 2148 ERROR cloudbaseinit.init [-] [Error 2] The system cannot find the file specified 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init Traceback (most recent call last): 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\init.py", line 69, in execplugin 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init shareddata) 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit\plugins\windows\sshpublickeys.py", line 41, in execute 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init userhome = osutils.getuserhome(username) 2015-03-04 16:26:06.066 2148 TRACE cloudbaseinit.init File "C:\Program Files (x86)\Cloudbase Solutions\Cloudbase-Init\Python27\lib\site-packages\cloudbaseinit ... (more)

edit retag flag offensive close merge delete

Comments

Hello, In order to reproduce this issue, can you provide some further information like how cloudbase-init was installed or if the metadata service provided a plain text password? Thanks.

ader1990 gravatar imageader1990 ( 2015-03-05 16:55:49 +0200 )edit