メインコンテンツへスキップ

AIQUMにおけるメンテナンスウィンドウ初期化エラーの修正

Views:
1
Visibility:
Public
Votes:
0
Category:
active-iq-unified-manager
Specialty:
om
Last Updated:

環境

  • Active IQ Unified Manager 9.18+(AIQUM)

問題

  • AIQUMウェブアプリケーション(dfm-app.war)は、WildFlyの再起動を試みるたびに起動に失敗します。
  • 次の例外がWildFlyサーバーログに表示されます:
    org.hibernate.LazyInitializationException: could not initialize proxy [MaintenanceWindow#1] - no Session
  • この問題は、ID=1を含むメンテナンスウィンドウレコードがデータベースに存在する場合に発生します。

原因

  • dfm-app.warMaintenanceWindowScheduler.init() メソッドは、アクティブなセッションの外部で Hibernate の遅延プロキシ(MaintenanceWindow#1)にアクセスします。
  • これは、バージョン 9.18P1 でのコード/マッピングの変更によって導入されました。

解決策

パートナーノート

 

追加情報

 

内部情報

  • これはL2操作であり、AIQUMアプライアンス上のデータベースに直接アクセスする必要があります。

この問題について、 CAIQUM-8929を提出済みです。

  • L2手順 — データベースのクリーンアップ:
  1. AIQUMアプライアンス上のMySQLに接続し、Ocumデータベースを選択します。
  2. Ocumデータベースを選択してください
    USE OCUM;
  3. 現在のメンテナンスウィンドウの状態を確認します:
    SELECT mw.id, FROM_UNIXTIME(mw.startTime/1000) AS start_time, FROM_UNIXTIME(mw.endTime/1000) AS end_time, m.resourceType, m.resourceId
    FROM maintenance_window mw
    LEFT JOIN maintenance_window_object_mapping m ON m.maintenanceWindowId = mw.id;
  4. すべてのメンテナンスウィンドウレコードを削除します(ON DELETE CASCADEmaintenance_window_object_mappingを自動的にクリーンアップします):
    DELETE FROM maintenance_window;
  5. 両方のテーブルが空であることを確認します:
    SELECT COUNT(*) FROM maintenance_window;
    SELECT COUNT(*) FROM maintenance_window_object_mapping;
  6. AIQUMサーバーを再起動します。

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.