Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notifies/subscribes seems to be ignored #147

Open
taisph opened this issue May 1, 2018 · 0 comments
Open

Notifies/subscribes seems to be ignored #147

taisph opened this issue May 1, 2018 · 0 comments

Comments

@taisph
Copy link

taisph commented May 1, 2018

Cookbook version

4.1.12

Chef-client version

12.21.31

Platform Details

CentOS Linux release 7.4.1708 (Core)

Scenario:

I want to stop a service prior to creating and mounting a volume.

Steps to Reproduce:

Recipe example:

lvm_thin_volume 'storage' do
  action :create

  group 'storage'
  pool 'thinpool'
  size '20G'
  filesystem 'xfs'
  mount_point location: '/mnt/storage'

  notifies :stop, 'service[myservice]', :before
end

service 'myservice' do
  action [:start, :enable]
end

Expected Result:

Service is stopped, volume created and mounted, then service is started again.

Actual Result:

Service is not stopped before creating and mounting the volume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant