OS-11949: Do not initialize S3 on project creation, now it is handled by ccitools

Signed-off-by: Jose Castro Leon's avatarJose Castro Leon <jose.castro.leon@cern.ch>
parent 02321784
Pipeline #1828871 passed with stages
in 3 minutes and 27 seconds
......@@ -301,105 +301,5 @@ workflows:
- id
- region
tasks:
check_project_type:
action: keystone.projects_get
input:
project: <% $.id %>
on-success:
- add_endpoint_group: <% not ('Personal' in task(check_project_type).result.name) %>
add_endpoint_group:
workflow: service_enable.add_endpoint_group
input:
id: <% $.id %>
endpoint_group: 53290f440379bc46bbcd3660f16f126d
on-success:
- retrieve_access_key
- retrieve_secret_key
- retrieve_ssh_key
- get_member_role_id
retrieve_access_key:
workflow: secret_retrieve
input:
name: rgw_access_key
publish:
access_key: <% task(retrieve_access_key).result.payload %>
on-success:
- create_user
retrieve_secret_key:
workflow: secret_retrieve
input:
name: rgw_secret_key
publish:
secret_key: <% task(retrieve_secret_key).result.payload %>
on-success:
- create_user
retrieve_ssh_key:
workflow: secret_retrieve
input:
name: ssh_hack_key
publish:
ssh_hack_key: <% task(retrieve_ssh_key).result.payload %>
on-success:
- create_user
get_member_role_id:
action: keystone.roles_find name='Member'
publish:
member_role_id: <% task(get_member_role_id).result.id %>
on-success:
- add_temporary_role
add_temporary_role:
action: keystone.roles_grant
input:
role: <% $.member_role_id %>
user: s3quota
project: <% $.id %>
on-success:
- create_user
create_user:
join: all
action: std.ssh
input:
cmd: "OS_PROJECT_ID=<% $.id %> openstack container list"
host: localhost
username: s3temp
private_key: <% $.ssh_hack_key %>
private_key_filename: ""
on-success:
- update_s3_user
- remove_temporary_role
update_s3_user:
action: radosgw.user_set
input:
uid: <% $.id %>
max_buckets: 1
rgw_access: <% $.access_key %>
rgw_secret: <% $.secret_key %>
action_region: <% $.region %>
on-success:
- update_s3_quota
remove_temporary_role:
action: keystone.roles_revoke
input:
role: <% $.member_role_id %>
user: s3quota
project: <% $.id %>
update_s3_quota:
action: radosgw.quota_set
input:
uid: <% $.id %>
max_objects: -1
max_size_kb: 1
enabled: true
rgw_access: <% $.access_key %>
rgw_secret: <% $.secret_key %>
action_region: <% $.region %>
empty_task:
action: std.noop
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment