[ovs-dev] how to use ovn-scale-test when i do not use git repo

Ginwala, Aliasgar aginwala at ebay.com
Thu Jan 9 17:23:24 UTC 2020


It indicates that db duplicate entry exists already. Either try delete previous deployment and run create deployment create again or create a new deployment with new name.


Please also check the installation steps/guide https://ovn-scale-test.readthedocs.io/en/latest/install.html#install-rally  if you want to run sandbox deployment including steps that Dumitru suggested for multi host physical. Working with rally-ovs requires familiarity with OpenStack too. Hence, you might want to check that for trouble shooting further.

From: "shenjian.gc at gmail.com" <shenjian.gc at gmail.com>
Date: Wednesday, January 8, 2020 at 7:39 PM
To: Dumitru Ceara <dceara at redhat.com>
Cc: "Ginwala, Aliasgar" <aginwala at ebay.com>, "ovs-dev at openvswitch.org" <ovs-dev at openvswitch.org>
Subject: Re: [ovs-dev] how to use ovn-scale-test when i do not use git repo

hi,
when I exec command “rally-ovs deployment recreate /home/sj/ovn-scale-test/samples/deployments/ovn-multihost-sandbox.json  ovn-multihost” get some error,
my json is:
{
{
    "type": "OvnMultihostEngine",
    "controller": {
        "type": "OvnSandboxControllerEngine",
        "deployment_name": "ovn-controller-node",
        "ovs_repo": "root at node0:/home/git/test.git",
        "ovs_branch": "master",
        "ovs_user": "root",
        "net_dev": "eno1",
        "controller_cidr": "192.168.10.10/16",
        "provider": {
            "type": "OvsSandboxProvider",
            "credentials": [
                {
                    "host": "192.168.20.10",
                    "user": "root"}
            ]
        }
    },
    "nodes": [
        {
            "type": "OvnSandboxFarmEngine",
            "deployment_name": "ovn-farm-node-0",
            "ovs_repo" : "root at node0:/home/git/test.git",
            "ovs_branch" : "master",
            "ovs_user" : "root",
            "provider": {
                "type": "OvsSandboxProvider",
                "credentials": [
                    {
                        "host": "192.168.20.20",
                        "user": "root"}
                ]
            }
        }
    ]

}


error message:
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine [-] Deployment adb85ae1-4451-43db-8693-33c3809973a7: Error has occurred into context of the deployment
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine Traceback (most recent call last):
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib/python2.7/site-packages/rally/api.py", line 102, in recreate
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine credentials = deployer.make_deploy()
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib/python2.7/site-packages/rally/common/logging.py", line 197, in wrapper
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine result = f(self, *args, **kwargs)
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib/python2.7/site-packages/rally/deployment/engine.py", line 117, in make_deploy
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine credentials = self.deploy()
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib/python2.7/site-packages/rally_ovs/plugins/ovs/deployment/engines/ovn_multihost.py", line 57, in deploy
.......
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine context)
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine cursor.execute(statement, parameters)
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine DBDuplicateEntry: (sqlite3.IntegrityError) column name is not unique [SQL: u'UPDATE deployments SET updated_at=?, name=? WHERE deployments.id = ?'] [parameters: ('2020-01-09 03:25:39.300884', u'ovn-controller-node', 4)]
2020-01-09 11:25:39.301 39837 ERROR rally.deployment.engine
Command failed, please check log for more info

ps:does install_method="sandbox"  must use git repo?
---Original---
From: "Dumitru Ceara"<dceara at redhat.com>
Date: Tue, Jan 7, 2020 16:25 PM
To: "shenjian.gc at gmail.com"<shenjian.gc at gmail.com>;
Cc: "Ginwala, Aliasgar"<aginwala at ebay.com>;"ovs-dev at openvswitch.org"<ovs-dev at openvswitch.org>;
Subject: Re: [ovs-dev] how to use ovn-scale-test when i do not use git repo

On Tue, Jan 7, 2020 at 5:31 AM Ginwala, Aliasgar via dev
 wrote:
>
> Sure:
>
> You are refer to https://ovn-scale-test.readthedocs.io/en/latest/tutorial/step_1_setting_up_the_environment.html which is in doc  folder of ovn-scale-test repo including the links in README.
>
>
>
>
> From: "shenjian.gc at gmail.com"
> Date: Monday, January 6, 2020 at 6:28 PM
> To: "Ginwala, Aliasgar" , "ovs-dev at openvswitch.org"
> Subject: how to use ovn-scale-test when i do not use git repo
>
> hi,aginwala:
>    when I use ovn-multihost-physical.json to
> deployment ,it allways fail. Do you have detailed manual for ovn-scale-test?

If you use ovn-multihost-physical.json [1] you need to pre provision
the "controller" and "node" machines with OVS/OVN. This is different
than with install_method="sandbox" which will take care of
provisioning the nodes with OVS/OVN sandboxes. With the sample in [1]
ovn-scale-test will expect ovn-northd to be running on machine
192.168.42.254 and ovn-controller running on machine 192.168.20.20,
connected to the SB database on the .254 node.

Regards,
Dumitru

[1] https://github.com/ovn-org/ovn-scale-test/blob/master/samples/deployments/ovn-multihost-physical.json




More information about the dev mailing list