To use oslo.service in a project:
import oslo_service
The oslo.service library no longer assumes a global configuration object is available. Instead the following functions and classes have been changed to expect the consuming application to pass in an oslo.config configuration object:
from foo.openstack.common import service
launcher = service.launch(service, workers=2)
from oslo_config import cfg
from oslo_service import service
CONF = cfg.CONF
launcher = service.launch(CONF, service, workers=2)