1 | initial version |
Hi I have the same behaviour. I was testing this today as well. Even if the parameter "firstlogonbehaviour" is set to "no", cloudbase still exexutes the piece of code that set the password as expired.
Cloudbase-init-unattended extract: inject_user_password=true first_logon_behaviour=no
Logs (the lines starting with ---> were added by me in the code before sysprep)
2016-10-19 10:05:09.507 1344 INFO cloudbaseinit.init [-] Executing plugin 'SetUserPasswordPlugin'
2016-10-19 10:05:09.507 1344 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27
2016-10-19 10:05:09.507 1344 DEBUG cloudbaseinit.metadata.services.base [-] Using cached copy of metadata: 'openstack/latest/meta_data.json' _get_cache_data c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\metadata\services\base.py:102
2016-10-19 10:05:09.507 1344 WARNING cloudbaseinit.plugins.common.setuserpassword [-] Using admin_pass metadata user password. Consider changing it as soon as possible
---> 2016-10-19 10:05:09.522 1344 DEBUG cloudbaseinit.plugins.common.setuserpassword [-] <oslo_config.cfg.ConfigOpts object at 0x0000000001578668> _change_logon_behaviour c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\setuserpassword.py:134
---> 2016-10-19 10:05:09.522 1344 DEBUG cloudbaseinit.plugins.common.setuserpassword [-] USER MUST CHANGE _change_logon_behaviour c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\plugins\common\setuserpassword.py:141
2016-10-19 10:05:09.522 1344 DEBUG cloudbaseinit.utils.classloader [-] Loading class 'cloudbaseinit.osutils.windows.WindowsUtils' load_class c:\program files\cloudbase solutions\cloudbase-init\python\lib\site-packages\cloudbaseinit\utils\classloader.py:27
2016-10-19 10:05:09.538 1344 INFO cloudbaseinit.plugins.common.setuserpassword [-] Password succesfully updated for user administrator
2016-10-19 10:05:09.538 1344 INFO cloudbaseinit.plugins.common.setuserpassword [-] Cannot set the password in the metadata as it is not supported by this service
2016-10-19 10:05:09.538 1344 INFO cloudbaseinit.init [-] Executing plugin 'ConfigWinRMListenerPlugin'