The request you have made requires authentication. (HTTP 401) [closed]

asked 2016-08-19 03:08:12 -0600

Joe2006 gravatar image

Hi, Now I have what should be a working installation of OPenstack Mitaka (Packstack)

But when I try trouble-shoot any problem I face with Horizon using the command line

(like why my VMs are not accessible even after attaching a float IP!) I get this error:

The request you have made requires authentication. (H T T P 401) and I get with every

Openstack command I try to use!

Inside horizon I can create instances, networks, routers, projects, users but I can not

Create networks from the admin section only from the projects section.

I looked at some similar questions but all the suggestion does not apply on my case

I am using Openstack on my dedicated server and the only access I have is through SSH

So anyone has any suggestions I would really appreciate it ...

https://s25.postimg.org/wk4ya5vm7/error.png (image description)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Joe2006
close date 2016-09-04 03:33:09.546635

Comments

Had this error to. Do a tail -f /var/logs/apache2/keystone.log and make your commands and show me the output, maybe its the same problem i was facing. And show the output of openstack endpoint list

luke29 gravatar imageluke29 ( 2016-08-19 03:28:55 -0600 )edit

Issue any openstack command requires sourcing tenant's credentials into shell. Packstack creates to samples - keystonerc_admin, keystonerc_demo ( if CONFIG_PROVISION_DEMO was Y ).

dbaxps gravatar imagedbaxps ( 2016-08-19 03:55:38 -0600 )edit

Thanks for your response, I found keystone.log in a different directory as there is no logs (log instead) and no apache 2 under log directory, I found /var/log/keystone/keystone.log and its a huuuuge file! there are many errors

Joe2006 gravatar imageJoe2006 ( 2016-08-19 03:58:00 -0600 )edit

There are errors like: ERROR keystone.common.environment.eventlet_server [req-b8078721-f6da-4ae8-a058-2ad9d557eae0 - - - - -] Could not bind to 0.0.0.0:35357

and:

2016-08-19 07:14:12.987 1296 ERROR keystone File "/usr/bin/keystone-all", line 10, in <module>

Joe2006 gravatar imageJoe2006 ( 2016-08-19 04:00:14 -0600 )edit

I used sourcing and you can check the image link at the end of the main question

Joe2006 gravatar imageJoe2006 ( 2016-08-19 04:01:30 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2016-08-19 04:00:21 -0600

dbaxps gravatar image

updated 2016-08-19 14:27:52 -0600

UPDATE 08/19/16
Check your ml2_conf.ini under /etc/neutron/plugins/ml2 update :-

 type_drivers = vxlan,vlan,flat,gre

Then restart neutron services

openstack-service restart neutron

END UPDATE

By default packstack allows only VXLAN Using field to comment
You wrote Inside horizon I can create instances, networks, routers, projects, users but I can not Create networks from the admin section only from the projects section.

  1. You should be able create External && Shared network inside admin's section , otherwise installation has not been done properly
  2. Issue any openstack command requires sourcing tenant's credentials into shell. Packstack creates to samples - keystonerc_admin, keystonerc_demo ( if CONFIG_PROVISION_DEMO was Y ).

Try to add

export OS_SERVICE_ENDPOINT=http://ControllerIP:35357/v2.0 
export OS_SERVICE_TOKEN=xxxxxxxxxxx

Value xxxxxxxxxx is in top lines of /etc/keystone/keystone.conf

Sample (Keystone API v2 , adnistrative end point is selected 35357 )

export OS_USERNAME=admin
export OS_TENANT_NAME=admin
export OS_PROJECT_NAME=admin
export OS_REGION_NAME=regionOne
export OS_PASSWORD=keystonetest
export OS_AUTH_URL=http://controller:35357/v2.0/
export OS_SERVICE_ENDPOINT=http://controller:35357/v2.0 
export OS_SERVICE_TOKEN=$(cat /root/keystone_service_token)
export PS1='[\u@\h \W(keystone_admin)]\$ '
edit flag offensive delete link more

Comments

Thanks again for your help, inside Horizon I can access the network under admin and create new

Network opens the regular network setting window but when I finish entering the settings and regardless

Of what I enter I get an error and no network is not created!

Joe2006 gravatar imageJoe2006 ( 2016-08-19 04:08:03 -0600 )edit

Post

systemctl | grep neutron
ststemctl status rabbitmq-server
dbaxps gravatar imagedbaxps ( 2016-08-19 04:18:53 -0600 )edit

I forgot , check this as well
systemctl status httpd

dbaxps gravatar imagedbaxps ( 2016-08-19 04:21:27 -0600 )edit

What is the message retuned by horizon ( in red right upper corner ) ?

dbaxps gravatar imagedbaxps ( 2016-08-19 04:32:55 -0600 )edit

Now it created 2 networks but failed to create 2!

the erro is :

Error: Failed to create network

Joe2006 gravatar imageJoe2006 ( 2016-08-19 04:39:28 -0600 )edit
0

answered 2016-08-19 04:28:02 -0600

Joe2006 gravatar image

updated 2016-08-19 04:35:22 -0600

> systemctl | grep neutron

neutron-dhcp-agent.service
loaded active running OpenStack Neutron DHCP Agent
neutron-l3-agent.service
loaded active running OpenStack Neutron Layer 3 Agent
neutron-metadata-agent.service
loaded active running OpenStack Neutron Metadata Agent
neutron-metering-agent.service
loaded active running OpenStack Neutron Metering Agent
neutron-openvswitch-agent.service
loaded active running OpenStack Neutron Open vSwitch Agent
neutron-ovs-cleanup.service
loaded active exited OpenStack Neutron Open vSwitch Cleanup Utility
neutron-server.service
loaded active running OpenStack Neutron Server


systemctl status rabbitmq-server

● rabbitmq-server.service - RabbitMQ broker

Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)

Drop-In: /etc/systemd/system/rabbitmq-server.service.d └─limits.conf

Active: active (running) since Wed 2016-08-17 18:05:57 CDT; 1 day 15h ago

Main PID: 1999 (beam.smp)

Status: "Initialized"

CGroup: /system.slice/rabbitmq-server.service

       ├─1999 /usr/lib64/erlang/erts-7.3.1/bin/beam.smp -W w -A 512 -P 1048576 -K true -- -root

/usr/lib64/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa...

       ├─7217 inet_gethost 4

       └─7222 inet_gethost 4

systemctl status httpd

httpd.service - The Apache HTTP Server

Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)

Drop-In: /usr/lib/systemd/system/httpd.service.d

       └─openstack-dashboard.conf

Active: active (running) since Wed 2016-08-17 19:41:03 CDT; 1 day 13h ago

 Docs: man:httpd(8)

       man:apachectl(8)

Process: 4651 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)

Process: 4897 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py compress --force

(code=exited, status=0/SUCCESS)

Process: 4872 ExecStartPre=/usr/bin/python /usr/share/openstack-dashboard/manage.py collectstatic --noinput --

clear (code=exited, status=0/SUCCESS)

Main PID: 5047 (httpd)

Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"

CGroup: /system.slice/httpd.service

       ├─ 5047 /usr/sbin/httpd -DFOREGROUND

       ├─ 5049 /usr/sbin/httpd -DFOREGROUND

       ├─ 5050 /usr/sbin/httpd -DFOREGROUND

       ├─ 5051 /usr/sbin/httpd -DFOREGROUND

       ├─ 5052 /usr/sbin/httpd -DFOREGROUND

       ├─ 5053 /usr/sbin/httpd -DFOREGROUND

       ├─ 5054 /usr/sbin/httpd -DFOREGROUND

       ├─ 5055 /usr/sbin/httpd -DFOREGROUND

       ├─ 5056 /usr/sbin/httpd -DFOREGROUND

       ├─ 5057 /usr/sbin/httpd -DFOREGROUND

       ├─ 5058 /usr/sbin/httpd -DFOREGROUND

       ├─ 5059 /usr/sbin/httpd -DFOREGROUND

       ├─ 5060 /usr/sbin/httpd -DFOREGROUND

       ├─ 5061 /usr/sbin/httpd -DFOREGROUND

       ├─ 5062 /usr/sbin/httpd -DFOREGROUND

       ├─ 5063 /usr/sbin/httpd -DFOREGROUND

       ├─ 5064 /usr/sbin/httpd -DFOREGROUND

       ├─ 5065 /usr/sbin/httpd -DFOREGROUND

       ├─ 5066 /usr/sbin/httpd -DFOREGROUND

       ├─ 5067 /usr/sbin/httpd -DFOREGROUND

       ├─ 5068 /usr/sbin/httpd -DFOREGROUND

       ├─ 5069 /usr/sbin/httpd -DFOREGROUND

       ├─ 5070 /usr/sbin/httpd -DFOREGROUND

       ├─ 5071 /usr/sbin/httpd -DFOREGROUND

       ├─ 5072 /usr/sbin/httpd -DFOREGROUND

       ├─ 5073 /usr/sbin/httpd -DFOREGROUND

       ├─ 5074 /usr/sbin/httpd -DFOREGROUND

       ├─ 5075 /usr/sbin/httpd -DFOREGROUND

       ├─ 5076 /usr/sbin/httpd -DFOREGROUND

       ├─ 5077 /usr/sbin/httpd -DFOREGROUND

       ├─ 5078 /usr/sbin/httpd -DFOREGROUND

       ├─ 5079 /usr/sbin/httpd -DFOREGROUND

       ├─ 5080 /usr/sbin/httpd -DFOREGROUND

       ├─ 5081 /usr/sbin/httpd -DFOREGROUND

       ├─ 5082 /usr/sbin/httpd -DFOREGROUND

       ├─ 5083 /usr/sbin/httpd -DFOREGROUND

       ├─ 5084 /usr/sbin/httpd -DFOREGROUND

       ├─ 5085 /usr/sbin/httpd -DFOREGROUND

       ├─ 5086 /usr/sbin/httpd -DFOREGROUND

       ├─ 5087 /usr/sbin/httpd -DFOREGROUND

       ├─ 5155 /usr/sbin/httpd -DFOREGROUND

       ├─ 5265 /usr/sbin/httpd -DFOREGROUND
       ├─ 5445 /usr/sbin/httpd -DFOREGROUND

       ├─ 5501 /usr/sbin/httpd ...
(more)
edit flag offensive delete link more

Comments

From root prompt :
openstack-service status

dbaxps gravatar imagedbaxps ( 2016-08-19 05:02:08 -0600 )edit

@dbaxps the output of openstack-service status , everything is active as you can see:

MainPID=2739 Id=neutron-dhcp-agent.service ActiveState=active

MainPID=2737 Id=neutron-l3-agent.service ActiveState=active

MainPID=1948 Id=neutron-metadata-agent.service ActiveState=active

The rest is the same

Joe2006 gravatar imageJoe2006 ( 2016-08-19 12:41:56 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-08-19 03:08:12 -0600

Seen: 16,460 times

Last updated: Aug 19 '16