Ask Your Question

How to install devstack in Editable Mode

asked 2017-03-23 07:38:28 -0600

Karthik Prasad gravatar image

updated 2017-03-23 07:39:17 -0600

I'm trying to modify python files in neutron. However changes are not being invoked as other logs in same method are found. I see pyc file bieng generated as well. And not sure where to set -e in pip insall command. In devestack I see setup_devlop method is used to install in packages in editable mode. But not sure how to enforce particular service/component to use this method.

Any insight is much appreciated.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-03-23 10:03:51 -0600

luz-cazares gravatar image

You have to restart the neutron service from devstack screen:

  1. List existing screens - there should be something like 1234.stack

    $ screen -ls

  2. Attach to the screen

    $ screen -x 1234.stack

  3. Select neutron screen window

    Press keys: (Ctrl+a ")

A list of windows is displayed:

Num   Name
  0         shell
  1        dstat
  2        key

Note: Each window represents a running openstack service.
         For instance, for nova services, windows start with 'n-*' (n-api, n-cpu, etc).
         In the case of neutron, services starts with 'q-*' (q-svc, q-agt, etc)
  1. Select the screen window of the service to be restarted

  2. Restart


    Arrow up (to get latest command executed)


References: (

edit flag offensive delete link more


I did restart the service. that is not question

Karthik Prasad gravatar imageKarthik Prasad ( 2017-03-24 04:50:53 -0600 )edit

Devstack is on edit mode by default. Just modify the class that you want (default location) /opt/stack/*. And restart the screen service (running service) so that changes take effect. You can add a break point to debug via pdb.set_trace(). If code is executed, flow will stop within screen(service).

luz-cazares gravatar imageluz-cazares ( 2017-03-24 12:17:26 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-03-23 07:38:28 -0600

Seen: 92 times

Last updated: Mar 23 '17