vmware / nsx-t-datacenter-ci-pipelines

CI pipelines for VMware NSX-T Datacenter
Other
71 stars 43 forks source link

Fix datastore name change of deployed cluster1 in VCenter #97

Closed timdengyun closed 1 year ago

timdengyun commented 1 year ago

In the beginging, the deployed cluster1 datastore naming convention is fixed as:

{'concourse_dc1': {'cluster': {'cluster1': 'domain-c9'},

        #           'datastore': {'datastore': 'datastore-13',
        #                                 'datastore (1)': 'datastore-17',
        #                                 'vsanDatastore': 'datastore-49' }}}

However, the datastore naming is changed with dynamic naming format that is changed according to ESXi host ip name like:

{'concourse_dc1': {'cluster': {'cluster1': 'domain-c27'},

        #           'datastore': {'datastore-10.221.121.47': 'datastore-32',
        #                                'datastore-10.221.121.48': 'datastore-36',
        #                                'vsanDatastore': 'datastore-49'},}}

This patch is to support deployed cluster1 datastore naming convention change to rebuild datastore name in mapping from dynamic datastore name input and output a fixed datastore name mapping, one for nsx_datastore and one for edge_datastore.

vmwclabot commented 1 year ago

@timdengyun, you must sign every commit in this pull request acknowledging our Developer Certificate of Origin before your changes are merged. This can be done by adding Signed-off-by: John Doe <john.doe@email.org> to the last line of each Git commit message. The e-mail address used to sign must match the e-mail address of the Git author. Click here to view the Developer Certificate of Origin agreement.

timdengyun commented 1 year ago

This patch is should be merged to nsxt_3.2.0 branch other than master branch, So closing this PR.