Ask Your Question

finixlei's profile - activity

2019-04-18 10:16:28 -0500 received badge  Famous Question (source)
2018-02-27 12:21:02 -0500 received badge  Famous Question (source)
2018-02-27 12:21:02 -0500 received badge  Notable Question (source)
2017-02-22 16:23:57 -0500 received badge  Popular Question (source)
2017-02-19 20:57:41 -0500 received badge  Scholar (source)
2017-02-19 20:57:38 -0500 received badge  Supporter (source)
2017-02-17 22:56:25 -0500 asked a question Can nova-compute service get root privilege?

I would add a new Nova API as extension. The related handler function in nova-compute service will run some commands in local physical machine, i.e. the compute node. However, these commands require root privilege to run. Is it possible to let nova-compute service get root privilege for calling these commands?

2017-02-17 22:48:23 -0500 received badge  Notable Question (source)
2017-02-17 09:04:00 -0500 commented answer How to execute a command on hosts (physical machines) via OpenStack code?

Horizon is not a problem. It's not vanilla Horizon but a custermized Horizon, so it can get node name and IP addresses.
I'm thinking such a strategy. Design a new Nova API that takes IP/node name. Then nova-api and nova-compute can take over. However, maybe permission is a problem.

2017-02-16 17:34:04 -0500 received badge  Popular Question (source)
2017-02-13 01:44:34 -0500 asked a question How to execute a command on hosts (physical machines) via OpenStack code?

I am trying to modify/add some OpenStack code to implement such functionality: after users click one button on web page, some command will be executed on the specified host (e.g. one compute node). One user scenario is, enable KSM kernel feature on one specified host. All need to do is to execute "echo 1 > /sys/kernel/mm/ksm/run", then KSM kernel feature will be enabled. Now I can get the IP of the host (one compute node), but how to execute the above command by leveraging OpenStack code? (I checked all the Nova APIs. It seems there is no such Nova API to execute a command on a host. Also, I checked all the Ironic APIs. The same result.)