[SRU] SwiftSignalHandle fails due to python2-3 decode error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Yoga |
Fix Released
|
High
|
Unassigned | ||
Zed |
Fix Released
|
High
|
Unassigned | ||
heat (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Unassigned | ||
Kinetic |
Fix Released
|
High
|
Unassigned |
Bug Description
Storyboard link: https:/
============
SRU TEMPLATE
============
[Impact]
The issue impact stack creation workflows where swift signals are used. There is no workaround for the issue other than not using swift signals. The fix is a conditional one-liner that performs a type-check before running the code change.
[TestCase]
1. Setting up env
1a. Deploy an environment with ceph-rgw and heat
1b. Make sure rgw-swift-
2. Reproducing the bug
2a. Create a stack using the following template:
---
heat_template_
resources:
signal:
type: OS::Heat:
properties:
handle: {get_resource: signal_handle}
timeout: 300
signal_handle:
type: OS::Heat:
instance_port:
type: OS::Neutron::Port
properties:
network: private
fixed_ips:
- subnet_id: private_subnet
the_server:
type: OS::Nova::Server
properties:
name: test
image: cirros2
flavor: m1.cirros
networks:
- port: { get_resource: instance_port }
user_
user_data:
template: |
# Simple success signal
params:
2b. Use command "openstack stack create test -t template.yaml
2c. Wait for stack creation to fail using command "openstack stack list"
2d. Once failed, display the details using command "openstack stack show test"
2e. Confirm error with the message:
| stack_status_reason | Resource CREATE failed: Error: resources.signal: Failed to parse JSON data: b'in progress'
3. Cleanup not really needed
4. Install package that contains the fixed code
5. Confirming fix: Repeat steps 2a-2e and confirm stack creation is either successful or fails with a different message for another reason
[Regression Potential]
Since there is a type-check included in the fix, the regression potential is minimal, as if the condition is not fulfilled, then the original code is run.
Related branches
- Corey Bryant: Pending requested
-
Diff: 344 lines (+322/-0)3 files modifieddebian/changelog (+6/-0)
debian/patches/lp2012073.patch (+315/-0)
debian/patches/series (+1/-0)
- Corey Bryant: Pending requested
-
Diff: 343 lines (+321/-0)3 files modifieddebian/changelog (+6/-0)
debian/patches/lp2012073.patch (+314/-0)
debian/patches/series (+1/-0)
description: | updated |
tags: | added: sts sts-sru-needed |
Changed in cloud-archive: | |
status: | New → Fix Released |
Changed in heat (Ubuntu): | |
status: | New → Fix Released |
Changed in heat (Ubuntu Jammy): | |
status: | New → Triaged |
Changed in heat (Ubuntu Kinetic): | |
status: | New → Triaged |
Changed in heat (Ubuntu Jammy): | |
importance: | Undecided → High |
Changed in heat (Ubuntu Kinetic): | |
importance: | Undecided → High |
Thanks Rodrigo. Uploaded to kinetic and jammy unapproved queues.