~zulcss/+junk/nova-compute-test

« back to all changes in this revision

Viewing changes to hooks/proxy/compute.py

  • Committer: Chuck Short
  • Date: 2014-05-30 19:10:29 UTC
  • Revision ID: zulcss@ubuntu.com-20140530191029-n24b7ghi1bg9gvaq
m0re debug compute

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        for rid in relation_ids('cloud-compute'):
27
27
            for unit in related_units(rid):
28
28
                rel = {'rid': rid, 'unit': unit}
29
 
    
 
29
 
30
30
            ctxt = {
31
31
                'auth_protocol': relation_get('auth_protocol', **rel) or 'http',
 
32
                'service_protocol': relation_get('service_protocol', **rel) or 'http',
 
33
                'neutron_auth_strategy': 'keystone',
 
34
                'keystone_host': relation_get('auth_host', **rel),
 
35
                'auth_port': relation_get('auth_port', **rel),
 
36
                'neutron_admin_tenant_name': relation_get('service_tenant_name', **rel),
 
37
                'neutron_admin_username': relation_get('service_username', **rel),
 
38
                'neutron_admin_password': relation_get('service_password', **rel),
 
39
                'neutron_plugin': 'neutron',
 
40
                'neutron_url': relation_get('neutron_url', **rel),
32
41
            }
33
42
 
34
43
            print ctxt
35
44
 
36
 
 
37
45
        return ctxt
38
46
 
39
47
    def get_context(self):