failed to create network by dashboard

Asked by Yi Liu

1.Create a network by command 'neutron net-create' with parameter '--tenant-id' is OK.
# neutron net-create --tenant-id 42b15ed7cc7d4986a1cc1ccdda844eca test_net
Created a new network:
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| id | cccb503b-03f7-4ac3-a8c2-82dd7f1c945b |
| name | test_net |
| provider:network_type | vlan |
| provider:physical_network | physnet1 |
| provider:segmentation_id | 3 |
| shared | False |
| status | ACTIVE |
| subnets | |
| tenant_id | 42b15ed7cc7d4986a1cc1ccdda844eca |
+---------------------------+--------------------------------------+

2.Create a network by command 'neutron net-create' without parameter '--tenant-id' , failed!
# neutron net-create test_net
Running without keystone AuthN requires that tenant_id is specified

3.create network on dashboard, failed, error message as below:
Error: Failed to create network "test_net": Running without keystone AuthN requires that tenant_id is specified

However, there is no place to set tenant_id when create a network on dashboard!!!

I think the tenant_id should be included in the request context?? But how?

Question information

Language:
English Edit question
Status:
Solved
For:
neutron Edit question
Assignee:
No assignee Edit question
Solved by:
yong sheng gong
Solved:
Last query:
Last reply:
Revision history for this message
Best yong sheng gong (gongysh) said :
#1

aren't u are using keystone as authentication module?

neutron.conf:
[DEFAULT]
auth_strategy = keystone

Revision history for this message
Akihiro Motoki (amotoki) said :
#2

OpenStack Dashboard is expected to use keystone-enabled OpenStack. When creating a network, Dashboard passes keystone token to Neutron and Neutron retrieves tenant_id or other information such as roles from Keystone based on the passed token.

I believe yong's suggestion will address your problem. It seems you already enable keystone because you succeed to login Dashboard, but it seems neutron is not configured to use keystone.

Revision history for this message
Yi Liu (ryan-yi-liu) said :
#3

Thanks yong sheng gong, that solved my question.