7746 Commits

Author SHA1 Message Date
Terry Wilson
4cfe2fc98a Have L3 agent catch the correct exception
L3 agent imports the processutils module to catch exceptions that
wouldn't ever be thrown because the underlying execute() being
called is the one from neutron.agent.linux.utils which raises a
RuntimeError on failure.

Also, processutils is now part of oslo.concurrency. So when we
actually start using it, we'll use it from there.

Closes-Bug: 1401626
Change-Id: I43874e1b63a0ba7b01415cafe0538f4343057066
2014-12-11 18:09:04 +00:00
Jenkins
6f2231a709 Merge "Move classes out of l3_agent.py" 2014-12-11 02:00:42 +00:00
Carl Baldwin
d7c5306360 Move classes out of l3_agent.py
The file l3_agent.py has become too large.  This patch is a simple
pure refactor to move some of the functionality in to other files
where things aren't too tangled up.  There is no functional change
with this patch and I avoided gratuitous other fixups in this patch in
order to make it easier to review.

I plan to follow up on the new l3_dvr and l3_agent_router modules with
more restructuring in the near future.

Partially-Implements: bp restructure-l3-agent

Change-Id: I3529fe4146c50c940f41eb26d0b5efc5870b3af9
2014-12-10 15:19:28 -07:00
Jenkins
764619df9a Merge "Services split, pass 2" 2014-12-10 22:14:55 +00:00
Jenkins
72d6b612ce Merge "Prettify tox output for functional tests" 2014-12-10 21:32:26 +00:00
Jenkins
279b1744df Merge "Add lbaasv2 extension to Neutron for REST refactor" 2014-12-10 20:18:19 +00:00
armando-migliaccio
0504420324 Prettify tox output for functional tests
Change I6a079ad introduced some magic to enable showing test output
as the test run. Do the same for *-functional tests too, by reusing
the default testenv

Change-Id: I6d1ede1c66e7b62c68449224f274417a5d66c12f
2014-12-10 10:33:11 -08:00
Jenkins
ada67a4120 Merge "Refactor test_migration" 2014-12-10 16:54:00 +00:00
Jenkins
6054d5d01e Merge "Use comments rather than no-op string statements" 2014-12-10 16:31:50 +00:00
Doug Wiegley
ec5fb4327e Services split, pass 2
- Nuke more services code, killing some refs in vmware plugin
- Vmware plugin foreign key relationships are temporary disabled
- Vmware unit tests are temporarily disabled
- Remove router insertion test, as its only user is going away
- Add thin service plugin shims
- Temporarily disable model sync test

Post services-split, existing neutron.conf configurations may contain
references to in-tree plugin classes.  Add thin shims so that those configs
will continue to work.

Change-Id: I5dd26def685bcc643e35badc23885afc6240ae94
2014-12-10 08:01:11 -07:00
OpenStack Proposal Bot
6bee8592b1 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I07afc0351a19e1c855a4659ffc0088674f4fdb6c
2014-12-10 06:08:03 +00:00
Doug Wiegley
2b2f96bffa Add lbaasv2 extension to Neutron for REST refactor
Change-Id: I9f4b9e1f151281d4a467b3b90980a32529a78334
Co-Authored-By: Brandon Logan <brandon.logan@rackspace.com>
2014-12-09 20:27:10 -07:00
Jenkins
e55e71524f Merge "Split services code out of Neutron, pass 1" 2014-12-10 00:23:42 +00:00
Jenkins
d6235cc41d Merge "Updated from global requirements" 2014-12-10 00:10:11 +00:00
Maru Newby
acde1b60dd Remove TODO for H404
There is no timeline or intention to fix this - it's a non-functional
formatting change.

