> -----Original Message-----
> From: GRIDPP2: Deployment and support of SRM and local storage management
> [mailto:[log in to unmask]] On Behalf Of Sam Skipsey
> Sent: 17 May 2012 11:51
>
> ...yes. In the python file "dpm-listspaces", the code explicitly sets the
> value of "version" for the DPM to "unset".
>
This is (I think) the relevant fragment from my EMI 1.8.2, so it
unsets it, then sets it based on an RPM query. Which, apparently,
works 'normally'.
self.version = 'unset'
if self.name == socket.getfqdn():
self.core_services.append(StorageService('dpm'))
self.core_services.append(StorageService('dpns'))
ts = rpm.TransactionSet()
mi = ts.dbMatch()
mi.pattern('name',rpm.RPMMIRE_GLOB,'DPM-server-*')
# Normally only one RPM will match...
for package in mi:
self.version = package['version']
Ewan
|