905 Commits

Author SHA1 Message Date
Jenkins
b8680711a6 Merge "Fix ovs-vsctl executed in worlddump.py failed issue" 2016-05-11 06:13:44 +00:00
yan.haifeng
6ba17f7d01 Fix ovs-vsctl executed in worlddump.py failed issue
add sudo before ovs-vsctl command.

Change-Id: I1a7dd9504da766beb452bd749e325931678de64e
Closes-Bug: #1576560
2016-05-09 03:02:15 +00:00
John L. Villalovos
daa7a41e21 Export the 'short_source' function & don't keep PS4 in sudo
Export the 'short_source' function so that it will be present in the
environment for child shell scripts. Do this because we are passing PS4
to the child shell scripts and it is using 'short_source'

Don't do an 'env_keep' in the sudoers file for PS4, since it is
difficult to also pass along the 'short_source' function.

Change-Id: I9781010d6eb336d02939c7fd47f18bedeae5ccc6
Closes-Bug: #1563443
2016-05-06 10:50:58 -07:00
Huan Xie
bea1e1954a Set default value and configurable value for integration bridge
When using XenServer as hypervisor, install_os_domU.sh will create
integration bridge for compute node when neutron network is used.
But it should provide a way to allow moving of the VM to another
host (with a different XEN_INTEGRATION_BRIDGE) for easier install.
This patch is to provide the way to let user have the chance to
configure integration bridge themselves

Change-Id: If923a5e978e77fc091d24b6e1fe7a83a3375da09
2016-04-22 06:21:52 +00:00
Ihar Hrachyshka
ef219bfcaf worlddump: request Guru Mediation reports for neutron agents
Those reports may be helpful when debugging neutron gate issues.

pgrep is backwards compatible with old Solaris tools, which means it
does not match with commands that are longer than 15 characters. To
avoid that for neutron agent names which are longer than that, we need
to pass -f argument to match against the full cmdline.

Also killall instead of kill + pgrep in a subshell.

Change-Id: I9b3801e927c0e80443ed76e38cd8e3618e888e49
2016-04-15 08:27:54 +02:00
Jenkins
406b45b81a Merge "Remove shocco docs and other cleanups" 2016-04-14 21:24:25 +00:00
Jenkins
6452968cc9 Merge "In worlddump, execute ovs-ofctl for an only existing bridge" 2016-04-13 23:48:51 +00:00
Ian Wienand
7cd16ce48a Remove shocco docs and other cleanups
This is a fairly opinionated change to do some spring cleaning on the
documentation.

The current output of shocco as rendered at [1] is completely broken.
I can not see that it is worth us maintaining this.  Honestly, the
github page does a better job at showing the scripts with a bit of
formatting.  The "changes" page is similarly useless today.  cgit or
github show allow browsing of changes in the repo better.  Both are
removed along with support scripts.

When you currently hit the first page, it gives no clue as to what
DevStack actually is.  Add a paragraph explaining that, and link to
the cgit for easy source browsing.

stackrc.rst is not necessary; the stuff about database backends is
already discussed in configuration.rst; move the things about service
repos into a section of configuration.rst.

The discussion in openrc.rst is moved into the configuration.rst file.

localrc.conf.rst was just a paragraph pointing back to
configuration.rst; this is removed.

The variables described in exercise.rst are moved into a separate
section of configuration.rst

[1] http://docs.openstack.org/developer/devstack/#scripts

Change-Id: Ie7f4b265368f1d10a8908d75e11d625b2cc39e7c
2016-04-14 07:55:38 +10:00
fumihiko kakuma
578459f808 In worlddump, execute ovs-ofctl for an only existing bridge
When devstack fails, some or all bridges may not exist.
This change allows an only existing bridge to executes ovs-ofctl command.
And fix duplicate ofp version specified in protocol option of ovs-ofctl.

Change-Id: Ied01de727ca9b867ce87db358f72ae44838b63af
2016-04-14 07:25:05 +10:00
Jenkins
8bd1750e6a Merge "Add execution bit to generate-devstack-plugins-list.sh" 2016-04-13 20:00:11 +00:00
Jenkins
c93ccfcc1a Merge "print statment has become a function in py3" 2016-04-13 17:17:08 +00:00
Masayuki Igawa
d0931db1e8 Add execution bit to generate-devstack-plugins-list.sh
This commit adds an execution bit to generate-devstack-plugins-list.sh.
This should be useful for users.

Change-Id: I12d0a257eb1d487979d044c2e52e824a6ea4c02d
2016-04-13 19:05:01 +09:00
Ian Wienand
cb32230e52 Revert "Work around broken rabbitmq 3.6.1 packages on Fedora 23"
This reverts commit 616957d5981310e465e9fb3fd0c040751d8b0b63.

Fixed packages are released to F23 stable

Change-Id: I6c1ecaf9afb78afa3051922eb8347a2610e57416
2016-04-12 10:31:22 +10:00
Eyal
e7361775c1 print statment has become a function in py3
Change-Id: Ia616e1fdd4c3fc8e1a36b026e0c3e2a568dc6517
2016-04-10 08:30:29 +03:00
Ian Wienand
e9820732f1 Fix table in generated plugins list
Fix the table with a bottom border.  Regenerate the plugin list using
the script to make sure it works this time.

