8000 Add ChannelFinder and RecSync (reccaster/recceiver) roles, with Molecule tests by ralphlange · Pull Request #107 · epics-training/training-vm · GitHub
[go: up one dir, main page]

Skip to content

Add ChannelFinder and RecSync (reccaster/recceiver) roles, with Molecule tests - #107

Open
ralphlange wants to merge 4 commits into
epics-training:mainfrom
ralphlange:channelfinder
Open

ralphlange wants to merge 4 commits into
epics-training:mainfrom
ralphlange:channelfinder

Conversation

@ralphlange
Copy link
Copy Markdown
Contributor

Adds ChannelFinder and the RecSync tool stack, each role with functional Molecule tests:

  • channelfinder: ChannelFinder 5.1.0 as a systemd service, built with Maven from the source release, on Elasticsearch. REST API on channelfinder_url (default http://localhost:8080/ChannelFinder), also used for the Phoebus client preference.
  • recceiver: the Python recceiver from recsync 1.9.6 as a systemd service, pushing IOC records into ChannelFinder. Announces on the loopback broadcast address by default.
  • m_reccaster: the reccaster module from the same release. The m_base build helper gets an optional subdir key, as the module is recsync's client/ directory.
  • maven: Maven install moved out of the phoebus role.

The recceiver scenario tests the stack end to end: an IOC built with reccaster uploads its records, which show up in ChannelFinder with their properties and turn Inactive when the IOC stops.

Note: #106 (save-and-restore) also uses port 8080; whichever is merged second needs to move to another port.

Developed with the assistance of generative AI.

Maven was installed by the phoebus role (tasks/install_maven.yml).
Move it into a new maven role (depending on java), with mvn_version and
mvn_home as its defaults, and make phoebus depend on it, so that other
roles can build Java services without pulling in Phoebus.

Developed with the assistance of generative AI.
Build the reccaster module of RecSync (1.9.6) - the IOC side of the
record synchronizer that feeds the IOCs' records into ChannelFinder.

The EPICS module is the client/ directory of the recsync release, so the
m_base build helper gets an optional 'subdir' key: the tarball is still
unpacked to <id>-<version>, but the module is configured and built in the
subdirectory, and RELEASE.local and PATH point there.

The Molecule scenario builds an IOC against reccaster and checks that,
with no recceiver around, it waits for announcements.

Developed with the assistance of generative AI.
Run the ChannelFinder directory service (5.1.0) as a systemd service:
built with Maven from its source release tarball, on the JDK of the java
role, with its directory in Elasticsearch (elasticsearch role). Modelled
on the phoebus_services_cf role of ControlSystemStudio/ansible-phoebus,
but with a small override configuration on top of the packaged one.

The REST API on channelfinder_url (http://localhost:8080/ChannelFinder)
is shared with the phoebus role, which now points the Phoebus
ChannelFinder client at it. The Archiver Appliance integration is
enabled when the archiver_appliance role is, and the admin web page is
linked from the Training-VM homepage.

The Molecule scenario runs the service in a systemd container and tests
it through its REST API: service info, Elasticsearch indices, creating
and finding channels with properties and tags, refused anonymous writes,
HTTPS and the admin page.

Developed with the assistance of generative AI.
Run the RecSync recceiver as a systemd service: the Python/Twisted
server of the same recsync release (1.9.6) as the m_reccaster module,
installed in a virtualenv. It announces itself to the IOCs on the VM
(loopback broadcast, recceiver_addrlist), collects the records of the
IOCs built with reccaster and pushes them into ChannelFinder
(channelfinder role, a dependency), with the record type, description,
aliases, the archive info tags and some IOC environment variables.

The Molecule scenario tests the whole stack end to end: an IOC built
against reccaster uploads its records, which show up in ChannelFinder
with their properties, and turn Inactive when the IOC stops.

Developed with the assistance of generative AI.
@ralphlange
Copy link
Copy Markdown
Contributor Author

How do you want me to resolve the port clash?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0