Description
I'm developing the platform provider for ovirt #766, which is a platform which doesn't provide a DNS service, and as such it utilzes the work done on metal3. To bootstrap a working DNS solution, the installer asks the user for an IP to be the virtual IP of the DNS - DNS_VIP.
This DNS_VIP is a value which must end up in the masters ignition files for the ovirt platform, and possibly others.
Today I see that there are number of files which bootstrap MCO, one of them is config-file:
| bootstrapCmd.PersistentFlags().StringVar(&bootstrapOpts.configFile, "config-file", "", "ClusterConfig ConfigMap file.") |
Which is the serialized InstallConfig of the installer, which has all I need:
https://github.com/openshift/installer/blob/479ca0fc0fd46c489c4b97d783bf1dd58cc373a2/pkg/types/installconfig.go#L42
What I want is to add this ClusterConfigMap to the RenderConfig and by that I could render my templates.
Can I rely on the installer InstallConfig type and to serialize the content to it and put it in render config? It creates dependency on the installer types, and I don't know yet how does it fit the overall design of those components.
Activity
kikisdeliveryservice commentedon Jun 3, 2019
Briefly looking through, it looks like the following prs would need to land before we'd tackle this:
openshift/api#314
#767
What is the status of the first PR in openshift/api ??
rgolangh commentedon Jun 3, 2019
I have nothing to change there, just waiting for approval
[-]Operator should consume cluster config map, and render templates with it[/-][+]ovirt: Operator should consume cluster config map, and render templates with it[/+]kikisdeliveryservice commentedon Jun 3, 2019
specifically which values are you needing from the cluster config? Networking? The mco already consumes the install config, so if you could be more specific about what you need from that it would be helpful. 😃
[-]ovirt: Operator should consume cluster config map, and render templates with it[/-][+]ovirt: pass DNS_VIP from cluster config/installer and render ovirt templates with it[/+]kikisdeliveryservice commentedon Jun 3, 2019
Also if you can add more details about the platform, that would be great as I don't think we have that much familiarity with it.
rgolangh commentedon Jun 3, 2019
You'll find it here, under the new 'ovirt' platform (not merged yet obviously)
https://github.com/rgolangh/installer/blob/fd85cbdb57e9d3e5ba20bba757468c9b8c57642d/pkg/types/ovirt/platform.go#L27
rgolangh commentedon Jun 3, 2019
I can think of more data which I need to share, like the the platform authentication details, which will be used by the cluster-api or actuator to provision machines
kikisdeliveryservice commentedon Jun 3, 2019
can you outline what PRs need to merge / the overall status of this ovirt platform? before this PR could even merge?
runcom commentedon Jun 3, 2019
we're Rendering using the cluster config already - what's the reason to be in RenderConfig as well? you might want it in ControllerConfig maybe (still looking at the code and the related ovirt PRs)
rgolangh commentedon Jun 3, 2019
RenderConfig is the one that is used to execute templating on templates/master/... no?
kikisdeliveryservice commentedon Jun 3, 2019
Ah so I didn't understand that this is actually speculative and that the installer does not yet even support ovirt. You'd first need to get that installer config PR merged before the MCO can do anything with your new data type. And like @runcom said the mco already consumes the clusterconfig so that bit of general work would not be needed
abhinavdahiya commentedon Jun 3, 2019
Installer team is deprecating all clients of the
InstallConfigin the cluster ie.ClusterConfigConfigMap. Please move toinfrastructures.config.openshift.io.runcom commentedon Jun 3, 2019
cool, we do play with that already as well in code (iirc, can't check right now).
rgolangh commentedon Jun 4, 2019
@kikisdeliveryservice speculative? no. Its a work in progress toward making it happen.
For the installer to support ovirt, or almost any platform, I must to have MCO support, its integral, but yes the patch to at least getting it into the api platform type is the start.
@runcom got any reference to infrastructures.config.openshift.io?
bcrochet commentedon Jun 4, 2019
I'd like to add that the Baremetal platform also needs some/all of these values as well. That is more pressing as we are trying to get Baremetal support into 4.2. I currently have PR #795 that adds some static pod definitions that would need at a minimum the API vip and the DNS vip. Should I open a separate issue for that? @kikisdeliveryservice
runcom commentedon Jun 4, 2019
if it's tackling the same issue, let's generalize this issue.
kikisdeliveryservice commentedon Jun 4, 2019
Yes I'd say just use this issue. Easier to keep track.
[-]ovirt: pass DNS_VIP from cluster config/installer and render ovirt templates with it[/-][+]bm/ovirt: pass API_VIP/DNS_VIP from cluster config/installer and render templates with it[/+]rgolangh commentedon Jun 4, 2019
I see that the controller bootstrap does that:
cmd/machine-config-controller/bootstrap.go#runbootstrapCmd
So this means I won't have access the cluster config
runcom commentedon Jun 4, 2019
@rgolangh we're playing with that in pkg/operator but I'm not sure how that's handled outside the MCO to populate it:
I believe it's setup in the installer 🤔
rgolangh commentedon Jun 6, 2019
@abhinavdahiya I don't know what this namespace refer to - I saw you mentioning this several times - can you please explain this?
If I get you correctly and following @runcom comment, If I want to shar edata from the installer then I should exapand
InfrastructureStatusstruct?Or will
InstallConfigwill be under InfrastructureStatus?celebdor commentedon Jun 6, 2019
Issue explaining the move of installconfig stuff to infrastructures.config.openshift.io openshift/installer#680
celebdor commentedon Jun 6, 2019
I think it's about adding to https://github.com/openshift/api/blob/master/config/v1/types_infrastructure.go#L99
rgolangh commentedon Jul 11, 2019
@runcom I think we can link #943 with this issue and edit its name - what do you think?