Hi, for example: (see on bold)
('tenant', 'add', *'1234'*), (This will have id = 1) *#2* Service Name:swift Type:object-store ('service', 'add',* 'swift'*, 'object-store', 'Swift-compatible service'), ('endpointTemplates', 'add', 'RegionOne', *'swift'*, 'http://swift.publicinternets.com/v1/AUTH_%tenant_id%', 'http://swift.admin-nets.local:8080/', 'http://127.0.0.1:8080/v1/AUTH_%tenant_id%', '1', '0'), (this will have id = 1) ('endpoint', 'add', *'1234'*, *'1'*), This causes issues with the latest trunk .... Yo have to change endpointTemplates to: ('endpointTemplates', 'add', 'RegionOne', *2*, 'http://swift.publicinternets.com/v1/AUTH_%tenant_id%', 'http://swift.admin-nets.local:8080/', 'http://127.0.0.1:8080/v1/AUTH_%tenant_id%', '1', '0'), ('endpoint', 'add', *1*, *1*), ------- You have to apply the same rules I described above to all the code you sent On Tue, Sep 27, 2011 at 5:21 PM, darkfower <atk...@gmail.com> wrote: > hi, > > import keystone.manage > > DEFAULT_FIXTURE = [ > # Tenants > ('tenant', 'add', '1234'), > ('tenant', 'add', 'ANOTHER:TENANT'), > ('tenant', 'add', '0000'), > ('tenant', 'disable', '0000'), > # Users > ('user', 'add', 'joeuser', 'secrete', '1234'), > ('user', 'add', 'joeadmin', 'secrete', '1234'), > ('user', 'add', 'admin', 'secrete'), > ('user', 'add', 'serviceadmin', 'secrete', '1234'), > ('user', 'add', 'disabled', 'secrete', '1234'), > ('user', 'disable', 'disabled'), > # Roles > ('role', 'add', 'Admin'), > ('role', 'add', 'KeystoneServiceAdmin'), > ('role', 'grant', 'Admin', 'admin'), > ('role', 'grant', 'KeystoneServiceAdmin', 'serviceadmin'), > ('role', 'grant', 'Admin', 'joeadmin', '1234'), > ('role', 'grant', 'Admin', 'joeadmin', 'ANOTHER:TENANT'), > ('role', 'add', 'Member'), > ('role', 'grant', 'Member', 'joeuser', '1234'), > # Add Services > #1 Service Name:exampleservice Type:example type > ('service', 'add', 'exampleservice', > 'example type', 'example description'), > #2 Service Name:swift Type:object-store > ('service', 'add', 'swift', > 'object-store', 'Swift-compatible service'), > #3 Service Name:cdn Type:object-store > ('service', 'add', 'cdn', > 'object-store', 'Swift-compatible service'), > #4 Service Name:nova Type:compute > ('service', 'add', 'nova', > 'compute', 'OpenStack Compute Service'), > #5 Service Name:nova_compat Type:Compute > ('service', 'add', 'nova_compat', > 'compute', 'OpenStack Compute Service'), > #6 Service Name:glance Type:image-service > ('service', 'add', 'glance', > 'image-service', 'OpenStack Compute Service'), > #7 Service Name:glance Type:image-service > ('service', 'add', 'identity', > 'identity-service', 'OpenStack Compute Service'), > # Keeping for compatibility for a while till dashboard catches up > ('endpointTemplates', 'add', 'RegionOne', 'swift', > 'http://swift.publicinternets.com/v1/AUTH_%tenant_id%', > 'http://swift.admin-nets.local:8080/', > 'http://127.0.0.1:8080/v1/AUTH_%tenant_id%', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'nova_compat', > 'http://nova.publicinternets.com/v1.0/', > 'http://127.0.0.1:8774/v1.0', 'http://localhost:8774/v1.0', '1', > '0'), > ('endpointTemplates', 'add', 'RegionOne', 'nova', > 'http://nova.publicinternets.com/v1.1/', ' > http://127.0.0.1:8774/v1.1', > 'http://localhost:8774/v1.1', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'glance', > 'http://glance.publicinternets.com/v1.1/%tenant_id%', > 'http://nova.admin-nets.local/v1.1/%tenant_id%', > 'http://127.0.0.1:9292/v1.1/%tenant_id%', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'cdn', > 'http://cdn.publicinternets.com/v1.1/%tenant_id%', > 'http://cdn.admin-nets.local/v1.1/%tenant_id%', > 'http://127.0.0.1:7777/v1.1/%tenant_id%', '1', '0'), > # endpointTemplates > ('endpointTemplates', 'add', 'RegionOne', 'swift', > 'http://swift.publicinternets.com/v1/AUTH_%tenant_id%', > 'http://swift.admin-nets.local:8080/', > 'http://127.0.0.1:8080/v1/AUTH_%tenant_id%', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'nova', > 'http://nova.publicinternets.com/v1.0/', ' > http://127.0.0.1:8774/v1.0', > 'http://localhost:8774/v1.0', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'nova_compat', > 'http://nova.publicinternets.com/v1.1/', ' > http://127.0.0.1:8774/v1.1', > 'http://localhost:8774/v1.1', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'glance', > 'http://glance.publicinternets.com/v1.1/%tenant_id%', > 'http://nova.admin-nets.local/v1.1/%tenant_id%', > 'http://127.0.0.1:9292/v1.1/%tenant_id%', '1', '0'), > ('endpointTemplates', 'add', 'RegionOne', 'cdn', > 'http://cdn.publicinternets.com/v1.1/%tenant_id%', > 'http://cdn.admin-nets.local/v1.1/%tenant_id%', > 'http://127.0.0.1:7777/v1.1/%tenant_id%', '1', '0'), > # Global endpointTemplate > ('endpointTemplates', 'add', 'RegionOne', 'identity', > 'http://keystone.publicinternets.com/v2.0', > 'http://127.0.0.1:5001/v2.0', 'http://127.0.0.1:5000/v2.0', '1', > '1'), > # Tokens > ('token', 'add', '887665443383838', 'admin', '1234', > '2012-02-05T00:00'), > ('token', 'add', '999888777666', 'joeuser', '1234', > '2015-02-05T00:00'), > ('token', 'add', '111222333444', 'serviceadmin', '1234', > '2015-02-05T00:00'), > ('token', 'add', '000999', 'admin', '1234', '2010-02-05T00:00'), > ('token', 'add', '999888777', 'disabled', '1234', '2015-02-05T00:00'), > # Tenant endpointsGlobal endpoint not added > ('endpoint', 'add', '1234', '1'), > ('endpoint', 'add', '1234', '2'), > ('endpoint', 'add', '1234', '3'), > ('endpoint', 'add', '1234', '4'), > ('endpoint', 'add', '1234', '5'), > # Add Credentials > ('credentials', 'add', 'admin', 'EC2', 'admin:admin', 'admin', '1'), > ] > > > def load_fixture(fixture=DEFAULT_FIXTURE, args=None): > keystone.manage.parse_args(args) > for cmd in fixture: > keystone.manage.process(*cmd) > > > def main(): > load_fixture() > > > if __name__ == '__main__': > main() > > > > problem ? > > > 2011/9/27 Luis Gervaso <l...@woorea.es> > >> Hi, >> >> Review your keystone configuration >> >> You have to create a service, then endpointTemplates asociated with the >> service, then a endpoint associated to your tenant >> >> So: >> >> 1. #keystone-manage service add nova .... >> 2. #keystone-manage endpointTemplates add RegionOne 1 ..... (1, is the id >> of my nova service, created in the above line) >> 3. #keystono-manage endpoint add 1 1 ..... (ids of endpointTemplate and >> tenant) >> >> Hope this helps! >> >> Regards >> >> On Tue, Sep 27, 2011 at 3:51 PM, darkfower <atk...@gmail.com> wrote: >> >>> Hi, >>> >>> >>> when i login dashboard , error : >>> >>> Unable to get usage info: Invalid service catalog service: nova >>> >>> ERROR:django_openstack.dash:ApiException in instance usage >>> Traceback (most recent call last): >>> File >>> "/opt/openstack-dashboard/django-openstack/django_openstack/dash/views/instances.py", >>> line 174, in usage >>> usage = api.usage_get(request, tenant_id, datetime_start, >>> datetime_end) >>> File >>> "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", line >>> 313, in inner >>> return f(*args, **kwargs) >>> File >>> "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", line >>> 642, in usage_get >>> return Usage(extras_api(request).usage.get(tenant_id, start, end)) >>> File >>> "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", line >>> 367, in extras_api >>> (request.user.token, url_for(request, 'nova'))) >>> File >>> "/opt/openstack-dashboard/django-openstack/django_openstack/api.py", line >>> 296, in url_for >>> raise ServiceCatalogException(service_type) >>> ServiceCatalogException: Invalid service catalog service: nova (HTTP 404) >>> >>> _______________________________________________ >>> Mailing list: https://launchpad.net/~openstack >>> Post to : openstack@lists.launchpad.net >>> Unsubscribe : https://launchpad.net/~openstack >>> More help : https://help.launchpad.net/ListHelp >>> >>> >> >> _______________________________________________ >> Mailing list: https://launchpad.net/~openstack >> Post to : openstack@lists.launchpad.net >> Unsubscribe : https://launchpad.net/~openstack >> More help : https://help.launchpad.net/ListHelp >> >> >
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp