Ask Your Question
0

How to install devstack in Editable Mode

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

Karthik Prasad gravatar image

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

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
0

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

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

    Ctrl+c

    Arrow up (to get latest command executed)

    Enter

References:

https://www.gnu.org/software/screen/manual/screen.html (https://www.gnu.org/software/screen/m...)

edit flag offensive delete link more

Comments

I did restart the service. that is not question

Karthik Prasad gravatar imageKarthik Prasad ( 2017-03-24 04:50:53 -0500 )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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 61 times

Last updated: Mar 23 '17