Windows woes.....how to send a refresh event to an array of services, with one service depending on one other?

69 views
Skip to first unread message

Stephen Wallace

unread,
Oct 2, 2014, 2:00:04 AM10/2/14
to puppet...@googlegroups.com
Hi,

I'm using PE 3.1.1 on Win2k8R2.

I'm sending a refresh event to a class containing this declaration.....

   service { ['Sentinel RMS License Manager', 'Micro Focus XDB Server for ETD 2.2', 'Micro Focus CES daemon']:
     ensure => 'running',
     enable => 'true',
   }

This results in the follow Windows error embedded in the puppet debug output.....

*****
Error: /Stage[main]/Mf_ent_test_server::Init2/Service[Sentinel RMS License Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of 'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned 4294967295: The following services are dependent on the Sentinel RMS License Manager service.
Stopping the Sentinel RMS License Manager service will also stop these services.

   Micro Focus CES daemon

Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
******

i.e. To refresh the License Manager, I also need to refresh "Micro Focus CES daemon"

I suppose chaining each service in turn ensure => stopped, then chaining each again ensure => running would do the trick. Bit messy however.

Any ideas on this one would be appreciated. Lovin' Windoze.....(probably!)

Regs

Stephen

Rob Reynolds

unread,
Oct 2, 2014, 3:50:51 PM10/2/14
to puppet...@googlegroups.com
It seems we could enhance the functionality of the windows service provider a bit. I'm not sure this is set up as a ticket yet after searching through our backlog. I can add a ticket for this

 

Regs

Stephen

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014September 20-24 in San Francisco

Rob Reynolds

unread,
Oct 2, 2014, 3:54:31 PM10/2/14
to puppet...@googlegroups.com
On Thu, Oct 2, 2014 at 1:00 AM, Stephen Wallace <whizbang...@gmail.com> wrote:
Hi,

I'm using PE 3.1.1 on Win2k8R2.

I'm sending a refresh event to a class containing this declaration.....

   service { ['Sentinel RMS License Manager', 'Micro Focus XDB Server for ETD 2.2', 'Micro Focus CES daemon']:
     ensure => 'running',
     enable => 'true',
   }

This results in the follow Windows error embedded in the puppet debug output.....

*****
Error: /Stage[main]/Mf_ent_test_server::Init2/Service[Sentinel RMS License Manager]: Cannot stop Sentinel RMS License Manager, error was: Execution of 'C:/Windows/system32/net.exe stop Sentinel RMS License Manager' returned 4294967295: The following services are dependent on the Sentinel RMS License Manager service.
Stopping the Sentinel RMS License Manager service will also stop these services.

   Micro Focus CES daemon

Do you want to continue this operation? (Y/N) [N]:
No valid response was provided.
******

This is not a desirable outcome at all.

 

i.e. To refresh the License Manager, I also need to refresh "Micro Focus CES daemon"

I suppose chaining each service in turn ensure => stopped, then chaining each again ensure => running would do the trick. Bit messy however.

Agreed that this would be messy. 
 

Any ideas on this one would be appreciated. Lovin' Windoze.....(probably!)

Regs

Stephen

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4a13d87f-1563-4994-a24e-322146eac348%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Wallace

unread,
Oct 2, 2014, 7:39:46 PM10/2/14
to puppet...@googlegroups.com
Thanks rob!

Rob Reynolds

unread,
Oct 3, 2014, 3:11:44 PM10/3/14
to puppet...@googlegroups.com


On Thu, Oct 2, 2014 at 6:39 PM, Stephen Wallace <whizbang...@gmail.com> wrote:
Thanks rob!


 

--
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.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages