From 56ae005d3571a5f3b0d5a2dcdd76f52e5c850591 Mon Sep 17 00:00:00 2001 From: yuqi Date: Wed, 5 Jun 2024 11:00:54 -0700 Subject: [PATCH] imagestatus.v1: Add WARNING_CODE_BUGALERTS_DATA_MISSING Added a new warning code WARNING_CODE_BUGALERTS_DATA_MISSING to raise a warning when some of the BugAlerts data under Aeris analytics dataset is missing. For example, BugAlerts/releases and BugAlerts/skus. Fixes: BUG945959 Change-Id: I66fb692591f514f951e3b2e76432bd1f8224decc --- arista/imagestatus.v1/imagestatus-changelog.yaml | 4 ++++ arista/imagestatus.v1/imagestatus.proto | 3 +++ arista/imagestatus.v1/services.gen.swagger.json | 5 +++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/arista/imagestatus.v1/imagestatus-changelog.yaml b/arista/imagestatus.v1/imagestatus-changelog.yaml index 5aa430df..fa44526d 100644 --- a/arista/imagestatus.v1/imagestatus-changelog.yaml +++ b/arista/imagestatus.v1/imagestatus-changelog.yaml @@ -7,6 +7,10 @@ # New entries go on top. Changes: + - date: 2024-06-05 + description: Add a new warning code WARNING_CODE_BUGALERTS_DATA_MISSING + version: 1.12.0 + cvaas: true - date: 2024-06-03 description: Add a new error code ERROR_CODE_DEVICE_EOS_2GB_INCOMPATIBLE version: 1.11.0 diff --git a/arista/imagestatus.v1/imagestatus.proto b/arista/imagestatus.v1/imagestatus.proto index fb2d5ab6..3d175125 100644 --- a/arista/imagestatus.v1/imagestatus.proto +++ b/arista/imagestatus.v1/imagestatus.proto @@ -372,6 +372,9 @@ enum WarningCode { // WARNING_CODE_TA_STUDIO_INCOMPATIBLE represents cases where the TerminAttr is incompatible // with Software Management Studio. WARNING_CODE_TA_STUDIO_INCOMPATIBLE = 15; + // WARNING_CODE_BUGALERTS_DATA_MISSING represents cases where some of the BugAlerts data + // under Aeris analytics dataset is missing. + WARNING_CODE_BUGALERTS_DATA_MISSING = 16; } // ImageWarning wraps `WarningCode` enum with a reason string. diff --git a/arista/imagestatus.v1/services.gen.swagger.json b/arista/imagestatus.v1/services.gen.swagger.json index b9960b47..fb2ede83 100644 --- a/arista/imagestatus.v1/services.gen.swagger.json +++ b/arista/imagestatus.v1/services.gen.swagger.json @@ -997,10 +997,11 @@ "WARNING_CODE_SUPPORT_NOT_INTRODUCED", "WARNING_CODE_SUPPORT_REMOVED", "WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION", - "WARNING_CODE_TA_STUDIO_INCOMPATIBLE" + "WARNING_CODE_TA_STUDIO_INCOMPATIBLE", + "WARNING_CODE_BUGALERTS_DATA_MISSING" ], "default": "WARNING_CODE_UNSPECIFIED", - "description": "WarningCode indicates warnings produced during image validations.\n\n - WARNING_CODE_UNSPECIFIED: WARNING_CODE_UNSPECIFIED indicates warning code is unspecified.\n - WARNING_CODE_NOT_APPLICABLE: WARNING_CODE_NOT_APPLICABLE represents cases where EOS \u003c-\u003e SKU/TA compatibility\nis not applicable for non physical switches like vEos.\n - WARNING_CODE_SKUINFO_UNAVAILABLE: WARNING_CODE_SKUINFO_UNAVAILABLE represents case where\ninformation about certain skus is missing.\n - WARNING_CODE_DEVICE_SKU_UNAVAILABLE: WARNING_CODE_DEVICE_SKU_UNAVAILABLE represents unavailability of skus for an EOS Device.\n - WARNING_CODE_SWI_UNKNOWN: WARNING_CODE_SWI_UNKNOWN represents cases where EOS version is not found in release database.\n - WARNING_CODE_TA_EOS_INCOMPATIBLE: WARNING_CODE_TA_EOS_INCOMPATIBLE represents cases where TA and EOS are not compatible.\nTA is lower than embedded TA in swi or given TA is unsupported by the EOS.\n - WARNING_CODE_TA_CV_INCOMPATIBLE: WARNING_CODE_TA_CV_INCOMPATIBLE represents cases where TA is incompatible with CV.\nTA is lower than minimum supported TA on CV.\nDeprecated - use ERROR_CODE_TA_CV_INCOMPATIBLE.\n - WARNING_CODE_EOS_CV_INCOMPATIBLE: WARNING_CODE_EOS_CV_INCOMPATIBLE represents cases where EOS is no longer or not yet\nsupported by CV. Given EOS is outside range of CV's minimum and maximum EOS.\nDeprecated - use ERROR_CODE_EOS_CV_INCOMPATIBLE.\n - WARNING_CODE_EOS_ARCH_UNKNOWN: WARNING_CODE_EOS_ARCH_UNKNOWN represents cases where the specified architecture is\nnot valid for EOS.\n - WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents cases where TA extension is lower\nin version than embedded TA in SWI.\n - WARNING_CODE_ARCH_INCOMPATIBLE: WARNING_CODE_ARCH_INCOMPATIBLE represents cases where EOS arch and TA arch are\ndifferent. Deprecated.\n - WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED: WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED represents cases where the given EOS has passed\nits end of life date.\n - WARNING_CODE_SUPPORT_NOT_INTRODUCED: WARNING_CODE_SUPPORT_NOT_INTRODUCED represents cases where the given EOS version does\nnot support the SKUs.\n - WARNING_CODE_SUPPORT_REMOVED: WARNING_CODE_SUPPORT_REMOVED represents cases where the given EOS version no longer\nsupports the SKUs.\n - WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION: WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION represents cases where the running\nTerminAttr version is below CloudVision's minimum supported version.\n - WARNING_CODE_TA_STUDIO_INCOMPATIBLE: WARNING_CODE_TA_STUDIO_INCOMPATIBLE represents cases where the TerminAttr is incompatible\nwith Software Management Studio." + "description": "WarningCode indicates warnings produced during image validations.\n\n - WARNING_CODE_UNSPECIFIED: WARNING_CODE_UNSPECIFIED indicates warning code is unspecified.\n - WARNING_CODE_NOT_APPLICABLE: WARNING_CODE_NOT_APPLICABLE represents cases where EOS \u003c-\u003e SKU/TA compatibility\nis not applicable for non physical switches like vEos.\n - WARNING_CODE_SKUINFO_UNAVAILABLE: WARNING_CODE_SKUINFO_UNAVAILABLE represents case where\ninformation about certain skus is missing.\n - WARNING_CODE_DEVICE_SKU_UNAVAILABLE: WARNING_CODE_DEVICE_SKU_UNAVAILABLE represents unavailability of skus for an EOS Device.\n - WARNING_CODE_SWI_UNKNOWN: WARNING_CODE_SWI_UNKNOWN represents cases where EOS version is not found in release database.\n - WARNING_CODE_TA_EOS_INCOMPATIBLE: WARNING_CODE_TA_EOS_INCOMPATIBLE represents cases where TA and EOS are not compatible.\nTA is lower than embedded TA in swi or given TA is unsupported by the EOS.\n - WARNING_CODE_TA_CV_INCOMPATIBLE: WARNING_CODE_TA_CV_INCOMPATIBLE represents cases where TA is incompatible with CV.\nTA is lower than minimum supported TA on CV.\nDeprecated - use ERROR_CODE_TA_CV_INCOMPATIBLE.\n - WARNING_CODE_EOS_CV_INCOMPATIBLE: WARNING_CODE_EOS_CV_INCOMPATIBLE represents cases where EOS is no longer or not yet\nsupported by CV. Given EOS is outside range of CV's minimum and maximum EOS.\nDeprecated - use ERROR_CODE_EOS_CV_INCOMPATIBLE.\n - WARNING_CODE_EOS_ARCH_UNKNOWN: WARNING_CODE_EOS_ARCH_UNKNOWN represents cases where the specified architecture is\nnot valid for EOS.\n - WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE: WARNING_CODE_TA_EMBEDDEDEXT_INCOMPATIBLE represents cases where TA extension is lower\nin version than embedded TA in SWI.\n - WARNING_CODE_ARCH_INCOMPATIBLE: WARNING_CODE_ARCH_INCOMPATIBLE represents cases where EOS arch and TA arch are\ndifferent. Deprecated.\n - WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED: WARNING_CODE_EOS_END_OF_LIFE_DATE_PASSED represents cases where the given EOS has passed\nits end of life date.\n - WARNING_CODE_SUPPORT_NOT_INTRODUCED: WARNING_CODE_SUPPORT_NOT_INTRODUCED represents cases where the given EOS version does\nnot support the SKUs.\n - WARNING_CODE_SUPPORT_REMOVED: WARNING_CODE_SUPPORT_REMOVED represents cases where the given EOS version no longer\nsupports the SKUs.\n - WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION: WARNING_CODE_RUNNING_TA_BELOW_MIN_SUPPORTED_VERSION represents cases where the running\nTerminAttr version is below CloudVision's minimum supported version.\n - WARNING_CODE_TA_STUDIO_INCOMPATIBLE: WARNING_CODE_TA_STUDIO_INCOMPATIBLE represents cases where the TerminAttr is incompatible\nwith Software Management Studio.\n - WARNING_CODE_BUGALERTS_DATA_MISSING: WARNING_CODE_BUGALERTS_DATA_MISSING represents cases where some of the BugAlerts data\nunder Aeris analytics dataset is missing." }, "arista.subscriptions.Operation": { "type": "string",