~openstack-charmers-next/charms/wily/odl-controller/trunk

« back to all changes in this revision

Viewing changes to tests/charmhelpers/contrib/openstack/amulet/deployment.py

  • Committer: Gerrit Code Review
  • Author(s): Jenkins
  • Date: 2016-03-18 16:10:08 UTC
  • mfrom: (21.1.1 trunk)
  • Revision ID: review@openstack.org-20160318161008-grzlrlzei667shdd
Merge "Add support for Ubuntu Xenial"

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
        # Charms which should use the source config option
123
123
        use_source = ['mysql', 'mongodb', 'rabbitmq-server', 'ceph',
124
 
                      'ceph-osd', 'ceph-radosgw']
 
124
                      'ceph-osd', 'ceph-radosgw', 'ceph-mon']
125
125
 
126
126
        # Charms which can not use openstack-origin, ie. many subordinates
127
127
        no_origin = ['cinder-ceph', 'hacluster', 'neutron-openvswitch', 'nrpe',
128
 
                     'openvswitch-odl', 'neutron-api-odl', 'odl-controller']
 
128
                     'openvswitch-odl', 'neutron-api-odl', 'odl-controller',
 
129
                     'cinder-backup']
129
130
 
130
131
        if self.openstack:
131
132
            for svc in services:
225
226
         self.precise_havana, self.precise_icehouse,
226
227
         self.trusty_icehouse, self.trusty_juno, self.utopic_juno,
227
228
         self.trusty_kilo, self.vivid_kilo, self.trusty_liberty,
228
 
         self.wily_liberty) = range(12)
 
229
         self.wily_liberty, self.trusty_mitaka,
 
230
         self.xenial_mitaka) = range(14)
229
231
 
230
232
        releases = {
231
233
            ('precise', None): self.precise_essex,
237
239
            ('trusty', 'cloud:trusty-juno'): self.trusty_juno,
238
240
            ('trusty', 'cloud:trusty-kilo'): self.trusty_kilo,
239
241
            ('trusty', 'cloud:trusty-liberty'): self.trusty_liberty,
 
242
            ('trusty', 'cloud:trusty-mitaka'): self.trusty_mitaka,
240
243
            ('utopic', None): self.utopic_juno,
241
244
            ('vivid', None): self.vivid_kilo,
242
 
            ('wily', None): self.wily_liberty}
 
245
            ('wily', None): self.wily_liberty,
 
246
            ('xenial', None): self.xenial_mitaka}
243
247
        return releases[(self.series, self.openstack)]
244
248
 
245
249
    def _get_openstack_release_string(self):
256
260
            ('utopic', 'juno'),
257
261
            ('vivid', 'kilo'),
258
262
            ('wily', 'liberty'),
 
263
            ('xenial', 'mitaka'),
259
264
        ])
260
265
        if self.openstack:
261
266
            os_origin = self.openstack.split(':')[1]