Skip to content
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ cookbook/*.docx
cookbook/*.html
cookbook/*.pdf
cookbook/images/**.bkp
node_modules/
package-lock.json
package.json
2 changes: 2 additions & 0 deletions cookbook/sections/data-publishers/index.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
== Recipes for data publishers

include::wis2node-assesment-process.adoc[]

include::best-practices-publishing-station-based-observational-data.adoc[]

include::publishing-aviation-data.adoc[]
Expand Down
120 changes: 120 additions & 0 deletions cookbook/sections/data-publishers/wis2node-assesment-process.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
=== 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.

==== Roles and Responsibilities

During the WIS2 Node assessment:

- The WMO Secretariat connects the WIS2 Node to the WIS2DEV environment.
- The GISC in the data publisher's Area of Responsibility (AoR) performs the assessment.
- The GISC informs the WMO Secretariat when the assessment is 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.
====

==== WIS2DEV Environment

The WIS2DEV environment consists of:

- A Global Broker with a publicly accessible MQTT endpoint available at: `mqtts://gb.wis2dev.io:8883`
- A Global Discovery Catalogue with an OAPI endpoint available at: `https://gdc.wis2dev.io/`
Comment thread
maaikelimper marked this conversation as resolved.
Resolved
- A Global Cache provided through Amazon S3 web services

==== WIS2DEV Global Broker

When a new WIS2 Node registration request is received from an authorized data publisher, the WIS2DEV Global Broker is configured with a new subscription to the MQTT endpoint provided by the data publisher.

The new subscription on the WIS2DEV Global Broker will subscribe to the topic:

- `origin/a/wis2/<centre-id>/#`

where `<centre-id>` is the unique identifier of the WIS2 Node.

The WIS2DEV Global Broker republishes all valid WIS2 Notification Messages. A message is considered invalid when:

- the channel does not match the WIS2 Topic Hierarchy, or
- the message does not conform to the WIS2 Notification Message specification, or
- the message is a data-notification for which no corresponding metadata record can be found in the WIS2DEV Global Discovery Catalogue.

==== WIS2DEV Global Cache and Global Discovery Catalogue

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 Global Cache 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 Global Cache on `cache/a/wis2/#` are republished by the WIS2DEV Global Broker.

The WIS2DEV Global Discovery Catalogue subscribes to the WIS2DEV Global Broker at `cache/a/wis2/<centre-id>/metadata` and validates metadata records published by the WIS2 Node using the pywcmp ETS test suite.
Comment thread
maaikelimper marked this conversation as resolved.
Resolved

==== 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.
Comment thread
maaikelimper marked this conversation as resolved.
Resolved
- The WIS2 Node can publish data-notifications for data, and the data-notifications match the published metadata.

=== GISC test setup instructions

GISC subscribes to `mqtts://gb.wis2dev.io:8883` using username/password `everyone/everyone` and sets up a connection to the topics:

- `origin/a/wis2/<centre-id>/#`
- `cache/a/wis2/<centre-id>/#`
- `monitor/a/wis2/<centre-id>`

GISC will coordinate with the contact point for the new WIS2 Node to publish metadata for their datasets first and then to publish data notifications.

Approximately 30 minutes are needed for metadata to be used by the Global Broker to validate that the published data has corresponding metadata.
Comment thread
maaikelimper marked this conversation as resolved.
Resolved

GISC will follow up on errors reported on the monitor topic and assist the contact point of the new WIS2 Node with corrective actions.
Comment thread
maaikelimper marked this conversation as resolved.
Resolved

==== 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 have been published on the WIS2DEV GB at `origin/a/wis2/<centre-id>/metadata`
- MQTT notifications have been published on the WIS2DEV GB at `origin/a/wis2/<centre-id>/data/#`
- MQTT notifications have been published on the WIS2DEV GB at `cache/a/wis2/<centre-id>/metadata`
- MQTT notifications have been published on the WIS2DEV GB at `cache/a/wis2/<centre-id>/data/core/#`

==== Common Assessment Issues

===== The canonical URL embedded in a WIS2 data-notification is not accessible from WIS2DEV

The data publisher should ensure that the canonical URL is reachable from the WIS2DEV environment.

===== The WIS2 Node is not publishing data-notifications for metadata

The data publisher should ensure that data-notifications for metadata are being published.

===== The metadata record published by the WIS2 Node is cached by the WIS2DEV Global Cache, but rejected by the WIS2DEV Global Discovery Catalogue because it fails the pywcmp ETS test suite
Comment thread
maaikelimper marked this conversation as resolved.
Resolved

The data publisher should ensure that the metadata record passes the pywcmp ETS test suite before publishing.

===== Updated metadata records are rejected by the WIS2DEV Global Cache because a previous record with the same data-id was already cached and the download link did not indicate `rel="update"`

The data publisher should ensure that the download link for updated metadata records indicates `rel="update"`.

[NOTE]
.Implementation note for publishers using wis2box
====
Many publishers use `wis2box` to implement their WIS2 Node.

`wis2box` is designed to publish data-notifications only after metadata has been published, and it includes built-in validation of WCMP2 records using pywcmp.

WIS2 Node implementations that use separate software to publish metadata and data-notifications may require additional coordination to pass the WIS2 Node Assessment Process. In particular, mismatches between the metadata identifier and the WIS2 topic advertised in the WCMP2 record can cause data-notifications to be discarded.

Data publishers who want to make existing systems WIS2-compliant may consider sending their data to a `wis2box` instance configured with the `passthrough`-plugin to reduce metadata-related issues.
====
Loading