Skip to main content

Python binding for the PowerVM REST API

Project description

NOTE

Current versions should utilize the local authentication mechanism. The remote authentication mechanism is intended only for development and test purposes for the time being.

See the VERSION.rst for detailed information about current version.

Overview

pypowervm provides a Python-based API wrapper for interaction with IBM PowerVM-based systems.

License

The library’s license can be found in the LICENSE file. It must be reviewed prior to use.

Project Structure

  • debian/: Debian packaging metadata and controls.

  • pypowervm/: Project source code.

    • helpers/: Decorator methods suitable for passing to the helpers parameter of the pypowervm.adapter.Adapter initializer.

    • locale/: Translated message files for internationalization (I18N).

    • tasks/: Modules for performing complex tasks on PowerVM objects.

      • monitor/: Modules for tasks specific to the PowerVM Performance and Capacity Monitoring (PCM) API.

    • tests/: Functional and unit tests. The directory and file structure mirrors that of the project code. For example, tests for module pypowervm/wrappers/logical_partition.py can be found in pypowervm/tests/wrappers/test_logical_partition.py.

      • data/: Data files used by test cases. These are generally XML dumps obtained from real PowerVM REST API servers, often via the utilities found in pypowervm/tests/test_utils/.

      • helpers/: Tests for modules under pypowervm/helpers/.

      • locale/: Directory structure containing sample internationalization (I18N) files for I18N testing.

      • tasks/: Tests for modules under pypowervm/tasks/.

        • monitor/: Tests for modules under pypowervm/tasks/monitor/.

      • test_utils/: Utilities useful for test development and implementation.

      • utils/: Tests for modules under pypowervm/utils/.

      • wrappers/: Tests for modules under pypowervm/wrappers/.

        • pcm/: Tests for modules under pypowervm/wrappers/pcm/.

    • utils/: Common helper utilities.

    • wrappers/: Modules presenting intuitive hierarchical views and controls on PowerVM REST objects. Simple operations involving getting or setting single, independent attributes on an object are handled by the wrappers defined here.

      • pcm/: Wrapper modules specific to the PowerVM Performance and Capacity Monitoring (PCM) API.

Using Sonar

To enable sonar code scans through tox there are a few steps involved.

  • Install sonar locally. See: http://www.sonarqube.org/downloads/

  • Create a host mapping in /etc/hosts for the name ‘sonar-server’. If the sonar server were on the local host then the entry might be:

    127.0.0.1  sonar-server

    Alternatively, you can set the environment variable SONAR_SERVER prior to invoking tox, to specify the server to use.

  • The following environment variable must be set in order to log onto the sonar server:

    SONAR_USER
    SONAR_PASSWORD

    An example invocation:

    # SONAR_USER=user SONAR_PASSWORD=password tox -e sonar
  • Sonar output is placed in:

    .sonar/

Developer Notes

  • The property pypowervm.base_partition.IOSlot.adapter is deprecated and will be removed no sooner than January 1st, 2017. It has been replaced by the pypowervm.base_partition.IOSlot.io_adapter property. Removal will break compatibility with PowerVC 1.3.0.0 and 1.3.0.1. The issue is resolved as of PowerVC 1.3.0.2.

  • The xag argument to the pypowervm.wrappers.entry_wrapper.EntryWrapper.update method is deprecated and will be removed no sooner than January 1st, 2017.

  • The xags member of the pypowervm.wrappers.virtual_io_server.VIOS class is deprecated and will be removed no sooner than January 1st, 2017. Please use the members of pypowervm.const.XAG instead.

  • Remote Restart in a NovaLink environment is handled by the consuming management layer, not by NovaLink itself. As such, the properties rr_enabled and rr_state of pypowervm.wrappers.logical_partition.LPAR should not be used. These properties are now deprecated and will be removed no sooner than January 1st, 2017. Use the srr_enabled property instead.

  • The method pypowervm.tasks.storage.crt_lu_linked_clone is deprecated and will be removed no sooner than January 1st, 2017. You should now use the pypowervm.tasks.storage.crt_lu method to create a linked clone by passing the source image LU wrapper via the clone parameter.

  • The Adapter cache is removed as of release 1.0.0.4. Attempting to create an Adapter with use_cache=True will result in a CacheNotSupportedException.

  • The property pypowervm.wrappers.managed_system.IOSlot.pci_sub_dev_id is deprecated and will be removed no sooner than January 1st, 2019. It has been replaced by the pypowervm.wrappers.managed_system.IOSlot.pci_subsys_dev_id property.

  • The property pypowervm.wrappers.managed_system.IOSlot.pci_revision_id is deprecated and will be removed no sooner than January 1st, 2019. It has been replaced by the pypowervm.wrappers.managed_system.IOSlot.pci_rev_id property.

  • The property pypowervm.wrappers.managed_system.IOSlot.pci_sub_vendor_id is deprecated and will be removed no sooner than January 1st, 2019. It has been replaced by the pypowervm.wrappers.managed_system.IOSlot.pci_subsys_vendor_id property.

  • The property pypowervm.wrappers.managed_system.IOSlot.dyn_reconfig_conn_index is deprecated and will be removed no sooner than January 1st, 2019. It has been replaced by the pypowervm.wrappers.managed_system.IOSlot.drc_index property.

  • The property pypowervm.wrappers.managed_system.IOSlot.dyn_reconfig_conn_name is deprecated and will be removed no sooner than January 1st, 2019. It has been replaced by the pypowervm.wrappers.managed_system.IOSlot.drc_name property.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypowervm-1.0.0.4.tar.gz (835.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypowervm-1.0.0.4-py2.py3-none-any.whl (1.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file pypowervm-1.0.0.4.tar.gz.

File metadata

  • Download URL: pypowervm-1.0.0.4.tar.gz
  • Upload date:
  • Size: 835.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypowervm-1.0.0.4.tar.gz
Algorithm Hash digest
SHA256 31bbca66454ecf0b6046f7d970186f6f9bc49451d44c034be87e6a208800a04d
MD5 af6b4611960e30f669ae8f1ddf56a69c
BLAKE2b-256 404a6c39a666862d0fd2359f2ec96f24263ca831b5658e3fd599de667b947feb

See more details on using hashes here.

File details

Details for the file pypowervm-1.0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pypowervm-1.0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 480187fa5867f5d1250a097098b049681f34f5b399f9f361f2ab15ef14e0b99e
MD5 8e0f34f81d6a4515e28749b32880fefa
BLAKE2b-256 bc873112c3db41507db10b032f1bd92ce40ac7e8b50a92ef389c360f359183eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page