Bug 2124219 - Submariner gateway node does not get deployed after applying ManagedClusterAddOn on Openstack
Summary: Submariner gateway node does not get deployed after applying ManagedClusterAd...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Advanced Cluster Management for Kubernetes
Classification: Red Hat
Component: Submariner
Version: rhacm-2.5
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Aswin Suryanarayanan
QA Contact: Noam Manos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-09-05 10:15 UTC by Rahul Lepakshi
Modified: 2023-02-07 17:25 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-07 17:24:38 UTC
Target Upstream Version:
Embargoed:
nyechiel: rhacm-2.7+
nyechiel: rhacm-2.7.z+
rlepaksh: needinfo-
rlepaksh: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github stolostron backlog issues 25540 0 None None None 2022-09-05 14:19:18 UTC
Github stolostron submariner-addon pull 484 0 None Merged Pass instance type for Openstack Cloud prepare 2022-09-16 03:08:04 UTC
Github stolostron submariner-addon pull 487 0 None Merged [release-2.5] Add the gateway config attributes in olm manifest 2022-09-16 03:08:04 UTC
Github stolostron submariner-addon pull 493 0 None Merged [release-2.5] Fix indentation in olm manifest yaml 2022-09-16 03:08:04 UTC
Red Hat Product Errata RHSA-2023:0631 0 None None None 2023-02-07 17:25:10 UTC

Comment 1 Nir Yechiel 2022-09-05 14:22:35 UTC
Sridhar, can you please clarify what needs to be fixed in the docs?

Thanks!

Comment 2 Sridhar Gaddam 2022-09-05 14:29:49 UTC
(In reply to Nir Yechiel from comment #1)
> Sridhar, can you please clarify what needs to be fixed in the docs?
> 
> Thanks!

This looks like a bug in addon and is not a documentation issue which i was thinking initially. Changed the component back to Submariner.

Comment 6 Stephen Kitt 2022-09-06 10:38:40 UTC
@rlepaksh could you try deleting only the submariner add-on pod? It should then be re-created and be able to use the secret.

Comment 8 Aswin Suryanarayanan 2022-09-06 17:50:33 UTC
@rlepaksh Could you try deleting the machineset if any is created( it should have -submariner-gw in its name ) after deleting SubmarinerConfig and try creating SubmarinerConfig again.

Comment 11 Aswin Suryanarayanan 2022-09-07 16:11:07 UTC
I get an error when I try to apply the SubmrinerConfig above, did you face the same?

$ kubectl apply --kubeconfig kubeconfig1 -f submariner-config.yaml
error: error validating "submariner-config.yaml": error validating data: ValidationError(SubmarinerConfig.spec.gatewayConfig): unknown field "rhos" in io.open-cluster-management.submarineraddon.v1alpha1.SubmarinerConfig.spec.gatewayConfig; if you choose to ignore these errors, turn validation off with --validate=false



The CRD seems to be missing the field. Need to check.

Comment 12 Rahul Lepakshi 2022-09-08 07:27:53 UTC
@asuryana No, I did not get the error you see above and I did not use kubectl commands, used openshift CLI but that should not matter. Thanks

Comment 13 Aswin Suryanarayanan 2022-09-08 15:44:20 UTC
@rlepaksh We seems to have a bug in Submariner , where it always passes the default value and ignores user passed one[1].

Could you try editing the image in the machineset(the one has submariner in name) that got created as a work around, while we fix the issue? if editing does not work you can save the contents to a yaml edit the image and apply it after deleting the existing machineset



[1]`https://github.com/stolostron/submariner-addon/blob/main/pkg/cloud/rhos/rhos.go#L97

Comment 14 Rahul Lepakshi 2022-09-09 06:56:19 UTC
@asuryana thanks. I applied workaround through saving contents to YAML as I could not see changes getting applied after machineset YAML edition from UI. 
oc get nodes
NAME                                     STATUS   ROLES                         AGE   VERSION
ceph-c2-6x-tkg4z-master-0                Ready    control-plane,master,worker   14d   v1.24.0+ed93380
ceph-c2-6x-tkg4z-master-1                Ready    control-plane,master,worker   14d   v1.24.0+ed93380
ceph-c2-6x-tkg4z-master-2                Ready    control-plane,master,worker   14d   v1.24.0+ed93380
ceph-c2-6x-tkg4z-submariner-gw-0-g47g4   Ready    worker                        53m   v1.24.0+ed93380

Comment 15 Aswin Suryanarayanan 2022-09-09 13:39:07 UTC
Removing the test blocker flag as we have a workaround.

Comment 16 Nir Yechiel 2022-09-19 09:03:27 UTC
This has been fixed for ACM 2.7, and also backported to 2.6 and 2.5.

Comment 19 errata-xmlrpc 2023-02-07 17:24:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: RHSA: Submariner 0.14 - bug fix and security updates), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2023:0631


Note You need to log in before you can comment on or make changes to this bug.