cfme.infrastructure.provider.openstack_infra module

class cfme.infrastructure.provider.openstack_infra.OpenStackInfraEndpointForm(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

default

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

events

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

rsa_keypair

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.infrastructure.provider.openstack_infra.OpenstackInfraProvider(name=None, endpoints=None, key=None, hostname=None, ip_address=None, start_ip=None, end_ip=None, provider_data=None, appliance=None)[source]

Bases: cfme.infrastructure.provider.InfraProvider

STATS_TO_MATCH = ['num_template', 'num_host']
bad_credentials_error_msg = ('Credential validation was not successful: ', 'Login failed due to a bad username or password.')
db_types = ['Openstack::InfraManager']
endpoints_form

alias of OpenStackInfraEndpointForm

classmethod from_config(prov_config, prov_key, appliance=None)[source]
has_nodes()[source]
hosts_menu_item = 'Nodes'
mgmt_class = <Mock name='mock.OpenstackInfraSystem' id='140602860665616'>
node_exist(name='my_node')[source]

” registered imported host exist This function is valid only for RHOS10 and above

Parameters:name – by default name is my_name Input self, name of the new node, looking for the host in Ironic clients, compare the record found with hosts list in CFME DB

Returns: boolean value if host found

register(file_path)[source]

Register new nodes (Openstack) Fill a form for new host with json file format This function is valid only for RHOS10 and above

Parameters:file_path – file path of json file with new node details, navigation MUST be from a specific self
scale_down()[source]

Scales down provider

scale_out(increase_by=1)[source]

Scale out Openstack Infra provider :param increase_by - count of nodes to be added to infra provider:

type_name = 'openstack_infra'
view_value_mapping
class cfme.infrastructure.provider.openstack_infra.ProviderRegisterNodes(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderRegisterNodesView

prerequisite

This is a helper descriptor for navigation destinations which are linked to the same class.

For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.

step()[source]
class cfme.infrastructure.provider.openstack_infra.ProviderRegisterNodesView(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

represents Register Nodes view

cancel

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

file

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

is_displayed
register

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.infrastructure.provider.openstack_infra.ProviderScaleDown(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderScaleDownView

prerequisite

This is a helper descriptor for navigation destinations which are linked to the same class.

For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.

step()[source]
class cfme.infrastructure.provider.openstack_infra.ProviderScaleDownView(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

represents Scale down view

cancel

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

checkbox

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

is_displayed
scale_down

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

table

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.infrastructure.provider.openstack_infra.ProviderScaleOut(obj, navigate_obj)[source]

Bases: cfme.utils.appliance.implementations.ui.CFMENavigateStep

VIEW

alias of ProviderScaleOutView

prerequisite

This is a helper descriptor for navigation destinations which are linked to the same class.

For instance, imagine you have an object that has a ‘ViewAll’, destination that needs to be visited before you can click on ‘New’. In this instance, you would need to make the ‘New’ destination use ‘ViewAll’ as a prerequisite. As this would need no other special input, we can use NavigateToSibling as a helper. This will set prerequisite to be a callable that will navigate to the prerequisite step.

step()[source]
class cfme.infrastructure.provider.openstack_infra.ProviderScaleOutView(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

represents Scale view

cancel

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

compute_count

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

is_displayed
scale

This class handles instantiating and caching of the widgets on view.

It stores the class and the parameters it should be instantiated with. Once it is accessed from the instance of the class where it was defined on, it passes the instance to the widget class followed by args and then kwargs.

It also acts as a counter, so you can then order the widgets by their “creation” stamp.

class cfme.infrastructure.provider.openstack_infra.RHOSEndpoint(**kwargs)[source]

Bases: cfme.common.provider.DefaultEndpoint

view_value_mapping