Bug 2029767 - Enactment goes to pending even when maxunavailable is set to 100% in nncp
Summary: Enactment goes to pending even when maxunavailable is set to 100% in nncp
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 4.9.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 4.10.0
Assignee: Radim Hrazdil
QA Contact: Meni Yakove
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-07 09:30 UTC by Geetika Kapoor
Modified: 2023-04-26 16:25 UTC (History)
3 users (show)

Fixed In Version: kubernetes-nmstate-handler v4.10.0-20
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-16 15:57:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github nmstate kubernetes-nmstate pull 934 0 None open Retry when incrementing maxUnavailable 2021-12-07 14:18:14 UTC
Red Hat Issue Tracker CNV-15200 0 None None None 2023-04-26 16:25:25 UTC
Red Hat Product Errata RHSA-2022:0947 0 None None None 2022-03-16 15:57:17 UTC

Description Geetika Kapoor 2021-12-07 09:30:34 UTC
Description of problem:

enactment  goes to pending even when mavunavailable is set to !00% in nncp. This state is not desired as we are expecting progressing when maxunavailable is 100%.


Version-Release number of selected component (if applicable):
4.9+

How reproducible:

always
Steps to Reproduce:
1. trigger a policy and monitor states
2.
3.

Actual results:

enactment going into "pending" 

Expected results:

enactment should not acquire pending state

Additional info:

policy :

{'apiVersion': 'nmstate.io/v1', 'kind': 'NodeNetworkConfigurationPolicy', 'metadata': {'name': 'nmstate-policy'}, 'spec': {'desiredState': {'interfaces': [{'name': 'brstatetest', 'type': 'linux-bridge', 'state': 'up', 'bridge': {'options': {'stp': {'enabled': False}}, 'port': [{'name': 'ens8'}]}, 'ipv4': {'enabled': False, 'dhcp': False, 'auto-dns': True}, 'ipv6': {'enabled': False}}]}, 'nodeSelector': {'node-role.kubernetes.io/worker': ''}, 'maxUnavailable': '100%'}}

Logs:

INFO Complete condition of n-awax-410-2-zmsps-worker-0-hxrpb NNCE : [{'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'message': 'Applying desired state',
 'reason': 'ConfigurationProgressing',
 'status': 'True',
 'type': 'Progressing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'Unknown',
 'type': 'Failing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'Unknown',
 'type': 'Available'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'False',
 'type': 'Pending'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'False',
 'type': 'Aborted'}]
ocp_resources.utils 2021-12-05 22:54:48 INFO Elapsed time: 1.0871634483337402
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Initial status of n-awax-410-2-zmsps-worker-0-hxrpb with status=True when policy is applied  : Progressing
ocp_resources.utils 2021-12-05 22:54:48 INFO Elapsed time: 1.062262773513794
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Complete condition of n-awax-410-2-zmsps-worker-0-qsplw NNCE : [{'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'message': 'Applying desired state',
 'reason': 'ConfigurationProgressing',
 'status': 'True',
 'type': 'Progressing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'Unknown',
 'type': 'Failing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'Unknown',
 'type': 'Available'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'False',
 'type': 'Pending'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'ConfigurationProgressing',
 'status': 'False',
 'type': 'Aborted'}]
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Complete condition of n-awax-410-2-zmsps-worker-0-mrrnr NNCE : [{'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'message': 'Max unavailable node limit reached',
 'reason': 'MaxUnavailableLimitReached',
 'status': 'True',
 'type': 'Pending'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'MaxUnavailableLimitReached',
 'status': 'False',
 'type': 'Aborted'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'message': 'Max unavailable node limit reached',
 'reason': 'MaxUnavailableLimitReached',
 'status': 'False',
 'type': 'Progressing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'MaxUnavailableLimitReached',
 'status': 'False',
 'type': 'Failing'}, {'lastHearbeatTime': '2021-12-05T22:54:47Z',
 'lastTransitionTime': '2021-12-05T22:54:47Z',
 'reason': 'MaxUnavailableLimitReached',
 'status': 'False',
 'type': 'Available'}]
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Initial status of n-awax-410-2-zmsps-worker-0-qsplw with status=True when policy is applied  : Progressing
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Initial status of n-awax-410-2-zmsps-worker-0-mrrnr with status=True when policy is applied  : Pending
tests.network.nmstate.test_nncp_fields 2021-12-05 22:54:48 INFO Combined Status of threads: ['Progressing', 'Pending', 'Progressing']

Comment 6 errata-xmlrpc 2022-03-16 15:57:01 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: OpenShift Virtualization 4.10.0 Images security and bug fix update), 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-2022:0947


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