sodafoundation / strato

SODA Strato (Multi-cloud) project provides a cloud vendor agnostic data management for hybrid cloud, intercloud or intracloud. This project is renamed as 'Strato'
Apache License 2.0
234 stars 329 forks source link

Not able to create SSP with development setup #1341

Open amitdn2005 opened 2 years ago

amitdn2005 commented 2 years ago

Issue/Feature Description: Not able to create SSP with development setup

Why this issue to fixed / feature is needed(give scenarios or use cases): Create an SSP is pre-requisite to create buckets How to reproduce, in case of a bug: Screenshot from 2022-04-23 15-11-15 Screenshot from 2022-04-23 15-11-20

Other Notes / Environment Information: (Please give the env information, log link or any useful information for this issue)

Log

[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/filters/auth/keystone.go] [auth.(*Keystone).validateToken.func1():102] [PID:1] k.identity: &{0xc000524780 http://172.31.43.78/identity/v3/  identity  map[]}
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/filters/auth/keystone.go] [auth.(*Keystone).validateToken.func1():104] [PID:1] r: {{{map[token:map[audit_ids:[SiSYOWb8Tzerp5_VGL-8qA -3VXMOW4TGS8_FYd-Bievw] catalog:[map[endpoints:[map[id:a9e52d89acfe42beab0ccbed8661c650 interface:public region:RegionOne region_id:RegionOne url:http://172.31.43.78/identity] map[id:c56422cc365945a4b47ed14172469f80 interface:admin region:RegionOne region_id:RegionOne url:http://172.31.43.78/identity]] id:e32de23cda494463b53167523d71d385 name:keystone type:identity] map[endpoints:[map[id:01774b4006234efa97bb7732b33d808d interface:admin region:RegionOne region_id:RegionOne url:http://172.31.43.78:50040/v1beta/94b280022d0c4401bcf3b0ea85870519] map[id:e56d0141939e437aad7150fec39e6f13 interface:internal region:RegionOne region_id:RegionOne url:http://172.31.43.78:50040/v1beta/94b280022d0c4401bcf3b0ea85870519] map[id:9784d6349a754c1a97e791159bebdcb1 interface:public region:RegionOne region_id:RegionOne url:http://172.31.43.78:50040/v1beta/94b280022d0c4401bcf3b0ea85870519]] id:aa49d156d90643aa889452a81782014a name:opensdsv1beta type:opensdsv1beta] map[endpoints:[map[id:acdd2e68b7694fb990c2b28da94bdb6d interface:admin region:RegionOne region_id:RegionOne url:http://172.31.43.78:8089/v1beta/94b280022d0c4401bcf3b0ea85870519] map[id:918f52f8817f43f581ea6f6471f7bb5e interface:internal region:RegionOne region_id:RegionOne url:http://172.31.43.78:8089/v1beta/94b280022d0c4401bcf3b0ea85870519] map[id:f18bc1aaffa04b9399621e09f418675c interface:public region:RegionOne region_id:RegionOne url:http://172.31.43.78:8089/v1beta/94b280022d0c4401bcf3b0ea85870519]] id:65dccfab31ab4bd4a6af3928a61d06ff name:multicloudv1 type:multicloudv1]] expires_at:2022-04-23T10:23:30.000000Z is_domain:false issued_at:2022-04-23T09:31:00.000000Z methods:[token password] project:map[domain:map[id:default name:Default] id:94b280022d0c4401bcf3b0ea85870519 name:admin] roles:[map[id:89b7dcf5d68f41f8b4b9d96d72050684 name:admin]] user:map[domain:map[id:default name:Default] id:558057c4256545bd8a307c37464003c9 name:admin password_expires_at:<nil>]]] map[Content-Length:[2347] Content-Type:[application/json] Date:[Sat, 23 Apr 2022 09:33:44 GMT] Server:[Apache/2.4.18 (Ubuntu)] Vary:[X-Auth-Token] X-Openstack-Request-Id:[req-550f1577-6e5c-4301-a45a-cb1d527a7de8] X-Subject-Token:[gAAAAABiY8dU8iFWsC1hOVNCHV2ZYSv_K2q4fn_VXutx88AY5jSxhEV-XASivc76zO3U5nazN9mCdOm66SbvOdwtnesl10FDzncDtUy3MZrBHdNyM_opowKBqTqFYqx702jIMAohrRZf6zbuTPecz8KFgVZA4lk997l-U5YDqktY860bqU3A7gkcUBVHJphZ_euxaQ2LQCYk]] <nil>}}}
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/filters/auth/keystone.go] [auth.(*Keystone).validateToken.func1():105] [PID:1] r.err: %!s(<nil>)
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/filters/auth/keystone.go] [auth.(*Keystone).validateToken():117] [PID:1] token: &{gAAAAABiY8dU8iFWsC1hOVNCHV2ZYSv_K2q4fn_VXutx88AY5jSxhEV-XASivc76zO3U5nazN9mCdOm66SbvOdwtnesl10FDzncDtUy3MZrBHdNyM_opowKBqTqFYqx702jIMAohrRZf6zbuTPecz8KFgVZA4lk997l-U5YDqktY860bqU3A7gkcUBVHJphZ_euxaQ2LQCYk 2022-04-23 10:23:30 +0000 UTC}
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/backend/service.go] [backend.(*APIService).ListTiers():899] [PID:1] Received request for service plan list.
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/policy/policy.go] [policy.Authorize():204] [PID:1] Action: tier:list
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/policy/policy.go] [policy.Authorize():205] [PID:1] Target: map[tenant_id:94b280022d0c4401bcf3b0ea85870519]
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/policy/policy.go] [policy.Authorize():206] [PID:1] policy-Credentials: map[auth_token:gAAAAABiY8dU8iFWsC1hOVNCHV2ZYSv_K2q4fn_VXutx88AY5jSxhEV-XASivc76zO3U5nazN9mCdOm66SbvOdwtnesl10FDzncDtUy3MZrBHdNyM_opowKBqTqFYqx702jIMAohrRZf6zbuTPecz8KFgVZA4lk997l-U5YDqktY860bqU3A7gkcUBVHJphZ_euxaQ2LQCYk is_admin:true is_admin_tenant:true roles:[admin] tenant_id:94b280022d0c4401bcf3b0ea85870519 user_id:558057c4256545bd8a307c37464003c9]
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/policy/checks.go] [policy.check():60] [PID:1] check rules:is_admin:True -- true
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/policy/checks.go] [policy.check():60] [PID:1] check rules:(is_admin:True or (role:admin and is_admin_project:True) or tenant_id:%(tenant_id)s) -- true
[2022-04-23T09:33:44Z] [INFO] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/backend/service.go] [backend.(*APIService).ListTiers():935] [PID:1] List service plans successfully.
[2022-04-23T09:33:56Z] [ERROR] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/backend/service.go] [backend.ValidateTenant():537] [PID:1] error in getting all projects:
[2022-04-23T09:33:56Z] [ERROR] [/root/gopath/src/github.com/sodafoundation/multi-cloud/api/pkg/backend/service.go] [backend.(*APIService).CreateTier():628] [PID:1] tenantId:94b280022d0c4401bcf3b0ea85870519 in request is invalid:
Mayuresh0072 commented 2 years ago

Please assign me this issue, I can work on it @amitdn2005 @xing-yang @xxwjj @stmcginnis