cfme.containers.provider.openshift module

class cfme.containers.provider.openshift.AlertsEndpoint(**kwargs)[source]

Bases: cfme.containers.provider.openshift.ServiceBasedEndpoint

Represents Alerts Endpoint

name = 'alerts'
class cfme.containers.provider.openshift.CustomAttribute(name, value, field_type=None, href=None)[source]

Bases: object

class cfme.containers.provider.openshift.MetricsEndpoint(**kwargs)[source]

Bases: cfme.containers.provider.openshift.ServiceBasedEndpoint

Represents metrics Endpoint

name = 'metrics'
class cfme.containers.provider.openshift.OpenshiftDefaultEndpoint(**kwargs)[source]

Bases: cfme.containers.provider.ContainersProviderDefaultEndpoint

Represents Openshift default endpoint

static get_ca_cert(connection_info)[source]

Getting OpenShift’s certificate from the master machine. :param connection_info: username, password and hostname for OCP :type connection_info: dict

Returns:certificate’s content.
class cfme.containers.provider.openshift.OpenshiftProvider(parent, endpoints=NOTHING, name=None, key=None, zone=None, metrics_type=None, alerts_type=None, provider_data=None, http_proxy=None, adv_http=None, adv_https=None, no_proxy=None, image_repo=None, image_reg=None, image_tag=None, cve_loc=None, virt_type=None, provider=None)[source]

Bases: cfme.containers.provider.ContainersProvider, cfme.common.vm_console.ConsoleMixin

STATS_TO_MATCH = ['num_project', 'num_service', 'num_replication_controller', 'num_pod', 'num_node', 'num_image_registry', 'num_container', 'num_route']
__ge__(other)

Automatically created by attrs.

__gt__(other)

Automatically created by attrs.

__le__(other)

Automatically created by attrs.

__lt__(other)

Automatically created by attrs.

__ne__(other)

Check equality and either forward a NotImplemented or return the result negated.

__repr__()

Automatically created by attrs.

add_custom_attributes(*custom_attributes)[source]

Adding static custom attributes to provider. :param custom_attributes: The custom attributes to add.

returns: response.

cli
create(**kwargs)[source]
custom_attributes()[source]

returns custom attributes

db_types = ['Openshift::ContainerManager']
delete_custom_attributes(*custom_attributes)[source]

Deleting static custom attributes from provider.

Parameters:custom_attributes – The custom attributes to delete. (Could be also names (str))

Returns: response.

edit_custom_attributes(*custom_attributes)[source]

Editing static custom attributes in provider. :param custom_attributes: The custom attributes to edit.

returns: response.

endpoints_form

alias of ContainersProviderEndpointsForm

classmethod from_config(prov_config, prov_key)[source]
get_metrics(**kwargs)[source]

“Returns all the collected metrics for this provider

Parameters:
  • filters – list of dicts with column name and values e.g [{“resource_type”: “Container”}, {“parent_ems_id”: “1L”}]
  • metrics_table – Metrics table name, there are few metrics table e.g metrics, metric_rollups, etc
Returns:

Query object with the relevant records

get_system_id()[source]
href()[source]
mgmt_class

alias of Openshift

num_route(*args, **kwargs)
num_route_ui = None
num_template(*args, **kwargs)
num_template_ui = None
settings_key = 'ems_openshift'
sync_ssl_certificate()[source]

fixture which sync SSL certificate between CFME and OCP :param provider: OCP system to sync cert from :type provider: OpenShiftProvider :param appliance: CFME appliance to sync cert with :type appliance: IPAppliance

Returns:None
type_name = 'openshift'
view_value_mapping
wait_for_collected_metrics(timeout='50m', table_name='metrics')[source]

Check the db if gathering collection data

Parameters:timeout – timeout in minutes
Returns:is collected metrics count is greater than 0
Return type:Bool
class cfme.containers.provider.openshift.ServiceBasedEndpoint(**kwargs)[source]

Bases: cfme.common.provider.DefaultEndpoint

view_value_mapping
class cfme.containers.provider.openshift.VirtualizationEndpoint(**kwargs)[source]

Bases: cfme.containers.provider.openshift.ServiceBasedEndpoint

Represents virtualization Endpoint

name = 'virtualization'
view_value_mapping