service cinder-scheduler restart not restarting [closed]

asked 2014-12-06 06:17:01 -0500

Pradip gravatar image

updated 2014-12-06 21:27:06 -0500

From the python code, I would like to make a cinder-sch restarted.

So the code is something like:

    def _restart_service(self):
        c_sch = "service cinder-scheduler restart"
        call(c_sch, shell=True)

Even the bash-shell is giving this error:

ubuntu@ubuntu:~/devstack$ service cinder-scheduler restart
stop: Unknown instance:
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.105" (uid=1000 pid=24752 comm="start cinder-scheduler ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init ")

I tried with sudo. Response is:

ubuntu@ubuntu:~/devstack$ sudo service cinder-scheduler restart
stop: Unknown instance:
cinder-scheduler stop/waiting

Nothing restarted,

What can be the issue?

Thanks, Pradip

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by Pradip
close date 2014-12-06 23:42:08.176151