INSTANCE_TYPE is set to regular during the runtime of the post-stop hook of an addon

Bug #2049734 reported by Gary.Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Anbox Cloud
Fix Released
High
Gary.Wang

Bug Description

To reproduce this,

1. Create an addon that includes the post-stop hook with the following content
```
#!/bin/bash

echo "Current instance type: $INSTANCE_TYPE"
```

2. Bootstrap an application,
 amc app create <app_dir>

3. Check the system log via
 amc logs -f <base_container_id>

Actual result:
  The system log prints out "Current instance type: regular."

Expected result:
  The system log should print out "Current instance type: base."

This is a bug introduced since 1.20.0 release

Simon Fels (morphis)
Changed in anbox-cloud:
status: New → Fix Committed
assignee: nobody → Gary.Wang (gary-wzl77)
Gary.Wang (gary-wzl77)
Changed in anbox-cloud:
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.