Repository navigation
Add ChannelFinder and RecSync (reccaster/recceiver) roles, with Molecule tests - #107
Open
ralphlange wants to merge 4 commits into
Open
ralphlange wants to merge 4 commits into
ralphlange wants to merge 4 commits into
Conversation
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.
Contributor
Author
|
How do you want me to resolve the port clash? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds ChannelFinder and the RecSync tool stack, each role with functional Molecule tests:
channelfinder_url(defaulthttp://localhost:8080/ChannelFinder), also used for the Phoebus client preference.subdirkey, as the module is recsync'sclient/directory.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
Inactivewhen 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.