GoogleCloudPlatform / GoogleCloudPlatform/PerfKitBenchmarker

OpenStack nova error with multi region deployment.

Open
#769 7 comments 0 reactions 1 assignee Claimed by @meteorfox View on GitHub
bug P1
Dominant language
Python
Stars
2k
Forks
562
Avg merge
4h 55m
Merged PRs (30d)
69

Description

Hi,

First Thanks you very much for PrefKit!

I am having some problem on my multi-region based cloud setup. NOVA client works fine with multiple regions:

--------- salman -----------
export OS_USERNAME=
export OS_PASSWORD=
export OS_TENANT_NAME=
export OS_PROJECT_NAME=
export OS_REGION_NAME=
## export OS_AUTH_URL=http://keystoneURL:5000/v2.0

ubuntu@prefkit-test:~/perfkit$ source salman
ubuntu@prefkit-test:~/perfkit$ nova list
+--------------------------------------+-----------+---------+------------+-------------+--------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-----------+---------+------------+-------------+--------------------------------------+
| 9df963e8-d0ef-44e4-993c-f3e06244961f | smurf-001 | SHUTOFF | - | Shutdown | vmnet=192.168.10.139, 130.239.46.227 |
+--------------------------------------+-----------+---------+------------+-------------+--------------------------------------+
ubuntu@prefkit-test:~/perfkit$ vi salman
ubuntu@prefkit-test:~/perfkit$ source salman
< Basically I have changed the region parameter >
ubuntu@prefkit-test:~/perfkit$ nova list
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+
| a9a6a1cd-1ffe-473a-9f27-1cc865937cbb | PerfKit-Test | ACTIVE | - | Running | smog-net=10.0.10.19, 130.238.29.68 |
+--------------------------------------+--------------+--------+------------+-------------+------------------------------------+

So with the Nova Client everything is working fine with multiple regions. But here what happen when I use pkb.py:

ubuntu@prefkit-test:~/perfkit$ cd PerfKitBenchmarker/
ubuntu@prefkit-test:~/perfkit/PerfKitBenchmarker$ ./pkb.py --cloud=OpenStack --benchmarks=ping
2015-12-22 15:43:17,635 6a699ed7 MainThread INFO Verbose logging to: /tmp/perfkitbenchmarker/run_6a699ed7/pkb.log
2015-12-22 15:43:17,635 6a699ed7 MainThread INFO PerfKitBenchmarker version: v1.0.1-103-g5a2c738
2015-12-22 15:43:17,804 6a699ed7 MainThread INFO Flag values:
--cloud=OpenStack
--benchmarks=ping
2015-12-22 15:43:18,091 6a699ed7 MainThread ping(1/1) INFO Starting new HTTP connection (1): smog.uppmax.uu.se
2015-12-22 15:43:25,441 6a699ed7 MainThread ping(1/1) INFO Starting new HTTP connection (1): smog.uppmax.uu.se
2015-12-22 15:43:30,489 6a699ed7 MainThread ping(1/1) INFO Starting new HTTP connection (1): smog.uppmax.uu.se
Found more than one valid endpoint. Use a more restrictive filter
2015-12-22 15:43:42,856 6a699ed7 MainThread ping(1/1) ERROR Error during benchmark ping
Traceback (most recent call last):
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/pkb.py", line 338, in RunBenchmark
spec.ConstructVirtualMachines()
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/benchmark_spec.py", line 262, in ConstructVirtualMachines
vm = self._CreateVirtualMachine(vm_spec, os_type, cloud)
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/benchmark_spec.py", line 344, in _CreateVirtualMachine
return vm_class(vm_spec)
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/providers/openstack/os_virtual_machine.py", line 48, in __init__
self.firewall = os_network.OpenStackFirewall.GetFirewall()
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/network.py", line 51, in GetFirewall
benchmark_spec.firewalls[key] = cls()
File "/home/ubuntu/perfkit/PerfKitBenchmarker/perfkitbenchmarker/providers/openstack/os_network.py", line 38, in **init**
name='perfkit_sc_group')):
File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 257, in findall
listing = self.list(*_list_kwargs)
File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/security_groups.py", line 96, in list
'security_groups')
File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line 74, in _list
_resp, body = self.api.client.get(url)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 448, in get
return self._cs_request(url, 'GET', *_kwargs)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 404, in _cs_request
self.authenticate()
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 561, in authenticate
auth_url = self._v2_auth(auth_url)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 652, in _v2_auth
return self._authenticate(url, body)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 667, in _authenticate
return self._extract_service_catalog(url, resp, respbody)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 490, in _extract_service_catalog
self.management_url = self.get_service_url(self.service_type)
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py", line 467, in get_service_url
volume_service_name=self.volume_service_name,)
File "/usr/local/lib/python2.7/dist-packages/novaclient/service_catalog.py", line 87, in url_for
endpoints=matching_endpoints)
AmbiguousEndpoints: AmbiguousEndpoints:
2015-12-22 15:43:42,861 6a699ed7 MainThread ping(1/1) ERROR Benchmark 1/1 ping (UID: ping0) failed. Execution will continue.
## 2015-12-22 15:43:42,862 6a699ed7 MainThread ping(1/1) INFO Benchmark run statuses:
## Name UID Status
## ping ping0 FAILED

Success rate: 0.00% (0/1)
2015-12-22 15:43:42,862 6a699ed7 MainThread ping(1/1) INFO Complete logs can be found at: /tmp/perfkitbenchmarker/run_6a699ed7/pkb.log

Can someone please confirm? Or point out the problem.

Regards..
Salman.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.