grenade -t failed when running resource phase verify

Bug #1488008 reported by Yongfeng Du
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grenade
Fix Released
Undecided
Yongfeng Du

Bug Description

I'm running 2 phase grenade,
first run grenade -b, when that completed, run grenade -t to verify the upgrade.
Following error occurs when doing grenade -t:

2015-08-24 08:41:34.100 | #********************************************
2015-08-24 08:41:34.100 | # Running resource phase verify
2015-08-24 08:41:34.100 | #********************************************
2015-08-24 08:41:34.100 |
2015-08-24 08:41:35.019 | + KEYSTONE_TEST_USER=keystone_check
2015-08-24 08:41:35.019 | + KEYSTONE_TEST_GROUP=keystone_check
2015-08-24 08:41:35.020 | + KEYSTONE_TEST_PASS=pass
2015-08-24 08:41:35.020 | + case $1 in
2015-08-24 08:41:35.020 | + verify
2015-08-24 08:41:35.020 | ++ resource_get keystone user_id
2015-08-24 08:41:35.021 | ++ local project=keystone
2015-08-24 08:41:35.021 | ++ local key=user_id
2015-08-24 08:41:35.022 | +++ iniget /opt/stack/save/grenade_db.ini keystone user_id
2015-08-24 08:41:35.035 | ++ local value=
2015-08-24 08:41:35.036 | ++ echo
2015-08-24 08:41:35.036 | + local user_id=
2015-08-24 08:41:35.036 | + openstack user show
2015-08-24 08:41:36.105 | usage: openstack user show [-h] [-f {html,json,shell,table,value,yaml}]
2015-08-24 08:41:36.106 | [-c COLUMN] [--max-width <integer>]
2015-08-24 08:41:36.106 | [--prefix PREFIX]
2015-08-24 08:41:36.106 | <user>
2015-08-24 08:41:36.107 | openstack user show: error: too few arguments
2015-08-24 08:41:36.155 | + exit_trap
2015-08-24 08:41:36.156 | + local r=2
2015-08-24 08:41:36.156 | 1 verify /home/yongfeng/work/grenade-latest/projects/10_keystone/resources.sh
2015-08-24 08:41:36.156 | 69 main /home/yongfeng/work/grenade-latest/projects/10_keystone/resources.sh
2015-08-24 08:41:36.156 | Exit code: 2
2015-08-24 08:41:39.086 | [Call Trace]
2015-08-24 08:41:39.086 | ./grenade.sh:309:resources
2015-08-24 08:41:39.086 | /home/yongfeng/work/grenade-latest/inc/plugin:104:die
2015-08-24 08:41:39.092 | [ERROR] /home/yongfeng/work/grenade-latest/inc/plugin:104 Failed to run /home/yongfeng/work/grenade-latest/projects/10_keystone/resources.sh verify
2015-08-24 08:41:40.096 | 1 die /opt/stack/liberty/devstack/functions-common
2015-08-24 08:41:40.096 | 104 resources /home/yongfeng/work/grenade-latest/inc/plugin
2015-08-24 08:41:40.096 | 309 main ./grenade.sh
2015-08-24 08:41:40.096 | Exit code: 2

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to grenade (master)

Fix proposed to branch: master
Review: https://review.openstack.org/216552

Changed in grenade:
assignee: nobody → Yongfeng Du (dolpherdu)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to grenade (master)

Reviewed: https://review.openstack.org/216552
Committed: https://git.openstack.org/cgit/openstack-dev/grenade/commit/?id=c215ce2d901e2119e1cde12bd7cf428b7dd68f4b
Submitter: Jenkins
Branch: master

commit c215ce2d901e2119e1cde12bd7cf428b7dd68f4b
Author: Yongfeng Du <email address hidden>
Date: Tue Aug 25 14:24:35 2015 +0800

    Move init_grenade_db to base release installation

    init_grenade_db will clean the db file. If we are running grenade -t
    we expect the db have resources saved at base run. so move it down to
    run only for base installation.

    Change-Id: I39fcee54db08c163352d314d68e014191a43d07c
    Closes-bug: #1488008

Changed in grenade:
status: In Progress → Fix Committed
Sean Dague (sdague)
Changed in grenade:
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.