create a router distributed command over a cluster without dvr fails

Bug #1820321 reported by Candido Campos Rivas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Confirmed
Wishlist
Unassigned

Bug Description

Comand fails:

(overcloud) [stack@undercloud-0 ~]$ openstack router create roter3 --distributed --debug
START with options: [u'router', u'create', u'roter3', u'--distributed', u'--debug']
options: Namespace(access_key='', access_secret='***', access_token='***', access_token_endpoint='', access_token_type='', aodh_endpoint='', application_credential_id='', application_credential_name='', application_credential_secret='***', auth_type='password', auth_url='http://10.0.0.102:5000//v3', cacert=None, cert='', client_id='', client_secret='***', cloud='', code='', consumer_key='', consumer_secret='***', debug=True, default_domain='default', default_domain_id='', default_domain_name='', deferred_help=False, discovery_endpoint='', domain_id='', domain_name='', endpoint='', identity_provider='', identity_provider_url='', insecure=None, inspector_api_version='1', inspector_url=None, interface='', key='', log_file=None, openid_scope='', os_alarming_api_version='2', os_baremetal_api_version='1.37', os_beta_command=False, os_compute_api_version='', os_container_infra_api_version='1', os_data_processing_api_version='1.1', os_data_processing_url='', os_database_api_version='1', os_dns_api_version='2', os_identity_api_version='3', os_image_api_version='2', os_key_manager_api_version='1', os_loadbalancer_api_version='2.0', os_metrics_api_version='1', os_network_api_version='', os_object_api_version='', os_orchestration_api_version='1', os_project_id=None, os_project_name=None, os_queues_api_version='2', os_tripleoclient_api_version='1', os_volume_api_version='3', os_workflow_api_version='2', passcode='', password='***', profile='', project_domain_id='', project_domain_name='Default', project_id='', project_name='admin', protocol='', redirect_uri='', region_name='', remote_project_domain_id='', remote_project_domain_name='', remote_project_id='', remote_project_name='', roles='', service_provider='', service_provider_endpoint='', service_provider_entity_id='', system_scope='', timing=False, token='***', trust_id='', url='', user='', user_domain_id='', user_domain_name='Default', user_id='', username='admin', verbose_level=3, verify=None)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.102:5000//v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.37', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
defaults: {u'auth_type': 'password', u'status': u'active', u'compute_api_version': u'2', 'key': None, u'database_api_version': u'1.0', 'api_timeout': None, u'baremetal_api_version': u'1', u'image_api_version': u'2', u'container_infra_api_version': u'1', u'metering_api_version': u'2', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': u'1', 'cacert': None, u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', u'application_catalog_api_version': u'1', u'key_manager_api_version': u'v1', u'workflow_api_version': u'2', 'verify': True, u'identity_api_version': u'2.0', u'volume_api_version': u'2', 'cert': None, u'secgroup_source': u'neutron', u'container_api_version': u'1', u'dns_api_version': u'2', u'object_store_api_version': u'1', u'interface': None, u'disable_vendor_agent': {}}
cloud cfg: {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.102:5000//v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.37', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
compute API version 2, cmd group openstack.compute.v2
network API version 2, cmd group openstack.network.v2
image API version 2, cmd group openstack.image.v2
volume API version 3, cmd group openstack.volume.v3
identity API version 3, cmd group openstack.identity.v3
object_store API version 1, cmd group openstack.object_store.v1
messaging API version 2, cmd group openstack.messaging.v2
orchestration API version 1, cmd group openstack.orchestration.v1
baremetal API version 1.37, cmd group openstack.baremetal.v1
baremetal_introspection API version 1, cmd group openstack.baremetal_introspection.v1
neutronclient API version 2, cmd group openstack.neutronclient.v2
workflow_engine API version 2, cmd group openstack.workflow_engine.v2
tripleoclient API version 1, cmd group openstack.tripleoclient.v1
dns API version 2, cmd group openstack.dns.v2
database API version 1, cmd group openstack.database.v1
key_manager API version 1, cmd group openstack.key_manager.v1
alarming API version 2, cmd group openstack.alarming.v2
load_balancer API version 2.0, cmd group openstack.load_balancer.v2
container_infra API version 1, cmd group openstack.container_infra.v1
data_processing API version 1.1, cmd group openstack.data_processing.v1
metric API version 1, cmd group openstack.metric.v1
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.102:5000//v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.37', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.102:5000//v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.37', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
command: router create -> openstackclient.network.v2.router.CreateRouter (auth=True)
Auth plugin password selected
auth_config_hook(): {'auth_type': 'password', 'beta_command': False, 'tripleoclient_api_version': '1', u'compute_api_version': u'2', 'key': None, u'database_api_version': '1', 'metrics_api_version': '1', 'data_processing_api_version': '1.1', 'inspector_api_version': '1', 'auth_url': 'http://10.0.0.102:5000//v3', u'network_api_version': u'2', u'message': u'', u'image_format': u'qcow2', 'networks': [], u'image_api_version': '2', 'verify': True, u'dns_api_version': '2', u'object_store_api_version': u'1', 'username': 'admin', u'container_infra_api_version': '1', 'loadbalancer_api_version': '2.0', 'verbose_level': 3, 'region_name': '', 'api_timeout': None, u'baremetal_api_version': '1.37', 'queues_api_version': '2', 'auth': {'user_domain_name': 'Default', 'project_name': 'admin', 'project_domain_name': 'Default'}, 'default_domain': 'default', u'container_api_version': u'1', u'image_api_use_tasks': False, u'floating_ip_source': u'neutron', u'orchestration_api_version': '1', 'timing': False, 'password': '***', u'application_catalog_api_version': u'1', 'cacert': None, u'key_manager_api_version': '1', u'metering_api_version': u'2', 'deferred_help': False, u'identity_api_version': '3', u'workflow_api_version': '2', u'volume_api_version': '3', 'cert': None, u'secgroup_source': u'neutron', u'status': u'active', 'alarming_api_version': '2', 'debug': True, u'interface': None, u'disable_vendor_agent': {}}
Using auth plugin: password
Using parameters {'username': 'admin', 'project_name': 'admin', 'user_domain_name': 'Default', 'auth_url': 'http://10.0.0.102:5000//v3', 'password': '***', 'project_domain_name': 'Default'}
Get auth_ref
REQ: curl -g -i -X GET http://10.0.0.102:5000//v3 -H "Accept: application/json" -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5"
Starting new HTTP connection (1): 10.0.0.102
http://10.0.0.102:5000 "GET //v3 HTTP/1.1" 200 192
RESP: [200] Date: Fri, 15 Mar 2019 10:57:23 GMT Server: Apache Vary: X-Auth-Token,Accept-Encoding x-openstack-request-id: req-e1ac0b5a-7e40-4485-8e35-98eb736312f4 Content-Encoding: gzip Content-Length: 192 Content-Type: application/json
RESP BODY: {"version": {"status": "stable", "updated": "2018-02-28T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.10", "links": [{"href": "http://10.0.0.102:5000/v3/", "rel": "self"}]}}

GET call to None for http://10.0.0.102:5000//v3 used request id req-e1ac0b5a-7e40-4485-8e35-98eb736312f4
Making authentication request to http://10.0.0.102:5000/v3/auth/tokens
http://10.0.0.102:5000 "POST /v3/auth/tokens HTTP/1.1" 201 8878
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "5798ad9ed1ff448997004983fa306fba", "name": "admin"}], "expires_at": "2019-03-15T11:57:24.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "2da14b95224b4cfabb2fe98d8231ce57", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://10.0.0.102:8977", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "0a799eb38d39463395aacb173302be3a"}, {"url": "http://172.17.1.10:8977", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7230a851666d45f8b0784a396d935bf1"}, {"url": "http://172.17.1.10:8977", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "fc558c1f29a1466a8e32a5ed465572bb"}], "type": "event", "id": "19635892558347dca1d575cb7f707861", "name": "panko"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "08396e785c7d47968523aa24ce5ff25e"}, {"url": "http://10.0.0.102:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "b76c9b3eccdd412eabfc3cf048d5d6d3"}, {"url": "http://172.17.1.10:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "e01589a1357d41a18fffe7fd00acf6c0"}], "type": "volume", "id": "2158629b4d4d42c4a43e72827d671937", "name": "cinder"}, {"endpoints": [{"url": "http://10.0.0.102:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "b89574ab63554c1c9e05916c3742afb1"}, {"url": "http://172.17.1.10:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "cacee1fbd8104e919f97bd5e6f74aa18"}, {"url": "http://172.17.1.10:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ef3c41b9483243a197f04abbe2e4a102"}], "type": "orchestration", "id": "2a3c4ddefad94a348d4b8f5b3040e3a3", "name": "heat"}, {"endpoints": [{"url": "http://172.17.1.10:8774/v2.1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "5dc5dedaaf224c56a6de6f0b67aca729"}, {"url": "http://172.17.1.10:8774/v2.1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "c3ce2da092b7457d820ec06439decd77"}, {"url": "http://10.0.0.102:8774/v2.1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "f6fcab92a93a449b921dcf8552c333ed"}], "type": "compute", "id": "33136316a4a74503a90e8695705f5186", "name": "nova"}, {"endpoints": [{"url": "http://172.17.1.10:9292", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "10df5850ab3e4400b655e4d6edb22264"}, {"url": "http://10.0.0.102:9292", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "865d035809614f25a8ae1f1801b49c6a"}, {"url": "http://172.17.1.10:9292", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d841518940a441ae92eceeb9a40db284"}], "type": "image", "id": "690ebb5b7fbc417e8c9f6b86516d56f6", "name": "glance"}, {"endpoints": [{"url": "http://10.0.0.102:8080/v1/AUTH_2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "55d7c2450c234643b9cca81728c8cf60"}, {"url": "http://172.17.3.22:8080/v1/AUTH_2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "e6be2a7e7124422693103f42beacc091"}, {"url": "http://172.17.3.22:8080", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "fa222cbf96a540e09df46bb0268c2b59"}], "type": "object-store", "id": "6c0fc786c2ad4c6486b42603596892d3", "name": "swift"}, {"endpoints": [{"url": "http://10.0.0.102:8778/placement", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "3c5700c8dcba4828a984716581fe98ae"}, {"url": "http://172.17.1.10:8778/placement", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b41f3cc41a2442708156f8a0a6296c41"}, {"url": "http://172.17.1.10:8778/placement", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d4319af7c95c44cda48edaa775561733"}], "type": "placement", "id": "78b99d7eac474b0892ac70601b278367", "name": "placement"}, {"endpoints": [], "type": "metering", "id": "9e6be2d17e4c44778e221cf4a12a9d56", "name": "ceilometer"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "753b9f29dada45e6851d58d149113724"}, {"url": "http://10.0.0.102:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "858abfb3a09344db864f6866426b999f"}, {"url": "http://172.17.1.10:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b37c719a816f45799d5bbd9e733441f6"}], "type": "volumev3", "id": "afb2ba45070c4b118189a25c5bfefc7c", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.17.1.10:8000/v1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7633cd97b96849dbbcddaf70a03c4d3b"}, {"url": "http://10.0.0.102:8000/v1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "807c77cf57534d82a91f5786e7b4e742"}, {"url": "http://172.17.1.10:8000/v1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b34f9c17863a4a739f5d637fe456b15b"}], "type": "cloudformation", "id": "c14962e5e6e141809a0c99012aca753b", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.17.1.10:8042", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "72b25f414cbb41409724205e0e609eb1"}, {"url": "http://172.17.1.10:8042", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "baf7c665666a41039ddbf0d8b1fdb2c2"}, {"url": "http://10.0.0.102:8042", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "f355dd77634446e9b87878425ab56737"}], "type": "alarming", "id": "d5a4836db4ad404a8001e65a912facc7", "name": "aodh"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "0272170af78e4c3fa006a48057cf6d76"}, {"url": "http://172.17.1.10:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "2896aa7115ba4963b44da8c0d88a2f5b"}, {"url": "http://10.0.0.102:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "ce2ea19654ab43508890632e1ba66552"}], "type": "volumev2", "id": "d6db90bfb44841dea06aadac8b93ba5b", "name": "cinderv2"}, {"endpoints": [{"url": "http://10.0.0.102:5000", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "1bf4b31e167b4c5da581ab4f7efb5845"}, {"url": "http://192.168.24.12:35357", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "529551d81acf4f059ace3a4903a55e23"}, {"url": "http://172.17.1.10:5000", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "9347024a17b84f688a2c299cfee97f84"}], "type": "identity", "id": "ddd4d42eb90d4aa1995a019315617cf0", "name": "keystone"}, {"endpoints": [{"url": "http://172.17.1.10:9696", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ab97dc18c7854b18a484e1c2c5b32a5b"}, {"url": "http://172.17.1.10:9696", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "bf5371e6c98f4caf9ce1c6c9b3de35d5"}, {"url": "http://10.0.0.102:9696", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "e53a25db839d497b967d237bd2b0752e"}], "type": "network", "id": "e9c4993e5eed4ed3b6a41a3987065356", "name": "neutron"}, {"endpoints": [{"url": "http://172.17.1.10:8041", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "1a9bd50046eb4b738d6520189b81321d"}, {"url": "http://172.17.1.10:8041", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "7acf422bad864a5ea5582e0d38c2e151"}, {"url": "http://10.0.0.102:8041", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "c557c83b38f4429bb905428626061cb8"}], "type": "metric", "id": "f7e5c8cf3357440da910c7a7f4b4f8c7", "name": "gnocchi"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "8516ee143f3d498f86d840f7f3ccc395"}, "audit_ids": ["SOXug79UR_-d60xBgAfm3A"], "issued_at": "2019-03-15T10:57:24.000000Z"}}
run(Namespace(availability_zone_hints=None, centralized=False, columns=[], description=None, disable=False, distributed=True, enable=True, fit_width=False, formatter='table', ha=False, max_width=0, name=u'roter3', no_ha=False, no_tag=False, noindent=False, prefix='', print_empty=False, project=None, project_domain=None, tags=None, variables=[]))
Connection: <openstack.connection.Connection object at 0x7f094b336b10>
Network client initialized using OpenStack SDK: <openstack.network.v2._proxy.Proxy object at 0x7f094b326490>
Manager unknown running task network.POST.routers
Making authentication request to http://10.0.0.102:5000/v3/auth/tokens
http://10.0.0.102:5000 "POST /v3/auth/tokens HTTP/1.1" 201 8878
{"token": {"is_domain": false, "methods": ["password"], "roles": [{"id": "5798ad9ed1ff448997004983fa306fba", "name": "admin"}], "expires_at": "2019-03-15T11:57:24.000000Z", "project": {"domain": {"id": "default", "name": "Default"}, "id": "2da14b95224b4cfabb2fe98d8231ce57", "name": "admin"}, "catalog": [{"endpoints": [{"url": "http://10.0.0.102:8977", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "0a799eb38d39463395aacb173302be3a"}, {"url": "http://172.17.1.10:8977", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7230a851666d45f8b0784a396d935bf1"}, {"url": "http://172.17.1.10:8977", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "fc558c1f29a1466a8e32a5ed465572bb"}], "type": "event", "id": "19635892558347dca1d575cb7f707861", "name": "panko"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "08396e785c7d47968523aa24ce5ff25e"}, {"url": "http://10.0.0.102:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "b76c9b3eccdd412eabfc3cf048d5d6d3"}, {"url": "http://172.17.1.10:8776/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "e01589a1357d41a18fffe7fd00acf6c0"}], "type": "volume", "id": "2158629b4d4d42c4a43e72827d671937", "name": "cinder"}, {"endpoints": [{"url": "http://10.0.0.102:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "b89574ab63554c1c9e05916c3742afb1"}, {"url": "http://172.17.1.10:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "cacee1fbd8104e919f97bd5e6f74aa18"}, {"url": "http://172.17.1.10:8004/v1/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ef3c41b9483243a197f04abbe2e4a102"}], "type": "orchestration", "id": "2a3c4ddefad94a348d4b8f5b3040e3a3", "name": "heat"}, {"endpoints": [{"url": "http://172.17.1.10:8774/v2.1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "5dc5dedaaf224c56a6de6f0b67aca729"}, {"url": "http://172.17.1.10:8774/v2.1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "c3ce2da092b7457d820ec06439decd77"}, {"url": "http://10.0.0.102:8774/v2.1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "f6fcab92a93a449b921dcf8552c333ed"}], "type": "compute", "id": "33136316a4a74503a90e8695705f5186", "name": "nova"}, {"endpoints": [{"url": "http://172.17.1.10:9292", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "10df5850ab3e4400b655e4d6edb22264"}, {"url": "http://10.0.0.102:9292", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "865d035809614f25a8ae1f1801b49c6a"}, {"url": "http://172.17.1.10:9292", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d841518940a441ae92eceeb9a40db284"}], "type": "image", "id": "690ebb5b7fbc417e8c9f6b86516d56f6", "name": "glance"}, {"endpoints": [{"url": "http://10.0.0.102:8080/v1/AUTH_2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "55d7c2450c234643b9cca81728c8cf60"}, {"url": "http://172.17.3.22:8080/v1/AUTH_2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "e6be2a7e7124422693103f42beacc091"}, {"url": "http://172.17.3.22:8080", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "fa222cbf96a540e09df46bb0268c2b59"}], "type": "object-store", "id": "6c0fc786c2ad4c6486b42603596892d3", "name": "swift"}, {"endpoints": [{"url": "http://10.0.0.102:8778/placement", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "3c5700c8dcba4828a984716581fe98ae"}, {"url": "http://172.17.1.10:8778/placement", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b41f3cc41a2442708156f8a0a6296c41"}, {"url": "http://172.17.1.10:8778/placement", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "d4319af7c95c44cda48edaa775561733"}], "type": "placement", "id": "78b99d7eac474b0892ac70601b278367", "name": "placement"}, {"endpoints": [], "type": "metering", "id": "9e6be2d17e4c44778e221cf4a12a9d56", "name": "ceilometer"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "753b9f29dada45e6851d58d149113724"}, {"url": "http://10.0.0.102:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "858abfb3a09344db864f6866426b999f"}, {"url": "http://172.17.1.10:8776/v3/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b37c719a816f45799d5bbd9e733441f6"}], "type": "volumev3", "id": "afb2ba45070c4b118189a25c5bfefc7c", "name": "cinderv3"}, {"endpoints": [{"url": "http://172.17.1.10:8000/v1", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "7633cd97b96849dbbcddaf70a03c4d3b"}, {"url": "http://10.0.0.102:8000/v1", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "807c77cf57534d82a91f5786e7b4e742"}, {"url": "http://172.17.1.10:8000/v1", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "b34f9c17863a4a739f5d637fe456b15b"}], "type": "cloudformation", "id": "c14962e5e6e141809a0c99012aca753b", "name": "heat-cfn"}, {"endpoints": [{"url": "http://172.17.1.10:8042", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "72b25f414cbb41409724205e0e609eb1"}, {"url": "http://172.17.1.10:8042", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "baf7c665666a41039ddbf0d8b1fdb2c2"}, {"url": "http://10.0.0.102:8042", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "f355dd77634446e9b87878425ab56737"}], "type": "alarming", "id": "d5a4836db4ad404a8001e65a912facc7", "name": "aodh"}, {"endpoints": [{"url": "http://172.17.1.10:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "0272170af78e4c3fa006a48057cf6d76"}, {"url": "http://172.17.1.10:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "2896aa7115ba4963b44da8c0d88a2f5b"}, {"url": "http://10.0.0.102:8776/v2/2da14b95224b4cfabb2fe98d8231ce57", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "ce2ea19654ab43508890632e1ba66552"}], "type": "volumev2", "id": "d6db90bfb44841dea06aadac8b93ba5b", "name": "cinderv2"}, {"endpoints": [{"url": "http://10.0.0.102:5000", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "1bf4b31e167b4c5da581ab4f7efb5845"}, {"url": "http://192.168.24.12:35357", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "529551d81acf4f059ace3a4903a55e23"}, {"url": "http://172.17.1.10:5000", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "9347024a17b84f688a2c299cfee97f84"}], "type": "identity", "id": "ddd4d42eb90d4aa1995a019315617cf0", "name": "keystone"}, {"endpoints": [{"url": "http://172.17.1.10:9696", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "ab97dc18c7854b18a484e1c2c5b32a5b"}, {"url": "http://172.17.1.10:9696", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "bf5371e6c98f4caf9ce1c6c9b3de35d5"}, {"url": "http://10.0.0.102:9696", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "e53a25db839d497b967d237bd2b0752e"}], "type": "network", "id": "e9c4993e5eed4ed3b6a41a3987065356", "name": "neutron"}, {"endpoints": [{"url": "http://172.17.1.10:8041", "interface": "admin", "region": "regionOne", "region_id": "regionOne", "id": "1a9bd50046eb4b738d6520189b81321d"}, {"url": "http://172.17.1.10:8041", "interface": "internal", "region": "regionOne", "region_id": "regionOne", "id": "7acf422bad864a5ea5582e0d38c2e151"}, {"url": "http://10.0.0.102:8041", "interface": "public", "region": "regionOne", "region_id": "regionOne", "id": "c557c83b38f4429bb905428626061cb8"}], "type": "metric", "id": "f7e5c8cf3357440da910c7a7f4b4f8c7", "name": "gnocchi"}], "user": {"domain": {"id": "default", "name": "Default"}, "password_expires_at": null, "name": "admin", "id": "8516ee143f3d498f86d840f7f3ccc395"}, "audit_ids": ["lh4PZSkUStC9lz0OcdPQYA"], "issued_at": "2019-03-15T10:57:24.000000Z"}}
REQ: curl -g -i -X GET http://10.0.0.102:9696 -H "Accept: application/json" -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5"
Starting new HTTP connection (1): 10.0.0.102
http://10.0.0.102:9696 "GET / HTTP/1.1" 200 119
RESP: [200] Content-Length: 119 Content-Type: application/json Date: Fri, 15 Mar 2019 10:57:24 GMT
RESP BODY: {"versions": [{"status": "CURRENT", "id": "v2.0", "links": [{"href": "http://10.0.0.102:9696/v2.0/", "rel": "self"}]}]}

REQ: curl -g -i -X POST http://10.0.0.102:9696/v2.0/routers -H "User-Agent: osc-lib/1.9.0 keystoneauth1/3.4.0 python-requests/2.14.2 CPython/2.7.5" -H "Content-Type: application/json" -H "X-Auth-Token: {SHA1}27529e7e5301d48e40f6ba54f635a7b36a02babd" -d '{"router": {"distributed": true, "name": "roter3", "admin_state_up": true}}'
http://10.0.0.102:9696 "POST /v2.0/routers HTTP/1.1" 400 112
RESP: [400] Content-Length: 112 Content-Type: application/json X-Openstack-Request-Id: req-4f9aae21-e310-442c-ad5b-77f325eaca97 Date: Fri, 15 Mar 2019 10:57:25 GMT
RESP BODY: {"NeutronError": {"message": "Unrecognized attribute(s) 'distributed'", "type": "HTTPBadRequest", "detail": ""}}

POST call to network for http://10.0.0.102:9696/v2.0/routers used request id req-4f9aae21-e310-442c-ad5b-77f325eaca97
Manager unknown ran task network.POST.routers in 1.08581519127s
BadRequestException: Unknown error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/router.py", line 236, in take_action
    obj = client.create_router(**attrs)
  File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 2239, in create_router
    return self._create(_router.Router, **attrs)
  File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 194, in _create
    return res.create(self)
  File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 732, in create
    self._translate_response(response)
  File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 664, in _translate_response
    exceptions.raise_from_response(response, error_message=error_message)
  File "/usr/lib/python2.7/site-packages/openstack/exceptions.py", line 205, in raise_from_response
    http_status=http_status, request_id=request_id
BadRequestException: BadRequestException: Unknown error
clean_up CreateRouter: BadRequestException: Unknown error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 116, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python2.7/site-packages/openstackclient/network/v2/router.py", line 236, in take_action
    obj = client.create_router(**attrs)
  File "/usr/lib/python2.7/site-packages/openstack/network/v2/_proxy.py", line 2239, in create_router
    return self._create(_router.Router, **attrs)
  File "/usr/lib/python2.7/site-packages/openstack/proxy.py", line 194, in _create
    return res.create(self)
  File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 732, in create
    self._translate_response(response)
  File "/usr/lib/python2.7/site-packages/openstack/resource.py", line 664, in _translate_response
    exceptions.raise_from_response(response, error_message=error_message)
  File "/usr/lib/python2.7/site-packages/openstack/exceptions.py", line 205, in raise_from_response
    http_status=http_status, request_id=request_id
BadRequestException: BadRequestException: Unknown error

END return value: 1
(overcloud) [stack@undercloud-0 ~]$

But it shoud not fails and it should reutrn a descriptive error message:

 Error: Not suported distributed router without DVR

Revision history for this message
LIU Yulong (dragon889) wrote :

Hi,
Cloud please provide the version of the neutron you tested?

I cannot reproduce this error in my environment with master branch. It works fine.

Changed in neutron:
status: New → Incomplete
Revision history for this message
Candido Campos Rivas (ccamposr) wrote :

[stack@undercloud-0 ~]$ cat /etc/rhosp-release
Red Hat OpenStack Platform release 14.0.1 RC (Rocky)
[stack@undercloud-0 ~]$ yum info openstack-neutron
Loaded plugins: search-disabled-repos
Available Packages
Name : openstack-neutron
Arch : noarch
Epoch : 1
Version : 13.0.3
Release : 0.20190119134915.886782c.el7ost
Size : 28 k
Repo : rhelosp-14.0-puddle/x86_64
Summary : OpenStack Networking Service
URL : http://launchpad.net/neutron/
License : ASL 2.0
Description :
            : Neutron is a virtual network service for Openstack. Just like
            : OpenStack Nova provides an API to dynamically request and configure
            : virtual servers, Neutron provides an API to dynamically request and
            : configure virtual networks. These networks connect "interfaces" from
            : other OpenStack services (e.g., virtual NICs from Nova VMs). The
            : Neutron API supports extensions to provide advanced network
            : capabilities (e.g., QoS, ACLs, network monitoring, etc.)

[stack@undercloud-0 ~]$ yum list | grep neutron
puppet-neutron.noarch 13.3.1-0.20181013115834.el7ost
python2-neutron-lib.noarch 1.18.0-0.20180816094046.67865c7.el7ost
python2-neutronclient.noarch 6.9.1-0.20180925041810.7eba94e.el7ost
openstack-neutron.noarch 1:13.0.3-0.20190119134915.886782c.el7ost
openstack-neutron-bigswitch-agent.noarch
openstack-neutron-bigswitch-lldp.noarch
openstack-neutron-common.noarch 1:13.0.3-0.20190119134915.886782c.el7ost
openstack-neutron-fwaas.noarch 1:13.0.2-0.20190123183836.90951a5.el7ost
openstack-neutron-l2gw-agent.noarch
openstack-neutron-lbaas.noarch 1:13.0.1-0.20181017150329.1353bad.el7ost
openstack-neutron-lbaas-ui.noarch
openstack-neutron-linuxbridge.noarch
openstack-neutron-macvtap-agent.noarch
openstack-neutron-metering-agent.noarch
openstack-neutron-ml2.noarch 1:13.0.3-0.20190119134915.886782c.el7ost
openstack-neutron-openvswitch.noarch
openstack-neutron-rpc-server.noarch
openstack-neutron-sriov-nic-agent.noarch
python-neutron.noarch 1:13.0.3-0.20190119134915.886782c.el7ost
python-neutron-fwaas.noarch 1:13.0.2-0.20190123183836.90951a5.el7ost
python-neutron-fwaas-tests.noarch
python-neutron-lbaas.noarch 1:13.0.1-0.20181017150329.1353bad.el7ost
python-neutron-lbaas-tests.noarch
python2-ironic-neutron-agent.noarch
python2-neutron-lib-tests.noarch 1.18.0-0.20180816094046.67865c7.el7ost
python2-neutron-tests-tempest.noarch

Revision history for this message
Candido Campos Rivas (ccamposr) wrote :

hi,

 I have pasted the version in the previous comment

summary: - create a router distributed comand over a cluster without dvr fails
+ create a router distributed command over a cluster without dvr fails
Revision history for this message
Candido Campos Rivas (ccamposr) wrote :
Download full text (41.4 KiB)

I have tested with the last version and the message is:

(overcloud) [stack@undercloud-0 ~]$ openstack router create router --distributed
BadRequestException: 400: Client Error for url: http://10.0.0.121:9696/v2.0/routers, {"NeutronError": {"message": "Unrecognized attribute(s) 'distributed'", "type": "HTTPBadRequest", "detail": ""}}

The message could be more clear

(overcloud) [stack@undercloud-0 ~]$ openstack router create router --help
usage: openstack router create [-h] [-f {json,shell,table,value,yaml}]
                               [-c COLUMN] [--max-width <integer>]
                               [--fit-width] [--print-empty] [--noindent]
                               [--prefix PREFIX] [--enable | --disable]
                               [--distributed | --centralized]
                               [--ha | --no-ha] [--description <description>]
                               [--project <project>]
                               [--project-domain <project-domain>]
                               [--availability-zone-hint <availability-zone>]
                               [--tag <tag> | --no-tag]
                               <name>

Create a new router

positional arguments:
  <name> New router name

optional arguments:
  -h, --help show this help message and exit
  --enable Enable router (default)
  --disable Disable router
  --distributed Create a distributed router
  --centralized Create a centralized router
  --ha Create a highly available router
  --no-ha Create a legacy router
  --description <description>
                        Set router description
  --project <project> Owner's project (name or ID)
  --project-domain <project-domain>
                        Domain the project belongs to (name or ID). This can
                        be used in case collisions between project names
                        exist.
  --availability-zone-hint <availability-zone>
                        Availability Zone in which to create this router
                        (Router Availability Zone extension required, repeat
                        option to set multiple availability zones)
  --tag <tag> Tag to be added to the router (repeat option to set
                        multiple tags)
  --no-tag No tags associated with the router

output formatters:
  output formatter options

  -f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}
                        the output format, defaults to table
  -c COLUMN, --column COLUMN
                        specify the column(s) to include, can be repeated

table formatter:
  --max-width <integer>
                        Maximum display width, <1 to disable. You can also use
                        the CLIFF_MAX_TERM_WIDTH environment variable, but the
                        parameter takes precedence.
  --fit-width Fit the table to the display width. Implied if --max-
                        width greater than 0. Set the environment variable
                        CLIFF_FIT_WIDTH=1 to always enable
  --print-empty Print empty table if ...

Changed in neutron:
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
Slawek Kaplonski (slaweq) wrote :

I set it as confirmed and wishlist priority because it is in fact valid proposal for improvement but IMO may be hard to implement because error message that attribute is unrecognized comes from neutron-lib's API validators and it is like that because "dvr" extension is not loaded simply.

So TBH I'm not sure if that can be fixed on Neutron's side. Maybe it could be better handled on OSC side?

Changed in neutron:
importance: Low → Wishlist
Revision history for this message
Zhu Shengli (akarei) wrote :

Just a note:

The distributed flag is not supposed to be exposed when the network is OVN + DVR.

https://docs.openstack.org/networking-ovn/latest/faq/index.html

Q: Does OVN support DVR or distributed L3 routing?

Yes, it’s controlled by a single flag in configuration.

DVR will be used for floating IPs if the ovn / enable_distributed_floating_ip flag is configured to True in the neutron server configuration, being a deployment wide setting. In contrast to ML2/ovs which was able to specify this setting per router (only admin).

Although networking-ovn does not expose the “distributed” flag of routers throught the API.

tags: added: api l3-dvr-backlog
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.