cfme.infrastructure.provider module

A model of an Infrastructure Provider in CFME

var page:A cfme.web_ui.Region object describing common elements on the Providers pages.
var discover_form:
 A cfme.web_ui.Form object describing the discover form.
var properties_form:
 A cfme.web_ui.Form object describing the main add form.
var default_form:
 A cfme.web_ui.Form object describing the default credentials form.
var candu_form:A cfme.web_ui.Form object describing the C&U credentials form.
class cfme.infrastructure.provider.OpenstackInfraProvider(name=None, credentials=None, key=None, hostname=None, ip_address=None, start_ip=None, end_ip=None, provider_data=None)[source]

Bases: cfme.infrastructure.provider.Provider

STATS_TO_MATCH = ['num_template', 'num_host']
class cfme.infrastructure.provider.Provider(name=None, credentials=None, key=None, zone=None, provider_data=None)[source]

Bases: utils.update.Updateable, utils.pretty.Pretty, cfme.common.provider.CloudInfraProvider

Abstract model of an infrastructure provider in cfme. See VMwareProvider or RHEVMProvider.

Parameters:
  • name – Name of the provider.
  • details – a details record (see VMwareDetails, RHEVMDetails inner class).
  • credentials (Credential) – see Credential inner class.
  • key – The CFME key of the provider in the yaml.
  • candu – C&U credentials if this is a RHEVMDetails class.

Usage:

myprov = VMwareProvider(name='foo',
                     region='us-west-1',
                     credentials=Provider.Credential(principal='admin', secret='foobar'))
myprov.create()
STATS_TO_MATCH = ['num_template', 'num_vm', 'num_datastore', 'num_host', 'num_cluster']
add_provider_button = FormButton('Add this Infrastructure Provider')
detail_page_suffix = 'provider'
discover()[source]

Begins provider discovery from a provider instance

Usage:

discover_from_config(utils.providers.get_crud('rhevm'))
edit_page_suffix = 'provider_edit'
hosts[source]

Returns list of cfme.infrastructure.host.Host that should belong to this provider according to the YAML

num_cluster(db=True)[source]

Returns the providers number of templates, as shown on the Details page.

num_datastore(db=True)[source]

Returns the providers number of templates, as shown on the Details page.

num_host(db=True)[source]

Returns the providers number of instances, as shown on the Details page.

page_name = 'infrastructure'
pretty_attrs = ['name', 'key', 'zone']
properties_form = <cfme.web_ui.Form fields=[('type_select', {Version ('lowest'): Select('select#server_emstype', multi=False), '5.5': <cfme.web_ui.AngularSelect object at 0x7f4d25c14d10>}), ('name_text', <cfme.web_ui.Input _names=('name',), _use_id=False>), ('hostname_text', <cfme.web_ui.Input _names=('hostname',), _use_id=False>), ('ipaddress_text', <cfme.web_ui.Input _names=('ipaddress',), _use_id=False>, {'removed_since': '5.4.0.0.15'}), ('api_port', <cfme.web_ui.Input _names=('port',), _use_id=False>), ('sec_protocol', {Version ('lowest'): Select('select#security_protocol', multi=False), '5.5': <cfme.web_ui.AngularSelect object at 0x7f4d25c14f10>}), ('sec_realm', <cfme.web_ui.Input _names=('realm',), _use_id=False>)]>
quad_name = 'infra_prov'
save_button = FormButton('Save Changes')
string_name = 'Infrastructure'
class cfme.infrastructure.provider.RHEVMProvider(name=None, credentials=None, zone=None, key=None, hostname=None, ip_address=None, api_port=None, start_ip=None, end_ip=None, provider_data=None)[source]

Bases: cfme.infrastructure.provider.Provider

class cfme.infrastructure.provider.SCVMMProvider(name=None, credentials=None, key=None, zone=None, hostname=None, ip_address=None, start_ip=None, end_ip=None, sec_protocol=None, sec_realm=None, provider_data=None)[source]

Bases: cfme.infrastructure.provider.Provider

STATS_TO_MATCH = ['num_template', 'num_vm']
class cfme.infrastructure.provider.VMwareProvider(name=None, credentials=None, key=None, zone=None, hostname=None, ip_address=None, start_ip=None, end_ip=None, provider_data=None)[source]

Bases: cfme.infrastructure.provider.Provider

cfme.infrastructure.provider.discover(rhevm=False, vmware=False, scvmm=False, cancel=False, start_ip=None, end_ip=None)[source]

Discover infrastructure providers. Note: only starts discovery, doesn’t wait for it to finish.

Parameters:
  • rhvem – Whether to scan for RHEVM providers
  • vmware – Whether to scan for VMware providers
  • scvmm – Whether to scan for SCVMM providers
  • cancel – Whether to cancel out of the discover UI.
cfme.infrastructure.provider.get_all_providers(do_not_navigate=False)[source]

Returns list of all providers

cfme.infrastructure.provider.wait_for_a_provider()[source]