Uploaded image for project: 'VinePerf'
  1. VinePerf
  2. VINEPERF-678

VSPERF fails to run with openstack

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None

      A simple way to reproduce this. I cloned repo to my environment and did the same things as the prepare_python_env.sh script does. I didn't run the build_base_machine.sh script because I don't think it's necessary. I made conf-file with my parameters of OpenStack:

      (vsperfenv) [fedora@vineperf-vm vineperf]$ grep -o '^[^#]*' openstack.conf
      DEFAULT_POLLING_INTERVAL = 10
      SCENARIOS = ['templates/l2_1c_2i.yaml']
      SCHEMA = 'templates/scenario.yaml'
      OS_AUTH_URL="http://10.10.10.10:5000"
      OS_PROJECT_ID="aae2cf75db4e4bc69110c38cabe1cc9e"
      OS_PROJECT_NAME="admin"
      OS_USER_DOMAIN_NAME="Default"
      OS_PROJECT_DOMAIN_ID="default"
      OS_USERNAME="admin"
      OS_PASSWORD="hidden_admin_pass"
      OS_REGION_NAME="LAB-Reg"
      OS_INTERFACE="public"
      OS_IDENTITY_API_VERSION=3
      OS_INSECURE=False
      OS_CA_CERT= 'None'
      STACK_NAME = 'testvnf_vsperf'
      CLEANUP_ON_EXIT = True
      FLAVOR_NAME='vsperf-flv'
      IMAGE_NAME='ubuntu_bionic'
      EXTERNAL_NET='flat_net'
      DNS_NAMESERVERS = ['8.8.8.8', '8.8.4.4'] 

      And I got the error:

      (vsperfenv) [fedora@vineperf-vm vineperf]$ ./vsperf --openstack --conf-file openstack.conf phy2phy_tput
      Play scenario: templates/l2_1c_2i.yaml
      Failed to connect to OpenStack: name 'connection' is not defined. Please verify parameters: {'auth': {'username': 'admin', 'password': 'hidden_admin_pass', 'auth_url': 'http://10.10.10.10:5000', 'project_name': 'admin', 'user_domain_name': 'Default'}, 'os_region_name': 'LAB-Reg', 'os_cacert': 'None', 'os_insecure': False, 'os_interface': 'public'}
      Error while executing scenario: OpenStack client is not initialized. Template-based deployment is ignored.
      Traceback (most recent call last):
        File "/home/fedora/vineperf/tools/os_deploy_tgen/osdt.py", line 522, in play_scenario
          agents = deployment.deploy(scenario_deployment, base_dir=base_dir)
        File "/home/fedora/vineperf/tools/os_deploy_tgen/osdt.py", line 453, in deploy
          raise DeploymentException(
      tools.os_deploy_tgen.osdt.DeploymentException: OpenStack client is not initialized. Template-based deployment is ignored.
      {'scenarios': {'OpenStack L2 Performance': {'title': 'OpenStack L2 Performance', 'description': 'In this scenario tdep launches 1 pair of instances in the same tenant network. Each instance is hosted on a separate compute node. The traffic goes within the tenant network (L2 domain).', 'deployment': {'template': 'l2fip.hot', 'accommodation': ['pair', 'single_room', {'compute_nodes': 2}]}, 'file_name': 'templates/l2_2c_2i.yaml'}}, 'agents': {}}
      Failed to deploy TestVNF in Openstac 

      I tried to run this in your container image, but got the same error there as well. I tried to do it in different environments and use master and nile branches. The result is always the same.

            sridharkn Sridhar Rao
            AlexeyKashavkin Alexey Kashavkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: