{"id":697,"date":"2016-07-07T10:19:39","date_gmt":"2016-07-07T09:19:39","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=697"},"modified":"2016-07-07T11:00:14","modified_gmt":"2016-07-07T10:00:14","slug":"using-novasupernova-increase-quota-allotments-openstack","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/07\/07\/using-novasupernova-increase-quota-allotments-openstack\/","title":{"rendered":"Using Nova\/Supernova to increase quota allotments in Openstack"},"content":{"rendered":"<p>I noticed there were some changes to the way we used openstack quotas today. So I had to do it the manual way! Please note that this can only be done thru the Admin API function, so if you are a Rackspace customer you would need to reach out to us to do this, unless you ran your own openstack or devstack implementation in-house.<\/p>\n<p>Here is how I achieved it:<\/p>\n<pre>\r\nsupernova {environment} {action} --option {number} {customer_ID}\r\n<\/pre>\n<pre>\r\nsupernova lon quota-update --instances 250 10010101\r\n<\/pre>\n<p>There is a lot of different commands available, use nova help to get more detail<\/p>\n<pre>\r\n supernova lon help quota-update\r\n[SUPERNOVA] Running nova against lon...\r\nusage: nova quota-update [--user <user-id>] [--instances <instances>]\r\n                         [--cores <cores>] [--ram <ram>]\r\n                         [--floating-ips <floating-ips>]\r\n                         [--fixed-ips <fixed-ips>]\r\n                         [--metadata-items <metadata-items>]\r\n                         [--injected-files <injected-files>]\r\n                         [--injected-file-content-bytes <injected-file-content-bytes>]\r\n                         [--injected-file-path-bytes <injected-file-path-bytes>]\r\n                         [--key-pairs <key-pairs>]\r\n                         [--security-groups <security-groups>]\r\n                         [--security-group-rules <security-group-rules>]\r\n                         [--server-groups <server-groups>]\r\n                         [--server-group-members <server-group-members>]\r\n                         [--force]\r\n                         <tenant-id>\r\n\r\nUpdate the quotas for a tenant\/user.\r\n\r\nPositional arguments:\r\n  <tenant-id>                   ID of tenant to set the quotas for.\r\n\r\nOptional arguments:\r\n  --user <user-id>              ID of user to set the quotas for.\r\n  --instances <instances>       New value for the \"instances\" quota.\r\n  --cores <cores>               New value for the \"cores\" quota.\r\n  --ram <ram>                   New value for the \"ram\" quota.\r\n  --floating-ips <floating-ips>\r\n                                New value for the \"floating-ips\" quota.\r\n  --fixed-ips <fixed-ips>       New value for the \"fixed-ips\" quota.\r\n  --metadata-items <metadata-items>\r\n                                New value for the \"metadata-items\" quota.\r\n  --injected-files <injected-files>\r\n                                New value for the \"injected-files\" quota.\r\n  --injected-file-content-bytes <injected-file-content-bytes>\r\n                                New value for the \"injected-file-content-\r\n                                bytes\" quota.\r\n  --injected-file-path-bytes <injected-file-path-bytes>\r\n                                New value for the \"injected-file-path-bytes\"\r\n                                quota.\r\n  --key-pairs <key-pairs>       New value for the \"key-pairs\" quota.\r\n  --security-groups <security-groups>\r\n                                New value for the \"security-groups\" quota.\r\n  --security-group-rules <security-group-rules>\r\n                                New value for the \"security-group-rules\"\r\n                                quota.\r\n  --server-groups <server-groups>\r\n                                New value for the \"server-groups\" quota.\r\n  --server-group-members <server-group-members>\r\n                                New value for the \"server-group-members\"\r\n                                quota.\r\n  --force                       Whether force update the quota even if the\r\n                                already used and reserved exceeds the new\r\n                                quota.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I noticed there were some changes to the way we used openstack quotas today. So I had to do it the manual way! Please note that this can only be done thru the Admin API function, so if you are &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/07\/07\/using-novasupernova-increase-quota-allotments-openstack\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,7,21,11,12,24],"tags":[],"class_list":["post-697","post","type-post","status-publish","format-standard","hentry","category-api","category-management-tools","category-nova","category-openstack","category-openstack-api","category-supernova"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":3,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"predecessor-version":[{"id":700,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/697\/revisions\/700"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}