Error when using Tuskar to redeploy the overcloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-tuskarclient |
Fix Released
|
Medium
|
Ana Krivokapić | ||
tuskar |
Won't Fix
|
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 |
Changed in python-tuskarclient: | |
status: | Fix Committed → Fix Released |
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.