Permalink
Commits on Sep 11, 2015
  1. python: install xapi, xapi.storage and xapi.storage.api packages

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 11, 2015
Commits on Sep 10, 2015
  1. Remove reference to 'ffs'

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  2. Put the python generated code in the package xapi.storage.api

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  3. Correct the github URL in setup.py: should be xapi-project/xapi-storage

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  4. Remove half-baked list of capabilities from the library

    These should be exposed some other way; however for the moment all
    implementations are using raw strings.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  5. Import the "call" function from ffs into xapi.storage.common

    This is useful for very simple storage backends.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  6. Add *.pyc and *.pyo to .gitignore

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  7. Move log to xapi.storage.log

    The functions are storage-specific because they append to the same
    syslog facility as the rest of the storage system.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  8. Move the log.py module from xapi-storage-datapath-plugins to here

    We should encourage all plugin authors to use the common logging
    functions -- the interface is clear and there's no need to duplicate
    code.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
  9. Remove unused daemonize, HTTP functions

    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Sep 10, 2015
Commits on Sep 9, 2015
  1. Merge pull request #53 from djs55/release.0.7

    Prepare to release 0.7
    djs55 committed Sep 9, 2015
  2. Regenerate OASIS

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Sep 9, 2015
  3. Prepare to release 0.7

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Sep 9, 2015
Commits on Aug 26, 2015
  1. Merge pull request #52 from djs55/name

    Add `name` and `description` to `SR.create`
    djs55 committed Aug 26, 2015
  2. Add `name` and `description` to `SR.create`

    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 26, 2015
Commits on Aug 24, 2015
  1. Merge pull request #51 from djs55/CP-13874

    Add SR.set_name and SR.set_description
    djs55 committed Aug 24, 2015
  2. Add SR.set_name and SR.set_description

    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 24, 2015
  3. Merge pull request #50 from robhoes/master

    Add new fields to SR.stat: "clustered" and "health"
    djs55 committed Aug 24, 2015
  4. Merge pull request #48 from djs55/probe

    Add SR.probe
    djs55 committed Aug 24, 2015
  5. Add new fields to SR.stat: "clustered" and "health"

    * Clustered implies that the SR uses aggregrated local storage, where "local"
      refers to the disks that are inside the XenServer hosts.
    * The "health" field provides a way for the storage backend to signal to the
      toolstack whether the storage is currently degraded and being repaired in some
      way (e.g. by rebuilding RAID mirrors).
    
    Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
    robhoes committed Aug 24, 2015
Commits on Aug 21, 2015
  1. Merge pull request #49 from djs55/CP-13837

    Update `handle_exception` to send back XenAPI errors
    djs55 committed Aug 21, 2015
  2. CP-13837: add a `XenAPIException` convenience class

    This class provides additional typechecking.
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 21, 2015
  3. Update `handle_exception` to send back XenAPI errors

    `handle_exception` can return an xcp-idl `Backend_error_with_backtrace`
    which includes:
    
    - XenAPI error code (optional, defaults to `SR_BACKEND_ERROR`)
    - XenAPI error params
    - error backtrace
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 21, 2015
Commits on Aug 19, 2015
  1. Add SR.probe

    SR.probe takes a `uri` argument which could be `iscsi://target` and
    then returns a struct with
    
    - SRs: this means I found specific SRs (great!)
    - URIs: this means I have some suggestions for related URIs you could
      try. This could be 'scsi://target/iqn'. The client could then
      perform `SR.probe` calls with these URLs to explore the storage.
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 19, 2015
Commits on Aug 18, 2015
  1. Merge pull request #47 from djs55/README

    Add README.md
    djs55 committed Aug 18, 2015
  2. Add README.md

    Signed-off-by: David Scott <dave@recoil.org>
    djs55 committed Aug 18, 2015
  3. Merge pull request #46 from xapi-project/rrd_datasources

    Add per-SR datasource URIs
    djs55 committed Aug 18, 2015
Commits on Aug 17, 2015
  1. Add per-SR datasource URIs

    These should point to xenostat-format shared memory pages containing
    time-varying data. Suitable uses include
    
    - free space in the SR
    - I/O latency
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 17, 2015
Commits on Aug 13, 2015
  1. Merge pull request #45 from djs55/cluster_stacks

    Add a `required_cluster_stack` list
    djs55 committed Aug 13, 2015
  2. Add a `required_cluster_stack` list

    Some storage implementations will require the use of a cluster stack;
    for example OCFS2 requires either O2CB or pacemaker/corosync. This
    will allow higher-level software to configure the necessary cluster
    stack before creating and using any storage.
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 13, 2015
Commits on Aug 4, 2015
  1. Merge pull request #44 from djs55/add-uuid

    Add an optional Volume.uuid
    djs55 committed Aug 4, 2015
  2. Add an optional Volume.uuid

    For storage systems which have a pre-existing notion of a UUID/GUID,
    allow the Volume.stat to return it (which in turn can be used by
    higher-level tools like xapi). Note that a UUID/GUID is entirely optional.
    
    Signed-off-by: David Scott <dave.scott@citrix.com>
    David Scott committed Aug 4, 2015
Commits on Jul 15, 2015
  1. Merge pull request #43 from djs55/epoch-open

    API changes for clone-on-boot
    djs55 committed Jul 15, 2015
  2. python: generate fresh identifiers when typechecking values

    If we have a list of list of x, then the index variable 'x' in our
    for loops clash, messing everything up. We need to generate a fresh
    index variable each time.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Jul 15, 2015
  3. Rename Volume.remove to Volume.unset

    This should make it easier to spot that Volume.set and Volume.unset
    are opposites. Otherwise there could be confusion between Volume.destroy
    and Volume.remove.
    
    Signed-off-by: David Scott <dave.scott@eu.citrix.com>
    David Scott committed Jul 15, 2015