We want also be able to noop_resource('service'). In order to do that we
also add stubs for status, start and stop. Without this it fails with:
[root@controller-0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG=/root/bandini.json python3 /var/lib/container-puppet/container-puppet.py 2>&1 | tee /tmp/puppet.log |grep Error:
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
[root@controller-0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG=/root/bandini.json python3 /var/lib/container-puppet/container-puppet.py 2>&1 | tee /tmp/puppet.log |grep Error:
<13>Oct 4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
<13>Oct 4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[rsyncd](provider=noop):Puppet::Type::Service::ProviderNoop
Related-Bug: #1945962
Change-Id: I9ee8108fe749e787b82f8f4c226f44685ab21a99
(cherry picked from commit 8e6e49d28d4db79745371f737a16731f2faad00b)
Reviewed: https:/ /review. opendev. org/c/openstack /puppet- tripleo/ +/812389 /opendev. org/openstack/ puppet- tripleo/ commit/ 04d8b5836152e5d 1da6f56f90e1667 9fe931b6c4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 04d8b5836152e5d 1da6f56f90e1667 9fe931b6c4
Author: Michele Baldessari <email address hidden>
Date: Mon Oct 4 12:34:21 2021 +0200
Add ability to noop a service
We want also be able to noop_resource( 'service' ). In order to do that we controller- 0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG= /root/bandini. json python3 /var/lib/ container- puppet/ container- puppet. py 2>&1 | tee /tmp/puppet.log |grep Error: rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop controller- 0 openstack-puppet]# NET_HOST=true DEBUG=True PROCESS_COUNT=1 CONFIG= /root/bandini. json python3 /var/lib/ container- puppet/ container- puppet. py 2>&1 | tee /tmp/puppet.log |grep Error: rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop rsyncd] (provider= noop):Puppet: :Type:: Service: :ProviderNoop
also add stubs for status, start and stop. Without this it fails with:
[root@
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Could not evaluate: undefined method `status' for Service[
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: Failed to call refresh: undefined method `status' for Service[
<13>Oct 4 10:28:26 puppet-user: Error: /Service[rsyncd]: undefined method `status' for Service[
[root@
<13>Oct 4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[
<13>Oct 4 10:29:03 puppet-user: Error: Could not set 'running' on ensure: undefined method `start' for Service[
Related-Bug: #1945962
Change-Id: I9ee8108fe749e7 87b82f8f4c226f4 4685ab21a99 745371f737a1673 1f2faad00b)
(cherry picked from commit 8e6e49d28d4db79