Jay Pipes | 3f981df | 2012-03-27 18:59:44 -0400 | [diff] [blame] | 1 | # vim: tabstop=4 shiftwidth=4 softtabstop=4 |
| 2 | |
| 3 | # Copyright 2012 OpenStack, LLC |
| 4 | # All Rights Reserved. |
| 5 | # |
| 6 | # Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 7 | # not use this file except in compliance with the License. You may obtain |
| 8 | # a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, software |
| 13 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 14 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 15 | # License for the specific language governing permissions and limitations |
| 16 | # under the License. |
| 17 | |
| 18 | import logging |
| 19 | |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 20 | from tempest import config |
Daryl Walleck | 587385b | 2012-03-03 13:00:26 -0600 | [diff] [blame] | 21 | from tempest import exceptions |
Attila Fazekas | 1aed620 | 2013-02-11 14:47:45 +0100 | [diff] [blame] | 22 | from tempest.services import botoclients |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 23 | from tempest.services.compute.json.extensions_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 24 | ExtensionsClientJSON |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 25 | from tempest.services.compute.json.flavors_client import FlavorsClientJSON |
| 26 | from tempest.services.compute.json.floating_ips_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 27 | FloatingIPsClientJSON |
Attila Fazekas | 8e99b99 | 2013-02-24 09:53:23 +0100 | [diff] [blame] | 28 | from tempest.services.compute.json.hosts_client import HostsClientJSON |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 29 | from tempest.services.compute.json.images_client import ImagesClientJSON |
Attila Fazekas | 6968dd5 | 2013-02-15 17:05:53 +0100 | [diff] [blame] | 30 | from tempest.services.compute.json.keypairs_client import KeyPairsClientJSON |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 31 | from tempest.services.compute.json.limits_client import LimitsClientJSON |
Attila Fazekas | 6968dd5 | 2013-02-15 17:05:53 +0100 | [diff] [blame] | 32 | from tempest.services.compute.json.quotas_client import QuotasClientJSON |
Matthew Treinish | a83a16e | 2012-12-07 13:44:02 -0500 | [diff] [blame] | 33 | from tempest.services.compute.json.security_groups_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 34 | SecurityGroupsClientJSON |
Attila Fazekas | 6968dd5 | 2013-02-15 17:05:53 +0100 | [diff] [blame] | 35 | from tempest.services.compute.json.servers_client import ServersClientJSON |
Matthew Treinish | a83a16e | 2012-12-07 13:44:02 -0500 | [diff] [blame] | 36 | from tempest.services.compute.json.volumes_extensions_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 37 | VolumesExtensionsClientJSON |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 38 | from tempest.services.compute.xml.extensions_client import ExtensionsClientXML |
| 39 | from tempest.services.compute.xml.flavors_client import FlavorsClientXML |
| 40 | from tempest.services.compute.xml.floating_ips_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 41 | FloatingIPsClientXML |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 42 | from tempest.services.compute.xml.images_client import ImagesClientXML |
| 43 | from tempest.services.compute.xml.keypairs_client import KeyPairsClientXML |
| 44 | from tempest.services.compute.xml.limits_client import LimitsClientXML |
rajalakshmi-ganesan | 1982c3c | 2013-01-10 14:56:45 +0530 | [diff] [blame] | 45 | from tempest.services.compute.xml.quotas_client import QuotasClientXML |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 46 | from tempest.services.compute.xml.security_groups_client \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 47 | import SecurityGroupsClientXML |
dwalleck | e62b9f0 | 2012-10-10 23:34:42 -0500 | [diff] [blame] | 48 | from tempest.services.compute.xml.servers_client import ServersClientXML |
Matthew Treinish | a83a16e | 2012-12-07 13:44:02 -0500 | [diff] [blame] | 49 | from tempest.services.compute.xml.volumes_extensions_client import \ |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 50 | VolumesExtensionsClientXML |
Attila Fazekas | 407b6db | 2013-01-19 12:48:36 +0100 | [diff] [blame] | 51 | from tempest.services.identity.json.identity_client import IdentityClientJSON |
| 52 | from tempest.services.identity.json.identity_client import TokenClientJSON |
| 53 | from tempest.services.identity.xml.identity_client import IdentityClientXML |
| 54 | from tempest.services.identity.xml.identity_client import TokenClientXML |
Matthew Treinish | 72ea442 | 2013-02-07 14:42:49 -0500 | [diff] [blame] | 55 | from tempest.services.image.json.image_client import ImageClientJSON |
Matthew Treinish | a83a16e | 2012-12-07 13:44:02 -0500 | [diff] [blame] | 56 | from tempest.services.network.json.network_client import NetworkClient |
dwalleck | 5d73443 | 2012-10-04 01:11:47 -0500 | [diff] [blame] | 57 | from tempest.services.object_storage.account_client import AccountClient |
harika-vakadi | 2daed0a | 2013-01-01 20:51:39 +0530 | [diff] [blame] | 58 | from tempest.services.object_storage.account_client import \ |
| 59 | AccountClientCustomizedHeader |
Attila Fazekas | 6968dd5 | 2013-02-15 17:05:53 +0100 | [diff] [blame] | 60 | from tempest.services.object_storage.container_client import ContainerClient |
| 61 | from tempest.services.object_storage.object_client import ObjectClient |
| 62 | from tempest.services.object_storage.object_client import \ |
| 63 | ObjectClientCustomizedHeader |
| 64 | from tempest.services.volume.json.admin.volume_types_client import \ |
| 65 | VolumeTypesClientJSON |
| 66 | from tempest.services.volume.json.snapshots_client import SnapshotsClientJSON |
| 67 | from tempest.services.volume.json.volumes_client import VolumesClientJSON |
| 68 | from tempest.services.volume.xml.admin.volume_types_client import \ |
| 69 | VolumeTypesClientXML |
| 70 | from tempest.services.volume.xml.snapshots_client import SnapshotsClientXML |
| 71 | from tempest.services.volume.xml.volumes_client import VolumesClientXML |
Dan Smith | 8ad1c47 | 2013-02-26 13:03:16 -0500 | [diff] [blame^] | 72 | from tempest.services.compute.json.interfaces_client import \ |
| 73 | InterfacesClientJSON |
| 74 | from tempest.services.compute.xml.interfaces_client import \ |
| 75 | InterfacesClientXML |
Vincent Hou | 6b8a7b7 | 2012-08-25 01:24:33 +0800 | [diff] [blame] | 76 | |
Jay Pipes | 3f981df | 2012-03-27 18:59:44 -0400 | [diff] [blame] | 77 | LOG = logging.getLogger(__name__) |
| 78 | |
Mauro S. M. Rodrigues | 6e37324 | 2012-08-27 18:59:19 -0400 | [diff] [blame] | 79 | IMAGES_CLIENTS = { |
| 80 | "json": ImagesClientJSON, |
| 81 | "xml": ImagesClientXML, |
| 82 | } |
| 83 | |
Mauro S. M. Rodrigues | a636f53 | 2012-08-21 11:07:53 -0400 | [diff] [blame] | 84 | KEYPAIRS_CLIENTS = { |
| 85 | "json": KeyPairsClientJSON, |
| 86 | "xml": KeyPairsClientXML, |
| 87 | } |
| 88 | |
rajalakshmi-ganesan | 1982c3c | 2013-01-10 14:56:45 +0530 | [diff] [blame] | 89 | QUOTAS_CLIENTS = { |
| 90 | "json": QuotasClientJSON, |
| 91 | "xml": QuotasClientXML, |
| 92 | } |
| 93 | |
Dan Smith | cf8fab6 | 2012-08-14 08:03:48 -0700 | [diff] [blame] | 94 | SERVERS_CLIENTS = { |
| 95 | "json": ServersClientJSON, |
| 96 | "xml": ServersClientXML, |
| 97 | } |
| 98 | |
Matthew Treinish | 3363446 | 2012-08-16 16:51:23 -0400 | [diff] [blame] | 99 | LIMITS_CLIENTS = { |
| 100 | "json": LimitsClientJSON, |
| 101 | "xml": LimitsClientXML, |
| 102 | } |
| 103 | |
Tiago Mello | eda03b5 | 2012-08-22 23:47:29 -0300 | [diff] [blame] | 104 | FLAVORS_CLIENTS = { |
| 105 | "json": FlavorsClientJSON, |
| 106 | "xml": FlavorsClientXML |
| 107 | } |
| 108 | |
Tiago Mello | 89126c3 | 2012-08-27 11:14:03 -0300 | [diff] [blame] | 109 | EXTENSIONS_CLIENTS = { |
| 110 | "json": ExtensionsClientJSON, |
| 111 | "xml": ExtensionsClientXML |
| 112 | } |
| 113 | |
Matthew Treinish | 4e08690 | 2012-08-17 17:52:22 -0400 | [diff] [blame] | 114 | VOLUMES_EXTENSIONS_CLIENTS = { |
| 115 | "json": VolumesExtensionsClientJSON, |
| 116 | "xml": VolumesExtensionsClientXML, |
| 117 | } |
| 118 | |
Vincent Hou | 22f03c7 | 2012-08-24 17:55:13 +0800 | [diff] [blame] | 119 | FLOAT_CLIENTS = { |
| 120 | "json": FloatingIPsClientJSON, |
| 121 | "xml": FloatingIPsClientXML, |
| 122 | } |
| 123 | |
Attila Fazekas | 36b1fcf | 2013-01-31 16:41:04 +0100 | [diff] [blame] | 124 | SNAPSHOTS_CLIENTS = { |
| 125 | "json": SnapshotsClientJSON, |
| 126 | "xml": SnapshotsClientXML, |
| 127 | } |
| 128 | |
Matthew Treinish | 9854d5b | 2012-09-20 10:22:13 -0400 | [diff] [blame] | 129 | VOLUMES_CLIENTS = { |
| 130 | "json": VolumesClientJSON, |
| 131 | "xml": VolumesClientXML, |
| 132 | } |
| 133 | |
Attila Fazekas | 3dcdae1 | 2013-02-14 12:50:04 +0100 | [diff] [blame] | 134 | VOLUME_TYPES_CLIENTS = { |
| 135 | "json": VolumeTypesClientJSON, |
| 136 | "xml": VolumeTypesClientXML, |
| 137 | } |
| 138 | |
Attila Fazekas | 407b6db | 2013-01-19 12:48:36 +0100 | [diff] [blame] | 139 | IDENTITY_CLIENT = { |
| 140 | "json": IdentityClientJSON, |
| 141 | "xml": IdentityClientXML, |
Vincent Hou | 6b8a7b7 | 2012-08-25 01:24:33 +0800 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | TOKEN_CLIENT = { |
| 145 | "json": TokenClientJSON, |
| 146 | "xml": TokenClientXML, |
| 147 | } |
| 148 | |
Vincent Hou | ead03dc | 2012-08-24 21:35:11 +0800 | [diff] [blame] | 149 | SECURITY_GROUPS_CLIENT = { |
| 150 | "json": SecurityGroupsClientJSON, |
| 151 | "xml": SecurityGroupsClientXML, |
| 152 | } |
| 153 | |
Dan Smith | 8ad1c47 | 2013-02-26 13:03:16 -0500 | [diff] [blame^] | 154 | INTERFACES_CLIENT = { |
| 155 | "json": InterfacesClientJSON, |
| 156 | "xml": InterfacesClientXML, |
| 157 | } |
| 158 | |
Vincent Hou | 6b8a7b7 | 2012-08-25 01:24:33 +0800 | [diff] [blame] | 159 | |
Daryl Walleck | 1465d61 | 2011-11-02 02:22:15 -0500 | [diff] [blame] | 160 | class Manager(object): |
| 161 | |
Jay Pipes | 3f981df | 2012-03-27 18:59:44 -0400 | [diff] [blame] | 162 | """ |
| 163 | Top level manager for OpenStack Compute clients |
| 164 | """ |
| 165 | |
James E. Blair | e6d8ee1 | 2013-01-18 21:33:45 +0000 | [diff] [blame] | 166 | def __init__(self, username=None, password=None, tenant_name=None, |
| 167 | interface='json'): |
Jay Pipes | ff10d55 | 2012-04-06 14:18:50 -0400 | [diff] [blame] | 168 | """ |
| 169 | We allow overriding of the credentials used within the various |
| 170 | client classes managed by the Manager object. Left as None, the |
| 171 | standard username/password/tenant_name is used. |
| 172 | |
| 173 | :param username: Override of the username |
| 174 | :param password: Override of the password |
| 175 | :param tenant_name: Override of the tenant name |
| 176 | """ |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 177 | self.config = config.TempestConfig() |
Rohit Karajgi | e1b050d | 2011-12-02 16:13:18 -0800 | [diff] [blame] | 178 | |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 179 | # If no creds are provided, we fall back on the defaults |
| 180 | # in the config file for the Compute API. |
Attila Fazekas | cadcb1f | 2013-01-21 23:10:53 +0100 | [diff] [blame] | 181 | self.username = username or self.config.identity.username |
| 182 | self.password = password or self.config.identity.password |
| 183 | self.tenant_name = tenant_name or self.config.identity.tenant_name |
Daryl Walleck | ced8eb8 | 2012-03-19 13:52:37 -0500 | [diff] [blame] | 184 | |
Rohit Karajgi | dd47d7e | 2012-07-31 04:11:01 -0700 | [diff] [blame] | 185 | if None in (self.username, self.password, self.tenant_name): |
Jay Pipes | 3f981df | 2012-03-27 18:59:44 -0400 | [diff] [blame] | 186 | msg = ("Missing required credentials. " |
| 187 | "username: %(username)s, password: %(password)s, " |
| 188 | "tenant_name: %(tenant_name)s") % locals() |
| 189 | raise exceptions.InvalidConfiguration(msg) |
| 190 | |
Jay Pipes | 7c88eb2 | 2013-01-16 21:32:43 -0500 | [diff] [blame] | 191 | self.auth_url = self.config.identity.uri |
Daryl Walleck | 587385b | 2012-03-03 13:00:26 -0600 | [diff] [blame] | 192 | |
| 193 | if self.config.identity.strategy == 'keystone': |
Rohit Karajgi | dd47d7e | 2012-07-31 04:11:01 -0700 | [diff] [blame] | 194 | client_args = (self.config, self.username, self.password, |
| 195 | self.auth_url, self.tenant_name) |
Daryl Walleck | 1465d61 | 2011-11-02 02:22:15 -0500 | [diff] [blame] | 196 | else: |
Rohit Karajgi | dd47d7e | 2012-07-31 04:11:01 -0700 | [diff] [blame] | 197 | client_args = (self.config, self.username, self.password, |
| 198 | self.auth_url) |
Daryl Walleck | 587385b | 2012-03-03 13:00:26 -0600 | [diff] [blame] | 199 | |
Dan Smith | cf8fab6 | 2012-08-14 08:03:48 -0700 | [diff] [blame] | 200 | try: |
| 201 | self.servers_client = SERVERS_CLIENTS[interface](*client_args) |
Matthew Treinish | 3363446 | 2012-08-16 16:51:23 -0400 | [diff] [blame] | 202 | self.limits_client = LIMITS_CLIENTS[interface](*client_args) |
Mauro S. M. Rodrigues | 6e37324 | 2012-08-27 18:59:19 -0400 | [diff] [blame] | 203 | self.images_client = IMAGES_CLIENTS[interface](*client_args) |
Mauro S. M. Rodrigues | a636f53 | 2012-08-21 11:07:53 -0400 | [diff] [blame] | 204 | self.keypairs_client = KEYPAIRS_CLIENTS[interface](*client_args) |
rajalakshmi-ganesan | 1982c3c | 2013-01-10 14:56:45 +0530 | [diff] [blame] | 205 | self.quotas_client = QUOTAS_CLIENTS[interface](*client_args) |
Tiago Mello | eda03b5 | 2012-08-22 23:47:29 -0300 | [diff] [blame] | 206 | self.flavors_client = FLAVORS_CLIENTS[interface](*client_args) |
Zhongyue Luo | e0884a3 | 2012-09-25 17:24:17 +0800 | [diff] [blame] | 207 | ext_cli = EXTENSIONS_CLIENTS[interface](*client_args) |
| 208 | self.extensions_client = ext_cli |
| 209 | vol_ext_cli = VOLUMES_EXTENSIONS_CLIENTS[interface](*client_args) |
| 210 | self.volumes_extensions_client = vol_ext_cli |
Vincent Hou | 22f03c7 | 2012-08-24 17:55:13 +0800 | [diff] [blame] | 211 | self.floating_ips_client = FLOAT_CLIENTS[interface](*client_args) |
Attila Fazekas | 36b1fcf | 2013-01-31 16:41:04 +0100 | [diff] [blame] | 212 | self.snapshots_client = SNAPSHOTS_CLIENTS[interface](*client_args) |
Matthew Treinish | 9854d5b | 2012-09-20 10:22:13 -0400 | [diff] [blame] | 213 | self.volumes_client = VOLUMES_CLIENTS[interface](*client_args) |
Attila Fazekas | 3dcdae1 | 2013-02-14 12:50:04 +0100 | [diff] [blame] | 214 | self.volume_types_client = \ |
| 215 | VOLUME_TYPES_CLIENTS[interface](*client_args) |
Attila Fazekas | 407b6db | 2013-01-19 12:48:36 +0100 | [diff] [blame] | 216 | self.identity_client = IDENTITY_CLIENT[interface](*client_args) |
Vincent Hou | 6b8a7b7 | 2012-08-25 01:24:33 +0800 | [diff] [blame] | 217 | self.token_client = TOKEN_CLIENT[interface](self.config) |
Vincent Hou | ead03dc | 2012-08-24 21:35:11 +0800 | [diff] [blame] | 218 | self.security_groups_client = \ |
| 219 | SECURITY_GROUPS_CLIENT[interface](*client_args) |
Dan Smith | 8ad1c47 | 2013-02-26 13:03:16 -0500 | [diff] [blame^] | 220 | self.interfaces_client = INTERFACES_CLIENT[interface](*client_args) |
Dan Smith | cf8fab6 | 2012-08-14 08:03:48 -0700 | [diff] [blame] | 221 | except KeyError: |
| 222 | msg = "Unsupported interface type `%s'" % interface |
| 223 | raise exceptions.InvalidConfiguration(msg) |
Unmesh Gurjar | 4498683 | 2012-05-08 19:57:10 +0530 | [diff] [blame] | 224 | self.network_client = NetworkClient(*client_args) |
Attila Fazekas | 8e99b99 | 2013-02-24 09:53:23 +0100 | [diff] [blame] | 225 | self.hosts_client = HostsClientJSON(*client_args) |
dwalleck | 5d73443 | 2012-10-04 01:11:47 -0500 | [diff] [blame] | 226 | self.account_client = AccountClient(*client_args) |
Matthew Treinish | 72ea442 | 2013-02-07 14:42:49 -0500 | [diff] [blame] | 227 | self.image_client = ImageClientJSON(*client_args) |
dwalleck | 5d73443 | 2012-10-04 01:11:47 -0500 | [diff] [blame] | 228 | self.container_client = ContainerClient(*client_args) |
| 229 | self.object_client = ObjectClient(*client_args) |
Attila Fazekas | 1aed620 | 2013-02-11 14:47:45 +0100 | [diff] [blame] | 230 | self.ec2api_client = botoclients.APIClientEC2(*client_args) |
| 231 | self.s3_client = botoclients.ObjectClientS3(*client_args) |
harika-vakadi | 1a9ad61 | 2012-12-14 19:12:08 +0530 | [diff] [blame] | 232 | self.custom_object_client = ObjectClientCustomizedHeader(*client_args) |
harika-vakadi | 2daed0a | 2013-01-01 20:51:39 +0530 | [diff] [blame] | 233 | self.custom_account_client = \ |
| 234 | AccountClientCustomizedHeader(*client_args) |
Jay Pipes | 5067728 | 2012-01-06 15:39:20 -0500 | [diff] [blame] | 235 | |
| 236 | |
Jay Pipes | ff10d55 | 2012-04-06 14:18:50 -0400 | [diff] [blame] | 237 | class AltManager(Manager): |
| 238 | |
| 239 | """ |
| 240 | Manager object that uses the alt_XXX credentials for its |
| 241 | managed client objects |
| 242 | """ |
| 243 | |
| 244 | def __init__(self): |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 245 | conf = config.TempestConfig() |
Attila Fazekas | cadcb1f | 2013-01-21 23:10:53 +0100 | [diff] [blame] | 246 | super(AltManager, self).__init__(conf.identity.alt_username, |
| 247 | conf.identity.alt_password, |
| 248 | conf.identity.alt_tenant_name) |
Jay Pipes | ff10d55 | 2012-04-06 14:18:50 -0400 | [diff] [blame] | 249 | |
| 250 | |
| 251 | class AdminManager(Manager): |
| 252 | |
| 253 | """ |
Attila Fazekas | cadcb1f | 2013-01-21 23:10:53 +0100 | [diff] [blame] | 254 | Manager object that uses the admin credentials for its |
Jay Pipes | ff10d55 | 2012-04-06 14:18:50 -0400 | [diff] [blame] | 255 | managed client objects |
| 256 | """ |
| 257 | |
James E. Blair | e6d8ee1 | 2013-01-18 21:33:45 +0000 | [diff] [blame] | 258 | def __init__(self, interface='json'): |
Jay Pipes | f38eaac | 2012-06-21 13:37:35 -0400 | [diff] [blame] | 259 | conf = config.TempestConfig() |
Attila Fazekas | cadcb1f | 2013-01-21 23:10:53 +0100 | [diff] [blame] | 260 | super(AdminManager, self).__init__(conf.identity.admin_username, |
| 261 | conf.identity.admin_password, |
| 262 | conf.identity.admin_tenant_name, |
James E. Blair | e6d8ee1 | 2013-01-18 21:33:45 +0000 | [diff] [blame] | 263 | interface=interface) |
Jay Pipes | ff10d55 | 2012-04-06 14:18:50 -0400 | [diff] [blame] | 264 | |
| 265 | |
Attila Fazekas | cadcb1f | 2013-01-21 23:10:53 +0100 | [diff] [blame] | 266 | class ComputeAdminManager(Manager): |
| 267 | |
| 268 | """ |
| 269 | Manager object that uses the compute_admin credentials for its |
| 270 | managed client objects |
| 271 | """ |
| 272 | |
| 273 | def __init__(self, interface='json'): |
| 274 | conf = config.TempestConfig() |
| 275 | base = super(ComputeAdminManager, self) |
| 276 | base.__init__(conf.compute_admin.username, |
| 277 | conf.compute_admin.password, |
| 278 | conf.compute_admin.tenant_name, |
| 279 | interface=interface) |