[2.6, events] duplicate events for the same action for START/FINISH

Bug #1828310 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Newell Jensen

Bug Description

Curtin and cloud-init send both START and FINISH events of the same name as we can see in the following log. However, it is really not necessary to store both, rather, we should just storage the START event, and the FAILURE event.

  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' configuring installed system
  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' running 'curtin curthooks' ***
  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' curtin command curthooks
  Wed, 08 May. 2019 23:38:10 Node installation - 'curtin' running 'curtin curthooks' ***

For eexample, instead of the above, we should see:

  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' configuring installed system
  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' curtin command curthooks
  Wed, 08 May. 2019 23:38:10 Node installation - 'curtin' running 'curtin curthooks'

In the case of failure, we should see:

  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' configuring installed system
  ***Wed, 08 May. 2019 23:38:11 Node installation - ********** Failed running 'curtin curthooks'
  Wed, 08 May. 2019 23:38:11 Node installation - 'curtin' curtin command curthooks
  Wed, 08 May. 2019 23:38:10 Node installation - 'curtin' running 'curtin curthooks'

Related branches

Changed in maas:
milestone: none → 2.6.0rc1
importance: Undecided → High
status: New → Triaged
summary: - [2.6] duplicate events for the same action for START/FINISH
+ [2.6, events] duplicate events for the same action for START/FINISH
Changed in maas:
assignee: nobody → Newell Jensen (newell-jensen)
Changed in maas:
status: Triaged → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
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.