James,

On Wed, Mar 13, 2013 at 6:08 PM, jim <stra...@gmail.com> wrote:

> Hi Vladimir,
>
> Here is the information you are after:
>
> debug: Dism[AppServer](provider=dism): Executing
> 'C:\Windows\sysnative\Dism.exe
> /online /Enable-Feature /FeatureName:AppServer /NoRestart'
> err:
> /Stage[main]/Roles::Trm::Remote_desktop_services/Dism[AppServer]/ensure: ch
> ange from absent to present failed: Unexpected exitcode: 194
> Error:
> Deployment Image Servicing and Management tool
> Version: 6.1.7600.16385
>
> Image Version: 6.1.7600.16385
>
> Enabling feature(s)
> The operation completed successfully.
>
>
> debug: Dism[AppServer-UI](provider=dism): Executing
> 'C:\Windows\sysnative\Dism.e
> xe /online /Enable-Feature /FeatureName:AppServer-UI /NoRestart'
> err:
> /Stage[main]/Roles::Trm::Remote_desktop_services/Dism[AppServer-UI]/ensure:
>  change from absent to present failed: Unexpected exitcode: 194
> Error:
> Deployment Image Servicing and Management tool
> Version: 6.1.7600.16385
>
> Image Version: 6.1.7600.16385
>
> Enabling feature(s)
> The operation completed successfully.
>
>
> Then completes
>

I run into same issue with 194 "error" code just yesterday.

Actually dism.exe returns 3010 --- "restart required" (not an error). After
debugging I came into conclusion that this is Ruby bug, I reported it here:
https://bugs.ruby-lang.org/issues/8083 --- Ruby handles return codes as
one-byte value, but in windows it is actually 32-bit, so Ruby truncates
exit code 3010 (0b00001011 11000010) to 194 (lower byte of 3010:
0b11000010).

I made pull request to dism with workaround:
https://github.com/puppetlabs/puppetlabs-dism/pull/14

You can try dism with my modifications from here
https://github.com/vrutsky/puppetlabs-dism or modify manifest and add 194
as ok success code:

dism { 'AppServer':
  ensure => present,
  exitcode => [0, 3010, 194],
}



>
> Machine is Rebooted
>
> Here is the logs after running puppet agent again
>
>
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
>

This is definitely incorrect path to dism.exe (should be
C:\windows\system32\dism.exe or C:\windows\sysnative\dism.exe on 64-bit)
Can you provide environment variables information? (output of "set" command
in Administrator's cmd.exe).
Looks like dism module incorrectly expands WINDOWS environment variable.


> notice:
> /Stage[main]/Roles::Base::Activate_windows_2008/Exec[apply_activate_windows_2008]:
> Dependency Dism[NetFx3] has failures: true
> warning:
> /Stage[main]/Roles::Base::Activate_windows_2008/Exec[apply_activate_windows_2008]:
> Skipping because of failed dependencies
> debug: Puppet::Type::Dism::ProviderDism: file
> C:\Users\Administrator\WINDOWS\sysnative\Dism.exe does not exist
> err: Could not find a suitable provider for dism
> debug: Finishing transaction 141366492
>
> I hope this is what you are after
>
> regards
>
> James
>
>
>
>
>
>
>
> On Wednesday, 13 March 2013 12:37:25 UTC, Vladimir Rutsky wrote:
>
>> Can you provide complete log of running "puppet agent --test --debug" on
>> machine where you try to install Remote Desktop Services using Puppet?
>>
>>
>>
>> On Wed, Mar 13, 2013 at 4:12 PM, jim <str...@gmail.com> wrote:
>>
>>>  The error is only happening when trying to install Remote Desktop
>>> Services (old Terminal Server), it works fine with other roles/features
>>> like IIS etc
>>>
>>> I updated DISM from github by overwritting both lib / spec directorys
>>>
>>>
>>> On Wednesday, 13 March 2013 12:08:17 UTC, Vladimir Rutsky wrote:
>>>>
>>>> Hello,
>>>>
>>>> How you installed dism module?
>>>>
>>>> I "intalled" dism by copying dism git repository contents into
>>>> /etc/puppet/modules/dism/ and don't observe error that you have.
>>>>
>>>> --
>>>> Vladimir Rutsky
>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Puppet Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to puppet-users...@**googlegroups.com.
>>> To post to this group, send email to puppet...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/puppet-users?hl=en<http://groups.google.com/group/puppet-users?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to