Bug in client without cluster set #155

Closed
opened 2022-07-26 10:35:50 -04:00 by joshuaboniface · 1 comment

joshua@host ~ $ pvc vm modify --editor vmname
Traceback (most recent call last):
File "/usr/bin/pvc", line 33, in
sys.exit(load_entry_point('pvc==0.9.50', 'console_scripts', 'pvc')())
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pvc/pvc.py", line 1045, in vm_modify
retcode, vm_information = pvc_vm.vm_info(config, domain)
File "/usr/lib/python3/dist-packages/pvc/cli_lib/vm.py", line 40, in vm_info
response = call_api(config, "get", "/vm/{vm}".format(vm=vm))
File "/usr/lib/python3/dist-packages/pvc/cli_lib/common.py", line 132, in call_api
config["api_scheme"], config["api_host"], config["api_prefix"], request_uri
KeyError: 'api_scheme'

joshua@host ~ $ pvc vm modify --editor vmname Traceback (most recent call last): File "/usr/bin/pvc", line 33, in <module> sys.exit(load_entry_point('pvc==0.9.50', 'console_scripts', 'pvc')()) File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/usr/lib/python3/dist-packages/pvc/pvc.py", line 1045, in vm_modify retcode, vm_information = pvc_vm.vm_info(config, domain) File "/usr/lib/python3/dist-packages/pvc/cli_lib/vm.py", line 40, in vm_info response = call_api(config, "get", "/vm/{vm}".format(vm=vm)) File "/usr/lib/python3/dist-packages/pvc/cli_lib/common.py", line 132, in call_api config["api_scheme"], config["api_host"], config["api_prefix"], request_uri KeyError: 'api_scheme'
joshuaboniface added the
CLI
bug
labels 2022-07-26 10:35:50 -04:00
Author
Owner

Solved, found missing @cluster_req decorator.

Solved, found missing `@cluster_req` decorator.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: parallelvirtualcluster/pvc#155
No description provided.