Bug 1462777 - Plan export fails
Summary: Plan export fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-common
Version: 10.0 (Newton)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Upstream M2
: 12.0 (Pike)
Assignee: Toure Dunnon
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-19 13:58 UTC by Jason E. Rist
Modified: 2018-02-05 19:07 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-common-7.1.1-0.20170616124957.93d87e0.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-13 21:32:50 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1698811 0 None None None 2017-06-19 13:58:44 UTC
OpenStack gerrit 475383 0 None MERGED Fix plan export 2020-09-26 08:25:11 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Jason E. Rist 2017-06-19 13:58:40 UTC
Cloned from launchpad bug 1698811.

Description:

The plan export command fails both from command line and GUI.

The reason seems to be a missing argument to the get_object_client() method:
https://github.com/openstack/tripleo-common/blob/master/tripleo_common/actions/plan.py#L258

Specification URL (additional information):

https://bugs.launchpad.net/tripleo/+bug/1698811

Comment 1 Jason E. Rist 2017-06-19 14:23:38 UTC
Fix upstream: https://review.openstack.org/#/c/475383/

Comment 2 Jason E. Rist 2017-06-19 21:41:08 UTC
Merged

Comment 6 Alexander Chuzhoy 2017-06-21 14:15:03 UTC
openstack-tripleo-common-7.1.1-0.20170612015630.414f94b.el7ost.noarch

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan list
+-----------+
| Plan Name |
+-----------+
| overcloud |
+-----------+
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan  export overcloud
Exporting plan overcloud...
Started Mistral Workflow tripleo.plan_management.v1.export_deployment_plan. Execution ID: 66a19a9b-f14d-482f-b6ce-e6ad950c6622
{u'body': {u'exception': u'(pymysql.err.OperationalError) (2006, "MySQL server has gone away (error(32, \'Broken pipe\'))") [SQL: u\'INSERT INTO `Queues` (project, name, metadata) VALUES (%(project)s, %(name)s, %(metadata)s)\'] [parameters: {\'project\': u\'ee49e60494e54bbea47685ee2d7da186\', \'name\': u\'35b24c00-fd03-41a5-a852-8bdefd280108\', \'metadata\': bytearray(b\'{}\')}]', u'error': u'Unexpected error.'}, u'headers': {u'status': 500}, u'request': {u'action': u'queue_create', u'body': {u'queue_name': u'35b24c00-fd03-41a5-a852-8bdefd280108'}, u'api': u'v2', u'headers': {u'Client-ID': u'7a4a42a9-9e54-4add-a0a1-34192aec3ad4', u'X-Project-ID': u'ee49e60494e54bbea47685ee2d7da186'}}}
(undercloud) [stack@undercloud-0 ~]$ echo $?
1
(undercloud) [stack@undercloud-0 ~]$

Comment 7 Alexander Chuzhoy 2017-06-21 14:29:31 UTC
The bits didn't land yet

Comment 12 Alexander Chuzhoy 2017-06-22 20:40:16 UTC
FailedQA

Environment:
openstack-tripleo-common-7.1.1-0.20170616124957.93d87e0.el7ost.noarch

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan list
+-----------+
| Plan Name |
+-----------+
| overcloud |
+-----------+
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan  export overcloud
Exporting plan overcloud...
Started Mistral Workflow tripleo.plan_management.v1.export_deployment_plan. Execution ID: 610959d6-3c96-4be4-bf3f-902e977a70ce


Timed out waiting for messages from Execution (ID: 610959d6-3c96-4be4-bf3f-902e977a70ce, State: ERROR). The Workflow errored and no messages were received.

(undercloud) [stack@undercloud-0 ~]$

Comment 13 Jason E. Rist 2017-06-27 13:32:59 UTC
I just tried this and it works fine for me using
openstack-tripleo-common-7.1.1-0.20170623115707.4ba7d56.el7.centos.noarch

Comment 14 Thierry Vignaud 2017-06-29 09:09:01 UTC
I confirm we've the change

Comment 16 Alexander Chuzhoy 2017-06-29 13:23:05 UTC
Verified:
Environment:
openstack-tripleo-common-7.1.1-0.20170623115707.4ba7d56.el7ost.noarch

(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan list
+-----------+
| Plan Name |
+-----------+
| overcloud |
+-----------+
(undercloud) [stack@undercloud-0 ~]$ openstack overcloud plan export overcloud
Exporting plan overcloud...
Started Mistral Workflow tripleo.plan_management.v1.export_deployment_plan. Execution ID: 9cc0a5a5-11ad-4da6-9c49-16f79f9b1803
http://192.168.24.1:8080/v1/AUTH_d40585db50b24af0a03e298810d4ff29/plan-exports/overcloud.tar.gz?temp_url_sig=3c0cc0a37bd49aaa5c42865184eaed039e698af9&temp_url_expires=1498744970
(undercloud) [stack@undercloud-0 ~]$ echo $?
0
(undercloud) [stack@undercloud-0 ~]$ ls -l|grep overcloud.tar

-rw-rw-r--.  1 stack stack     390948 Jun 29 09:02 overcloud.tar.gz

Comment 19 errata-xmlrpc 2017-12-13 21:32:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462


Note You need to log in before you can comment on or make changes to this bug.