Change-Id: Iab3eb3879fd6017c55259e470477e4a9e34514e2
2016-04-08 09:10:55 +10:00
Jenkins
5df868e83d Merge "Fix a typo in comment for _get_ofp_version" 2016-04-06 18:38:28 +00:00
Jenkins
6109a6b7a9 Merge "Work around broken rabbitmq 3.6.1 packages on Fedora 23" 2016-04-06 13:29:16 +00:00
Ian Wienand
616957d598 Work around broken rabbitmq 3.6.1 packages on Fedora 23
Downgrade this package until we have a fix for the bug in the
comments.

Change-Id: I980d625fec7b11aff74814ee2d24fe9650e9f0a6
2016-04-06 17:27:01 +10:00
Ian Wienand
17e450131c Pad around table in plugin list
Make sure the table is separated out from header and footer content so
it actually gets picked up as a table.

Change-Id: I60a24b2476a55cfbf5c864a1c27ce5b98e699886
2016-04-06 09:27:56 +10:00
fumihiko kakuma
2bd2568bd1 Fix a typo in comment for _get_ofp_version
OpenFlow11 -> OpenFlow10

Change-Id: I2a501ccd32f5f7a39fd4bc746f00ca3f67bd98c1
2016-04-05 10:51:14 +09:00
Jenkins
ceb63203b2 Merge "In worlddump, cover all supported version of OpenFlow protocol by ovs-ofctl" 2016-04-04 23:48:21 +00:00
Clint Adams
930bc437af Plugin autogen list: put plugin names in the plugin names column
Change-Id: I1f2c66fa1bf8fd73ee6693d4919e33e3f14487c5
2016-04-02 15:11:45 -04:00
fumihiko kakuma
6099401e00 In worlddump, cover all supported version of OpenFlow protocol by ovs-ofctl
Currently ovs-ofctl command is executed for only default ofp version
(OpenFlow10).
Some Neutron's plugin uses OpenFlow13 and in that case ovs-ofctl fails.
This chage allows us to get ovs info for all ofp versions supported by ovs.
And adds dump by dump-ports and dump-ports-desc.

Change-Id: I2d3c42835a5ad0f5ebf540e8127762f466347c9c
2016-04-01 12:21:29 +09:00
Jenkins
8ab8f1ca45 Merge "Plugin autogen list: handle variable-width plugin names" 2016-04-01 01:55:56 +00:00
Jenkins
22498c19f6 Merge "install_pip.sh: Remove stale comments" 2016-03-30 23:40:06 +00:00
Sean Dague
646085d701 Add colorful PS4
PS4 can include functions, so when running in the LOG_COLORS=True mode
provide a grey function line so that it's easier to visually
distinguish the content from the location.

Also make it so the main prompt chunks off all the common path, which
means we can printf to 40 characters and have a pretty reasonable and
readable PS4.

Change-Id: I4a10a49db97d413349bcfceeb8c4164936fbcc40
2016-03-23 07:37:44 -04:00
Ian Wienand
c10989bf18 Plugin autogen list: handle variable-width plugin names
We've had a couple of cases where plugin names are longer than our
table width.

Take the fixed-with table-header out of the header file, and generate
it dynamically based on first-column width.  To simplify, take
advantage that RST allows a variable-length last column and so don't
specify it's width.

