HaoWang9909 opened a new issue, #5524: URL: https://github.com/apache/openwhisk/issues/5524
<!-- We use the issue tracker for bugs and feature requests. For general questions and discussion please use https://openwhisk.apache.org/slack.html or https://openwhisk.apache.org/community.html instead. Do NOT share passwords, credentials or other confidential information. Before creating a new issue, please check if there is one already open that fits the defect you are reporting. If you open an issue and realize later it is a duplicate of a pre-existing open issue, please close yours and add a comment to the other. Issues can be created for either defects or enhancement requests. If you are a committer than please add the labels "bug" or "feature". If you are not a committer please make clear in the comments which one it is, so that committers can add these labels later. If you are reporting a defect, please edit the issue description to include the information shown below. If you are reporting an enhancement request, please include information on what you are trying to achieve and why that enhancement would help you. For more information about reporting issues, see https://github.com/apache/openwhisk/blob/master/CONTRIBUTING.md#raising-issues Use the commands below to provide key information from your environment: You do not have to include this information if this is a feature request. --> ## Description When using OpenWhisk, there's an inconsistency between the activation records that are visible via the `wsk` CLI and what's stored in CouchDB: 1. Activations are successfully created and can be retrieved using `wsk activation list` and `wsk activation get` 2. However, these same activations are not visible in the CouchDB database (`whisk_local_activations`) ## Environment details: * Ubuntu22.04 ## Steps to reproduce the issue: 1. Create and invoke an action: ```bash wsk action invoke hello -i # Response: ok: invoked /_/hello with id 0d8157ff2e1d4aca8157ff2e1d3acac3 ``` 2. Verify activation exists via CLI: ```bash wsk activation get 0d8157ff2e1d4aca8157ff2e1d3acac3 -i # Returns full activation record successfully ``` 3. Check CouchDB: ```bash curl -u admin:admin "http://host:5984/whisk_local_activations/_all_docs?include_docs=true" # Only shows design documents, no activation records ``` ### Expected Behavior - Activation records should be visible in CouchDB database - CouchDB should contain the same activation records that are accessible via the CLI ### Actual Behavior - CouchDB's `whisk_local_activations` database only contains design documents - No actual activation records are stored in CouchDB - CLI can still access activation records suggesting they are stored elsewhere ```shell wsk activation get 0d8157ff2e1d4aca8157ff2e1d3acac3 -i ok: got activation 0d8157ff2e1d4aca8157ff2e1d3acac3 { "namespace": "guest", "name": "hello", "version": "0.0.1", "subject": "guest", "activationId": "0d8157ff2e1d4aca8157ff2e1d3acac3", "start": 1735224243711, "end": 1735224243745, "duration": 34, "statusCode": 0, "response": { "status": "success", "statusCode": 0, "success": true, "result": { "message": "Hello, World!" } }, "logs": [], "annotations": [ { "key": "path", "value": "guest/hello" }, { "key": "waitTime", "value": 186 }, { "key": "kind", "value": "nodejs:20" }, { "key": "timeout", "value": false }, { "key": "limits", "value": { "concurrency": 1, "logs": 10, "memory": 256, "timeout": 60000 } }, { "key": "initTime", "value": 28 } ], "publish": false } ``` ```bash curl -u admin:admin http://<myserver>/whisk_local_activations/_all_docs {"total_rows":5,"offset":0,"rows":[ {"id":"_design/activations","key":"_design/activations","value":{"rev":"1-a22f6b2a273342245b46faf120817020"}}, {"id":"_design/logCleanup","key":"_design/logCleanup","value":{"rev":"1-837452686d10b3720130c7e9f6bab5cf"}}, {"id":"_design/snapshotFilters","key":"_design/snapshotFilters","value":{"rev":"1-9537dd1012a329b18eeee518d0e007d2"}}, {"id":"_design/whisks-filters.v2.1.1","key":"_design/whisks-filters.v2.1.1","value":{"rev":"1-8fd2b6e86591117829120f31e60d88df"}}, {"id":"_design/whisks.v2.1.0","key":"_design/whisks.v2.1.0","value":{"rev":"1-30dae81caaaebad66e4a2c5f667a33a6"}} ]} ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
