yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41606
[Bug 1510240] Re: When installing compute node, get an error 404 when devstack install tries to create alt_demo project.
The API for requesting token in keystone V2 and V3 are different.
Setting the OS_AUTH_TYPE=v2password will try to route the authentication
request into V2.
If you see in the logs, the request is being sent to the URL /tokens
(v2) instead of /auth/tokens (v3).
** Changed in: keystone
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1510240
Title:
When installing compute node, get an error 404 when devstack install
tries to create alt_demo project.
Status in OpenStack Identity (keystone):
Invalid
Bug description:
During the devstack installation on a compute node there is step to
create a project on the controller node. Failed command below
openstack --os-url=http://<controllerip>:5000/v3 --os-identity-api-
version=3 project create alt_demo --domain=default --or-show -f value
-c id
This steps fails with error 404.
2015-10-20 21:45:47.287 | The resource could not be found. (HTTP 404)
I entered the same command with debug option and got the following.
P.S: I did change the controller IP address and password for security
reasons.
openstack --os-url=http://<controllerip>:5000/v3 --os-identity-api-
version=3 project create alt_demo --domain=default --or-show -f value
-c id --debug START with options: ['--os-
url=http://<controllerip>:5000/v3', '--os-identity-api-version=3',
'project', 'create', 'alt_demo', '--domain=default', '--or-show',
'-f', 'value', '-c', 'id', '--debug'] options:
Namespace(access_token_endpoint='', auth_type='v2password',
auth_url='http://<controllerip>:35357', cacert='', client_id='',
client_secret='', cloud='', debug=True, default_domain='default',
deferred_help=False, domain_id='', domain_name='', endpoint='',
identity_provider='', identity_provider_url='', insecure=None,
interface='', log_file=None, os_compute_api_version='',
os_identity_api_version='3', os_image_api_version='',
os_network_api_version='', os_object_api_version='',
os_project_id=None, os_project_name=None, os_volume_api_version='',
password='<password>', project_domain_id='default',
project_domain_name='', project_id='', project_name='admin',
protocol='', region_name='', scope='', service_provider_endpoint='',
timing=False, token='', trust_id='',
url='http://<controllerip>:5000/v3', user_domain_id='default',
user_domain_name='', user_id='', username='admin', verbose_level=3,
verify=None) defaults: {'auth_type': 'password',
'compute_api_version': '2', 'key': None, 'database_api_version':
'1.0', 'api_timeout': None, 'baremetal_api_version': '1', 'cacert':
None, 'image_api_use_tasks': False, 'floating_ip_source': 'neutron',
'orchestration_api_version': '1', 'interface': None,
'network_api_version': '2', 'image_format': 'qcow2',
'object_api_version': '1', 'image_api_version': '2', 'verify': True,
'identity_api_version': '2.0', 'volume_api_version': '1', 'cert':
None, 'secgroup_source': 'neutron', 'dns_api_version': '2',
'disable_vendor_agent': {}} cloud cfg: {'auth_type': 'v2password',
'compute_api_version': '2', 'orchestration_api_version': '1',
'database_api_version': '1.0', 'interface': None,
'network_api_version': '2', 'image_format': 'qcow2',
'object_api_version': '1', 'image_api_version': '2', 'verify': True,
'timing': False, 'dns_api_version': '2', 'project_domain_id':
'default', 'project_name': 'admin', 'verbose_level': 3, 'region_name':
'', 'api_timeout': None, 'baremetal_api_version': '1', 'auth':
{'username': 'admin', 'tenant_name': 'admin', 'password':
'<password>', 'auth_url': 'http://<controllerip>:35357'},
'default_domain': 'default', 'image_api_use_tasks': False,
'floating_ip_source': 'neutron', 'key': None, 'cacert': None,
'user_domain_id': 'default', 'deferred_help': False,
'identity_api_version': '3', 'volume_api_version': '1', 'url':
'http://<controllerip>:5000/v3', 'cert': None, 'secgroup_source':
'neutron', 'debug': True, '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 1, cmd group openstack.volume.v1
identity API version 3, cmd group openstack.identity.v3 object_store
API version 1, cmd group openstack.object_store.v1 command: project
create -> openstackclient.identity.v3.project.CreateProject Auth
plugin v2password selected auth_type: v2password Using auth plugin:
v2password Using parameters {'username': 'admin', 'tenant_name':
'admin', 'password': '<password>', 'auth_url':
'http://<controllerip>:35357'} Get auth_ref Making authentication
request to http://<controllerip>:35357/tokens Starting new HTTP
connection (1): <controllerip> "POST /tokens HTTP/1.1" 404 93 Request
returned failure status: 404 The resource could not be found. (HTTP
404) Traceback (most recent call last): File "/usr/local/lib/python2.7
/dist-packages/cliff/app.py", line 367, in run_subcommand
self.prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-
packages/openstackclient/shell.py", line 344, in
prepare_to_run_command self.client_manager.auth_ref File
"/usr/local/lib/python2.7/dist-
packages/openstackclient/common/clientmanager.py", line 189, in
auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File
"/usr/local/lib/python2.7/dist-
packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
authenticated=False, log=False) File "/usr/local/lib/python2.7/dist-
packages/keystoneclient/session.py", line 502, in post return
self.request(url, 'POST', *kwargs) File "/usr/local/lib/python2.7
/dist-packages/openstackclient/common/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, *kwargs) File
"/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line
337, in inner return func(args, *kwargs) File
"/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py",
line 402, in request raise exceptions.from_response(resp, method, url)
NotFound: The resource could not be found. (HTTP 404) clean_up
CreateProject: The resource could not be found. (HTTP 404) Traceback
(most recent call last): File "/usr/local/lib/python2.7/dist-
packages/openstackclient/shell.py", line 112, in run ret_val =
super(OpenStackShell, self).run(argv) File "/usr/local/lib/python2.7
/dist-packages/cliff/app.py", line 255, in run result =
self.run_subcommand(remainder) File "/usr/local/lib/python2.7/dist-
packages/cliff/app.py", line 367, in run_subcommand
self.prepare_to_run_command(cmd) File "/usr/local/lib/python2.7/dist-
packages/openstackclient/shell.py", line 344, in
prepare_to_run_command self.client_manager.auth_ref File
"/usr/local/lib/python2.7/dist-
packages/openstackclient/common/clientmanager.py", line 189, in
auth_ref self._auth_ref = self.auth.get_auth_ref(self.session) File
"/usr/local/lib/python2.7/dist-
packages/keystoneclient/auth/identity/v2.py", line 88, in get_auth_ref
authenticated=False, log=False) File "/usr/local/lib/python2.7/dist-
packages/keystoneclient/session.py", line 502, in post return
self.request(url, 'POST', *kwargs) File "/usr/local/lib/python2.7
/dist-packages/openstackclient/common/session.py", line 40, in request
resp = super(TimingSession, self).request(url, method, *kwargs) File
"/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py", line
337, in inner return func(args, *kwargs) File
"/usr/local/lib/python2.7/dist-packages/keystoneclient/session.py",
line 402, in request raise exceptions.from_response(resp, method, url)
NotFound: The resource could not be found. (HTTP 404)
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1510240/+subscriptions
References