Hi All:
I am installing Icehouse Openstack all in one machine with one single vlan interface (binded to a physical interface),
I am facing the problem while executing the neturon commnads, but keystone,glance and few nova commands works fine ,But nova commands related to network and neutron ommands gives 401 Error.
Can some one please help me.
. Below is my configurations,First interface configurtaoins Interface configuration:
VLAN1 (VLAN ) Physical Device Configuration
------------ ----------------------------------
VLAN=yes TYPE=Ethernet
TYPE=Vlan BOOTPROTO=dhcp
PHYSDEV=phynet1 DEFROUTE=yes
VLAN_ID=1 PEERDNS=yes
REORDER_HDR=0 PEERROUTES=yes
BOOTPROTO=static IPV4_FAILURE_FATAL=no
DEFROUTE=yes IPV6_AUTOCONF=yes
IPV4_FAILURE_FATAL=no IPV6_DEFROUTE=yes
IPV6INIT=no IPV6_PEERDNS=yes
IPV6_AUTOCONF=yes IPV6_PEERROUTES=yes
IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no
IPV6_FAILURE_FATAL=no NAME=phynet1
NAME=VLAN1 UUID=5ba6c8d1-8fe7-3fec-ae8c-ad67081547dc
UUID=9cbf88dc-456c-1234-9876-12bece795678 DEVICE=phynet1
ONBOOT=yes ONBOOT=no
DEVICE=MyVLAN1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPADDR=1.2.3.4
PREFIX=32
GATEWAY=1.2.3.1
DNS1=1.2.9.5
PEERDNS=yes
PEERROUTES=yes
I got the keystone installed and working ( all keystone commands work). Below is the example:
keystone user-list
+----------------------------------+---------+---------+-------------------------+
| id | name | enabled | email |
+----------------------------------+---------+---------+-------------------------+
+----------------------------------+---------+---------+-------------------------+
Got Glance installed and working (it gives empty results as I dont have the images which is fine with me )
glance image-list
+----+------+-------------+------------------+------+--------+
| ID | Name | Disk Format | Container Format | Size | Status |
+----+------+-------------+------------------+------+--------+
installed nova-api and nova image-list also works gives empty results which is fine with me .
nova image-list
+----+------+--------+--------+
| ID | Name | Status | Server |
+----+------+--------+--------+
+----+------+--------+--------+
But When I try to do some other commands wiht NOVA I get 400 error like below:
nova net-list
ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) (Request-ID: req-b25d79ae-8739-49ff-8fa6-a8ed1d078e7b)
Attahced nova-net-list.log (this has the debug version of above command )
All neutron commands gives me error like below
Authentication required
Attached the file neutron-net-list.log which has the debug version of the above command.Also I see same mulitple requests to the same endpoints.
if I do ifconfig, i dont see the networks I configured br-ex and br-int on the same single ip.
How do I see them, I just installed it till neutron did not go further as I was getting the Authentcation problem.
NOTE:While running the neutron and nova commands I sources all the OS keystone parameters.
Also attached the keystone,glance,nova and neutron conf files and tenants,users,services,endpoints configured in keystone AND Give below in email as well.
Keystone env variables:
export OS_USERNAME=admin
export OS_PASSWORD=mypassword
export OS_TENANT_NAME=admin
nova.conf
rpc_backend = qpid
qpid_hostname = 1.2.3.4
my_ip = 1.2.3.4
vncserver_listen = 1.2.3.4
vncserver_proxyclient_address = 1.2.3.4
auth_strategy = keystone
network_api_class = nova.network.neutronv2.api.API
neutron_auth_strategy = keystone
neutron_admin_tenant_name = service
neutron_admin_username = nova
neutron_admin_password = nova123
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
security_group_api = neutron
service_neutron_metadata_proxy = true
neutron_metadata_proxy_shared_secret = myOSsetUp
[keystone_authtoken]
auth_host = 1.2.3.4
auth_protocol = http
auth_port = 35357
admin_user = nova
admin_tenant_name = service
admin_password = nova123
Neutron.conf
[DEFAULT]
auth_strategy = keystone
rpc_backend = neutron.openstack.common.rpc.impl_qpid
qpid_hostname = 1.2.3.4
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_admin_username = nova
nova_admin_tenant_id = 1ecb20c295a04b45b19f88bed22fd9f8
nova_admin_password = nova123
core_plugin = ml2
service_plugins = router
[keystone_authtoken]
auth_host = 1.2.3.4
auth_protocol = http
auth_port = 35357
admin_tenant_name = service
admin_user = neutron
admin_password = neutron123
metadata_agent.ini
auth_region = regionOne
# Turn off verification of the certificate for ssl
# auth_insecure = False
# Certificate Authority public key (CA cert) file for ssl
# auth_ca_cert =
admin_tenant_name = service
admin_user = neutron
admin_password = neutron123
nova_metadata_ip = 1.2.3.4
metadata_proxy_shared_secret = myOSsetUp
Keystone Outputs:
keystone tenant-list
+----------------------------------+---------+---------+
| id | name | enabled |
+----------------------------------+---------+---------+
| 0f3e717860444ca9bda45710940de033 | admin | True |
| f01c350959d24c63a467cea3875ba9f8 | demo | True |
| 1ecb20c295a04b45b19f88bed22fd9f8 | service | True |
+----------------------------------+---------+---------+
keystone service-list
+----------------------------------+----------+----------+----------------------+
| id | name | type | description |
+----------------------------------+----------+----------+----------------------+
| 838524a98a8b45a7961615ace1d65576 | glance | image | Image Service |
| 4e97c66d9be64056a63bdc6469b0cabf | keystone | identity | OpenStack Identity |
| 0f569363f59444d88aaf32589307c1b1 | neutron | network | OpenStack Networking |
| ae4e5d0cd58e4bf6bfe71a861ff3db32 | nova | compute | OpenStack Compute |
+----------------------------------+----------+----------+----------------------+
keystone eddpoint-list
+----------------------------------+-----------+--------------------------------------------+--------------------------------------------+--------------------------------------------+----------------------------------+
| id | region | publicurl | internalurl | adminurl | service_id |
+----------------------------------+-----------+--------------------------------------------+--------------------------------------------+--------------------------------------------+----------------------------------+
+----------------------------------+-----------+--------------------------------------------+--------------------------------------------+--------------------------------------------+----------------------------------+
keystone user-list
+----------------------------------+---------+---------+-------------------------+
| id | name | enabled | email |
+----------------------------------+---------+---------+-------------------------+
+----------------------------------+---------+---------+-------------------------+