Skip to content

Commit

Permalink
Merge 3f04643 into 08d4951
Browse files Browse the repository at this point in the history
  • Loading branch information
koushikcgit committed Jun 9, 2015
2 parents 08d4951 + 3f04643 commit 196dd62
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions drivers/blktap2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ def from_cli(cls, uuid):
import XenAPI

session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')

target = sm.VDI.from_uuid(session, uuid)
driver_info = target.sr.srcmd.driver_info
Expand Down Expand Up @@ -1448,7 +1448,7 @@ def _get_pool_config(self, pool_name):
# special pool
return pool_info
session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')
sr_ref = self.target.vdi.sr.srcmd.params.get('sr_ref')
sr_config = session.xenapi.SR.get_other_config(sr_ref)
vdi_config = session.xenapi.VDI.get_other_config(vdi_ref)
Expand Down Expand Up @@ -1713,7 +1713,7 @@ def setup_cache(self, sr_uuid, vdi_uuid, params):
return

session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')

dev_path = None
local_sr_uuid = params.get(self.CONF_KEY_CACHE_SR)
Expand Down Expand Up @@ -1892,7 +1892,7 @@ def remove_cache(self, sr_uuid, vdi_uuid, params):
return

session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')

if caching:
self._remove_cache(session, local_sr_uuid)
Expand Down
2 changes: 1 addition & 1 deletion drivers/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class LookupError(util.SMException):

def getSession():
session = XenAPI.xapi_local()
session.xenapi.login_with_password(XAPI.USER, '')
session.xenapi.login_with_password(XAPI.USER, '', '', 'SM')
return session
getSession = staticmethod(getSession)

Expand Down
2 changes: 1 addition & 1 deletion drivers/coalesce-leaf
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def leaf_coalesce(session, coalesceable_vdis):

def vm_leaf_coalesce(vm_uuid):
session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')

messages = []
vdis = {}
Expand Down
2 changes: 1 addition & 1 deletion drivers/lcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def from_cli(cls):
import XenAPI

session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')

return cls.from_session(session)

Expand Down
2 changes: 1 addition & 1 deletion drivers/resetvdis.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def usage():
usage()

session = XenAPI.xapi_local()
session.xenapi.login_with_password('root', '')
session.xenapi.login_with_password('root', '', '', 'SM')
mode = sys.argv[1]
if mode == "all":
if len(sys.argv) not in [4, 5]:
Expand Down
2 changes: 1 addition & 1 deletion drivers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def get_localAPI_session():
# First acquire a valid session
session = XenAPI.xapi_local()
try:
session.xenapi.login_with_password('root','')
session.xenapi.login_with_password('root', '', '', 'SM')
except:
raise xs_errors.XenError('APISession')
return session
Expand Down
2 changes: 1 addition & 1 deletion snapwatchd/snapwatchd
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def gen_SnapString(dict):

def get_localAPI_session():
session = XenAPI.xapi_local()
session.xenapi.login_with_password('root','')
session.xenapi.login_with_password('root', '', '', 'SM')
return session

def _getDevUUIDlist(h,uuid):
Expand Down

0 comments on commit 196dd62

Please sign in to comment.