86
86
# Find appropriate instance type for the given constraints. Warn
87
87
# if deprecated is instance-type is being used.
88
88
flavor_name = self._provider.config.get("default-instance-type")
91
91
"default-instance-type is deprecated, use cli --constraints")
92
92
flavors = yield self._provider.nova.list_flavor_details()
93
93
flavor_id = _solve_flavor(self._constraints, flavor_name, flavors)
95
97
server = yield self._provider.nova.run_server(
96
98
name="juju %s instance %s" %
97
99
(self._provider.environment_name, machine_id,),
100
102
security_group_names=security_groups,
104
108
yield filestorage.put(id_name, StringIO(str(server['id'])))