service cinder-scheduler restart not restarting [closed]
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) return
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