Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

CORTX-33705: confd and ios ports are not aligned with cluster #2149

Merged
merged 1 commit into from
Aug 23, 2022

Conversation

pavankrishnat
Copy link
Contributor

@pavankrishnat pavankrishnat commented Aug 15, 2022

Problem:
The confd and ios Port information in hctl status is not matching with
cluster.conf in both Both basic Linux and K8s

in basic Linux:
ios Port in hctl status is 21003 instead of 21001 (as per cluster.conf):

    ssc-vm-rhev4-2906.colo.seagate.com  (RC)
    [started]  hax                 0x7200000000000001:0x0          inet:tcp:10.230.240.238@22001
    [started]  confd               0x7200000000000001:0x1          inet:tcp:10.230.240.238@21002
    [started]  ioservice           0x7200000000000001:0x2          inet:tcp:10.230.240.238@21003
    [unknown]  m0_client_other     0x7200000000000001:0x3          inet:tcp:10.230.240.238@22501
    [unknown]  m0_client_other     0x7200000000000001:0x4          inet:tcp:10.230.240.238@22502

In K8s:
both confd and ios Port are not matching with cluster.conf

    cortx-data-g1-1.cortx-data-headless.default.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x0          inet:tcp:cortx-data-g1-1.cortx-data-headless.default.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0x1          inet:tcp:cortx-data-g1-1.cortx-data-headless.default.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0x2          inet:tcp:cortx-data-g1-1.cortx-data-headless.default.svc.cluster.local@21002

Solution:
Modified ios and confd port info to fetch default port.

For K8s, just by changing order in list fixes this issue.
provisioning\miniprov\hare_mp\cdf.py m0serverT = ['confd', 'ios']

but to fix in basic Linux, updated the default ports and avoid rounding off to fetch actual ports from cluster.conf.

After changes:
on basic Linux:

Services:
    ssc-vm-rhev4-2906.colo.seagate.com  (RC)
    [started]  hax                 0x7200000000000001:0x0          inet:tcp:10.230.240.238@22001
    [started]  confd               0x7200000000000001:0x1          inet:tcp:10.230.240.238@21001
    [started]  ioservice           0x7200000000000001:0x2          inet:tcp:10.230.240.238@21002
    [unknown]  m0_client_other     0x7200000000000001:0x3          inet:tcp:10.230.240.238@22501
    [unknown]  m0_client_other     0x7200000000000001:0x4          inet:tcp:10.230.240.238@22502

On K8s

Services:
    cortx-data-g0-0.cortx-data-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x0          inet:tcp:cortx-data-g0-0.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0x1          inet:tcp:cortx-data-g0-0.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0x2          inet:tcp:cortx-data-g0-0.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-data-g0-1.cortx-data-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x3          inet:tcp:cortx-data-g0-1.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0x4          inet:tcp:cortx-data-g0-1.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0x5          inet:tcp:cortx-data-g0-1.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-data-g0-2.cortx-data-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x6          inet:tcp:cortx-data-g0-2.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0x7          inet:tcp:cortx-data-g0-2.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0x8          inet:tcp:cortx-data-g0-2.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-data-g1-0.cortx-data-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x9          inet:tcp:cortx-data-g1-0.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0xa          inet:tcp:cortx-data-g1-0.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0xb          inet:tcp:cortx-data-g1-0.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-data-g1-1.cortx-data-headless.cortx.svc.cluster.local  (RC)
    [started]  hax                 0x7200000000000001:0xc          inet:tcp:cortx-data-g1-1.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0xd          inet:tcp:cortx-data-g1-1.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0xe          inet:tcp:cortx-data-g1-1.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-data-g1-2.cortx-data-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0xf          inet:tcp:cortx-data-g1-2.cortx-data-headless.cortx.svc.cluster.local@22001
    [started]  ioservice           0x7200000000000001:0x10         inet:tcp:cortx-data-g1-2.cortx-data-headless.cortx.svc.cluster.local@21001
    [started]  confd               0x7200000000000001:0x11         inet:tcp:cortx-data-g1-2.cortx-data-headless.cortx.svc.cluster.local@21002
    cortx-server-0.cortx-server-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x12         inet:tcp:cortx-server-0.cortx-server-headless.cortx.svc.cluster.local@22001
    [started]  rgw_s3              0x7200000000000001:0x13         inet:tcp:cortx-server-0.cortx-server-headless.cortx.svc.cluster.local@22501
    cortx-server-1.cortx-server-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x14         inet:tcp:cortx-server-1.cortx-server-headless.cortx.svc.cluster.local@22001
    [started]  rgw_s3              0x7200000000000001:0x15         inet:tcp:cortx-server-1.cortx-server-headless.cortx.svc.cluster.local@22501
    cortx-server-2.cortx-server-headless.cortx.svc.cluster.local
    [started]  hax                 0x7200000000000001:0x16         inet:tcp:cortx-server-2.cortx-server-headless.cortx.svc.cluster.local@22001
    [started]  rgw_s3              0x7200000000000001:0x17         inet:tcp:cortx-server-2.cortx-server-headless.cortx.svc.cluster.local@22501

Signed-off-by: pavankrishnat pavan.k.thunuguntla@seagate.com

@vaibhavparatwar
Copy link
Contributor

@pavankrishnat can you add problem statement in the commit message?

@mssawant
Copy link

@pavankrishnat, I am not exactly able to understand what was the problem looking at the commit message and changes.
Changes include updating the default ports and avoid rounding off. But how this fixes the invalid value read from conf-store is not clear. Please elaborate more about the problem and solution in the commit message.

cfgen/cfgen Outdated Show resolved Hide resolved
cfgen/cfgen Show resolved Hide resolved
@pavankrishnat
Copy link
Contributor Author

@pavankrishnat, I am not exactly able to understand what was the problem looking at the commit message and changes. Changes include updating the default ports and avoid rounding off. But how this fixes the invalid value read from conf-store is not clear. Please elaborate more about the problem and solution in the commit message.

Updated

@pavankrishnat
Copy link
Contributor Author

retest this please

@vaibhavparatwar
Copy link
Contributor

@mssawant could you please review this and merge if all looks good?

@mssawant
Copy link

@pavankrishnat, PR description looks good, please also update the commit message accordingly, I don't see commit message aligned with the PR description.

Copy link

@mssawant mssawant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the commit message to align with the PR description. Thank you.

Problem:
The confd and ios Port information in hctl status is not matching with
cluster.conf in both Both basic Linux and K8s

In basic Linux, ios Port in hctl status is 21003 instead of 21001
(as per cluster.conf). And in K8s, both confd and ios Port are not matching
with cluster.conf

Solution:
Modified ios and confd port info to fetch default port.
For K8s, just by changing order in m0serverT list fixes this issue. But to fix
in basic Linux, updated the default ports and avoid rounding off to fetch
actual ports from cluster.conf.

Signed-off-by: pavankrishnat <pavan.k.thunuguntla@seagate.com>
@pavankrishnat
Copy link
Contributor Author

Please update the commit message to align with the PR description. Thank you.

Updated the commit message.

@d-nayak d-nayak merged commit 96abb23 into Seagate:main Aug 23, 2022
@pavankrishnat pavankrishnat deleted the Port_issue branch August 23, 2022 04:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants