736 Commits

Author SHA1 Message Date
Haomai Wang
4907ccca2a Replace nova client with cinder client to use volume
Now cinder support a few new features like extend volume which used in Trove.
We can't use nova client to enjoy this new feature, so we should change to use
cinder client as volume management.

implement bp implement-volume-extend

Change-Id: I4f9139bacd7d8b4c2538bff6aa54416b27c9026e
2013-08-04 22:31:34 -07:00
Jenkins
a9eb50ec60 Merge "Makes two tests wait for the instance to go ACTIVE" 2013-07-22 21:36:18 +00:00
Jenkins
c578c78934 Merge "Update to latest Oslo rpc modules" 2013-07-22 21:33:16 +00:00
justin-hopper
988d666af7 Added param name to validation error messages
Validation errors now pre-fixed with param name so that its
    easier to troubleshoot

Fixes: bug 1201993

Change-Id: Icff176de9f18fe08749473ee3d68c70c55be2c9c
2013-07-22 09:25:43 -07:00
Jenkins
e9d559d824 Merge "Fix drift in deleted timestamp for Notification and Database" 2013-07-20 04:07:09 +00:00
Jenkins
a4fd6b085a Merge "Make Volume conditionally required attribute in Instance Create Schema" 2013-07-19 23:46:11 +00:00
justin-hopper
91943c7b3c Fix drift in deleted timestamp for Notification and Database
The deleted timestamp for the usage event and the database
    were being set at different intervals.  Now the time is
    captured once and shared between both usages.

    If the server deletion times out, a log message will be
    recorded but it will not throw an exception.  Ensures
    completion of clean up and record of deletion

Fixes: bug 1201685

Change-Id: I66f52f8b8a3954989844d3b5fa0794913e94ddfa
2013-07-19 14:14:10 -07:00
Nikhil Manchanda
708f3230d0 Added developer documentation for Trove
Added initial sphinx/docutils documentation for Trove. Also made
corresponding changes to setup.cfg so that OpenStack CI is able
to build the Trove developer docs.

Fixes blueprint: trove-dev-docs

Change-Id: I900ffd2c0b661fb7642fa06c08ee92892eb176f0
2013-07-18 17:21:00 -07:00
Ed Cranford
9678ecef3b Makes two tests wait for the instance to go ACTIVE
In environments with limited resources, these two
tests can fail intermittently because of some timing
related to resizing. Waiting for the instance to
return to active resolves the resulting 422s.

Change-Id: Ib82f7dcd43f1f7fbba5c5ade44785243d9d1186d
2013-07-17 10:28:41 -05:00
Robert Myers
1815d5d566 Change the swift file deletion to use the manifest.
* Adding a _parse_manifest helper to parse the x-object-manifest header
* Delete file using the prefix in the manifest.
* Fix error handling in the delete_backup method.

Fixes Bug: #1194653

Change-Id: I34268f768a5cdb8085607269e2c2cb95974a539d
2013-07-16 14:17:37 -05:00
Jenkins
8c339954f0 Merge "Bump pbr to the version 0.5.16" 2013-07-16 05:18:12 +00:00
Jenkins
db9c21c881 Merge "Create templated config files" 2013-07-16 05:11:54 +00:00
Michael Basnight
f0fca1ee85 Create templated config files
Removes the need for apt package installation for configuration files.

implements blueprint guestagent-mycnf-versioning

Change-Id: I2f3c5376179c6677ef1e812b3d1be3e03cde39c0
2013-07-15 18:34:48 -07:00
Jenkins
5cca5ef444 Merge "Add service_type to the instances table" 2013-07-15 23:46:20 +00:00
Jenkins
c186470d53 Merge "Migrating the create/resize code to use flavor obj" 2013-07-15 23:45:03 +00:00
Michael Basnight
b98bebfb01 Add service_type to the instances table
implements blueprint add-service-type

Change-Id: I21147ae1ebe277fc863ec2785ca0e702e8cb0d15
2013-07-15 09:45:07 -07:00
Jenkins
fca3ca0331 Merge "Wildcards in User Host" 2013-07-15 16:44:15 +00:00
Michael Basnight
0a44fc273c Migrating the create/resize code to use flavor obj
The flavor objects used to use memory_ram and flavor_id. The
change now passes around objects so any other flavor properties
can be used.

implements blueprint refactor-flavor-taskmanager

Change-Id: I2520e4e4eba430338445bff4d358eef9fb16f0d5
2013-07-15 09:43:44 -07:00
Anna Shen
1d18aec7e6 Bump pbr to the version 0.5.16
Change-Id: I7b4d1d1b00bc2a12b50f38181d11b2f0d4e52ff8
2013-07-11 15:02:23 -07:00
justin-hopper
a42419c4fe Make Volume conditionally required attribute in Instance Create Schema
volume attribute may be removed in cases where volume support is off

Fixes: bug 1200029

Change-Id: Ic956e3d16cfb981eb778c77e0fe41b2e2e5f6e46
2013-07-10 17:26:24 -07:00
Riddhi Shah
74eede8e80 Wildcards in User Host
This bug-fix, allows wildcards to be used for user host via
providing ability to use '%' and '_'.

Change-Id: Ife752b0efb7ac67754a705b599eb9a68f9978dee
Fixes: bug #1199197
2013-07-09 15:16:54 -05:00
Jenkins
563c274b48 Merge "Python 3.x compatibility fixes" 2013-07-09 18:19:15 +00:00
Jenkins
cc25f9bbb9 Merge "Requirements: Remove factory_boy, allow SQLAlchemy 0.7.10" 2013-07-08 23:22:26 +00:00
Vipul Sabhaya
1b0d423928 Update to latest Oslo rpc modules
* Oslo rpc code now supports heartbeats which will provide Trove
  reliable connections to guests
* Updated the rpc module only via the oslo update procedures

Addresses blueprint trove/update-oslo

Change-Id: I2e25afc0a20d7d834aaf477a32b9a69aa27a9eba
2013-07-08 16:08:20 -07:00
Michael Basnight
c8c788e92d Fixing the broken API contract for flavor_id
fixes bug 1198318

Change-Id: Ifae19ab495bdb274fb840741f0cde5274b633b31
2013-07-05 13:25:54 -07:00
Jenkins
64e91bb8a6 Merge "Restore should use pgrep instead of mysqladmin to check for mysql down" 2013-07-03 21:56:51 +00:00
Jenkins
4419cb1c03 Merge "API Validation for Trove API" 2013-07-03 21:53:08 +00:00
Jenkins
24a4259de3 Merge "Enable disk usage view in instance detail view" 2013-07-03 17:53:15 +00:00
Nikhil Manchanda
850ccd4192 Restore should use pgrep instead of mysqladmin to check for mysql down
For a short window, while mysql is shutting down, it stops accepting
network connections but the mysqld process is still alive.

During this window mysqladmin ping reports that mysql is down and
trying to start mysql fails with:
"mysqld_safe A mysqld process already exists"

Use pgrep (during restore) instead of mysqladmin ping to check mysql
is down to fix this.

Fixes bug: 1197161

Change-Id: Id8b8e15b4b6136c8acbc3cac17691a65a1a4ed14
2013-07-03 17:31:54 +00:00
Dirk Mueller
7b0ed4f49c Python 3.x compatibility fixes
Mechanical translation of the easy-to-fix Python 2.x->3.x
compatibility issues. Should work with all Python versions
>= 2.6.

Change-Id: I693ff5d72b2db8d9d3a3347f70f22290897e9cff
2013-07-03 14:04:17 +02:00
Steve Leon
02a51b4dc6 Adding instance id to the security group extension API
- Secgroup list now show their corresponding instances
- Secgroup get also show its corresponding instance

Fixes bug 1190410

Change-Id: Ifb7b1c9be741fca221267243b86ce0d91b994015
2013-07-02 15:38:17 -07:00
Anna Shen
07d9bafd12 Enable disk usage view in instance detail view
- support both volume and ephemeral modes

Bug #1194597

Change-Id: I407268a74d979f95969e29cf54191f92afe0c3e9
2013-07-01 17:44:39 -07:00
justin-hopper
ccdf59f21e API Validation for Trove API
Replaced validation with new and improved json schema validation
    Fixed malformed json schema bug #1177969
    Fixed integration test for create_user; correct databases
    Fixed integration for create_users; invalid character_set param

Implements: json-schema-support

Change-Id: I6ca09803654d9e78362fde69185b5b9e05a5eb6b
2013-07-01 17:31:23 -07:00
Dirk Mueller
647b668399 Requirements: Remove factory_boy, allow SQLAlchemy 0.7.10
SQLAlchemy 0.7.10 is compatible with SQLAlchemy 0.7.x, so
allow it. Also remove dependency on factory_boy, which
seems to be unused.

Change-Id: Idb6bdf6ba02f2d826e2d11a9e2324f7d0a236a57
2013-06-29 13:29:40 +02:00
Jenkins
eafc62f61b Merge "Fixed backups GET and DELETE to restrict access to the owner of backup" 2013-06-28 14:46:16 +00:00
justin-hopper
b0834124e8 Fix Notifications
Conditionally include Service ID for create/delete instance
    Removed old configuration for Exists Notifications

Change-Id: Id2d87b6dffff00479c9ef0ecd8dd77e3e1e3eb47
Fixes: bug #1192384
2013-06-27 00:12:15 -07:00
Jenkins
7d1fc28dfc Merge "Update kombu library version requirement" 2013-06-27 03:11:13 +00:00
Vipul Sabhaya
fc814172be Update kombu library version requirement
Openstack requirements mandate kombu>2.4.7, we seem to be the only
project pinning the version.
 - See: https://github.com/openstack/requirements/

Change-Id: I8758cda0d5561cc2971ac8723f6e899bdd9189ee
2013-06-26 18:11:54 -07:00
Jenkins
db0dc47c56 Merge "Fix few missed issues with the reddwarf -> trove rename" 2013-06-26 22:39:19 +00:00
Ed Cranford
94e018f0fc GuestTimeout needed to be imported.
Change-Id: Ib4665cd377bf52399bbc7dcb6fdff9ef8a5bb6c7
2013-06-26 16:36:38 -05:00
Ed Cranford
2cb95d0f2b Fixes my.cnf not reverting with a resize revert.
Added GA method to fix db configurations without a restart.
Revert resize now uses this method.

Fixes Bug #1187028

Change-Id: I2045d11c5a99ef26c1de297562a0a6239ca04789
2013-06-26 09:52:29 -05:00
Nikhil Manchanda
0a680d91b3 Fix few missed issues with the reddwarf -> trove rename
There were a few files that were touched after the reddwarf->trove
rename that were still referencing "reddwarf". Changed these
references to "trove".

Fixed bug: 1194636

Change-Id: I7c7b014dee3b3a540baa84ad491812e17a8235ee
2013-06-25 13:29:52 -07:00
Jenkins
cbbd024811 Merge "Start using Hacking" 2013-06-25 18:48:36 +00:00
Jenkins
8125630f44 Merge "Rename README to README.rst" 2013-06-25 15:18:20 +00:00
Jenkins
418585af62 Merge "Fix up trivial License Header mismatches" 2013-06-25 15:16:06 +00:00
Dirk Mueller
4ee184238d Rename README to README.rst
README.rst seems to be more standard accross OpenStack
modules.

Change-Id: I4cf548cd9e7d10fda486bd9831224b28c80ee169
2013-06-25 11:30:18 +02:00
Dirk Mueller
0ee399a828 Start using Hacking
Blacklist those warnings that occur frequently for
followup patches. Fixup the rest and enable gating
on those.

Change-Id: I79f0ff1c16d9cb7f07cc99382c2a383e2fa532fc
2013-06-25 11:28:47 +02:00
Dirk Mueller
3f01c38822 Fix up trivial License Header mismatches
Newer Hacking version from git have a check for
Apache2 license at the beginning of source files. A
couple of the files here had trivial mismatches, so
fix them up accordingly.

Change-Id: I35df87b464b31ae3502a5a028a5c67e6c8af8fd2
2013-06-25 11:19:52 +02:00
Dirk Mueller
eefae5dd93 Package AUTHORS and ChangeLog file
Fixes LP Bug #1186518

Change-Id: I856aa8c33628b3a6e4a4e3aa743a5b113477e020
2013-06-25 10:41:57 +02:00
Nikhil Manchanda
4cdb10ebb3 Fixed backups GET and DELETE to restrict access to the owner of backup
Fixed the db model find_by so that when a model instance is looked up and a
context is passed in, the find_by operation fails if the tenant_id in the
instance is not the same as the tenant_id in the context (except if the
tenant is an admin).

Fixed bug 1188822

Change-Id: I0374f999601fa3f2bc817901bbc428b8be219683
2013-06-24 15:08:36 -07:00