Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE #241

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

DO NOT MERGE #241

wants to merge 1 commit into from

Conversation

pc-m
Copy link
Member

@pc-m pc-m commented Jul 18, 2024

Depends-On: wazo-platform/xivo-lib-python#144

testing renaming the xivo package in xivo-lib-python without breaking all code using the xivo package

testing renaming the xivo package in xivo-lib-python without breaking
all code using the xivo package
@pc-m
Copy link
Member Author

pc-m commented Jul 18, 2024

recheck

Copy link
Contributor

This change depends on a change that failed to merge.

Change wazo-platform/xivo-lib-python#144 is needed.

@pc-m
Copy link
Member Author

pc-m commented Jul 18, 2024

recheck

Copy link
Contributor

Build failed.
https://zuul.wazo.community/zuul/t/local/buildset/b8d7cb7728f34540b6e6bed419c34d36

✔️ tox-linters SUCCESS in 4m 00s
wazo-acceptance-bullseye FAILURE in 1h 25m 28s

@pc-m
Copy link
Member Author

pc-m commented Jul 19, 2024

Build failed. https://zuul.wazo.community/zuul/t/local/buildset/b8d7cb7728f34540b6e6bed419c34d36

✔️ tox-linters SUCCESS in 4m 00s ❌ wazo-acceptance-bullseye FAILURE in 1h 25m 28s

    Given there is an authentication user                # wazo_acceptance/steps/user.py:12
