/v2.0/tenants 2The resource could not be found"

Bug #1774616 reported by serlex
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KloudBuster
Fix Released
High
Alec Hothan

Bug Description

Hi,

Running 7.0.9

trying to authenticate with:

export OS_AUTH_URL="http://XXXXXXX:5000/v3"
export OS_PROJECT_ID="e4ad6a5791614ca89afc1f91a9fba359"
export OS_PROJECT_NAME="admin"
export OS_USER_DOMAIN_NAME="Default"
export OS_PROJECT_DOMAIN_ID="default"
export OS_USERNAME="admin"
export OS_REGION_NAME="RegionOne"
export OS_INTERFACE="public"
export OS_IDENTITY_API_VERSION="3"
export OS_PROJECT_DOMAIN_NAME="default"
export OS_VOLUME_API_VERSION="2"

kloudbuster --rc dmin-openrc.sh --passwd password

NotFound: (http://XXXXXXXXX:35357/v2.0/tenants): The resource could not be found.

Or something I'm doing wrong?

Revision history for this message
serlex (serlex) wrote :

Modified

tenant.py & kloudbuster.py to suit v3

Revision history for this message
Alec Hothan (ahothan) wrote :

Normally v3 should be supported, can you post your diffs to make it work on your openstack? (you can post it here or simply send to gerrit review).
Pls also provide:
- what release of openstack you are testing with
- full log of the output including exception backtrace if available

Revision history for this message
serlex (serlex) wrote :

diff newluster.py kloudbuster.py
43c43
< from keystoneclient.v2_0 import client as keystoneclient
---
> from keystoneclient.v3 import client as keystoneclient
1056d1055
<

netenant.py tenant.py
71c71
< # domain="default",
---
> domain="default",

2018-06-01 15:06:04 INFO Using /root/.ssh/id_rsa.pub as public key for all VMs
2018-06-01 15:06:05 INFO Server tenant Nova quotas: instances=1 vcpus=1 ram=2048MB
2018-06-01 15:06:05 INFO Client tenant Nova quotas: instances=3 vcpus=3 ram=6144MB
2018-06-01 15:06:05 INFO Creating kloud: KBs
2018-06-01 15:06:05 INFO Creating kloud: KBc
2018-06-01 15:06:05 INFO Creating tenant: KBs-T0
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/kloudbuster/kloudbuster.py", line 551, in run
    self.stage()
  File "/usr/lib/python2.7/site-packages/kloudbuster/kloudbuster.py", line 589, in stage
    self.kloud.create_resources(tenant_quota['server'])
  File "/usr/lib/python2.7/site-packages/kloudbuster/kloudbuster.py", line 155, in create_resources
    tenant_instance = tenant.Tenant(tenant_name, self, tenant_quota)
  File "/usr/lib/python2.7/site-packages/kloudbuster/tenant.py", line 49, in __init__
    self.tenant_object = self._get_tenant()
  File "/usr/lib/python2.7/site-packages/kloudbuster/tenant.py", line 73, in _get_tenant
    enabled=True)
  File "/usr/lib/python2.7/site-packages/keystoneclient/v2_0/tenants.py", line 98, in create
    return self._post('/tenants', params, "tenant")
  File "/usr/lib/python2.7/site-packages/keystoneclient/base.py", line 174, in _post
    resp, body = self.client.post(url, body=body, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 310, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 463, in request
    resp = super(LegacyJsonAdapter, self).request(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/adapter.py", line 189, in request
    return self.session.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 857, in request
    raise exceptions.from_response(resp, method, url)
NotFound: (http://10.196.32.222:35357/v2.0/tenants): The resource could not be found. (HTTP 404) (Request-ID: req-ac6fd714-101c-40dc-9ecb-a039db3ba4e7)

I'm running queens. Hopefully I'm doing something wrong

Revision history for this message
Alec Hothan (ahothan) wrote :

could you please try again by removing the version:

from keystoneclient import client as keystoneclient

If it works you can submit a gerrit review if you do not mind.

Changed in kloudbuster:
importance: Undecided → High
Revision history for this message
serlex (serlex) wrote :

Seems to work without a version in

from keystoneclient import client as keystoneclient

However it still needs the change in tenants.py

if you could commit a gerrit i will review it as well

Revision history for this message
Alec Hothan (ahothan) wrote : Re: [Bug 1774616] Re: /v2.0/tenants 2The resource could not be found"

Please review
https://review.openstack.org/572054

Thanks
   Alec

On Jun 4, 2018, at 9:40 AM, serlex <<email address hidden><mailto:<email address hidden>>> wrote:

Seems to work without a version in

from keystoneclient import client as keystoneclient

However it still needs the change in tenants.py

if you could commit a gerrit i will review it as well

--
You received this bug notification because you are a member of
KloudBuster Core, which is subscribed to KloudBuster.
Matching subscriptions: Bug Mails
https://bugs.launchpad.net/bugs/1774616

Title:
 /v2.0/tenants 2The resource could not be found"

Status in KloudBuster:
 New

Bug description:
 Hi,

 Running 7.0.9

 trying to authenticate with:

 export OS_AUTH_URL="http://XXXXXXX:5000/v3<http://xxxxxxx:5000/v3>"
 export OS_PROJECT_ID="e4ad6a5791614ca89afc1f91a9fba359"
 export OS_PROJECT_NAME="admin"
 export OS_USER_DOMAIN_NAME="Default"
 export OS_PROJECT_DOMAIN_ID="default"
 export OS_USERNAME="admin"
 export OS_REGION_NAME="RegionOne"
 export OS_INTERFACE="public"
 export OS_IDENTITY_API_VERSION="3"
 export OS_PROJECT_DOMAIN_NAME="default"
 export OS_VOLUME_API_VERSION="2"

 kloudbuster --rc dmin-openrc.sh --passwd password

 NotFound: (http://XXXXXXXXX:35357/v2.0/tenants<http://xxxxxxxxx:35357/v2.0/tenants>): The resource could
 not be found.

 Or something I'm doing wrong?

To manage notifications about this bug go to:
https://bugs.launchpad.net/kloudbuster/+bug/1774616/+subscriptions

Revision history for this message
Alec Hothan (ahothan) wrote :
Changed in kloudbuster:
status: New → Fix Committed
Revision history for this message
serlex (serlex) wrote :

Need to update docker image as well?

Revision history for this message
Alec Hothan (ahothan) wrote :

new release coming soon 7.1.0

Changed in kloudbuster:
assignee: nobody → Alec Hothan (ahothan)
Revision history for this message
Alec Hothan (ahothan) wrote :

Released in 7.1.0

Changed in kloudbuster:
status: Fix Committed → Fix Released
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.