Commit Graph

11537 Commits

Author SHA1 Message Date
OpenDev Sysadmins 2367bba36f OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:26:11 +00:00
Mark Washenberger 6ec8d7068e Add network id to exception when ipblocks are full
Change-Id: Ic55dfd57e53484cd8f5074cb103e8cfffddf40fc
2012-05-21 14:01:46 -04:00
Johannes Erdfelt aeb6791ab3 maper -> mapper
So it's spelled right and matches the other mapper functions

Change-Id: I5570558f9d7ed17e7b19edfafd0d631108178572
2012-05-02 20:01:44 +00:00
Johannes Erdfelt daaa222ab6 Use sqlalchemy sessions correctly so locking works
Fixes bug 990118

When using with_lockmode, it's necessary to use the same session for both
the select and the subsequent update/delete. Since a new session was
being used for each part, the lock was becoming an effective noop and
two requests could race with each other. Make sure we use one session
to prevent this from happening.

Change-Id: I6765c97266d13b795f1153b440cfc556df065787
2012-04-27 21:37:52 +00:00
Mandar Vaze d8ff17ecb9 Introduced option to delete deallocated ips immediately. Fixes bug
971504

New flag allows deleting IPs soon on deallocation. This removes the
need to run external script manually or via cron. Get old beaviour by
setting the falg to True.

Added test case for this beahviour.

Change-Id: Ife04dd85ed311e806b790f6d1487a963dd3a05af
2012-04-09 03:49:00 -07:00
Jason Kölker 91d1ec0753 Delete all allocatable_ips on ip_block delete
* Calls the delete method on the ip generator to clear the block of any
  allocatable_ips so the FK doesn't fail the constraint on block delete
* Fixes LP963396

Change-Id: Iaa1915e79adde23970ad7405477e8d82467a8a58
2012-03-23 14:44:53 -05:00
Aaron Lee 72ebf18512 Fixing initial migration
The last commit broke the initial migration(which is worse, because it was the
only substantial migration). This commit keeps from setting up the DB before
running migrations. If any future migrations need to read from the DB they
will need to do the same dance that's in 002.

Change-Id: Icedf99d95b538cb24cccccc4d47ef68bdf225b4c
2012-03-23 11:41:51 -07:00
Aaron Lee 7b6cfd4ace migrate device_id into UUIDs
Adding a migration to turn improper device IDs into device UUIDs. Also
fixing the migrations so the work.

Change-Id: I8f92e9f54bf0454c15531991c9d1050323f13349
2012-03-22 13:25:40 -07:00
Thierry Carrez e16b96ce9c Open Folsom
Bump version to 2012.2 to formally open Folsom development.

Change-Id: I7e6be322894dea79d1a890e72dd823e007ed06b6
2012-03-22 17:34:48 +01:00
Jenkins e2c979b76b Merge "Allows docs to be built on RTFD.org" 2012-03-15 23:15:37 +00:00
Jason Kölker 643b7094b2 Allows docs to be built on RTFD.org
* Makes me happy.

Change-Id: I01f4d5b13986255aa0f5572de028cc07ce116363
2012-03-15 18:12:35 -05:00
Aaron Lee 9fa87241df Letting allocated_ip_address filter by address
For Nova to filter instances by ip address we need
a way for melange to return an address without 
being scoped by tenant.

Change-Id: I9a9cddd4b86a562ac6610179776d0cdf41f1c044
2012-03-15 11:03:23 -05:00
Peng Yong aa76fce9aa check connection in Listener. refer to Bug #943031
Change-Id: I9fd064d7a9e953ea7d958982c483ccc358dbf7fa
2012-03-12 14:58:07 +08:00
Mark McLoughlin ae0ceea3e9 Update to latest openstack-common
Simply by running:

  $> cd openstack-common
  $> python update.py ../melange

We should do this more often.

Change-Id: I07ac084a14283c38ed39ecb9535436b96365bda8
2012-03-09 11:32:37 +00:00
Jason Kölker 01cb899ef7 Promote v1.0 to current
* Mark v0.1 as deprecated
* Add v1.0 to version list
* Use subclasses for wsgi Routers
* Add melange-manage route command to print routes
* Fixes certain routes not being exposed in the v1.0 api (LP947327)

