fence icon indicating copy to clipboard operation
fence copied to clipboard

Revert "(PXP-7219) Update Fence to use latest gen3authz and cdiserrors "

Open themarcelor opened this issue 4 years ago • 3 comments

The master branch is broken, unfortunately, we need to rollback this change.

We did not notice the k8sReset failure in one of the previous PR checks. There is still an issue with the new asynchronous behavior from gen3authz:

[2021-01-22 00:49:14,707][user_syncer.arborist_client][   INFO] created client ****
/usr/local/lib/python3.6/site-packages/paramiko/client.py:837: UserWarning: Unknown ssh-...
  key.get_name(), hostname, hexlify(key.get_fingerprint())
Traceback (most recent call last):
  File "/usr/local/bin/fence-create", line 5, in <module>
    main()
  File "/fence/bin/fence_create.py", line 446, in main
    arborist=arborist,
  File "/fence/fence/scripting/fence_create.py", line 324, in sync_users
    syncer.sync()
  File "/fence/fence/sync/sync_users.py", line 1150, in sync
    self._sync(s)
  File "/fence/fence/sync/sync_users.py", line 1276, in _sync
    success = self._update_authz_in_arborist(sess, user_projects, user_yaml)
  File "/fence/fence/sync/sync_users.py", line 1611, in _update_authz_in_arborist
    self.arborist_client.update_client(client.client_id, client_policies)
  File "/usr/local/lib/python3.6/site-packages/gen3authz/utils.py", line 20, in _wrapper
    result = coro.send(result)
  File "/usr/local/lib/python3.6/site-packages/gen3authz/client/arborist/base.py", line 843, in update_client
    await self.create_client(client_id, policies)
TypeError: object dict can't be used in 'await' expression

Reverts uc-cdis/fence#862

themarcelor avatar Jan 22 '21 14:01 themarcelor