qontract-reconcile 0.10.1rc881__py3-none-any.whl → 0.10.1rc882__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: qontract-reconcile
3
- Version: 0.10.1rc881
3
+ Version: 0.10.1rc882
4
4
  Summary: Collection of tools to reconcile services with their desired state as defined in the app-interface DB.
5
5
  Home-page: https://github.com/app-sre/qontract-reconcile
6
6
  Author: Red Hat App-SRE Team
@@ -61,7 +61,7 @@ reconcile/ocm_groups.py,sha256=CluPyvmwE5JOZS2HQSReC1sD8L1ChhnJlAg8lcwdtxc,3395
61
61
  reconcile/ocm_machine_pools.py,sha256=oY4oLPm5Y_ajBV8KFg2LuBQvsZl-CxTjSxEyxg4b2OI,16634
62
62
  reconcile/ocm_update_recommended_version.py,sha256=IYkfLXIprOW1jguZeELcGP1iBPuj-b53R-FTqKulMl8,4204
63
63
  reconcile/ocm_upgrade_scheduler_org_updater.py,sha256=sQSicCyU-TPtIBYsSn97qzYiQLFaMmOMSFr1OP6tOck,4308
64
- reconcile/openshift_base.py,sha256=mE_NuKgEFsZDeA3kUo4iMsvIF1wN5yemUHeuE0M9fbY,49735
64
+ reconcile/openshift_base.py,sha256=xM14RxKYqbFQZH3kTHcvh8gEXNPpNCWZ4-SiVvFP09U,49797
65
65
  reconcile/openshift_cluster_bots.py,sha256=eRPYZqWMKFNxLlSN0QG97V5t1iIESQ0BbGaiaQP5VB0,10940
66
66
  reconcile/openshift_clusterrolebindings.py,sha256=QfSy1Ik8eEY5XObc1Q4xyhqyErZenJmbPv_u9wcDNNo,5864
67
67
  reconcile/openshift_groups.py,sha256=fqBQ6ITDOArkC_zOjskmMigdCUDq3wntLZ0NcppXaFc,9414
@@ -674,7 +674,7 @@ reconcile/utils/make.py,sha256=QaEwucrzbl8-VHS66Wfdjfo0ubmAcvt_hZGpiGsKU50,231
674
674
  reconcile/utils/metrics.py,sha256=ot4dBO-KLZRowvNozm7jG0RWjcVsH1SL-lQ0jJgBBZM,18645
675
675
  reconcile/utils/models.py,sha256=It_Q1WNIvw_EDCsiSWzIgpSPr_X9jMgbJI-DR3N23xY,4677
676
676
  reconcile/utils/oauth2_backend_application_session.py,sha256=6W16sMpnWEPFDUX7qi5Cui2yOnmLfpgUxWtB3Ii35D0,4177
677
- reconcile/utils/oc.py,sha256=OB78zd4xzc80ZneENHEdVzeevFyq8a34hNmefwyBw6A,65612
677
+ reconcile/utils/oc.py,sha256=D8NhbFTIeIvqzPLAqTD6-fyU4tgJHc4ofnqaY2VI0Nw,65802
678
678
  reconcile/utils/oc_connection_parameters.py,sha256=85slrnDigYwYmzhyceVkMElWzFArp4ge1d-fHXVqh0w,9729
679
679
  reconcile/utils/oc_filters.py,sha256=R2Lf3fo0jQCeE62Ygeo_KN24XbAosq0QbjimYG6qHI4,1402
680
680
  reconcile/utils/oc_map.py,sha256=nT69J5pdPeIDnIYjD9fwY6GkE3BMQCf-AF0rmHJuUNw,9068
@@ -838,8 +838,8 @@ tools/test/test_app_interface_metrics_exporter.py,sha256=SX7qL3D1SIRKFo95FoQztvf
838
838
  tools/test/test_qontract_cli.py,sha256=_D61RFGAN5x44CY1tYbouhlGXXABwYfxKSWSQx3Jrss,4941
839
839
  tools/test/test_sd_app_sre_alert_report.py,sha256=v363r9zM7__0kR5K6mvJoGFcM9BvE33fWAayrqkpojA,2116
840
840
  tools/test/test_sre_checkpoints.py,sha256=SKqPPTl9ua0RFdSSofnoQX-JZE6dFLO3LRhfQzqtfh8,2607
841
- qontract_reconcile-0.10.1rc881.dist-info/METADATA,sha256=aWt-wXRL72DWuJYJh5aKEqNiw9lbIpToGNsTP6zL8tI,2273
842
- qontract_reconcile-0.10.1rc881.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
843
- qontract_reconcile-0.10.1rc881.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
844
- qontract_reconcile-0.10.1rc881.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
845
- qontract_reconcile-0.10.1rc881.dist-info/RECORD,,
841
+ qontract_reconcile-0.10.1rc882.dist-info/METADATA,sha256=h86zL76A3OqZCu_IiZB3FL-aoKD2jRhyQV3yAgRGVI8,2273
842
+ qontract_reconcile-0.10.1rc882.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
843
+ qontract_reconcile-0.10.1rc882.dist-info/entry_points.txt,sha256=GKQqCl2j2X1BJQ69een6rHcR26PmnxnONLNOQB-nRjY,491
844
+ qontract_reconcile-0.10.1rc882.dist-info/top_level.txt,sha256=l5ISPoXzt0SdR4jVdkfa7RPSKNc8zAHYWAnR-Dw8Ey8,24
845
+ qontract_reconcile-0.10.1rc882.dist-info/RECORD,,
@@ -40,6 +40,7 @@ from reconcile.utils.oc import (
40
40
  OCClient,
41
41
  OCLogMsg,
42
42
  PrimaryClusterIPCanNotBeUnsetError,
43
+ RequestEntityTooLargeError,
43
44
  StatefulSetUpdateForbidden,
44
45
  StatusCodeError,
45
46
  UnsupportedMediaTypeError,
@@ -402,7 +403,7 @@ def apply(
402
403
 
403
404
  try:
404
405
  oc.apply(namespace, annotated)
405
- except InvalidValueApplyError:
406
+ except (InvalidValueApplyError, RequestEntityTooLargeError):
406
407
  oc.remove_last_applied_configuration(
407
408
  namespace, resource_type, resource.name
408
409
  )
reconcile/utils/oc.py CHANGED
@@ -127,6 +127,10 @@ class JobNotRunningError(Exception):
127
127
  pass
128
128
 
129
129
 
130
+ class RequestEntityTooLargeError(Exception):
131
+ pass
132
+
133
+
130
134
  class OCDecorators:
131
135
  @classmethod
132
136
  def process_reconcile_time(cls, function):
@@ -1118,6 +1122,8 @@ class OCCli: # pylint: disable=too-many-public-methods
1118
1122
  raise StatefulSetUpdateForbidden(f"[{self.server}]: {err}")
1119
1123
  if "the object has been modified" in err:
1120
1124
  raise ObjectHasBeenModifiedError(f"[{self.server}]: {err}")
1125
+ if "Request entity too large" in err:
1126
+ raise RequestEntityTooLargeError(f"[{self.server}]: {err}")
1121
1127
  if not (allow_not_found and "NotFound" in err):
1122
1128
  raise StatusCodeError(f"[{self.server}]: {err}")
1123
1129