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

Change --engine-url for --fqdn #136

Open
aesteve-rh opened this issue Aug 25, 2022 · 2 comments
Open

Change --engine-url for --fqdn #136

aesteve-rh opened this issue Aug 25, 2022 · 2 comments
Labels
good first issue Good issue for a new contributor ovirt-img Issue for ovirt-img tool

Comments

@aesteve-rh
Copy link
Member

Current argument --engine-url doesn't make sense. https://[fqdn] is not an engine url.

It should either ask just for fqdn, or “engine url” should be https://[fqdn]/ovirt-engine, or ask for engine api url and that would be https://[fqdn]/ovirt-engine/api. But as it stands right now it's misleading.

@aesteve-rh aesteve-rh added good first issue Good issue for a new contributor ovirt-img Issue for ovirt-img tool labels Aug 25, 2022
@aesteve-rh aesteve-rh added this to the ovirt-4.5.3 milestone Aug 25, 2022
@nirs
Copy link
Member

nirs commented Aug 25, 2022

I don’t think current url is misleading. To access engine in a browser you use ‘https://fqdn-or-ip/‘ and we require the the same for the tool.

We used this for several years in the sdk examples and we had nobody complained about this.

If the issue is people trying to use the api url (https://fqdn-or-ip/ovirt-engine/api), we can support both by adding the path only if it is missing. But the url is called engine_url and not engine_api_url.

@aesteve-rh
Copy link
Member Author

aesteve-rh commented Aug 26, 2022

It is true that sdk examples use the same naming convention, but I see discrepancies in other oVirt projects, where engine_url refers to the full api URL.

So to be on the safe side and avoid confusion and potential additional support, I'd go for either the --fqdn (as in ovirt-stress) or, as you say, support both URLs (i.e., https://[fqdn] and https://[fqdn]/ovirt-engine/api) with --engine-url. If you prefer the latter, I'm happy with that solution too.

Also, if we keep --engine-url, note that https://[fqdn]/ will make it fail, as we do string manipulation and duplicate the slash. So we can to add a simple url validator that corrects small issues like that.

@sandrobonazzola sandrobonazzola removed this from the ovirt-4.5.4 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good issue for a new contributor ovirt-img Issue for ovirt-img tool
Projects
None yet
Development

No branches or pull requests

3 participants