instack-deploy-overcloud-tuskarcli fails when instack-prepare-for-overcloud is not previously run
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tuskar |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When instack-
$ instack-
+ OS_AUTH_URL=http://
+ '[' -z http://
+ export TRIPLEO_ROOT=.
+ TRIPLEO_ROOT=.
+ CPU=1
+ MEM=2048
+ DISK=30
+ ARCH=amd64
+ MACS='52:
+ PM_IPS=
+ PM_USERS=
+ PM_PASSWORDS=
+ export USE_IRONIC=0
+ USE_IRONIC=0
+ JSONFILE=nodes.json
+ rm -f nodes.json
+ echo '{}'
++ jq '.nodes=[]' nodes.json
+ JSON='{
"nodes": []
}'
+ count=0
+ for mac in '$MACS'
+ '[' -n '' -a -n '' -a -n '' ']'
++ jq '.nodes=(.nodes + [{mac:[
+ JSON='{
"nodes": [
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
}
]
}'
+ count=1
+ for mac in '$MACS'
+ '[' -n '' -a -n '' -a -n '' ']'
++ jq '.nodes=(.nodes + [{mac:[
+ JSON='{
"nodes": [
{
"mac": [
],
"cpu": "1",
"memory": "2048",
"disk": "30",
"arch": "amd64",
"pm_user": "stack",
"pm_addr": "ssh_host",
"
},
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
}
]
}'
+ count=2
+ for mac in '$MACS'
+ '[' -n '' -a -n '' -a -n '' ']'
++ jq '.nodes=(.nodes + [{mac:[
+ JSON='{
"nodes": [
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
},
{
"mac": [
],
"cpu": "1",
"memory": "2048",
"disk": "30",
"arch": "amd64",
"pm_user": "stack",
"pm_addr": "ssh_host",
"
},
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
}
]
}'
+ count=3
+ for mac in '$MACS'
+ '[' -n '' -a -n '' -a -n '' ']'
++ jq '.nodes=(.nodes + [{mac:[
+ JSON='{
"nodes": [
{
"mac": [
],
"cpu": "1",
"memory": "2048",
"disk": "30",
"arch": "amd64",
"pm_user": "stack",
"pm_addr": "ssh_host",
"
},
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
},
{
"mac": [
],
"cpu": "1",
"memory": "2048",
"disk": "30",
"arch": "amd64",
"pm_user": "stack",
"pm_addr": "ssh_host",
"
},
{
"
"pm_addr": "ssh_host",
"pm_user": "stack",
"arch": "amd64",
"disk": "30",
"memory": "2048",
"cpu": "1",
"mac": [
]
}
]
}'
+ count=4
+ python -mjson.tool
+ echo '{' '"nodes":' '[' '{' '"mac":' '[' '"52:54:
{
"nodes": [
{
"arch": "amd64",
"cpu": "1",
"disk": "30",
"mac": [
],
},
{
"arch": "amd64",
"cpu": "1",
"disk": "30",
"mac": [
],
},
{
"arch": "amd64",
"cpu": "1",
"disk": "30",
"mac": [
],
},
{
"arch": "amd64",
"cpu": "1",
"disk": "30",
"mac": [
],
}
]
}
+ echo '{' '"nodes":' '[' '{' '"mac":' '[' '"52:54:
+ for i in ramdisk kernel
+ glance image-show bm-deploy-ramdisk
No image with a name or ID of 'bm-deploy-ramdisk' exists.
+ for i in ramdisk kernel
+ glance image-show bm-deploy-kernel
No image with a name or ID of 'bm-deploy-kernel' exists.
+ tripleo setup-baremetal --service-host undercloud --nodes /dev/fd/63
++ jq .nodes nodes.json
Fri Jun 13 05:10:49 EDT 2014
Nodes will be available in 60 seconds from now.
+------
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+------
| 6b139951-
+------
+ sleep 60
+ tripleo setup-overcloud
+ source tripleo-
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
++ OVERCLOUD_
+ NeutronPublicIn
+ OVERCLOUD_
+ export TUSKAR_URL=http://
+ TUSKAR_URL=http://
++ tr -d ' '
++ cut -d '|' -f3
++ grep '^| id '
++ nova flavor-show baremetal
+ flavor_
++ tr -d ' '
++ cut -d '|' -f2
++ grep overcloud-control
++ tuskar overcloud-role-list
+ controller_
++ tr -d ' '
++ cut -d '|' -f2
++ grep overcloud-compute
++ tuskar overcloud-role-list
+ compute_role_id=2
++ tr -d ' '
++ cut -d '|' -f2
++ grep overcloud-
++ tuskar overcloud-role-list
+ blockstorage_
++ tr -d ' '
++ cut -d '|' -f2
++ grep overcloud-
++ tuskar overcloud-role-list
+ swiftstorage_
+ for id in '$controller_
+ tuskar overcloud-
+------
| Property | Value |
+------
| description | Controller Node |
| flavor_id | 6b139951-
| id | 1 |
| image_name | overcloud-control |
| name | controller |
+------
+ for id in '$controller_
+ tuskar overcloud-
+------
| Property | Value |
+------
| description | Compute Nodes |
| flavor_id | 6b139951-
| id | 2 |
| image_name | overcloud-compute |
| name | compute |
+------
+ for id in '$controller_
+ tuskar overcloud-
+------
| Property | Value |
+------
| description | Block Storage Nodes |
| flavor_id | 6b139951-
| id | 3 |
| image_name | overcloud-
| name | blockstorage |
+------
+ COMPUTESCALE=1
+ BLOCKSTORAGESCALE=1
+ SWIFTSTORAGESCALE=1
+ tuskar overcloud-create overcloud --description 'My overcloud' --attribute AdminToken=
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'
This bug should be logged against RDO not tuskar: /bugzilla. redhat. com/enter_ bug.cgi? product= RDO
https:/
I'll raise a new BZ once the necessary components have been created