Change-Id: Ib8e75bca41dbcd9dbb188ba8ee03ef51a479d9cc
2014-12-09 13:04:38 -07:00
OpenStack Proposal Bot
431918a112 Updated from global requirements
Change-Id: Ia0c24e84a56581c9e3f005dc67a3c5e834795ad0
2014-12-09 14:34:32 +00:00
Jenkins
7df578c451 Merge "Move set_override('root_helper', ...) to base functional class" 2014-12-09 01:33:34 +00:00
Doug Wiegley
407ee801e3 Split services code out of Neutron, pass 1
- After l3_agent is refactored, need to remove services/firewall
- After vmware plugin moves services out of monolothic,
  remove model copies and services/loadbalancer/constants,
  and re-enable unit tests.
- After alembic chain gets split in four, tweak models/head and
  fix heal/current chain.
- Re-factor test_routerserviceinsertion into one of the service repos

Partially-Implements: blueprint services-split
Change-Id: I5466984a9e57128266f97e9bd5c265f4dc3cba7b
2014-12-08 16:38:56 -07:00
Jenkins
88447598ab Merge "Print version info at start" 2014-12-08 22:44:19 +00:00
Angus Lees
cd5b3646c1 Use comments rather than no-op string statements
This change replaces a few no-op string statements with regular
comments.  While there was no harm in the previous use of strings for
comments, this allows us to re-enable the corresponding pylint check
which may catch genuinely unintended cases.

Change-Id: I796a059292e26c4df75c54f095d9e20e99187c98
2014-12-09 08:40:32 +11:00
Jenkins
3eb350ac06 Merge "Enforce log hints in ofagent and oneconvergence" 2014-12-08 14:26:41 +00:00
Jenkins
180fe98a9f Merge "Make sudo check in ip_lib.IpNetnsCommand.execute optional" 2014-12-08 08:51:19 +00:00
Ian Wienand
44eed73518 Print version info at start
When debugging problems from logs, it would be useful to know what
version is running across program start and stop.  In one case I have
a suspicion that an upgrade was run inbetween but the logs don't help
identify that.

My first thought was to grab this from argparse just as --version
does, but that's not really currently possible [1].

The original starting message is probably irrelevant, but I realise
log messages tend to suffer from Hotel California syndrome; you can
check-in but you can never leave.

[1] http://bugs.python.org/issue9399

Change-Id: Ia1bfd2f3589b508e19fd8a94d59beaafd6d657d2
2014-12-08 11:47:31 +11:00
Gary Kotton
907094bf12 Enforce log hints in ofagent and oneconvergence
This change enforces log hints use and removes debug level log
translation, modifications are validated through a hacking rule
and the change respects loggging guidelines. Validate that hacking
rules apply to directories:-
    neutron/plugins/ofagent
    neutron/plugins/oneconvergence

Change-Id: I520a36ae53848b828ce33f4050606a7238f4cbce
Partial-bug: #1320867
2014-12-07 21:58:13 +01:00
Jenkins
fcb4e82afd Merge "Update i18n translation for IBM plugin log msg's" 2014-12-07 20:01:42 +00:00
Assaf Muller
be34d3aa72 Make sudo check in ip_lib.IpNetnsCommand.execute optional
If the process runs as root the root_helper and sudo check
are not required.

Closes-Bug: #1393184
Change-Id: I7876ca7e4652f8152d1a8a0015cc897b09b31899
2014-12-07 17:25:40 +02:00
Assaf Muller
4cea10231d Move set_override('root_helper', ...) to base functional class
Change-Id: I0c2223ed2808573ee6b6fe5d56fd965a6e45541f
2014-12-07 14:14:29 +02:00
OpenStack Proposal Bot
c2c257188a Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I485eb4dde0b109bb19b17c6376ead45dec06ae99
2014-12-07 06:07:47 +00:00
Jenkins
ccdff9583b Merge "Update i18n translation for NEC plugin log msg's" 2014-12-05 22:32:15 +00:00
Jenkins
08d436720b Merge "Workflow documentation is now in infra-manual" 2014-12-05 22:26:44 +00:00
Jenkins
94afbcffc4 Merge "Imported Translations from Transifex" 2014-12-05 21:19:11 +00:00
Jenkins
eac3797259 Merge "tox.ini: Prevent casual addition of bash dependency" 2014-12-05 17:27:51 +00:00
Jenkins
e05aa3fd04 Merge "Cleanup recent generalization in post mortem debugger" 2014-12-05 17:16:45 +00:00
Jenkins
c5526ee9e0 Merge "Fix program name in --version output" 2014-12-05 10:29:02 +00:00
Jenkins
073e2813ee Merge "Updated from global requirements" 2014-12-05 08:23:42 +00:00
Gary Kotton
50d702899b Update i18n translation for NEC plugin log msg's
All the log messages now have the required hints. In addition to
this debug messages are not translated. This is done for the
plugins/nec directory.