Change-Id: Iac8294f2534decbbddf53230386fdbe8c622ff84
2012-03-05 15:48:46 -06:00
Hengqing Hu b69e9db4c1 Remove trailing whitespaces in regular file
Change-Id: I57863b354b38dd6618e4dfa9c27f0a107e244526
2012-03-03 12:56:37 +08:00
Jason Kölker a2ffd46412 Add the tenant_id to the block data
Change-Id: I72f9d3670bb5469eb09acd971dbc2d6acb9aabf7
2012-02-29 20:09:37 -06:00
Monty Taylor 45da662385 Add tox config for multi-python testing.
Change-Id: I9fdcb44cfe7859a53726c7235ea2b395e0d48160
2012-02-25 11:23:15 -08:00
Jenkins d50ce37a21 Merge "Fixes typo in plugin migration paths" 2012-02-21 15:39:24 +00:00
rajarammallya ea212892db Fixes typo in plugin migration paths
Change-Id: I83e5c1b342bcf25fb69235b8c4673e64375e11d9
2012-02-20 22:07:02 +05:30
rajarammallya a6bd529094 Docs for API introduced due to bluepring interface-api-cleanup.
Change-Id: Iee2db906d154a44bbdc369f04c745e29aeb469e3
2012-02-15 05:49:31 +05:30
rajarammallya fe4b075c15 New APIs as per blueprint interface-api-cleanup
Also defines the 1.0 API that doesnt contain the old apis of 0.1 that we plan
to remove

Change-Id: I3aed4fcfefc07af7026f94ae62d4e842d6145007
2012-02-15 05:49:31 +05:30
Aaron Lee ddca783309 fixes a pep8 error
This does not appear to change the functionality
of the file, just keeps it from angering pep8.

update: Kolker's suggestion

Change-Id: I6197e934e537746c9baa6a30c74c9e2df1d49836
2012-02-14 12:38:23 -06:00
rajarammallya c318aa7467 Allows pluggable algorithms for address generation.
Addresses blueprint scalability by extracting out ip/mac addresss generation
into separate pluggable components. Allows the address generator plugins to
create their own models and database tables.

Change-Id: If85b6c73d1e30c92f0e2ea80fea028813d612cb8
2012-02-10 22:48:22 +05:30
Jenkins d972581d1b Merge "Do not assume that a gateway is needed" 2012-02-09 21:41:33 +00:00
Jason Kölker b7edf8ca88 Do not assume that a gateway is needed
If a gateway isn't specified one should not be inserted automatically

Change-Id: I64e02914271bd017062cda156ae711f35896d7f0
2012-02-09 15:31:48 -06:00
Jason Kölker 05612066e9 Fix namespace declaration
melange/__init__.py may not exist depending on order of installation.

Change-Id: I875152afbd691e221414ef700371317730237506
2012-02-09 13:49:18 -06:00
Brian Lamar b4707d28ea Added logging to select areas of melange.
The biggest change here is that now by default SQLAlchemy will
not echo every query. This can still be turned on, but it is very
verbose. More specific log lines should be added for debugging after
this change.

Change-Id: Ia51933d268412ae61cf2df8c355c0fa1b365d57f
2012-02-08 01:41:32 -05:00
Monty Taylor a5b116b6fb Move changelog writing to openstack.common.
Change-Id: I8627efcc1ee74fa62d1dd1b5dc419c3c031d0175
2012-02-07 10:07:03 -08:00
Monty Taylor 73b5726559 Let openstack.common handle write_vcsversion().
Change-Id: Id2c494a304fac1b69c1514ac90865b27f49e9881
2012-02-07 10:07:03 -08:00
Monty Taylor 420e8836a5 Add tox config for multi-python testing.
Change-Id: I59ba68ae7fd9d92bd914716a8bdd14d702fd38b0
2012-02-07 10:07:03 -08:00
Jenkins 20f8c55630 Merge "Fixes LP925656" 2012-02-07 05:38:20 +00:00
Monty Taylor 379ef4a69b Update setup split from openstack-common.
Change-Id: I5cc8ef729b6ff0c85e57fa00c1c994038f2c8600
2012-02-06 07:53:59 -08:00
Troy Toman 487159df99 Fixes LP925656
Change-Id: I8ede34610bf16206544a7f48409715d036bde976
2012-02-02 13:53:38 -06:00
rajarammallya c2c5415058 Updates mac ranges and fixes errors in docs
Change-Id: I98ef53b4d2cfac7749268a4b4a15632ddcc6904e
2012-01-27 18:48:42 +05:30
Mark McLoughlin 41a38d96a6 Add lxml to pip-requires
Without this, I was getting:

  ERROR: Failure: ImportError (No module named lxml)
  ...
  ImportError: No module named lxml
  ...
  ERROR: test_versions_index (melange.tests.unit.test_versions.TestVersionsController)
  ...
  Got: ImportError('No module named lxml',)
  ...
  ERROR: test_versions_index_for_xml (melange.tests.unit.test_versions.TestVersionsController)
  Got: ImportError('No module named lxml',)

