Closed john-kheir closed 6 years ago
@john-kheir , in order to add a new user test98@itsyouonline
, vdcuser
service with name test98
should be installed. The error message is indeed wrong (should be service for user 'test98' is not found
), I'll fix the typo and add more detailed doc to #75.
@katia-e Please read my first step .. vdcuser
"test98" is already installed.
@john-kheir , yes, sorry, already installed. I think the error comes from the fact that username is given in format test98@itsyouonline
, while the service name for this user is test98
. I'm not sure what behavior should be: either we require to provide username without @itsyouonline
suffix, or we check both options.
@katia-e if you passed user: test98
, you will get this error
[Sun25 12:42] - base.py :191 :service-c0b547e3-b6e3-4744-8949-6619c8501ed1 - ERROR - error executing action user_add:
Traceback (most recent call last):
File "/root/0-robot/zerorobot/task/task.py", line 76, in execute
self._result = self.func(**self._args)
File "/opt/code/github/openvcloud/0-templates/templates/account/account.py", line 128, in user_add
if self.account.authorize_user(username=name, right=accesstype) == True:
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Authorizables.py", line 39, in authorize_user
self._addUser(username, right)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/openvcloud/Account.py", line 112, in _addUser
accountId=self.id, userId=username, accesstype=right)
File "/opt/code/github/jumpscale/lib9/JumpScale9Lib/clients/portal/PortalClient.py", line 57, in __call__
raise ApiError(response)
JumpScale9Lib.clients.portal.PortalClient.ApiError: 404 Not Found
User is not registered on the system
@john-kheir , is user test98
registered in itsyouonline
? From what I saw, portal returns this error if user doesn't exist in itsyouonline
.
@katia-e it actually returns this error because this user doesn't exist in OVC since the user that exists in OVC is test98@itsyouonline
not test98
@john-kheir , yes indeed, I think I fixed it just now in #75
Scenario
1- Run a blueprint to create an account
2- Run a blueprint to add a user
Blueprint
Error