Jump to: navigation, search

Difference between revisions of "Keystone/diablo+"

(talk)
 
(keystone->Keystone)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
'''What is Keystone for Diablo+?
+
<!-- ## page was renamed from keystone/diablo+ -->
'''
+
'''What is Keystone for Diablo+? '''
  
 
Diablo+ is a tag in github that was created on 10/28/2011 to adress the many bugs reported against Keystone Diablo.bugs
 
Diablo+ is a tag in github that was created on 10/28/2011 to adress the many bugs reported against Keystone Diablo.bugs
Line 11: Line 11:
 
'''What operations are still not supported?'''
 
'''What operations are still not supported?'''
  
<u>Extension Name: OS-KSADM</u>
+
Extension Name: OS-KSADM
''Credential Operations:''
+
 
 +
Credential Operations:
  
 
* POST v2.0/users/{userId}/OS-KSADM/credentials Adds a credential to a user.
 
* POST v2.0/users/{userId}/OS-KSADM/credentials Adds a credential to a user.
GET v2.0/users/{userId}/OS-KSADM/credentials?marker=string&limit=int List credentials.
+
* GET v2.0/users/{userId}/OS-KSADM/credentials?marker=string&limit=int List credentials.
POST v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Update credentials.
+
* POST v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Update credentials.
DELETE v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Delete credentials.
+
* DELETE v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Delete credentials.
GET v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Get user credentials.
+
* GET v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Get user credentials.
  
''Workaround:''
+
Workaround:
  
* Create user call also takes an attribute password.The username and the password could be used as the passwordCredentials as of now.
+
* Create user call also takes an attribute password.The username and the password could be used as the passwordCredentials as of now. Password is kept mandatory.The existing ec2Credentials have not been changed.They would also change as per API in the future. They were never documented earlier.
Password is kept mandatory.The existing ec2Credentials have not been changed.They would also change as per API in the future.
 
They were never documented earlier.
 
  
* This is how a create user call is in the system.
+
Role Operations:
POST v2.0/users Adds a user. .  .  Body
 
{
 
"user": {
 
"username": "jqsmith",
 
"email": [[mailto:john.smith@example.org|"john.smith@example.org"]],
 
"enabled": true,
 
"password": "secret" => Additional password attribute.
 
}
 
} ''Role Operations:''
 
  
 
* GET v2.0/users/{userId}/roles/OSKSADM/{roleId}  Get information about a global role that belongs to a user.
 
* GET v2.0/users/{userId}/roles/OSKSADM/{roleId}  Get information about a global role that belongs to a user.
GET v2.0/tenants/{tenantId}/users?roleId=string&marker=string&limit=int Lists all the users for a tenant.
+
* GET v2.0/tenants/{tenantId}/users?roleId=string&marker=string&limit=int Lists all the users for a tenant.
GET v2.0/tenants/{tenantId}/OS-KSADM/roles?marker=string&limit=int Lists all the roles for a tenant.
+
* GET v2.0/tenants/{tenantId}/OS-KSADM/roles?marker=string&limit=int Lists all the roles for a tenant. These are just additional convenience calls.
These are just additional convenience calls.
+
 
 +
'''Great. Where is my sqlalchemy migration?'''
 +
 
 +
SQLAlchemy migrations are still being setup for Keystone. So... here's the scripts:
 +
 
 +
For SQLite:
 +
 
 +
ALTER TABLE token RENAME TO tokens;
 +
 
 +
ALTER TABLE endpoint_templates ADD COLUMN version_id VARCHAR(20);
 +
 
 +
ALTER TABLE endpoint_templates ADD COLUMN version_list VARCHAR(2000);
 +
 
 +
ALTER TABLE endpoint_templates ADD COLUMN version_info VARCHAR(500);

Revision as of 12:46, 24 September 2012

What is Keystone for Diablo+?

Diablo+ is a tag in github that was created on 10/28/2011 to adress the many bugs reported against Keystone Diablo.bugs

What bugs were fixed?

https://bugs.launchpad.net/keystone/+bugs?field.tag=diablo-backport

What operations are still not supported?

Extension Name: OS-KSADM

Credential Operations:

  • POST v2.0/users/{userId}/OS-KSADM/credentials Adds a credential to a user.
  • GET v2.0/users/{userId}/OS-KSADM/credentials?marker=string&limit=int List credentials.
  • POST v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Update credentials.
  • DELETE v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Delete credentials.
  • GET v2.0/users/{userId}/OS-KSADM/credentials/{credential-type} Get user credentials.

Workaround:

  • Create user call also takes an attribute password.The username and the password could be used as the passwordCredentials as of now. Password is kept mandatory.The existing ec2Credentials have not been changed.They would also change as per API in the future. They were never documented earlier.

Role Operations:

  • GET v2.0/users/{userId}/roles/OSKSADM/{roleId} Get information about a global role that belongs to a user.
  • GET v2.0/tenants/{tenantId}/users?roleId=string&marker=string&limit=int Lists all the users for a tenant.
  • GET v2.0/tenants/{tenantId}/OS-KSADM/roles?marker=string&limit=int Lists all the roles for a tenant. These are just additional convenience calls.

Great. Where is my sqlalchemy migration?

SQLAlchemy migrations are still being setup for Keystone. So... here's the scripts:

For SQLite:

ALTER TABLE token RENAME TO tokens;

ALTER TABLE endpoint_templates ADD COLUMN version_id VARCHAR(20);

ALTER TABLE endpoint_templates ADD COLUMN version_list VARCHAR(2000);

ALTER TABLE endpoint_templates ADD COLUMN version_info VARCHAR(500);