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

Ubuntu service.running enabled broken in latest release #24177

Closed
joshughes opened this issue May 27, 2015 · 11 comments
Closed

Ubuntu service.running enabled broken in latest release #24177

joshughes opened this issue May 27, 2015 · 11 comments
Labels
Bug broken, incorrect, or confusing behavior P1 Priority 1 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone

Comments

@joshughes
Copy link

v2014.7.5 of salt on Ubuntu 14.04 the following works

elasticsearch:
  service:
    - running
    - enable: True

With the latest 'stable' release (v2015.5.0) my serverspec tests fail because there is no startup entry created.

I confirmed the issue by restarting my machine and seeing that the elasticsearch service was not started on boot up.

After downgrading to v2014.7.5 the enabled: True flag works, the serverspec tests pass and on reboot elasticsearch starts.

@lorengordon
Copy link
Contributor

The 'latest' version available to a distro sometimes varies... Specifically which version experienced the problem? I saw there were a few changes to the enable function that went into the develop branch only, and another pr was just merged yesterday into the 2015.5 branch. Far as I can tell, I don't think any of that has made it into an actual release, yet, though...

@joshughes
Copy link
Author

@lorengordon I was on 'stable' not latest. At least that is what I am passing to the salt boostrap script... Let me get the exact version.

@lorengordon
Copy link
Contributor

You can just copy-paste the output of salt-call --versions-report to provide the version of salt and its dependencies.

@joshughes
Copy link
Author

@lorengordon

vagrant@vagrant-ubuntu-trusty-64:~$ salt-call  --version
salt-call 2015.5.0 (Lithium)

@joshughes
Copy link
Author

I an confirm that v2015.5.0 does not work and v2014.7.5 does. This is running on Ubuntu 14.04.

@tbaker57
Copy link
Contributor

This might be a duplicate of #24012, which has now been closed/fixed.
cheers,
Tim

@lorengordon
Copy link
Contributor

Ahh, I think you're right @tbaker57. That fix was only merged into develop though and doesn't appear to have been backported to 2015.5. In the associated PR, it also seems that @jfindlay had some concerns that reverting the earlier commit would simply re-introduce the behavior that it was trying to fix...perhaps there's another patch in the works?

@jfindlay jfindlay added Bug broken, incorrect, or confusing behavior severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around P1 Priority 1 Platform Relates to OS, containers, platform-based utilities like FS, system based apps labels May 28, 2015
@jfindlay jfindlay added this to the Approved milestone May 28, 2015
@jfindlay
Copy link
Contributor

I'm not sure which solution is correct, or if a 3rd is needed, without spending some more time on this. If anyone else has information, you are welcome to include it here, thanks.

@kiorky
Copy link
Contributor

kiorky commented May 29, 2015

@lorengordon i made recently two loads of fixes for enable/disable which were merged onto 2015.5 but i doubt for them to have hit any releases.

If you are touching to ubuntu vivid (>= 15.04), you also need #23060

cc @basepi @joshughes

@rallytime
Copy link
Contributor

It looks to me like perhaps the fix that is marked for backporting may be fixing more problems than the original fix was attempting to solve. I am going to backport the fix from develop to 2015.5 for now, and if that original issue pops up again, then we can address this again. See #24345.

@meggiebot
Copy link

Closing per the above comment ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug broken, incorrect, or confusing behavior P1 Priority 1 Platform Relates to OS, containers, platform-based utilities like FS, system based apps severity-medium 3rd level, incorrect or bad functionality, confusing and lacks a work around
Projects
None yet
Development

No branches or pull requests

7 participants