Hi All ,
I have installed pulp operator in openshift and pulp api route is accessible in browser . I have installed pulp cli using pip and up on chekcing pulp status , it throws me below error.
[myserver:~]# pulp status
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/openapi.py”, line 137, in load_api
with open(apidoc_cache, “rb”) as f:
FileNotFoundError: [Errno 2] No such file or directory: ‘/root/.cache/squeezer/https______pulp_api_v3_docs_api.jsonapi.json’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/bin/pulp”, line 11, in
sys.exit(main())
File “/usr/local/lib/python3.6/site-packages/pulp_cli/init.py”, line 38, in main
return _main()
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 1128, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 1053, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.6/site-packages/pulpcore/cli/common/generic.py”, line 211, in invoke
return super().invoke(ctx)
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.6/site-packages/pulpcore/cli/common/generic.py”, line 211, in invoke
return super().invoke(ctx)
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/click/decorators.py”, line 84, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/click/core.py”, line 754, in invoke
return __callback(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/pulpcore/cli/core/status.py”, line 25, in status
result = pulp_ctx.call(“status_read”)
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/context.py”, line 357, in call
if self.domain_enabled:
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/context.py”, line 293, in domain_enabled
return cast(bool, self.api.api_spec.get(“info”, {}).get(“x-pulp-domain-enabled”, False))
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/context.py”, line 314, in api
doc_path=f"{self._api_root}api/v3/docs/api.json", **self._api_kwargs
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/openapi.py”, line 124, in init
self.load_api(refresh_cache=refresh_cache)
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/openapi.py”, line 142, in load_api
data = self._download_api()
File “/usr/local/lib/python3.6/site-packages/pulp_glue/common/openapi.py”, line 167, in _download_api
response.raise_for_status()
File “/usr/local/lib/python3.6/site-packages/requests/models.py”, line 960, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https:///pulp/api/v3/docs/api.json
My cli.toml is as below:
[cli]
base_url = “”
api_root = “/pulp/”
domain = “default”
username = “admin”
password = “password”
cert = “”
key = “”
verify_ssl = false
format = “json”
dry_run = false
timeout = 0
verbose = 0