cfme.infrastructure.datastore module

A model of an Infrastructure Datastore in CFME

class cfme.infrastructure.datastore.All(obj, navigate_obj)[source]

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

VIEW

alias of DatastoresView

prerequisite

This is a helper descriptor for destinations which are linked to an attribute of the object.

For instance, imagine you have an object that has an attribute(parent) which 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 NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.

resetter()[source]

resets page to default state when user navigates to All Datastores destination

step()[source]
class cfme.infrastructure.datastore.Datastore(parent, name, provider, type=None)[source]

Bases: cfme.utils.pretty.Pretty, cfme.modeling.base.BaseEntity, cfme.common.WidgetasticTaggable

Model of an infrastructure datastore in cfme

Parameters:
  • name – Name of the datastore.
  • provider – provider this datastore is attached to.
__eq__(other)

Automatically created by attrs.

__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)

Automatically created by attrs.

__repr__()

Automatically created by attrs.

delete(cancel=True)[source]

Deletes a datastore from CFME

Parameters:cancel – Whether to cancel the deletion, defaults to True

Note

Datastore must have 0 hosts and 0 VMs for this to work.

delete_all_attached_hosts()[source]
delete_all_attached_vms()[source]
exists
get_hosts()[source]

Returns names of hosts (from quadicons) that use this datastore

Returns: List of strings with names or [] if no hosts found.

get_vms()[source]

Returns names of VMs (from quadicons) that use this datastore

Returns: List of strings with names or [] if no vms found.

name = Attribute(name='name', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
pretty_attrs = ['name', 'provider_key']
provider = Attribute(name='provider', default=NOTHING, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
run_smartstate_analysis()[source]

Runs smartstate analysis on this host

Note

The host must have valid credentials already set up for this to work.

type = Attribute(name='type', default=None, validator=None, repr=True, cmp=True, hash=None, init=True, convert=None, metadata=mappingproxy({}))
class cfme.infrastructure.datastore.DatastoreCollection(parent, filters=NOTHING)[source]

Bases: cfme.modeling.base.BaseCollection

Collection class for cfme.infrastructure.datastore.Datastore

ENTITY

alias of Datastore

__eq__(other)

Automatically created by attrs.

__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)

Automatically created by attrs.

__repr__()

Automatically created by attrs.

delete(*datastores)[source]

Note

Datastores must have 0 hosts and 0 VMs for this to work.

run_smartstate_analysis(*datastores)[source]
class cfme.infrastructure.datastore.DatastoreDetailsView(parent, logger=None, **kwargs)[source]

Bases: cfme.base.login.BaseLoggedInPage

represents Datastore Details page

entities

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.

flash

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
sidebar

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.

title

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.

toolbar

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.datastore.DatastoreEntities(parent, logger=None, **kwargs)[source]

Bases: widgetastic_manageiq.BaseEntitiesView

represents central view where all QuadIcons, etc are displayed

entity_class
cfme.infrastructure.datastore.DatastoreEntity()[source]

Temporary wrapper for Datastore Entity during transition to JS based Entity

class cfme.infrastructure.datastore.DatastoreListEntity(parent, logger=None, **kwargs)[source]

Bases: widgetastic_manageiq.BaseListEntity

class cfme.infrastructure.datastore.DatastoreQuadIconEntity(parent, logger=None, **kwargs)[source]

Bases: widgetastic_manageiq.BaseQuadIconEntity

data
class cfme.infrastructure.datastore.DatastoreSideBar(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

represents left side bar. it usually contains navigation, filters, etc

clusters

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.

datastores

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.datastore.DatastoreTileIconEntity(parent, logger=None, **kwargs)[source]

Bases: widgetastic_manageiq.BaseTileIconEntity

quad_icon

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.datastore.DatastoreToolBar(parent, logger=None, **kwargs)[source]

Bases: widgetastic.widget.View

represents datastore toolbar and its controls

configuration

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.

download

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.

policy

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.

view_selector

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.datastore.DatastoresView(parent, logger=None, **kwargs)[source]

Bases: cfme.base.login.BaseLoggedInPage

represents whole All Datastores page

entities
flash

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
sidebar

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.

toolbar

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.datastore.Details(obj, navigate_obj)[source]

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

VIEW

alias of DatastoreDetailsView

prerequisite

This is a helper descriptor for destinations which are linked to an attribute of the object.

For instance, imagine you have an object that has an attribute(parent) which 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 NavigateToAttribute as a helper, supplying only the name of the attribute which stores the object to be used in the navigation, and the destination name. This will set prerequisite to be a callable that will navigate to the prerequisite step.

step()[source]
class cfme.infrastructure.datastore.DetailsFromProvider(obj, navigate_obj)[source]

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

VIEW

alias of DatastoreDetailsView

step()[source]
class cfme.infrastructure.datastore.HostAllDatastoresView(parent, logger=None, **kwargs)[source]

Bases: cfme.infrastructure.datastore.DatastoresView

entities
is_displayed
class cfme.infrastructure.datastore.NonJSDatastoreEntity(parent, id, name=None, logger=None)[source]

Bases: widgetastic_manageiq.NonJSBaseEntity

list_entity

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.

quad_entity

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.

tile_entity

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.datastore.RegisteredHostsView(parent, logger=None, **kwargs)[source]

Bases: cfme.common.host_views.HostsView

represents Hosts related to some datastore

entities
is_displayed
cfme.infrastructure.datastore.get_all_datastores()[source]

Returns names (from quadicons) of all datastores