Ubuntu Pastebin

Paste from skyler at Tue, 18 Aug 2015 23:47:10 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import amulet

CINDER = 'cinder'
CINDER_TINTRI = 'local:trusty/cinder-tintri'
RELATIONSHIP = 'storage-backend'

d = amulet.Deployment()
d.add(CINDER_TINTRI)
d.add(CINDER)
# TODO(Skyler): Configure cinder-tintri

d.relate('cinder:storage-backend', 'cinder-tintri:storage-backend')

try:
    d.setup(timeout=90)
except:
    amulet.raise_status(amulet.SKIP, msg="Environment wasn't stood up in time")

cinder_unit = d.sentry['cinder/0']
cinder_tintri_unit = d.sentry['cinder-tintri/0']

# TODO(Skyler): Find file on cinder, use oslo to parse config, ensure our data is there.
Download as text