Change-Id: Ic0a352cd61131637c471931e3e73995e2143675f
2014-12-05 00:00:29 -08:00
Yalei Wang
997e70751c return the dict of port when no sec-group involved
Commit abc16ebf made the get_sg_ids_grouped_by_port function not return
entries for ports without security groups. This causes the agent to not remove
previously created security groups for that port since the port is not
returned in the security_group_info_for_devices data.

This change fixes that by always including a list of security groups for each
port, even if that list is empty.

Change-Id: I9616708462a8b6f3d46ebd76db5cf8cb2826f4ad
Closes-Bug: #1398312
2014-12-05 06:16:34 +00:00
OpenStack Proposal Bot
1d2ebb07e1 Imported Translations from Transifex
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Ib225f6407faab9f86e36288f30365051d64c9d34
2014-12-05 06:09:31 +00:00
Xu Han Peng
f266d474b7 Update i18n translation for IBM plugin log msg's
All the log messages now have the required hints. In addition to this
debug messages are not translated.

This is done for the plugins/ibm

Change-Id: I8239e73eb959648178aa94535d15d77a817c89f5
2014-12-05 13:58:33 +08:00
Jenkins
1b0c20e326 Merge "Get rid of py26 references: OrderedDict, httplib, xml testing" 2014-12-05 03:51:54 +00:00
Jeremy Stanley
25ef9258a8 Workflow documentation is now in infra-manual
Replace URLs for workflow documentation to appropriate parts of the
OpenStack Project Infrastructure Manual.

Change-Id: I77aa4152a903a0f1f47de20bb1a006d29f5a1bf2
2014-12-05 03:30:37 +00:00
YAMAMOTO Takashi
846ae08d87 tox.ini: Prevent casual addition of bash dependency
While bash is not available on every environments, there seems to be
a tendency to introduce more bash dependency very casually.  This check
is intended to be a reminder to give people a chance to consider
alternatives.

Related-Bug: #1398266
Change-Id: I5103e0d7c111880d9a02dd93de56c567066ed14c
2014-12-05 03:25:47 +00:00
Jenkins
3518c9048e Merge "pretty_tox.sh: Portablity improvement" 2014-12-05 03:05:05 +00:00
Jenkins
5e12c0d927 Merge "Updated the README.rst" 2014-12-05 01:18:24 +00:00
Jenkins
d1be05f837 Merge "Enforce log hints in neutron.plugins.plumgrid" 2014-12-05 00:11:57 +00:00
Jenkins
da7bc35036 Merge "Remove ovs-vsctl call from OVSInterfaceDriver" 2014-12-04 23:19:44 +00:00
Jenkins
46053d991c Merge "Update i18n translation for Brocade plugin log msg's" 2014-12-04 23:01:38 +00:00
OpenStack Proposal Bot
6481570848 Updated from global requirements
Change-Id: I2995bb8d749b711b5a69a672d357d7c9b54850ad
2014-12-04 22:38:03 +00:00
Jenkins
6a5527abad Merge "Fix enable_metadata_network flag" 2014-12-04 21:47:11 +00:00
Jenkins
68ab9e91ce Merge "Update i18n translation for Nuage plugin" 2014-12-04 21:25:52 +00:00