Skip to content

Node port service test always expect that port is part of cluster URL #49

@deebhatia

Description

@deebhatia

create_check_and_delete_pod_with_node_port_service gets erred when cluster URL doesn't have a port. Code expects the URL to always contain port. See here. For example, URL of type https://k8s-api.example.com gives the service URL as http:30151/ instead of https://k8s-api.example.com:30151/.

MissingSchema: Invalid URL 'http:30151/': No schema supplied. Perhaps you meant http://http:30151/?

Traceback (most recent call last):
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/rally/task/runner.py", line 71, in _run_scenario_once
    getattr(scenario_inst, method_name)(**scenario_kwargs)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/rally_plugins/scenarios/kubernetes/services.py", line 229, in run
    requests.get(url, **kwargs)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/sessions.py", line 519, in request
    prep = self.prepare_request(req)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/sessions.py", line 462, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/models.py", line 313, in prepare
    self.prepare_url(url, params)
  File "/opt/rally/xrally-venv/local/lib/python2.7/site-packages/requests/models.py", line 387, in prepare_url
    raise MissingSchema(error)
MissingSchema: Invalid URL 'http:30151/': No schema supplied. Perhaps you meant http://http:30151/?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions