Code Monkey home page Code Monkey logo

Comments (8)

huikang avatar huikang commented on August 23, 2024

Since free travis-ci account provides only one VM for the project, this feature may only be developed and tested in downstream environment.

from ovn-scale-test.

mestery avatar mestery commented on August 23, 2024

@huikang I've tried something like the below, but it never creates containers on the worker nodes. What am I doing wrong?

diff --git a/ci/scale-run.sh b/ci/scale-run.sh
index 424e7e2..b646326 100755
--- a/ci/scale-run.sh
+++ b/ci/scale-run.sh
@@ -67,12 +67,15 @@ $OVNSUDO docker exec ovn-south-database ovn-sbctl show
 $OVNSUDO docker exec ovn-rally rally-ovs deployment create --file /root/rally-ovn/ovn-multihost-deployment.json --name ovn-multihost

 # Register the emulated sandboxes in the rally database
-$OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create-sandbox-$OVN_RALLY_HOSTNAME.json 2>&1 | tee /tmp/rally-ovs-output.raw
-check_ovn_rally /tmp/rally-ovs-output.raw
-TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
-$OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-sandbox-output.html
-$OVNSUDO docker cp ovn-rally:/root/create-sandbox-output.html .
-$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID
+SANDBOXHOSTS=$($OVNSUDO docker exec ovn-rally ls root/rally-ovn/workload/ | grep create-sandbox-)
+for sand in $SANDBOXHOSTS ; do
+    $OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/$sand 2>&1 | tee /tmp/rally-ovs-output.raw
+    check_ovn_rally /tmp/rally-ovs-output.raw
+    TASKID=$($OVNSUDO docker exec ovn-rally rally task list --uuids-only)
+    $OVNSUDO docker exec ovn-rally rally task report $TASKID --out /root/create-sandbox-output.html
+    $OVNSUDO docker cp ovn-rally:/root/create-sandbox-output.html .
+    #$OVNSUDO docker exec ovn-rally rally task delete --uuid $TASKID
+done

 # Run tests
 $OVNSUDO docker exec ovn-rally rally-ovs task start /root/rally-ovn/workload/create_networks.json 2>&1 | tee /tmp/rally-ovs-output.raw

from ovn-scale-test.

mestery avatar mestery commented on August 23, 2024

Here is what my ci/ansible/docker-ovn-hosts looks like:

# You should only add one IP address in this role. The node in this role runs
# the OVN databse container
[ovn-control]
10.172.12.53

# Add host IPs to run emulated OVN chassis
[emulation-hosts]
10.172.12.40      provider_ip=10.172.12.40
10.172.12.53      provider_ip=10.172.12.53

[rally]
10.172.12.53

from ovn-scale-test.

huikang avatar huikang commented on August 23, 2024

@mestery the create-sandbox rally job does not create containers, which are created during ansbile-play. What create-sandbox rally job does is to register the sandbox containers in the ovs-rally database. You can check the results by running create-and-bind-lport workload.

from ovn-scale-test.

huikang avatar huikang commented on August 23, 2024

BTW, @mestery you could also test your change to ci/scale-run.sh with travis-ci. Although travis-ci allows only one VM, all rally-ovs job should succeed with those changes.

from ovn-scale-test.

mestery avatar mestery commented on August 23, 2024

@huikang I figured this out now, I should have a PR done soon on this.

from ovn-scale-test.

huikang avatar huikang commented on August 23, 2024

Excellent!!

On Jul 24, 2016, at 18:31, Kyle Mestery [email protected] wrote:

@huikang I figured this out now, I should have a PR done soon on this.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

from ovn-scale-test.

mestery avatar mestery commented on August 23, 2024

I'm going to close this one as PR #96 merged, which allows for multiple hosts to run in the CI system as emulation hosts.

from ovn-scale-test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.