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

make test-openshift shouldn't configure contributor's box #41

Closed
praiskup opened this issue Nov 29, 2017 · 5 comments
Closed

make test-openshift shouldn't configure contributor's box #41

praiskup opened this issue Nov 29, 2017 · 5 comments
Labels

Comments

@praiskup
Copy link
Contributor

.. and simply expect that OpenShift is installed on the box, or fail (a bit related to #40).

It would be really suspicious to require our end-users/contributors to run the openshift test-scripts "locally" ATM, since the tasks require root account. We could have some script for user's convenience (doing the oc installation), but the images in CI should be as much prepared as possible, same as user's boxes -- and we should only provide the login info into the openshift instance.

@praiskup praiskup added the bug label Nov 29, 2017
@pkubatrh
Copy link
Member

We could have some script for user's convenience (doing the oc installation), but the images in CI should be as much prepared as possible, same as user's boxes -- and we should only provide the login info into the openshift instance.

Isn't this the current state? There is a separate function ct_os_install_in_centos that installs the rpms needed for Centos but does not have to be invoked in the test suite.

@praiskup
Copy link
Contributor Author

Aha, ct_os_install_in_centos is not in postgresql-container#209 anymore - good; but there's still ct_os_cluster_up, which doesn't seem to be safe (root-only stuff).

@praiskup
Copy link
Contributor Author

This is what I was missing:
ct_os_cluster_running && echo "Cluster already running. Nothing is done." && return 0

So it is not that bad - but still, going forward if the cluster is down (that's the case for most contributors ATM, I guess), does it make sense to even attempt to disable firewall etc. when I'm rarely run the build under non-root user? And if user accidentally runs this under root, it changes his system config..

@pkubatrh
Copy link
Member

So it is not that bad - but still, going forward if the cluster is down (that's the case for most contributors ATM, I guess), does it make sense to even attempt to disable firewall etc. when I'm rarely run the build under non-root user? And if user accidentally runs this under root, it changes his system config..

Ah right, that is true. So a better way to do this would be to expect an already prepared cluster along with some information to access it. And fail if neither of these is provided.

Might be worthwhile to change the issue name to something more appropriate to the problem at hand.

@praiskup praiskup changed the title Fix openshift testing library so it doesn't install openshift make test-openshift shouldn't configure contributor's box Nov 30, 2017
@phracek
Copy link
Member

phracek commented Jul 2, 2024

This issue can be closed. We do not support OpenShift 3 at all.

@phracek phracek closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants