Error when using Tuskar to redeploy the overcloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| python-tuskarclient |
Medium
|
Ana Krivokapić | ||
| tuskar |
Medium
|
Unassigned |
Bug Description
I used Tuskar (installed on Fedora 20) to deploy the overcloud. I then deleted that original overcloud and removed the baremetal nodes. Afterwards, I used Tuskar to redploy the same overcloud. 'tuskar overcloud-create' returns warnings and errors, yet the overcloud continues to deploy. See commands and output copied below:
tuskar overcloud-create overcloud --description 'My overcloud' --attribute AdminToken=<> --attribute AdminPassword=<> --attribute CinderPassword=<> --attribute GlancePassword=<> --attribute HeatPasswor<> --attribute NeutronPassword=<> --attribute NovaPassword=<> --attribute
NeutronPublicIn
SwiftPassword=<> --attribute SwiftHashSuffix=<> --attribute
NovaComputeLibv
'GlanceLogFile=
NeutronDnsmasq
--role-count 1=1 --role-count 2=1 --role-count 3=1 --role-count 4=1
WARNING:
ERROR:tuskarcli
Traceback (most recent call last):
File "/usr/lib/
TuskarShell
File "/usr/lib/
args.
File "/usr/lib/
overcloud = tuskar.
File "/usr/lib/
return self._create(
File "/usr/lib/
resp, body = self.api.
File "/usr/lib/
resp, body_iter = self._http_
File "/usr/lib/
raise exc.from_
File "/usr/lib/
"request_id": response.
AttributeError: HTTPResponse instance has no attribute 'headers'
heat stack-list
+------
| id | stack_name | stack_status | creation_time |
+------
| 47cd7e84-
+------
Tuskar version installed:
rpm -qa |grep tuskar
python-
openstack-
openstack-
Changed in tuskar: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Viktor Serhieiev (vsergeyev) wrote : | #1 |
Changed in python-tuskarclient: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Dougal Matthews (d0ugal) wrote : | #2 |
Interesting. It looks like the an error was returned by the API but the tuskarclient's error handling failed and thus has hidden the original error.
Ryan Brady (rbrady) wrote : | #3 |
How did you delete the overcloud?
Ana Krivokapić (akrivoka) wrote : | #4 |
I'm seeing the same traceback when trying to re-deploy using Tuskar-UI.
What I did:
- installed devtest
- ssh'ed into undercloud and heat stack-delete overcloud
- tryed to re-deploy overcloud using the UI -> error with the above traceback
Fix proposed to branch: master
Review: https:/
Changed in python-tuskarclient: | |
assignee: | nobody → Ana Krivokapić (akrivoka) |
status: | Triaged → In Progress |
Reviewed: https:/
Committed: https:/
Submitter: Jenkins
Branch: master
commit d1384e661b95182
Author: Ana Krivokapic <email address hidden>
Date: Thu Jun 26 14:48:30 2014 +0200
Pass the requests.Response object to from_response()
from_response() method expects a requests.Response object, so we need
to convert the existing httplib.
Change-Id: I15da7fcea7e909
Closes-bug: #1313731
Changed in python-tuskarclient: | |
status: | In Progress → Fix Committed |
Changed in python-tuskarclient: | |
status: | Fix Committed → Fix Released |
Jay Dobies (jdob) wrote : | #7 |
In Juno, Tuskar is no longer delegating calls to Heat. The caller should go to Heat directly with the templates provided by Tuskar. Closing this out as this workflow no longer exists.
Changed in tuskar: | |
status: | Triaged → Won't Fix |
Peeyush Gupta (peeygupt) wrote : | #8 |
I added the fix, but I am still getting the same error when trying to add a new compute node.
This issue also related to tuskarclient, because (as we can see in traceback) error from pythonclient hides the original exception.
Seems to be, that this error in pythonclient is appeared after the patch https:/ /review. openstack. org/#/c/ 87315/ (Revert "Use HTTPClient from common apiclient code") was merged. So now tuskarclient use `httplib` library (instead or `request`) for http request. But from_response() method from tuskarclient/ openstack/ common/ apiclient/ exceptions. py file works correctly, when we put there response from `requests` library.