puppetlabs / puppetserver

Server automation framework and application
https://tickets.puppetlabs.com/browse/SERVER
Apache License 2.0
292 stars 235 forks source link

/status/v1/services only reports running status #2844

Open Alives opened 5 months ago

Alives commented 5 months ago

Describe the Bug

According to API docs here https://www.puppet.com/docs/puppet/7/server/status-api/v1/services#get-statusv1services the status should return multiple different states, but it seems only running is ever returned.

When querying the services API, state running is returned after only 1 jruby instance is ready, not starting. I've never been able to get starting to show. I'm running 31 jruby instances.

Expected Behavior

All the states should be exposed according to the actual state of the service.

Steps to Reproduce

  1. Configure more than 1 jruby instance in the config
  2. Start puppetserver
  3. Query the API while watching the logfile
  4. It will take 1-2 seconds for each jruby instance to start until max instances are reached.
  5. During this time it is expected that state would be starting but running is returned instead.

Environment