Warning: Permanently added '172.17.0.1' (ECDSA) to the list of known hosts.
    Given there are conference rooms with infos          # wazo_acceptance/steps/conference.py:8
      | name | exten |
      | test | 4001  |
    When the user lists conference rooms using wazo-dird # wazo_acceptance/steps/conference.py:19
      Traceback (most recent call last):
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/.tox/acceptance/lib/python3.9/site-packages/behave/model.py", line 1329, in run
          match.run(runner.context)
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/.tox/acceptance/lib/python3.9/site-packages/behave/matchers.py", line 98, in run
          self.func(context, *args, **kwargs)
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/wazo_acceptance/steps/conference.py", line 30, in when_user_list_conference_rooms
          contacts = context.dird_client.backends.list_contacts_from_source(
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/.tox/acceptance/lib/python3.9/site-packages/wazo_dird_client/commands/backends.py", line 60, in list_contacts_from_source
          self.raise_from_response(r)
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/.tox/acceptance/lib/python3.9/site-packages/wazo_lib_rest_client/command.py", line 28, in raise_from_response
          response.raise_for_status()
        File "/home/zuul-worker/src/github.com/wazo-platform/wazo-acceptance/.tox/acceptance/lib/python3.9/site-packages/requests/models.py", line 943, in raise_for_status
          raise HTTPError(http_error_msg, response=self)
      requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://172.17.0.1:443/api/dird/0.1/backends/conference/sources/cc40dbbb-5df0-4179-8ad1-af71c89af2d3/contacts
2024-07-18 20:06:22,433 [48636] (INFO) (wazo-dird): request: GET https://172.17.0.1/api/dird/0.1/backends/conference/sources/cc40dbbb-5df0-4179-8ad1-af71c89af2d3/contacts {'Host': '172.17.0.1', 'X-Script-Name': '/api/dird', 'X-Forwarded-For': '172.16.43.27', 'X-Forwarded-Proto': 'https', 'Connection': 'close', 'Accept-Encoding': 'identity', 'X-Auth-Token': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXb9bc72a7', 'User-Agent': 'behave', 'Accept': 'application/json'}
2024-07-18 20:06:22,441 [48636] (DEBUG) (xivo.tenant_flask_helpers): Invalid tenant from header, using token...
2024-07-18 20:06:22,450 [48636] (DEBUG) (xivo.tenant_flask_helpers): Found tenant "2b1bdc90-df3e-4240-87d6-2b2c3df0a386" from token
2024-07-18 20:06:22,456 [48636] (ERROR) (wazo-dird): Exception on /0.1/backends/conference/sources/cc40dbbb-5df0-4179-8ad1-af71c89af2d3/contacts [GET]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3/dist-packages/flask_restful/__init__.py", line 468, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask_restful/__init__.py", line 583, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/rest_api_helpers.py", line 41, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/mallow_helpers.py", line 30, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/flask/auth_verifier.py", line 47, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/flask/auth_verifier.py", line 56, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_dird/plugins/conference_backend/http.py", line 58, in get
    visible_tenants = get_tenant_uuids(recurse=True)
  File "/usr/lib/python3/dist-packages/wazo_dird/plugin_helpers/tenant.py", line 11, in get_tenant_uuids
    return [tenant.uuid for tenant in token.visible_tenants(tenant_uuid)]
  File "/usr/lib/python3/dist-packages/wazo/tenant_helpers.py", line 169, in visible_tenants
    tenants_list = self._auth.tenants.list(tenant_uuid)['items']
  File "/usr/lib/python3/dist-packages/wazo_auth_client/commands/tenants.py", line 52, in list
    self.raise_from_response(r)
  File "/usr/lib/python3/dist-packages/wazo_lib_rest_client/command.py", line 28, in raise_from_response
    response.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 943, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:9497/0.1/tenants
2024-07-18 20:06:22,459 [48636] (INFO) (wazo-dird): response to 172.16.43.27 in 0.03s: GET https://172.17.0.1/api/dird/0.1/backends/conference/sources/cc40dbbb-5df0-4179-8ad1-af71c89af2d3/contacts 500
024-07-18 20:06:22,452 [48601] (INFO) (wazo-auth): request: GET http://localhost:9497/0.1/tenants {'Host': 'localhost:9497', 'Accept-Encoding': 'identity', 'Connection': 'close', 'X-Auth-Token': 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXb9bc72a7', 'User-Agent': 'wazo-dird', 'Accept': 'application/json', 'Wazo-Tenant': '2b1bdc90-df3e-4240-87d6-2b2c3df0a386'}
2024-07-18 20:06:22,454 [48601] (DEBUG) (wazo_auth.services.token): Rejecting token: forbidden access
2024-07-18 20:06:22,454 [48601] (ERROR) (wazo-auth): Exception on /0.1/tenants [GET]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wazo_auth/http.py", line 41, in check
    current_app.config['token_service'].get(token_id, required_access)
  File "/usr/lib/python3/dist-packages/wazo_auth/services/token.py", line 196, in get
    raise MissingAccessTokenException(required_access)
wazo_auth.exceptions.MissingAccessTokenException: Unauthorized for auth.tenants.read

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wazo/auth_verifier.py", line 77, in validate_token
    token_is_valid = auth_client.token.check(
  File "/usr/lib/python3/dist-packages/wazo_auth/http.py", line 46, in check
    raise MissingPermissionsTokenException()
wazo_auth_client.exceptions.MissingPermissionsTokenException

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3/dist-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3/dist-packages/flask_restful/__init__.py", line 468, in wrapper
    resp = resource(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/flask_restful/__init__.py", line 583, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_auth/http.py", line 116, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/rest_api_helpers.py", line 41, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_auth/http.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo_auth/http.py", line 93, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/wazo/flask/auth_verifier.py", line 38, in wrapper
    self.helpers.validate_token(
  File "/usr/lib/python3/dist-packages/wazo/auth_verifier.py", line 85, in validate_token
    raise MissingPermissionsTokenAPIException(
xivo.http_exceptions.MissingPermissionsTokenAPIException: ('9944460e-b9f6-43af-aa7e-8e6cb9bc72a7', 'auth.tenants.read', '2b1bdc90-df3e-4240-87d6-2b2c3df0a386')
2024-07-18 20:06:22,454 [48601] (INFO) (wazo-auth): response to 127.0.0.1 in 0.00s: GET http://localhost:9497/0.1/tenants 500

@pc-m
Copy link
Member Author

pc-m commented Jul 19, 2024

recheck

Copy link
Contributor

Build failed.
https://zuul.wazo.community/zuul/t/local/buildset/03ec47821fe2432a97acd6ccbf2883b8

✔️ tox-linters SUCCESS in 4m 06s
wazo-acceptance-bullseye FAILURE in 1h 27m 01s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant