GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.openstack.org — Developing with Devstack — DevStack documentation Developing with Devstack¶Now that you have your nifty DevStack up and running, what can you do with it? Inspecting Services¶By default most services in DevStack are running as systemd units named devstack@$servicename.service. You can see running services with. sudo systemctl status "devstack@*" To learn more about the basics of systemd, see Using Systemd in DevStack Patching a Service¶If you want to make a quick change to a running service the easiest way to do that is to change the code directly in /opt/stack/$service and then restart the affected daemons. sudo systemctl restart [email protected] If your change impacts more than one daemon you can restart by wildcard as well. sudo systemctl restart "devstack@n-*" Warning All changes you are making are in checked out git trees that DevStack thinks it has full control over. Uncommitted work, or work committed to the master branch, may be overwritten during subsequent DevStack runs. Testing a Patch Series¶When testing a larger set of patches, or patches that will impact more than one service within a project, it is often less confusing to use custom git locations, and make all your changes in a dedicated git tree. In your For instance: [[local|localrc]] NOVA_REPO=/home/sdague/nova NOVA_BRANCH=fold_disk_config Will use a custom git tree and branch when doing any devstack
operations, such as When testing complicated changes committing to these trees, then doing
You can use this same approach to test patches that are up for review in gerrit by using the ref name that gerrit assigns to each change. [[local|localrc]] NOVA_BRANCH=refs/changes/10/353710/1 Testing Changes to Libraries¶When testing changes to libraries consumed by OpenStack services (such as oslo or any of the python-fooclient libraries) things are a little more complicated. By default we only test with released versions of these libraries that are on pypi. You must first override this with the setting After that point you can also specify [[local|localrc]] LIBS_FROM_GIT=oslo.policy OSLOPOLICY_REPO=/home/sdague/oslo.policy OSLOPOLICY_BRANCH=better_exception As libraries are not installed editable by pip, after you make any local changes you will need to:
You can do that with wildcards such as sudo systemctl restart "devstack@n-*" which will restart all nova services. this page last updated: 2017-05-04 21:13:29
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |