Skip to content
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

Fix Leda deployment #4

Conversation

sophokles73
Copy link
Contributor

The GitHub Packages containing the blueprint's images have not
been accessible publicly.

The packages have been made public and the Leda deployment
instructions have been adapted to the latest Leda release.

Fixes #3

The GitHub Packages containing the blueprint's images have not
been accessible publicly.

The packages have been made public and the Leda deployment
instructions have been adapted to the latest Leda release.

Fixes eclipse-sdv-blueprints#3
@sophokles73 sophokles73 added the bug Something isn't working label Aug 21, 2023
The setup for this FMS scenario assumes a split into components running in the vehicles and components
running in a (cloud) backend. The following page describes how to configure a Leda instance to become part
of this FMS setup. More precisely, we deploy the containers for the feedercan, the fms-forwarder,
and the Kuksa.val databroker with an FMS-specific vehicle model.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still mention here that the databroker needs to be configured with another vehicle model compared to the default model set in the Eclipse Leda release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will add a comment to the instructions given in the Deploy in-vehicle Components section ...


## Run Leda
The following steps assume a running instance of Eclipse Leda. For more details see the
[Eclipse Leda Getting Started](https://eclipse-leda.github.io/leda/docs/general-usage/)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still reference this sub-page of the Eclipse documentation, since it can be helpful for newcomers to Eclipse Leda to have a pointer to the different installation options of Eclipse Leda (QEMU, Pi4, Docker, etc.)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is still referenced in the Start In-Vehicle Components section ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I See, then I would have mentioned the tested Leda version down there as well. But the current version of mentioning the version here works for me too.

## Copy manifests to Leda
To trigger the execution of the required containers for the FMS setup, copy the manifest files from
`leda/data/var/containers/manifests` in the host to `/data/var/containers/manifests` in Leda:
The containers for the back end components are run on the local host using Docker Compose:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could mention the different available profiles here or reference the description of the Compose file here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMPOV this should be covered as part of adding a description (in another PR) of how to set it up using Eclipse Hono. In a cloud based setup I would not suggest to connect the vehicle(s) directly to influxdb ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Describing this in another PR sounds good to me, as far as the 'direct' profile is the default.

leda/Setup.md Outdated
- `mkdir -p /data/usr/fms/dbc`
- `mkdir -p /data/usr/fms/databroker`
The containers for the in-vehicle components are deployed to a Leda instance running on the
local host. The *FMS Forwarder* running in Leda will then connect to the *influxdb* server running
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it good that we explicitly mention that this guide assumes the in-vehicle (Leda) and the back end side on the same host. What do you think about adding a hint that they could in general run on different hosts (Pi and VM in the Cloud)?

Copy link
Contributor Author

@sophokles73 sophokles73 Aug 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FMPOV this should be covered as part of adding a description (in another PR) of how to set it up using Eclipse Hono. In a cloud based setup I would not suggest to connect the vehicle(s) directly to influxdb ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, this could be part of another PR as well. I would not be that strict about only using Hono in a cloud based setup. If we still talk about an example deployment or have a setup where the "Cloud" runs in the local network, e.g., on developer computer and the in-vehicle stack on a RaspberryPi, going for deploying Hono adds overhead for the computation, deployment of Hono.
To me the hint of running it in a local host, may raise the question for a newcomer what would break if you do not use a localhost setup while technically it is not required (even there might be reasons to go for the Hono based setup).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any suggestion as to what wording we should include?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I created a PR in #8

@sophokles73
Copy link
Contributor Author

@eriksven would you mind taking another look?

@eriksven
Copy link
Contributor

LGTM and I am ignoring the failed checks since we disabled the container image push in #6 anyway.

@eriksven eriksven merged commit 8f72a4e into eclipse-sdv-blueprints:main Aug 23, 2023
0 of 3 checks passed
devcode100 pushed a commit to devcode100/fleet-management-sdv that referenced this pull request Sep 1, 2023
…le/fix_leda_deployment

Fix Leda deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Leda deployment fails
2 participants