Closed kevindweb closed 4 years ago
In response to PR creation
Your results will arrive shortly
@WilliamMaa thanks for leaving for review. Could you comment on what you did to test this to get it working? It's helpful so I know that everything was tested how I imagined it and that the documentation makes sense. Even if you think a PR works, it's always a good idea to leave a quick comment to the team.
You're definitely right, backward compatibility is important. I don't know the best way to leave a reference to older Ubuntu versions though. I might add a section to the README for users who want to create containers with older versions of ONVM
Todo:
@onvm test time elapsed
@onvm test time elapsed
Your results will arrive shortly
@onvm test time elapsed
Error: ERROR: Failed to post results to GitHub
Message
Your results will arrive shortly
Time elapsed test
Your results will arrive shortly
@sreya519 - test manager running in Docker with pktgen sending to a docker NF running simple_forward
(set it to send back out the same port packets come in)
@onvm test CI updates
@onvm test CI updates
Your results will arrive shortly
@onvm unauthorized?
@onvm try
@onvm try
Aborting, need an authorized user to run CI
For those approving the PR, I just made a change because of a fundamental part of Docker containers. In the example and manager go script, we previously did checks on the running processes to make sure the manager wasn't duplicated, and the NFs wouldn't start if the manager wasn't running. This doesn't work since Docker containers don't have access to the outside processes on the system (outside container or in a different container). I just added a condition that ignores that check if we are in a docker container.
For those approving the PR, I just made a change because of a fundamental part of Docker containers. In the example and manager go script, we previously did checks on the running processes to make sure the manager wasn't duplicated, and the NFs wouldn't start if the manager wasn't running. This doesn't work since Docker containers don't have access to the outside processes on the system (outside container or in a different container). I just added a condition that ignores that check if we are in a docker container.
Maybe we should leave a message when running in docker? Maybe along the lines of 'please ensure manager is running'.
For those approving the PR, I just made a change because of a fundamental part of Docker containers. In the example and manager go script, we previously did checks on the running processes to make sure the manager wasn't duplicated, and the NFs wouldn't start if the manager wasn't running. This doesn't work since Docker containers don't have access to the outside processes on the system (outside container or in a different container). I just added a condition that ignores that check if we are in a docker container.
Maybe we should leave a message when running in docker? Maybe along the lines of 'please ensure manager is running'.
I agree with that, we can add a comment in there.
Good thoughts guys! I'll add a small comment in docker.sh
@twood02 I think i can only merge if I have two approves from users with write-access. Could you approve this? (it's good to go, as discussed in meeting)
Docker was previously at Ubuntu 14, and had not been tested since the last time we moved ONVM to Ubuntu 18.04. Now, running the
scripts/docker.sh
works correctly.Summary:
Important Note. Before merging into develop, we need to merge the script cleanup #183 . The docker changes and some onvm go script changes from there would have caused conflicts. Thus, I pre-merged those changes into this PR. So if we merge that one first, then this one will have no issue going into
develop
.Usage: Follow the Docker README about installing Docker and everything to test this. Docker containers can be made quite easily, but here is an example command to get an ethernet device into the container for an NF run.
This command will start up the
onvm manager
. It detaches the container so we don't see the output. We can run an NF similar to this in another container, or outside the container.Merging notes:
TODO before merging :
Test Plan:
I would really like one of you guys @sdnfv/gw-undergrads to look into Docker. It's a great tool that we could expand on in the future. As a starting point, review this PR and get an NF spun up in a container for testing.
Notes:
Please ignore any commits before April 5. They will be unimportant as soon as the bash scripts PR is merged.
Review:
@dennisafa @bdevierno1 (because it has to do with bash scripts)