[Openstack Cloud Provider] Added command option to OpenStackInstance to run custom commands#462
[Openstack Cloud Provider] Added command option to OpenStackInstance to run custom commands#462armagankaratosun wants to merge 1 commit intodask:mainfrom
Conversation
jacobtomlinson
left a comment
There was a problem hiding this comment.
Given that OpenStackInstance is not intended to be used directly, and passing the command through here is clearly only intended for that use case I'm not sure we should add this.
If we were adding a worker_command kwarg to the OpenStackCluster object and then passing it all the way down the chain then that might make sense. But in this case I would suggest implementing this in a consistent way across all the cluster classes.
Given that you are using OpenStackInstance in a way that is not intended I would highly recommend creating your own subclass and then customising it however you want rather than upstreaming your changes here.
class MyOpenStackInstance(OpenStackInstance):
def __init__(*args, command=None, **kwargs):
super().__init__(*args, **kwargs)
self.command = command|
Hey again, Hmm, I get your point, fair enough. I think adding I should do it that way all the way, as you suggested. Thanks! |
Hello all
Adding support to run custom commands on OpenStackInstance Dask Workers. This will be parsed into the cloud-init