Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix InitialRegistrationTime in case of reregistration #1456

Merged
merged 4 commits into from
May 18, 2023

Conversation

glazychev-art
Copy link
Contributor

@glazychev-art glazychev-art commented May 10, 2023

Description

We should not change the InitialRegistrationTime field if we have already registered the NSE before.

Added registry metadata chain element

Issue link

networkservicemesh/deployments-k8s#9063

How Has This Been Tested?

  • Added unit testing to cover
  • Tested manually
  • Tested by integration testing
  • Have not tested

Types of changes

  • Bug fix
  • New functionality
  • Documentation
  • Refactoring
  • CI

@codecov
Copy link

codecov bot commented May 10, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@6fa2f68). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1456   +/-   ##
=======================================
  Coverage        ?   70.39%           
=======================================
  Files           ?      248           
  Lines           ?    11166           
  Branches        ?        0           
=======================================
  Hits            ?     7860           
  Misses          ?     2807           
  Partials        ?      499           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@glazychev-art glazychev-art force-pushed the fix_reg_time branch 18 times, most recently from 3069dab to 90aaaa2 Compare May 11, 2023 03:58
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Copy link
Member

@denis-tingaikin denis-tingaikin left a comment

Choose a reason for hiding this comment

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

@glazychev-art I think we should also update sdk-k8s/chains/registry-k8s with metadata.

@denis-tingaikin denis-tingaikin merged commit 63043b2 into networkservicemesh:main May 18, 2023
nsmbot pushed a commit to networkservicemesh/cmd-map-ip-k8s that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-ipam-vl3 that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr-proxy that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-kernel that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-vfio that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsmgr that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-admission-webhook-k8s that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-cluster-info-k8s that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nsc-init that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-proxy-dns that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-memory that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-remote-vlan that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/sdk-k8s that referenced this pull request May 18, 2023
…k@main

PR link: networkservicemesh/sdk#1456

Commit: 63043b2
Author: Artem Glazychev
Date: 2023-05-18 20:31:10 +0700
Message:
  - Fix InitialRegistrationTime in case of reregistration (#1456)
* Fix InitialRegistrationTime in case of reregistration

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Add registry metadata

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Use metadata for setregistrationtime

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* linter fix

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

---------

Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
@glazychev-art
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants