301 Commits

Author SHA1 Message Date
huangtianhua
8b8ab1cdf7 Add OS::Cinder::VolumeType resource
Add OS::Cinder::VolumeType resource, implement its
basic actions: creation, deletion, updation.

Change-Id: Id37f4a0b1c558caa83dbecf7b64f87241ea89cdd
Implements: blueprint cinder-volume-type
2014-12-01 03:49:54 +00:00
Thomas Herve
a041681099 Update Barbican resources to match library changes
This patch updates both Barbican resources and the client to match
recent changes in python-barbicanclient.

Closes-Bug: #1396283

Change-Id: I7a785fd68ffdcda0e622d576a555b3699c706b77
2014-11-26 10:46:42 +01:00
Randall Burt
0f368be6b9 Detect container failure when checking create complete
Change-Id: I77f56ec544a82e13cd5a00a3adcfde6c0dda822e
2014-11-20 10:23:46 -06:00
Jason Dunsmore
ef1ff217ed Make Cloud Loadbalancer properties updatable
Several Cloud Loadbalancer properties that are updatable in the Cloud
Loadbalancers API were not updatable in the Heat resource.  Add
handle_update for each of these properties.

Change-Id: Ie1de3461ef2114b64195f9cb906caebd853be381
Closes-Bug: #1382665
2014-11-18 11:05:05 -06:00
Jenkins
756035b8e0 Merge "unconfigured clients look in the [clients] section for defaults" 2014-11-18 10:57:39 +00:00
Peter Razumovsky
16fc1fff93 Fix [H302] errors in contrib
Change-Id: I356753e791e574ee45b3b254aaeb80b242e13b23
2014-11-14 15:02:01 +03:00
Miguel Grinberg
4fd5087499 unconfigured clients look in the [clients] section for defaults
This change enables clients that have no specific settings in
the [clients_xxx] sections of the configuration file to get defaults
from the [clients] section.

Change-Id: I071bd77a2e1f0ad366b80c095917a8debc5cef2b
Closes-Bug: 1379958
2014-11-04 02:50:47 +00:00
Jason Dunsmore
b1a697e74f Check prop_diff contents after modifying it
It is not possible to add a DNS record alone to the Rackspace Cloud DNS
resource because the domain.update() method will be called with no
arguments.  Re-check the contents of prop_diff after modifying it to see
if calling domain.update() is necessary.

Change-Id: I04e313eab7f2d8971e9f12bfb402259b48757919
Closes-Bug: #1386886
2014-10-28 16:15:58 -05:00
Jenkins
ce6dac20fe Merge "Validate tenant_id part of TempURL in clients" 2014-10-22 15:11:52 +00:00
Zhenguo Niu
09ecdc55a0 Don't import HeatTestCase directly
Fix the HeatTestCase import issue as required by H302,
a following patch of https://review.openstack.org/#/c/129846/

Change-Id: Iab9a508682e9fe2932b7d00b191c8a4cdea4738b
2014-10-22 14:15:11 +08:00
Oleksii Chuprykov
29dfc78d04 Remove vim headers
No need to set tabstop tons of times, this can be set in your vimrc
file instead.

Closes-Bug: #1229324

Change-Id: Ib859c0af8a29437540a0586dc0af77bb544ece23
2014-10-16 17:54:42 +03:00
Jenkins
0becf6c08f Merge "Log translation hint for Heat.contrib" 2014-10-15 08:40:56 +00:00
liu-sheng
7a786674f7 Log translation hint for Heat.contrib
Currently, Log translation is motivated by oslo's move to prioritized
translation of strings, as documented at
https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation

- add log translation hints for warning, error and info levels
- move from LOG.warning to LOG.warn
- remove use of % as a string formatter, use the log functionality
  instead

Partial implements blueprint log-translation-hints

Change-Id: I8dbb5430507283038939b5665d67615c46b1f72e
2014-10-15 10:25:50 +08:00
Jason Dunsmore
4e174fc6ac Validate tenant_id part of TempURL in clients
Rackspace Cloud Files uses a UUID for the tenant ID, so move the code that
validates that part of the TempURL to the client.

Change-Id: I996fdc4b4b66e110066353d3b22ea3dab0535a5d
2014-10-14 14:52:51 -05:00
Jason Dunsmore
f5637d2eec Make Rackspace Cloud DNS TTL constraints match API
The Rackspace Cloud DNS TTLs have a minimum constraint of 301, but,
according to the API docs, the minimum is "300 seconds or more".

Change-Id: I924889f859de4226d5e7517576e40d1fdbba3064
Closes-Bug: #1380755
2014-10-13 14:24:12 -05:00
Ethan Lynn
11c1b62052 Remove deprecated function i18n.install('heat')
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.

blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
2014-10-13 10:31:28 +08:00
Jenkins
dab36df3db Merge "Update references to auth_token middleware" 2014-10-10 01:58:37 +00:00
Brant Knudson
91ca44fe36 Update references to auth_token middleware
There's references to the auth_token middleware in keystoncelient.
The auth_token middleware has been moved to keystonemiddleware and
the version in keystoneclient shouldn't be used anymore.

If these references aren't updated, then when options are changed in
keystonemiddleware.auth_token the heat-api will fail to start because
there's duplicate options in keystoneclient.middleware.auth_token.

Change-Id: I04573aa5ff967afe3e00329f797fcc71b779e7b3
Closes-Bug: #1379082
2014-10-09 15:46:30 -05:00
Jason Dunsmore
0774e28ada Add custom get_temp_url to RackspaceSwiftClient
Rackspace Cloud Files uses a non-OpenStack account identifier in the
URL, so the Rackspace Swift client needs its own get_temp_url method.

Change-Id: Ic90c26fca0200f1fba74d50b6aa8a75f8bcd7ef6
Closes-bug: #1378979
2014-10-08 14:06:20 -05:00
Anderson Mesquita
eeb9bb122e Implement check for Rackspace resources
Since stack-check has been accepted, this patch implements handle_check
for all Rackspace resources.

Implements: blueprint stack-check
Change-Id: Ibdeded33a32ddef07df572ce7d44b5a51afc5df7
2014-10-06 15:05:10 +00:00
Jenkins
29f631940f Merge "Switch to oslo.utils" 2014-10-01 12:40:29 +00:00
Thomas Herve
e75777b299 Update usage of Barbican library
Update Barbican resources to use the new API of the client library.

Change-Id: Ia634b325cd251ef70eb5eb133a801a3f3510ec67
Closes-Bug: 1374128
2014-09-30 19:10:11 +02:00
Julien Danjou
6519cf36fd Switch to oslo.utils
Change-Id: I74979d8f75b099858314a30c98bb252c379e0304
2014-09-30 14:27:59 +02:00
Jenkins
fe43d4f3b6 Merge "Fix usage of client in Barbican resources" 2014-09-29 03:20:42 +00:00
Jenkins
8aebceb670 Merge "Add keystone v2 keypair methods" 2014-09-27 16:38:57 +00:00
Thomas Herve
45f0308ed5 Fix usage of client in Barbican resources
Remove access to the Resource clients attribute and the unavailable
client import.

Change-Id: I36ac2fc4a55f9d5c2d1f4392fce93468fef42453
Closes-Bug: 1374101
Closes-Bug: 1374125
2014-09-26 13:49:34 +02:00
Thomas Herve
246737bdd0 Fix barbican plugin registration
Add client plugin registration and fix packages and files section.

Change-Id: Ie9ac19f5ab5933054c65c64c53e555d278c3229b
Closes-Bug: 1374097
2014-09-26 13:36:32 +02:00
Steve Baker
d9eebfdbc6 Add keystone v2 keypair methods
To get KeystoneClientV2 to work with StackUser resources, the
missing methods create_stack_domain_user_keypair and
delete_stack_domain_user_keypair have been added.

StackUser._create_keypair has also been modified to tolerate
having a missing id attribute, which is what the v2 API returns.

Change-Id: I9c19c1ca49f72ff1e760e849712c8c9d5fa7541f
Closes-Bug: #1372687
2014-09-26 14:05:16 +12:00
Jenkins
442e79b559 Merge "Switch heat resources & db & tests to oslo.i18n" 2014-09-19 04:23:49 +00:00
Jenkins
736484b238 Merge "Add user data and config drive properties" 2014-09-18 07:26:18 +00:00
Ethan Lynn
6d0cd62172 Switch heat resources & db & tests to oslo.i18n
Use oslo.i18n in resources & db & tests directories.

blueprint oslo-i18n

Change-Id: Idaf718b9d762b9ae89d6045557eadb758b552bd5
2014-09-17 14:28:56 +08:00
Jenkins
ab7f642844 Merge "Replace marconi by zaqar in heat plugins" 2014-09-14 03:31:28 +00:00
Randall Burt
e685af1d0e Add user data and config drive properties
Added these missing properties and upgraded the client
library requirements to support them. This upgrade breaks
Swift compatability, but we don't need to override that
client any more anyway, so client registration for
Swift-via-pyrax is also removed.

Change-Id: I8e07092adf58da2a39330789fb170986176f47e3
Closes-Bug: 1336498
2014-09-08 18:31:35 +00:00
Jenkins
eca7ad1c21 Merge "Improve docker resource deletion" 2014-09-04 18:48:57 +00:00
Jenkins
af1de565ab Merge "Fix a wrong argument name at Heat keystoneclient plugin" 2014-09-04 07:16:42 +00:00
Hongbin Lu
0224f0d0a3 Fix a wrong argument name at Heat keystoneclient plugin
After this fix, the Heat keystoneclient plugin should pick up
the right region to authenticate.

Change-Id: I9bb5fe5fd767997b4118cf674a17de9f8be503fe
Closes-Bug: #1213291
2014-09-03 03:21:48 +00:00
Jenkins
c9422ccd42 Merge "correctly implement volumes_from property" 2014-09-02 17:31:08 +00:00
Pierre Padrixe
8307f1e075 Replace marconi by zaqar in heat plugins
Change-Id: I9eb68c27e79782f0da0d9a79bf231e09f2f679bc
2014-09-02 11:36:08 +02:00
Jenkins
c6198872e7 Merge "Fix marconi plugin registration" 2014-09-01 18:56:15 +00:00
Lars Kellogg-Stedman
03638b3e73 correctly implement volumes_from property
The Docker plugin incorrectly implements the 'volumes_from' option:

- The property is marked as a string when it should be a list, and
- The property needs to be passed to start_container rather than
  create_container.

Change-Id: I617a4d29a9edbb45d80c7b8abb8f87eeaf795a8b
closes-bug: #1364041
closes-bug: #1364039
2014-09-01 11:34:52 -04:00
Randall Burt
d80c73f375 Fix marconi plugin registration
Add client plugin registration and fix packages and
files section.

Closes-Bug: 1363148
Change-Id: Ide5467bf622262d5c0deceaad2270068b8b3e3db
2014-08-29 12:51:31 -05:00
Jeff Peeler
ebc6cd9a26 Improve docker resource deletion
handle_delete and check_delete_complete were not handling NotFound
exceptions

Change-Id: I6e8100ff37157f6a06837307cea31af66a3403af
Closes-Bug: #1296758
2014-08-29 09:19:55 -04:00
Jeff Peeler
69c662ac24 Rename docker directory to heat_docker
This directory was renamed in 4e8231, which made importing docker
(that is docker-py) difficult if not impossible in Python 2.x. So
rename it to something other than 'docker' to avoid that problem.

(setup.cfg has been modified with the new path)

Change-Id: I3cbb7c5d4b53f70e1dc6102881f8e05852341a9a
Related-bug: #1296758
2014-08-28 23:42:24 -04:00
Jenkins
b630251b28 Merge "Use the template module to access the Template class" 2014-08-28 13:24:04 +00:00
Randall Burt
6a9a6a07ef Allow for setting ViP ID
Allows the user to specify the id of an existing
virtual ip rather than create a new one. This
allows devices listening on different ports using
the same ip addresses.

Change-Id: Ieba48abc0470cc5b596245efa51e9919ef37e0ca
2014-08-26 21:42:50 +00:00
Angus Salkeld
ff45aba3c4 Use the template module to access the Template class
i.e. stop using parser.Template
this imports the template module as "templatem" to avoid
namespace clashes with the many local variables called "template".

Change-Id: I97cc893f630e46589ee71fc73c6bbbcaa86b3a62
2014-08-21 12:53:45 +10:00
Thomas Herve
5760718ba5 Remove resource_id_set(None) calls
This removes resetting resource_id in delete, as the state is storing
that information properly, and it doesn't provide any additional value.

Change-Id: I71f17ab79adbad5286389c87f1fbd5c60c4a8d7f
Closes-Bug: #1358492
2014-08-19 11:30:32 -04:00
Steve Baker
fd191b7e48 Implement barbican client plugin
This moves the client creation code out of a Clients subclass into
its own client plugin.

Barbican is not an integrated project so the plugin is not registered
if barbicanclient cannot be imported.

The code which prevented client errors in _resolve_attribute from being raised
has been removed. This will prevent invalid attribute values from being
memoized.

The base package has been renamed to heat_barbican since stevedore
is used for client plugin loading and the base package will be
installed by setuptools, the package barbican might clash with
the actual Barbican project.

Change-Id: I5788fb4618fef0d1c3e39cc98094bb2813e842c5
2014-08-13 20:12:29 -05:00
Steve Baker
23893088f1 Implement marconi client plugin
This moves the client creation code out of a Clients subclass into
its own client plugin.

The base package has been renamed to heat_marconi since stevedore
is used for client plugin loading and the base package will be
installed by setuptools, the package marconi might clash with
the actual marconi project.

Change-Id: Ie824d961fcfa9dafd72cc40ccf207d1c1e0501ad
2014-08-13 20:12:29 -05:00
Steve Baker
1a44187fdf Port rackspace clients to client plugins
This change converts the rackspace client code to be contributed
via client plugins. This is the last change required for all in-tree
clients to be contributed via plugins.

A RackspaceTest base class which adds the rackspace directory
to the client plugins path which ensures any rackspace variants
are loaded. Plugin loading precedence is used to ensure rackspace
versions will override core plugins with the same name.

The nova plugin will fallback to returning the core nova client
so that CloudServersTest will run even when pyrax is not installed.

The cloud_backed configuration option will no longer have any effect
on whether rackspace clients will be loaded. Instead they will be loaded
by stevedore via the setup.cfg heat.clients entry point.

Change-Id: I312de40064cc00896dba1835117ff67003e57938
2014-08-13 20:12:29 -05:00