Bug 1212725
Summary: | beaker-client should show a useful error message when no config is found | ||
---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Karel Srot <ksrot> |
Component: | command line | Assignee: | matt jia <mjia> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 19 | CC: | aigao, asaha, dcallagh, dowang, mjia |
Target Milestone: | 20.2 | Keywords: | Patch, Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-14 08:04:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Comment 4
Dan Callaghan
2015-04-20 23:47:04 UTC
On Gerrit: http://gerrit.beaker-project.org/#/c/4209/ This seems regressive behavior to me. This prevents me from using "bkr" if I don't have a configuration file. So, if i just want to quickly do something, i am not allowed to do that. I am going to reopen this bug to further discuss it. I think one way to go about this is that if I am specifying --hub, the configuration file is not checked. Otherwise, even if I am specifying --hub because I want to perform a one-off operation, I can't if I don't have a configuration file. (In reply to Amit Saha from comment #10) > I am going to reopen this bug to further discuss it. I think one way to go > about this is that if I am specifying --hub, the configuration file is not > checked. Otherwise, even if I am specifying --hub because I want to perform > a one-off operation, I can't if I don't have a configuration file. Even, bkr --help errors out. (In reply to Amit Saha from comment #9) > This seems regressive behavior to me. This prevents me from using "bkr" if I > don't have a configuration file. > > So, if i just want to quickly do something, i am not allowed to do that. I do not see this is a regressive behaviour as you just forgot to set up a configuration file. As what dan said in comment 4, beaker-client expects users to set up a config file. (In reply to matt jia from comment #12) > (In reply to Amit Saha from comment #9) > > This seems regressive behavior to me. This prevents me from using "bkr" if I > > don't have a configuration file. > > > > So, if i just want to quickly do something, i am not allowed to do that. > > I do not see this is a regressive behaviour as you just forgot to set up a > configuration file. As what dan said in comment 4, beaker-client expects > users to set up a config file. This is why I consider this regressive behavior: Before this, I could use bkr CLI to do this without having a configuration file: (since I am a one-off user, for example) bkr <sub-command> --hub=https://beaker.server.com But now, I cannot. Asking the user to always have a configuration file even when the important piece of data, --hub is supplied is something I would not like. (In reply to Amit Saha from comment #13) > (In reply to matt jia from comment #12) > > (In reply to Amit Saha from comment #9) > > > This seems regressive behavior to me. This prevents me from using "bkr" if I > > > don't have a configuration file. > > > > > > So, if i just want to quickly do something, i am not allowed to do that. > > > > I do not see this is a regressive behaviour as you just forgot to set up a > > configuration file. As what dan said in comment 4, beaker-client expects > > users to set up a config file. > > This is why I consider this regressive behavior: > > Before this, I could use bkr CLI to do this without having a configuration > file: (since I am a one-off user, for example) > > bkr <sub-command> --hub=https://beaker.server.com > > But now, I cannot. Asking the user to always have a configuration file even > when the important piece of data, --hub is supplied is something I would not > like. Well, the thing is this behaviour is never ever officially supported by us. And for you suggestion in comment 10, I do not think it will work in the current code structure. (In reply to matt jia from comment #14) > (In reply to Amit Saha from comment #13) > > (In reply to matt jia from comment #12) > > > (In reply to Amit Saha from comment #9) > > > > This seems regressive behavior to me. This prevents me from using "bkr" if I > > > > don't have a configuration file. > > > > > > > > So, if i just want to quickly do something, i am not allowed to do that. > > > > > > I do not see this is a regressive behaviour as you just forgot to set up a > > > configuration file. As what dan said in comment 4, beaker-client expects > > > users to set up a config file. > > > > This is why I consider this regressive behavior: > > > > Before this, I could use bkr CLI to do this without having a configuration > > file: (since I am a one-off user, for example) > > > > bkr <sub-command> --hub=https://beaker.server.com > > > > But now, I cannot. Asking the user to always have a configuration file even > > when the important piece of data, --hub is supplied is something I would not > > like. > > Well, the thing is this behaviour is never ever officially supported by us. > And for you suggestion in comment 10, I do not think it will work in the > current code structure. Trying to fix that: http://gerrit.beaker-project.org/#/c/4225/ I agree that bkr --help should always work, and bkr --hub should be enough to run without a config file (assuming that no auth is needed). Beaker 20.2 has been released. |