Change-Id: I73eac14526d4ea5991b5d7186d42208a4c230569
2012-01-26 16:49:46 +00:00
Mark McLoughlin e23effda88 Import copies of the required openstack.common modules
The APIs melange is using are "incubating" in openstack-common. See:

  http://wiki.openstack.org/CommonLibrary#Incubation

A config file is included for openstack-common's copy-and-paste script
to make it easy to update the code e.g.

  $> git clone .../melange
  $> git clone .../openstack-common
  $> cd openstack-common
  $> python update.py ../melange/

Note: the copies of the openstack.common modules should never be directly
modified, instead you should always make the modifications in openstack-common
and copy them across using the script.

Change-Id: I0245e30e4b4a9a2214c4f8a291b7f2caa54ab97e
2012-01-26 16:09:09 +00:00
Jenkins 5b5e1ec321 Merge "fixes bug 921698 by specifying network_owner_tenant_id" 2012-01-25 23:10:41 +00:00
Aaron Lee dd21327846 mac_addresses now come across in UNIX format,
the format preferred by hypervisors.

update: apparently re is no bueno 

Change-Id: Ie024e645b4c9a7c39e1e6cc0016a5eb11982312d
2012-01-25 16:11:47 -06:00
Matt Dietz eb294a5b69 Adds network_id to the ip_blocks view
Change-Id: I1ff225af98cc10624e5ff2866f1cad98c412a4f7
2012-01-25 20:08:34 +00:00
rajarammallya 509af89976 fixes bug 921698 by specifying network_owner_tenant_id
In the interface create API, uses an additional tenant_id parameter in the
network params for specifying the network owner tenant separately from the
instance owning tenant.

Change-Id: I57c2bf412b855eeb5f79dab8b3c5c46942819648
2012-01-25 23:17:25 +05:30
rajarammallya 0032811305 Corrected instance interface api doc.
fixed urls and made input params documentation clearer.

Change-Id: Iefe22d3a73391dc70f44c60ab3fb6ff600b604c2
2012-01-24 22:46:48 +05:30
rajarammallya 39bca997f1 Documentation for Instance's interfaces REST api
Change-Id: I36c1b311e3feb5a9eb3176592e308865f55d0e2b
2012-01-24 20:29:08 +05:30
rajarammallya 4d790361ea adds REST api for allocating all interfaces of an instance
Change-Id: I89c9b33f01af2a500879149f28d03c0aa2c17e6e
2012-01-24 15:13:18 +05:30
Jason Kölker af1e6f375c Declare the melange namespace
This allows the client module to share the melange.* namespace
Rename bin/melange to bin/melange-server

Change-Id: I0ae94fbad7912b2642a6f53217fbd16c700e0dad
2012-01-23 09:26:34 -06:00
rajarammallya ce0ba2e45a Removes client and associated functional test code
All the functionality removed has already made it into the client repo

Change-Id: Icc4748100d06d0bac08619d7fe17c924b81a106f
2012-01-23 17:36:07 +05:30
rajarammallya 94469fc379 fixes bug 919158 , default ip blocks are now optional
Change-Id: Ic15f18a7f56992afa214c667a84c834fe58566ea
2012-01-23 11:39:20 +05:30
rajarammallya 0894193d12 fixes bug 919155 by tracking deallocated macs in the allocatable_macs table
Change-Id: I6d78d503393e9c3e584dffec9a7ec50c7247afdd
2012-01-23 11:39:20 +05:30
Aaron Lee 454d352a99 Adding pip install instructions to readme.
Change-Id: Id3e5ee69ab2eb4cf327f0bfdc874b4eff329ee9c
2012-01-20 16:48:57 -06:00
rajarammallya 6b86a3b840 fixes bug 919055 allowing interfaces to be retrieved without device id
Change-Id: Ief7c881d55094f65f874c902c0b3ab394abf5f31
2012-01-20 18:16:14 +05:30