← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1564613] [NEW] Update stack doesn't pause with pre-update hook set

 

Public bug reported:

Steps to reproduce:
1. Go to Project -> Orchestration panel
2. Click launch a stack
3. Enter the following in template source
heat_template_version: 2015-04-30
resources:
  test_resource_pause:
     type: OS::Heat::TestResource
     properties:
       action_wait_secs: {"delete": 5, "create": 5, "update": 5}
       client_name: openstack
4. Enter the following in environment source
resource_registry:
  resources:
     test_resource_pause:
        type: OS::Heat::TestResource
        hooks: pre-update
5. Enter other stack information
6. After the stack is created, click on update stack template 
7. Enter the template and environment source as in step 3 and 4 and click update stack
8. The stack was updated successfully right away

Expect the update action will stay in progress until the pre-update hook
is cleared.

This issue appears to be a heat defect but it's actually caused by
horizon not passing the environment data to the heat api.

** Affects: horizon
     Importance: Undecided
     Assignee: Ying Zuo (yingzuo)
         Status: In Progress

** Changed in: horizon
     Assignee: (unassigned) => Ying Zuo (yingzuo)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1564613

Title:
  Update stack doesn't pause with pre-update hook set

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  Steps to reproduce:
  1. Go to Project -> Orchestration panel
  2. Click launch a stack
  3. Enter the following in template source
  heat_template_version: 2015-04-30
  resources:
    test_resource_pause:
       type: OS::Heat::TestResource
       properties:
         action_wait_secs: {"delete": 5, "create": 5, "update": 5}
         client_name: openstack
  4. Enter the following in environment source
  resource_registry:
    resources:
       test_resource_pause:
          type: OS::Heat::TestResource
          hooks: pre-update
  5. Enter other stack information
  6. After the stack is created, click on update stack template 
  7. Enter the template and environment source as in step 3 and 4 and click update stack
  8. The stack was updated successfully right away

  Expect the update action will stay in progress until the pre-update
  hook is cleared.

  This issue appears to be a heat defect but it's actually caused by
  horizon not passing the environment data to the heat api.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1564613/+subscriptions


Follow ups