479 Commits

Author SHA1 Message Date
armando-migliaccio
b14c06b5ed Fail if required extensions are missing
If the required extensions are missing, we currently log an error
that is going to be practically ignored. That said, the unfulfilled
requirement will most definitely going to lead to other failures,
so we might as well fail fast.

This patch also cleans up some <barf>dns-integration nonsense</barf>
within the ML2 framework: the extension must not be declared statically
as it's being loaded by the extension manager, and this fixes the lousy
unit tests we have to live with. As for the db base plugin, some cleanup
is still overdue, but it will have to be taken care of in a follow-up
patch.

Closes-bug: #1538623

Change-Id: Id50eeb52c5d209170042b48821a29af3421c2f5c
2016-01-29 16:20:07 -08:00
YAMAMOTO Takashi
caf9f21a82 devref: Fix a typo in i18n.rst
Change-Id: I8607a9b257b10fcce67deb52c284bd1a652e382f
2016-01-25 21:50:16 +09:00
armando-migliaccio
d56b5a6718 Add missing index entry for external dns integration
Change 93ac8b3a missed the entry. Let's add it.

Change-Id: Iaaad3821363a259bb05740883b346cf43b2951af
Closes-bug: #1537320
2016-01-24 18:35:51 -08:00
Jenkins
fa1bc2cdd7 Merge "neutron-db-manage: add has_offline_migrations command" 2016-01-23 10:38:52 +00:00
Ihar Hrachyshka
eb084af29d neutron-db-manage: add has_offline_migrations command
This command should be used by operators and deployment tools to
determine whether full neutron-server shutdown is needed for database
upgrade.

The change also makes neutron-db-manage tool to return the cumulative
result of commands being issued (in most cases it will still be 0 only,
since our command handlers implicitly return None).

DocImpact: Update doc to add new command 'has_offline_migrations' to
'neutron-db-manage' tool. The command determines whether full
neutron-server shutdown is needed for database upgrade.

Closes-Bug: #1519118
Change-Id: I7c5a4882ad4f80459ebe69c9a9c43cc60ce50200
Co-Authored-By: Martin Hickey <martin.hickey@ie.ibm.com>
2016-01-22 13:55:40 +00:00
Miguel Lavalle
93ac8b3a33 External DNS driver reference implementation
An interface with an external DNS service is defined for Neutron. A reference
implementation is also included, based on Designate. The interface and the
driver will enable users to publish in the external DNS service the dns_name
and dns_domain attributes associated with floating ips, ports and networks. As
a consequence, the floating ips and networks api is extended to manage dns_name
and dns_domain attributes. The dns_name attribute was added to ports in a
preceding commit

DocImpact: Introduce config option external_dns_driver to specify a driver
for external dns integration. For more info, see
doc/source/devref/external_dns_integration.rst

APIImpact
Implements: blueprint external-dns-resolution

Change-Id: Ic298ad2558410ab9a614f22e1757d1fc8b22c482
2016-01-21 21:55:08 +00:00
Ann Kamyshnikova
924f19e8f1 Make object creation methods in l3_hamode_db atomic
Methods _create_ha_network, add_ha_port don't have wrapping
transaction in them, so they are prone to race conditions.
This commit adds a transaction to them. To avoid problem with
rolling back outmost transaction during exception handling,
internal methods have been wrapped in nested transaction.

Nested transaction is required in places like this:

def create():
      create_something()
      try:
            _do_other_thing()
      except Exception:
             with excutils.save_and_reraise_exception():
                     delete_something()

def _do_other_thing():
     with context.session.begin(subtransactions=True):
         ....

When exception is raised in _do_other_thing it
is caught in except block, but the object cannot be deleted in
except section because internal transaction has been rolled back.

A new method safe_creation and has been added
that provides a common way of handling such situations.

Closes-bug: #1501686

Change-Id: I952f6f7f8684743aa7f829bd92b1dc41b2c6aecf
2016-01-18 13:36:39 +03:00
Jenkins
ab68da426f Merge "Fix the duplicated references" 2016-01-17 20:36:42 +00:00
Jenkins
92fb281257 Merge "Add opnfv tag to the list of auto-complete tags" 2016-01-17 20:35:15 +00:00
armando-migliaccio
c1d2ef0149 Fix the duplicated references
Change-Id: Id527718bf25be54b765dfa6f3f1155ff3485ae64
2016-01-15 11:22:40 -08:00
armando-migliaccio
ce6b78f981 Add opnfv tag to the list of auto-complete tags
The OPNFV project [1] is a reference implementation of the
ETSI NFV architecture built on open source components.
OpenStack, and Neutron in particular, are key elements of
this story, and many requirements and issues are driven and
submitted by OPNFV folks that work in both communities.

This tag makes sure that we can keep all of them together for
tracking purposes.

[1] http://superuser.openstack.org/articles/openstack-and-opnfv-strengthen-collaboration-for-telcos

Change-Id: Ie1675ef6f177558f579097fe035494b9380232d0
2016-01-15 11:16:23 -08:00
YAMAMOTO Takashi
9df00aca88 doc: Update Ryu Ishimoto's IRC nick
It seems he prefers this nick these days.

Change-Id: I726448149fa534cde717278bb42a2108dcd3742e
2016-01-15 13:35:05 +09:00
armando-migliaccio
7d061045ad Fix URLs for pep8, and unit tests jobs
We switched to constrained jobs a while back, but these links were
showing the non constrained ones, making these graphs useless.

This patch updates them to reflect the jobs that are currently
running, however the docs job is left for later as right now
switching would make graphite fail with:

'TypeError: reduce() of empty sequence with no initial value'

I suspect that's because the job has never failed so far.

Change-Id: I60cab40f3c12099d8437616d8301aecd858ef54c
2016-01-13 12:14:11 -08:00
Jenkins
8fd6456483 Merge "Provide pointer for ML2 extension manager to effective guide" 2016-01-09 04:50:42 +00:00
Jenkins
fd4be32712 Merge "Fixing the deprecated library function." 2016-01-08 04:08:14 +00:00
Jenkins
dec01b8583 Merge "ovs_vhostuser: fix vhostuser_socket_dir typo" 2016-01-07 01:37:36 +00:00
Harshada Mangesh Kakad
4fe1864351 Fixing the deprecated library function.
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I2ff32c4dc37c543696125ac755dc4adb69ddacdf
Partial-Bug: #1529836
2015-12-30 08:35:44 -08:00
Jenkins
550ab90c1b Merge "Add tests that constrain db query count" 2015-12-25 16:34:32 +00:00
Jenkins
bf9e4133eb Merge "Add address scope to floating IPs in RPC response to L3 agent" 2015-12-24 00:07:41 +00:00
Carl Baldwin
02439b6730 Add address scope to floating IPs in RPC response to L3 agent
The L3 agent needs to know the address scope of the fixed ip of each
floating ip because floating ips are a way to cross scope boundaries.
Without the scope information, there could be ambiguity and no way to
know which scope to send it to.

[1] https://review.openstack.org/#/c/189741/

Change-Id: Id9f8c12954a6efbf4d9b99c011652eefbe5f5145
Partially-Implements: blueprint address-scopes
2015-12-23 10:16:15 -07:00
Kevin Benton
4885ef4885 Add tests that constrain db query count
This patch adds unit tests to ML2 and L3 that ensure that the
number of DB calls during list operations for ports, networks,
subnets, routers, and floating IPs remains constant regardless
of the number of ports.

These will prevent changes from slipping in that result in
a separate DB query for each object in a list operation
(for changes to the extensions used by ML2 and the DVR plugin).

Related-Bug: #1525295
Related-Bug: #1513782
Related-Bug: #1525423
Related-Bug: #1525740
Related-Bug: #1526644

Change-Id: I1958fc7c318bbf73238a3ad5be133fa7800c8290
2015-12-21 11:54:38 -08:00
armando-migliaccio
5a403468bc Provide pointer for ML2 extension manager to effective guide
This is sorely missed in the devref. More content should be
added. Hint hint.

Change-Id: If8a7e98a9ebd6b4fe7effa6c577ea818c63d8d85
2015-12-18 16:56:28 -08:00
armando-migliaccio
fce62cf424 Add notes on loading strategies for ORM relationships
There have been a number of regressions caused by our inability
to thoroughly review relatiohships' loading strategies. We should
at least make an attempt to remind ourselves, and since I am guilty
as charged, this patch is my attempt to redemption.

Change-Id: I879cfceaa51386e9d6c683e7e02487df92b7e290
2015-12-18 16:34:21 -08:00
Assaf Muller
aee9ac8db7 Add new troubleshooting bugs tag
The rationale is that we would have a single tag to track all
bugs that are about admin and user ease of use, logging quality,
and debuggability.

Change-Id: Ie42e08c924c9e742bdc6d9f4b68bdfbd1a622ba4
2015-12-17 18:59:13 -05:00
Jenkins
327c12770f Merge "Updating devref for networking-onos project" 2015-12-16 07:24:56 +00:00
vikram.choudhary
8bf16fa764 Updating devref for networking-onos project
Below changes are done as part of this patch.
* Mention about ONOS l3 support.
* Proposing Mr. Albert Dongfeng as a lieutenant for networking-onos.

Change-Id: I87827b08ed868f68cbd49c1fa7b91352d3c46605
2015-12-15 08:19:00 +00:00
Jenkins
dbc541be54 Merge "Add address scope to ports in RPC response to L3 agent" 2015-12-12 00:09:32 +00:00
Jenkins
08bd35fa6f Merge "Add linuxbridge job to the dashboard" 2015-12-10 09:15:45 +00:00
Jenkins
8e9a737801 Merge "devref: Rolling upgrade mechanism for rpc-callbacks" 2015-12-10 09:11:19 +00:00
armando-migliaccio
62bbafb711 Add linuxbridge job to the dashboard
This is to track the failure rate, and it's not looking good so far.

Change-Id: Id6f8b751a2554904f015e642d09354d645927967
2015-12-09 17:19:37 -08:00
Wanlong Gao
a487982090 ovs_vhostuser: fix vhostuser_socket_dir typo
s/vhoustuser_socket_dir/vhostuser_socket_dir/

Change-Id: I4317b59d683e1aedf5e49049309c5b089516eb81
Signed-off-by: Wanlong Gao <wanlong.gao@easystack.cn>
2015-12-09 15:28:04 +08:00
Neil Jerram
d3cd45212b Document relationship between ways of documenting new stuff
Change-Id: I55329c8add108a5a7d0d65f024b19fb2412238d6
2015-12-08 20:20:08 +00:00
Jenkins
a036dffbb4 Merge "Moved fullstack test doc content to TESTING.rst" 2015-12-08 02:46:57 +00:00
Carl Baldwin
c7d0d2e569 Add address scope to ports in RPC response to L3 agent
The L3 agent needs to know the address scope of each port of each
router it sets up in order to enforce isolation between scopes.

This commit adds a devref for the address scopes and subnet pools
features.

Change-Id: I6a7b3708fadefff1919d70ab1b8bc345b3fbe81c
Partially-Implements: blueprint address-scopes
2015-12-07 21:57:41 +00:00
Jenkins
9a1e3a2219 Merge "I18n related guideline for subprojects" 2015-12-06 20:41:35 +00:00
Jenkins
f698177f24 Merge "Trivial typo fix in LinuxBridge dashboard" 2015-12-05 11:12:38 +00:00
Jenkins
13a81ab71d Merge "Delete stale neutron-server manual" 2015-12-05 07:50:48 +00:00
armando-migliaccio
eb5c66c36a Delete stale neutron-server manual
The configuration options come from oslo and the server
executable is usually wrapped in a service script, supplied
by packagers and/or deployment tools. Any extra documentation
available in tree is of relative value, and the fact that
this file has been virtually ignored ever since it was
added is a testament of that.

Let's stop its agony and wish it to rest in peace.

Closes-bug: #1520041

Change-Id: If5bba557526903b8064ee28628a21c3459ca85bc
2015-12-04 18:43:28 -08:00
Henry Gessau
24fad53ae5 Final decomposition of the nuage plugin
This removes what's left of the nuage code and artifacts from the
neutron tree. All the vendor code is now in the
nuagenetworks/nuage-openstack-neutron repo on github.

Closes-Bug: #1518643

Change-Id: Ifbb9484f36a3e42c6039c42c7f8d0bcbd482bbf8
2015-12-04 15:08:37 -05:00
Sean M. Collins
1d8ee956a7 Trivial typo fix in LinuxBridge dashboard
Change-Id: Id968202645b4302123611b906047224403b6a77d
2015-12-04 14:00:25 -05:00
Jenkins
5fdab56c36 Merge "Add instrumentation devref, Part I" 2015-12-04 17:12:42 +00:00
Jenkins
004570821f Merge "[policy] Clarify bug deputy does not require core bit" 2015-12-04 02:18:55 +00:00
Assaf Muller
41d0498dc4 Moved fullstack test doc content to TESTING.rst
* Removed long term goals documentation (I don't see a need
  to document these).
* Added and rearranged short term goals.

Change-Id: If494533cb6507f18b84a41b3f1daf42cd10d9f51
2015-12-03 17:02:54 -05:00
Sean M. Collins
8681ef7498 [policy] Clarify bug deputy does not require core bit
Some small changes - since the original paragraph didn't mention that
core is not required until the very last sentence.

Change-Id: I113371933754c109247c5f2b789cda135dce8563
2015-12-03 14:35:48 -05:00
Ryan Moats
1f329c5d01 Add instrumentation devref, Part I
Presents what instrumentation is available from VIFs in Nova,
Metering Lables and Rules, Linux Bridge, and OVS. Proposes
mappings for structures defined in RFC 2863 and RFC 4293 and
the method that will be followed for a data collection proof
of concept.

How to aggregate and consume these counters will be covered
in future patch sets that extend this devref.

Change-Id: I6c1ad0c4cf60d0069c5e057d77f75c12b04a020c
Partial-bug: #1475736
2015-12-03 09:40:27 -06:00
Akihiro Motoki
bd36baf3ec I18n related guideline for subprojects
Related-Bug: #1519493
Related-Bug: #1520094
Change-Id: I183c1f2226ee7aef96b958d888ca3b7a3f9e9a2e
2015-12-02 22:33:04 +09:00
Doug Wiegley
dd726ed494 Move i18n to _i18n, as per oslo_i18n guidelines
- This does NOT break other projects that rely on neutron.i18n,
  as this change includes a debtcollector shim to maintain those
  older entry points, until they can migrate.
- Also updates _i18n.py to the latest pattern defined by oslo_i18n
- Guidance and template are from the reference:
  http://docs.openstack.org/developer/oslo.i18n/usage.html

Partially-Closes-Bug: #1519493
Change-Id: I1aa3a5fd837d9156da4643a367013c869ed8bf9d
2015-12-01 19:29:10 -07:00
Miguel Angel Ajo
0ddb66f0ed devref: Rolling upgrade mechanism for rpc-callbacks
Versioned Object push notifications require the server to be aware
of supported versions in the agents, since they are subscribed
to neutron-vo-<resource-type>-<version-number>.

During upgrade time, the server would need to downgrade and serialize
the objects across version subset, and send it to the fanout
queues for agent consumption.

One manual solution could be manual admin pinning, but we can do
better than that, making administrator lives easier if we provide
a reliable mechanism for remote version auto discovery.

Change-Id: I02b694137eb2d58e5f2f3e7631f0e4b90f7c17ad
2015-12-01 19:22:06 +01:00
Henry Gessau
1d1beba7bc Update 'Contributing Extensions' devref for Mitaka
The "Liberty Steps" are now completed.

Change-Id: I4526be2e75bdd475c98805d1192d9e2486217ee6
2015-11-30 08:06:51 -05:00
Jenkins
fe6cca8f7f Merge "Update toctree of neutron document" 2015-11-28 14:42:09 +00:00