[ 
https://issues.apache.org/jira/browse/NIFI-12013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeetendra G Vasisht updated NIFI-12013:
---------------------------------------
    Description: 
We're trying to upgrade NiFi from 1.19 to 1.20. It is deployed in cluster mode.
pods are in crash loop backoff.
nifi-0                                          3/3     Running            0    
             20h
nifi-1                                          3/3     Running            0    
             20h
nifi-2                                          2/3     CrashLoopBackOff   164 
(2m24s ago)   17h 
we have observed that the upgrade starts from pod nifi-2 then nifi-1 and later 0
we're getting this exception on checking  pod nifi-2.
{"type":"log", "host":"worker", "level":"ERROR", "event-type":"N_USER_OPER", 
"systemid":"nifi","neid":"5ffa8f8", "system":"nifi-doc-norc-nifi-2", 
"time":"2023-06-13T10:18:12.358Z" ,"timezone":"UTC", "log":"[main] 
o.a.nifi.controller.StandardFlowService Failed to load flow from cluster due 
to: org.apache.nifi.controller.UninheritableFlowException: Failed to connect 
node to cluster"}
org.apache.nifi.controller.UninheritableFlowException: Failed to connect node 
to cluster
        at 
org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1053)
        at 
org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:520)
        at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:894)
        at org.apache.nifi.NiFi.<init>(NiFi.java:172)
        at org.apache.nifi.NiFi.<init>(NiFi.java:83)
        at org.apache.nifi.NiFi.main(NiFi.java:332)
Caused by: org.apache.nifi.controller.UninheritableFlowException: Proposed flow 
could not be inherited because it references one or more Bundles that are not 
available in this NiFi instance: Reporting Task with ID 
b009e4da-0188-1000-0000-00005a187309 and type 
org.apache.nifi.reporting.prometheus.PrometheusReportingTask requires bundle 
Bundle[group='org.apache.nifi', artifact='nifi-prometheus-nar', 
version='1.19.1'], but that bundle cannot be found in this NiFi instance
        at 
org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.checkFlowInheritability(VersionedFlowSynchronizer.java:1029)
        at 
org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.sync(VersionedFlowSynchronizer.java:174)
        at 
org.apache.nifi.controller.serialization.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:42)
        at 
org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1525)
        at 
org.apache.nifi.persistence.StandardFlowConfigurationDAO.load(StandardFlowConfigurationDAO.java:104)
        at 
org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:817)
        at 
org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1028)
        ... 5 common frames omitted
in 1.19 we're using file-user-group-provider and in 1.20 we're using a 
composite configurable user group provider where the users are coming in from 
keycloak,
for the exception
type org.apache.nifi.reporting.prometheus.PrometheusReportingTask requires 
bundle Bundle[group='org.apache.nifi', artifact='nifi-prometheus-nar', 
version='1.19.1'], but that bundle cannot be found in this NiFi instance
we checked and observed that nifi-prometheus-nar is a part of both 1.19 and 1.20

> Rolling upgrade not supported for nifi
> --------------------------------------
>
>                 Key: NIFI-12013
>                 URL: https://issues.apache.org/jira/browse/NIFI-12013
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Jeetendra G Vasisht
>            Priority: Major
>
> We're trying to upgrade NiFi from 1.19 to 1.20. It is deployed in cluster 
> mode.
> pods are in crash loop backoff.
> nifi-0                                          3/3     Running            0  
>                20h
> nifi-1                                          3/3     Running            0  
>                20h
> nifi-2                                          2/3     CrashLoopBackOff   
> 164 (2m24s ago)   17h 
> we have observed that the upgrade starts from pod nifi-2 then nifi-1 and 
> later 0
> we're getting this exception on checking  pod nifi-2.
> {"type":"log", "host":"worker", "level":"ERROR", "event-type":"N_USER_OPER", 
> "systemid":"nifi","neid":"5ffa8f8", "system":"nifi-doc-norc-nifi-2", 
> "time":"2023-06-13T10:18:12.358Z" ,"timezone":"UTC", "log":"[main] 
> o.a.nifi.controller.StandardFlowService Failed to load flow from cluster due 
> to: org.apache.nifi.controller.UninheritableFlowException: Failed to connect 
> node to cluster"}
> org.apache.nifi.controller.UninheritableFlowException: Failed to connect node 
> to cluster
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1053)
>         at 
> org.apache.nifi.controller.StandardFlowService.load(StandardFlowService.java:520)
>         at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:894)
>         at org.apache.nifi.NiFi.<init>(NiFi.java:172)
>         at org.apache.nifi.NiFi.<init>(NiFi.java:83)
>         at org.apache.nifi.NiFi.main(NiFi.java:332)
> Caused by: org.apache.nifi.controller.UninheritableFlowException: Proposed 
> flow could not be inherited because it references one or more Bundles that 
> are not available in this NiFi instance: Reporting Task with ID 
> b009e4da-0188-1000-0000-00005a187309 and type 
> org.apache.nifi.reporting.prometheus.PrometheusReportingTask requires bundle 
> Bundle[group='org.apache.nifi', artifact='nifi-prometheus-nar', 
> version='1.19.1'], but that bundle cannot be found in this NiFi instance
>         at 
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.checkFlowInheritability(VersionedFlowSynchronizer.java:1029)
>         at 
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.sync(VersionedFlowSynchronizer.java:174)
>         at 
> org.apache.nifi.controller.serialization.StandardFlowSynchronizer.sync(StandardFlowSynchronizer.java:42)
>         at 
> org.apache.nifi.controller.FlowController.synchronize(FlowController.java:1525)
>         at 
> org.apache.nifi.persistence.StandardFlowConfigurationDAO.load(StandardFlowConfigurationDAO.java:104)
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromBytes(StandardFlowService.java:817)
>         at 
> org.apache.nifi.controller.StandardFlowService.loadFromConnectionResponse(StandardFlowService.java:1028)
>         ... 5 common frames omitted
> in 1.19 we're using file-user-group-provider and in 1.20 we're using a 
> composite configurable user group provider where the users are coming in from 
> keycloak,
> for the exception
> type org.apache.nifi.reporting.prometheus.PrometheusReportingTask requires 
> bundle Bundle[group='org.apache.nifi', artifact='nifi-prometheus-nar', 
> version='1.19.1'], but that bundle cannot be found in this NiFi instance
> we checked and observed that nifi-prometheus-nar is a part of both 1.19 and 
> 1.20



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to