Repository navigation
add recipe for WIS2 Node Assessment #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 13 commits
351bcdb
f48fc61
a8135b3
768903b
16ada81
412b602
ec1873c
1aa716c
10f14f6
aac91a5
6eead0b
222886d
b62e1a0
0567eae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,137 @@ | ||
| === WIS2 Node Assessment Process | ||
|
|
||
| Data publishers are required to demonstrate that their WIS2 Node implementation meets the requirements of the WIS2 specification as part of the "WIS2 Node Assessment Process". | ||
|
|
||
| The WIS2 Node Assessment Process is initiated whenever an authorized data publisher submits a WIS2 Node registration request to the WMO Secretariat. | ||
|
|
||
| Global Information System Centres (GISCs) are responsible for assessing WIS2 Node implementations in their Area of Responsibility (AoR) and providing feedback to the WMO Secretariat. | ||
|
|
||
| For an overview GISCs and their AoRs, see https://community.wmo.int/site/knowledge-hub/programmes-and-initiatives/wmo-information-system-wis/wis-centres-ncs-dcpcs-and-giscs[WMO: WIS centres (NCs, DCPCs, and GISCs)] on the WMO Knowledge Hub. | ||
|
|
||
| ==== Roles and Responsibilities | ||
|
|
||
| Prior to the WIS2 Node Assessment process, the WMO Secretariat will ensure the centre-id is published in the WMO Codes Registry at http://codes.wmo.int/wis/topic-hierarchy/centre-id | ||
|
|
||
| During the WIS2 Node assessment: | ||
|
|
||
| - The WMO Secretariat connects the WIS2 Node to the wis2dev environment. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The WMO Secretariat connects the WIS2 Node to the WIS2 Development Environment (called wis2dev later).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, addressed in latest commit: |
||
| - The GISC in the data publisher's AoR performs the assessment. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The AoR is for the GISC. I don't think the sentence says that.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your feedback, I slightly rewrote the line in the latest commit: |
||
| - The GISC informs WMO Secretariat when the assessment has been completed. | ||
|
|
||
| [NOTE] | ||
| .Optional pre-registration testing | ||
| ==== | ||
| Data publishers and commercial WIS2 solution providers who want to test their systems before registration can contact the WMO Secretariat at wis2-support@wmo.int to request that a test system be connected to wis2dev. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Data publishers or WIS2 solution providers I'd avoid referring to commercial providers like that. We don't do a "qualification". The rest of the text focuses on Data publishers. Maybe, we should focus on Data publishers and put a note at the end mentioning that the wis2dev environment can be used upon request by WIS2 solution providers
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for your feedback I have remove "commercial" as per your suggestion. I prefer to keep the note at the start to keep "WIS2 solution providers" interested in the rest of the text: |
||
| ==== | ||
|
|
||
| ==== WIS2 Development Environment | ||
|
|
||
| The WIS2 Development Environment (wis2dev) consists of: | ||
|
|
||
| - A Global Broker (wis2dev GB) with a publicly accessible MQTT endpoint available at: `mqtts://gb.wis2dev.io:8883` | ||
| - A Global Discovery Catalogue (wis2dev GDC) with an OGC API - Records endpoint available at: `https://gdc.wis2dev.io/` | ||
| - A Global Cache (wis2dev GC) provided through Amazon S3 web services | ||
|
|
||
| ==== wis2dev GB | ||
|
|
||
| When a new WIS2 Node registration request is received from an authorized data publisher, the wis2dev GB is configured with a new subscription to the MQTT endpoint provided by the data publisher. | ||
|
|
||
| The new subscription on the wis2dev GB will subscribe to the topic: | ||
|
|
||
| - `origin/a/wis2/<centre-id>/#` | ||
|
|
||
| where `<centre-id>` is the unique identifier of the WIS2 Node. | ||
|
|
||
| The wis2dev GB republishes all valid WIS2 Notification Messages. A message is considered invalid when: | ||
|
|
||
| - the channel does not match the WIS2 Topic Hierarchy, or | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, I have updated this as per your suggestion: |
||
| - the message does not conform to the WIS2 Notification Message specification, or | ||
| - the message is a data notification for which no corresponding discovery metadata record can be found in the wis2dev GDC. | ||
|
|
||
| ==== wis2dev GC | ||
|
|
||
| The wis2dev Global Cache downloads data advertised in data notifications published on: | ||
|
|
||
| - `origin/a/wis2/<centre-id>/data/core/#` | ||
| - `origin/a/wis2/<centre-id>/metadata/#` | ||
|
|
||
| No download attempt is made if the data has already been downloaded, unless the download link indicates `rel="update"`. | ||
|
|
||
| After a successful download, the wis2dev GC publishes a data notification on `cache/a/wis2/<centre-id>/#`, with the full topic matching that of the original WIS2 Node, but with `origin` replaced by `cache`. | ||
|
|
||
| Notifications published by the wis2dev GC on `cache/a/wis2/#` are republished by the wis2dev GB. | ||
|
|
||
| ==== wis2dev GDC | ||
|
|
||
| The wis2dev Global Discovery Catalogue subscribes to the wis2dev GB at `cache/a/wis2/<centre-id>/metadata` and validates discovery metadata records published by the WIS2 Node using the pywcmp validation and quality assessment tool. | ||
|
|
||
| ==== Assessment Preparation for Data Publishers | ||
|
|
||
| Before the assessment, data publishers should ensure that: | ||
|
|
||
| - The wis2dev IP address, `52.25.203.140`, is allowlisted for the HTTP and MQTT ports used by the WIS2 Node. | ||
| - The WIS2 Node can publish data notifications for metadata, and the published metadata contains a valid WCMP2 record. | ||
| - The WIS2 Node can publish data notifications for data, and the data notifications match the published metadata. | ||
|
|
||
| === GISC test setup instructions | ||
|
|
||
| GISCs subscribe to `mqtts://gb.wis2dev.io:8883` using username/password `everyone/everyone` and set up a connection to the topics: | ||
|
|
||
| - `origin/a/wis2/<centre-id>/#` | ||
| - `cache/a/wis2/<centre-id>/#` | ||
| - `monitor/a/wis2/<centre-id>` | ||
|
|
||
| GISCs will coordinate with the contact point for the new WIS2 Node to first publish discovery metadata for their datasets and then to publish data notifications. | ||
|
|
||
| Approximately 30 minutes are needed after metadata is published before the Global Broker can validate that published data has corresponding metadata. | ||
|
|
||
| GISCs will follow up on errors reported on the monitor topic (`monitor/a/wis2/#`) and assist the contact point of the new WIS2 Node with corrective actions. | ||
|
|
||
| ==== Assessment Completion Checklist | ||
|
|
||
| The WIS2 Node Assessment is considered complete when: | ||
|
|
||
| - One or more metadata records are available for the WIS2 Node when searching `https://gdc.wis2dev.io/collections/wis2-discovery-metadata/items?q=%3Ccentre-id%3E` | ||
| - MQTT notifications seen on wis2dev GB at `origin/a/wis2/<centre-id>/metadata` | ||
| - MQTT notifications seen on wis2dev GB at `origin/a/wis2/<centre-id>/data/#` | ||
| - MQTT notifications seen on wis2dev GB at `cache/a/wis2/<centre-id>/metadata` | ||
| - MQTT notifications seen on wis2dev GB at `cache/a/wis2/<centre-id>/data/core/#` | ||
|
|
||
| ==== Common Assessment Issues | ||
|
|
||
| [cols="2,3",options="header"] | ||
| |=== | ||
| |Issue | ||
| |Recommended action | ||
|
|
||
| |Notifications published under `origin/a/wis2/<centre-id>` by the WIS2 Node are not being republished by the wis2dev GB. | ||
| |The wis2dev GB will only republish notifications adhering to WIS2 standards. Messages reusing a previously used 'id' will be discarded as duplicates. Ensure that you use a valid WIS2 topic for the MQTT channel, that the payload adheres to the WIS2 Notification Message standard, and that a unique id is used for each notification. | ||
|
|
||
| |Canonical URL embedded in a WIS2 data-notification is not accessible from WIS2-dev | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wis2dev
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed |
||
| |Ensure that the canonical URL is reachable from the wis2dev environment over the public Internet. Check that the DNS resolves to the correct IP address and that the wis2dev incoming IP address, `52.25.203.140`, is allowlisted. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is allowed to access the WIS2 Node for MQTT(S) / WS(S) and HTTP(S).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks, updated as per your suggestion: |
||
|
|
||
| |WIS2 Node is not publishing data notifications for metadata | ||
| |Ensure that data notifications for metadata are being published every 24 hours on the topic `origin/a/wis2/<centre-id>/metadata` and that the notification contains a valid WCMP2 record in the data payload. | ||
|
|
||
| |Publishing a metadata-notification results in a notification on `origin/a/wis2/<centre-id>/metadata` but does not result in a notification on `cache/a/wis2/<centre-id>/metadata` on the wis2dev GB | ||
| |Updated metadata records are rejected by the wis2dev GC if a previous record with the same data-id was already cached and the download link did not indicate rel="update". Ensure that the download link for updated metadata records indicates rel="update". | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. or the Notification Message is using a new properties.data_id.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks updated as per your suggestion: |
||
|
|
||
| |Metadata records published by the WIS2 Node are cached by the wis2dev GC, but rejected by the wis2dev GDC | ||
| |The wis2dev GDC will reject data that fails the pywcmp validation and quality assessment tool. Non-wis2box users should ensure that the metadata record passes the pywcmp ETS validation prior to publishing (see https://github.com/World-Meteorological-Organization/pywcmp). Data publishers using wis2box should ensure they use the latest version of the wis2box software to ensure the latest version of pywcmp is used. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we also refer to the GDC page where the test can be done ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest: |The wis2dev GDC will reject metadata that fails the pywcmp validation and quality assessment tool. Non-wis2box users should ensure that the metadata record passes the pywcmp ETS validation prior to publishing (see https://github.com/World-Meteorological-Organization/pywcmp). Data publishers using wis2box should ensure they use the latest version of the wis2box software to ensure the latest version of pywcmp is used. Note that the wis2dev GDC provides pywcmp validation and quality assessment as an oinline service (see <<_validating_a_wmo_core_metadata_profile_record>>)
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the feedback, I have used Tom's proposed text in the latest commit: |
||
|
|
||
| |=== | ||
|
|
||
| [NOTE] | ||
| .Implementation note regarding wis2box and metadata management | ||
| ==== | ||
| `wis2box` reduces metadata-related issues by enforcing a "dataset-driven workflow". | ||
|
|
||
| - Before publishing any data notifications, a dataset must first be created | ||
| - To create a dataset, a minimum amount of information must be provided to create the WCMP2 record | ||
| - Before publishing the WCMP2 record, the content is always validated using pywcmp | ||
| - Data notifications are associated to metadata programmatically by querying a local copy of the published WCMP2 records | ||
|
|
||
| WIS2 Node implementations that use separate software for metadata and data notifications are more likely to encounter metadata related issues. | ||
|
|
||
| To reduce these issues, follow a wis2box-like workflow: create the metadata record first, then publish data notifications based on the published metadata records for your WIS2 Node. | ||
| ==== | ||
Uh oh!
There was an error while loading. Please reload this page.