Network context does not work when no-admin

Bug #1731895 reported by Paul Peereboom on 2017-11-13
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rally
Undecided
Unassigned

Bug Description

Since rally 0.10 it is possible to run a task without admin credentials(awesome!). I'm trying to get this to work for some tasks but i cannot specify a network in the context since it is prompting for admin credentials:

rally --version
0.10.1~dev5

deployment config (no admin specified):
(installation) root@rally-server:~# rally deployment config 4edf805c-a7a4-4af6-b5e2-98abbfef0e5a
{
    "openstack": {
        "auth_url": "https://example.com:5000/v3",
        "endpoint_type": "public",
        "region_name": "RegionOne",
        "users": [
            {
                "password": "Password123!",
                "project_domain_name": "Default",
                "project_name": "rally2",
                "user_domain_name": "Default",
                "username": "rally"
            },
            {
                "password": "Password321!",
                "project_domain_name": "Default",
                "project_name": "rally2",
                "user_domain_name": "Default",
                "username": "rally2"
            }
        ]
    }
}

---
  NeutronNetworks.create_and_delete_ports:
    -
      args:
        network_create_args: {}
        port_create_args: {}
        ports_per_network: 10
      runner:
        type: "constant"
        times: 100
        concurrency: 10
      context: {}
      sla:
        failure_rate:
          max: 0

rally task start create-and-delete-ports.yaml:
2017-11-13 11:59:25.575 30669 INFO rally.task.runner [-] Task 629a390e-8f25-4eba-9ef4-d1ad05a50747 | ITER: 1 START
2017-11-13 11:59:25.576 30669 WARNING rally.plugins.openstack.scenarios.neutron.utils [-] Running this scenario without either the 'network' or 'existing_network' context is deprecated
2017-11-13 11:59:47.528 30669 INFO rally.task.runner [-] Task 629a390e-8f25-4eba-9ef4-d1ad05a50747 | ITER: 1 END: OK

Trying to fix the warning:
---
  NeutronNetworks.create_and_delete_ports:
    -
      args:
        network_create_args: {}
        port_create_args: {}
        ports_per_network: 10
      runner:
        type: "constant"
        times: 2
        concurrency: 2
      context:
        network: {}
      sla:
        failure_rate:
          max: 0

rally task start create-and-delete-ports.yaml:

Task config is invalid: `Input task is invalid!

Subtask NeutronNetworks.create_and_delete_ports[0] has wrong configuration
Subtask configuration:
{"version": 2, "title": "A cropped version of a bigger task.", "description": "Auto-generated task from a single workload", "subtasks": [{"title": "NeutronNetworks.create_and_delete_ports", "description": "Create and delete a port.", "scenario": {"NeutronNetworks.create_and_delete_ports": {"network_create_args": {}, "port_create_args": {}, "ports_per_network": 10}}, "contexts": {"network": {}}, "runner": {"constant": {"times": 2, "concurrency": 2}}, "hooks": [], "sla": {"failure_rate": {"max": 0}}}]}

Reason(s):
 No admin credential for openstack`

Am I'm doing something wrong or how should I fix this?

Regards,
Paul

Paul Peereboom (peereb) wrote :

Ah, I see. Not sure why tough, now you cannot specify a network_id or empty network to spawn instances in.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers