You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by za...@apache.org on 2014/03/22 01:35:17 UTC

git commit: Remove Nova instance metadata limit

Repository: jclouds
Updated Branches:
  refs/heads/master 7588d2fba -> b93cfa42e


Remove Nova instance metadata limit

Rackspace cloud limits instance metadata to 5 key-value pairs, but
upstream Nova only sets the limit at 128 by default.  This patch removes
the limit entirely; the official python clients don't check it and the
server is responsible for enforcing it anyway.

Fixes:  https://issues.apache.org/jira/browse/JCLOUDS-507


Project: http://git-wip-us.apache.org/repos/asf/jclouds/repo
Commit: http://git-wip-us.apache.org/repos/asf/jclouds/commit/b93cfa42
Tree: http://git-wip-us.apache.org/repos/asf/jclouds/tree/b93cfa42
Diff: http://git-wip-us.apache.org/repos/asf/jclouds/diff/b93cfa42

Branch: refs/heads/master
Commit: b93cfa42e1498c65d452765b97fd9237d6884ed4
Parents: 7588d2f
Author: Joel Friedly <jo...@gmail.com>
Authored: Fri Mar 21 15:25:04 2014 -0700
Committer: Zack Shoylev <za...@rackspace.com>
Committed: Fri Mar 21 19:03:07 2014 -0500

----------------------------------------------------------------------
 .../openstack/nova/v2_0/options/CreateServerOptions.java        | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jclouds/blob/b93cfa42/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java
----------------------------------------------------------------------
diff --git a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java
index 3f5347c..3d13d55 100644
--- a/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java
+++ b/apis/openstack-nova/src/main/java/org/jclouds/openstack/nova/v2_0/options/CreateServerOptions.java
@@ -292,13 +292,10 @@ public class CreateServerOptions implements MapBinder {
     * Custom cloud server metadata can also be supplied at launch time. This
     * metadata is stored in the API system where it is retrievable by querying
     * the API for server status. The maximum size of the metadata key and value
-    * is each 255 bytes and the maximum number of key-value pairs that can be
-    * supplied per server is 5.
+    * is each 255 bytes.
     */
    public CreateServerOptions metadata(Map<String, String> metadata) {
       checkNotNull(metadata, "metadata");
-      checkArgument(metadata.size() <= 5,
-            "you cannot have more then 5 metadata values.  You specified: " + metadata.size());
       for (Entry<String, String> entry : metadata.entrySet()) {
          checkArgument(
                entry.getKey().getBytes().length < 255,