Add a link to the cgit URL for each project you can click on to browse
the source (link text remains the git:// URL).

Add some logging so you can see what the python generator is doing,
should you run it.

Change-Id: I5d5e692039bbb30b2508119412472dac1d105c08
2016-03-21 13:11:41 +11:00
YAMAMOTO Takashi
7c98cfb56e install_pip.sh: Remove stale comments
Change-Id: Id91c8e579977bedae1410095d9b4cef9d9ae2178
2016-03-18 21:24:46 +09:00
Jenkins
320f0d79a5 Merge "Remove EC2 API from devstack" 2016-03-17 18:01:59 +00:00
Balagopal
7ed812c6cd Change "secrete" to "secret"
Apparently this is intentional as a joke on devstack leaking
passwords, but the dual meaning of the word confuses people.  Let's
change it before we get yet another review fixing it.

Change-Id: I3bee03612f6ea197362aab04a37f81043f77f235
2016-03-17 14:53:03 +11:00
Ian Wienand
3bf69e835a Remove EC2 API from devstack
This all started with an investigation into Fedora's use of ecua2ools
package.  This package is a bit of a nightmare because it pulls in a
lot of other system-python packages.

For Ubuntu, this package was removed in
I47b7e787771683c2fc4404e586f11c1a19aac15c.  However, it is not
actually a "pure python" package as described in that change, in that
it is not installable from pypi.  I can't see how you could actually
run exercises/euca.sh on Ubuntu unless you installed euca2ools by hand
-- ergo I suggest it is totally unused, because nobody seems to have
reported problems.

In the mean time, ec2 api has moved to a plugin [1] anyway where the
recommendation in their README is to use the aws cli from amazon.

Thus remove all the parts related to EC2 and ecua2ools from base
devstack.

[1] https://git.openstack.org/cgit/openstack/ec2-api

Change-Id: I8a07320b59ea6cd7d1fe8bce61af84b5a28fb39e
2016-03-15 13:32:23 +11:00
Clint Adams
f3b6feb712 Don't abort devstack plugins proposal job due to absence of header/footer
Not having a header or footer should not be a fatal error
especially now that we have removed the footer entirely.

Change-Id: Ibbf3e513b8faa016dc2dac8d11ab4f499b3fc51c
2016-03-08 10:59:24 -05:00
Jenkins
a53f01e188 Merge "worlddump: log command failure details" 2016-03-07 14:30:12 +00:00
Ihar Hrachyshka
7976aacdf6 worlddump: log command failure details
If a command we trigger fails for some reason, it's worth logging
details about the failure (like return code).

Change-Id: Ib19aa474eccdd11e138a4f55e125935b621bca05
2016-03-03 15:31:43 +01:00
Clint Adams
bb40df5714 Increase Plugin Name column width by 10 in devstack plugins list
Change-Id: I62b1dca87ca8df4335a062caaf5e6a3e76e9101a
2016-03-01 18:12:48 -05:00
Clint Adams
e6f0d8cb40 Place the generated list in the correct location for the proposal job
If tools/generate-devstack-plugins-list.sh is invoked with a parameter,
as is the case with the proposal job, copy the generated list thither
so that git will actually generate a diff.

Change-Id: I874a521bba7f402f5c07e28d6ebb086e77873795
2016-02-26 08:25:32 -07:00
Clint Adams
8ce3faf4e7 Remove filesystem-based code path
This removes the fs-based git code path for detecting devstack plugins
as requested in I2c5c9282a8ad80014cad171a4dfbdc8f26044cd1

Change-Id: I6d1567c2545b866c433381d19587beb08c281c53
2016-02-26 08:18:13 -07:00
Jenkins
447af8f3f6 Merge "Generate plugins list through https requests" 2016-02-26 06:11:29 +00:00
Jenkins
c6b5fe3c72 Merge "Skip ovs_ and ebtables_dump if needed commands not present" 2016-02-25 00:46:19 +00:00
Jenkins
c3c91c4267 Merge "Minor fixes for bashate trunk" 2016-02-24 20:04:55 +00:00
Chris Dent
57d79673d9 Skip ovs_ and ebtables_dump if needed commands not present
Skip with a notification that a command was not found when trying
to run a dump that relies on optional external command.

Otherwise we produce noise in the error output that is misleading.

Change-Id: I0e3d99da8c54d2912463ecba7c1783864a7c7fc7
Closes-Bug: #1548833
Closes-Bug: #1506873
2016-02-24 02:51:26 +00:00
Clint Adams
e3e8051864 Generate plugins list through https requests
The devstack plugins list can be generated through web requests in
environments (such as the proposal slave) that lack copies of all
the relevant git repositories.

One downside to this is that there is no way of getting the last
modification time of the plugin.

Change-Id: I2c5c9282a8ad80014cad171a4dfbdc8f26044cd1
2016-02-18 17:48:33 -05:00
Jenkins
0afc6db67a Merge "worlddump: collect networking stack info from namespaces" 2016-02-17 15:08:49 +00:00
Ian Wienand
7ae97298c5 Minor fixes for bashate trunk
We don't have a new bashate release yet, but this fixes some minor
issues when used with bashate trunk.

The only two things triggered are stricter checking of assignment in
local declartions (catches quotes) and one instance of evaluating
arithmetic result in tools/xen/functions.

Therefore, hopefully, this change has no effect!

Change-Id: I3fd5d55236e90c2f2c25243af87adaf0c1b763e2
2016-02-16 14:50:53 +11:00
Jenkins
2da17a0b65 Merge "worlddump: add empty newline after every command output" 2016-02-14 14:42:51 +00:00
Jenkins
5073896cc9 Merge "Only use lsb_release for distro tags" 2016-02-14 14:42:43 +00:00
Jenkins
fe0c2ba7ad Merge "worlddump: include Open vSwitch info" 2016-02-12 00:37:48 +00:00
Ihar Hrachyshka
c1b7cb1117 worlddump: include Open vSwitch info
This may be useful when debugging neutron gate failures.

Change-Id: Iea3589456d2b05d233ba88523a5bd4ac114a0c86
2016-02-11 16:12:20 +01:00
Ihar Hrachyshka
190b29d45e worlddump: add empty newline after every command output
It makes it a bit easier to read the output since each new command is
now visually separated from the output of the previous one.

Change-Id: If441c61bb6f13f85f771dd31609b10d3dd1ee93c
2016-02-11 16:09:28 +01:00
Ihar Hrachyshka
72c34ee1aa worlddump: collect networking stack info from namespaces
Neutron hugely relies on namespaces, so we should try to dump
internal IP stack state for non-root network namespaces.

Change-Id: Ib980d22fbf3c6b680473754fa2b1684c2ef91b72
2016-02-11 16:08:16 +01:00