Rally task [NovaServers.list_servers] failed with network problems

Bug #1695245 reported by Adrian Gomez on 2017-06-02
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Undecided
zhangzhihui

Bug Description

Hello to everyone,

We try to deploy the [NovaServers.list_servers] task with the next config:

{
  "NovaServers.list_servers": [
    {
      "runner": {
        "type": "constant",
        "times": 1,
        "concurrency": 1
      },
      "hooks": [],
      "args": {
        "detailed": true
      },
      "sla": {},
      "context": {
        "servers": {
          "flavor": {
            "name": "m1.small"
          },
          "image": {
            "name": "RHEL7.2"
          },
      }
    }
  ]
}

With this configuration of task the error is "Unexpected error: Multiple possible networks found, use a Network ID to be more specific. (HTTP 409) (Request-ID: req-d6bb23b8-d874-4be7-8433-cfa28cf8c868) "

We prove too the next task config:

{
  "NovaServers.list_servers": [
    {
      "runner": {
        "type": "constant",
        "times": 1,
        "concurrency": 1
      },
      "hooks": [],
      "args": {
        "detailed": true
      },
      "sla": {},
      "context": {
        "servers": {
          "flavor": {
            "name": "m1.small"
          },
          "image": {
            "name": "RHEL7.2"
          },
          "nics": [
            {
              "net-id": "f75e7970-6469-4784-b0a1-a9ed80172079"
            }
          ]
        }
      }
    }
  ]
}

In this case, the error is "Unexpected error: nics must be a list "

Someone could help me with this task? Maybe we use an incorrect configuration in this task?

I have rally version 0.8.2~dev71

Thanks for your help in advance.

chenhb (chen-haibing1) wrote :

looks this config is right.

Andrey Kurilin (andreykurilin) wrote :

yes, the config looks good to me. Also, I did not find any places in code, where nics can be transformed.

Can you modify the code, so we can add more debug messages? If yes, I'll share more details.

Adrian Gomez (gomadn) wrote :

Hello,

Yes, I will can try to modify the code to add more debug messages.
Could you share with me what do I need change in plugin code to enable debug mode?

Thanks in advance.

narasimha18sv (narasimha18sv) wrote :

As per the I think you are only trying to check nova list command. when we are trying list_servers context with create servers is not required. if you want to create and list the servers then
"NovaServers.list_servers" should be "NovaServers.boot_and_list_servers"

As per the code in rally list_servers doesn't take any arguments like image, flavor or net id

https://github.com/openstack/rally/blob/master/rally/plugins/openstack/scenarios/nova/servers.py#L78

zhangzhihui (zhangzhang) wrote :

“nics” have two format, one is
"nics": [
             {
               "net-id": "f75e7970-6469-4784-b0a1-a9ed80172079"
             }
           ]
but our rally codes seems to have a bug, i will try to fix it.
the other is
"nics": [
               "f75e7970-6469-4784-b0a1-a9ed80172079"
            ]
about this part of the code is ok。you can use this format.

zhangzhihui (zhangzhang) on 2017-06-20
Changed in rally:
assignee: nobody → zhangzhihui (zhangzhang)
Andrey Kurilin (andreykurilin) wrote :

a proposal for novaclient project - https://review.openstack.org/475816

Reviewed: https://review.openstack.org/475766
Committed: https://git.openstack.org/cgit/openstack/rally/commit/?id=eee85042c395f2c988c25e56bc50874540a674c0
Submitter: Jenkins
Branch: master

commit eee85042c395f2c988c25e56bc50874540a674c0
Author: zhangzhang <email address hidden>
Date: Tue Jun 20 16:03:19 2017 -0400

    fix Rally task [NovaServers.list_servers] failed with network problems

    when we get 'nics' information from rally task config
    'contexts', the type of self.config["nics"] is 'tuple', but we need it is 'list'
    type.

    Change-Id: If293700a5c0a2f30a23b1fcf808adb6e467c76c6
    Closes-Bug: #1695245

Changed in rally:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers