HaoWang9909 opened a new issue, #5525: URL: https://github.com/apache/openwhisk/issues/5525
<!-- 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: I am trying to make changes to the FunctionPullingContainerProxy.scala file in OpenWhisk’s invoker component. Specifically, I updated a log message in the Running state from "No more run activation ..." to "No more run Activation --testing-- is coming in state ...". However, after rebuilding the invoker image and redeploying OpenWhisk, the changes are not reflected in the logs. ## Environment details: * ubuntu 22.04 ## Steps to reproduce the issue: 1. Modify the FunctionPullingContainerProxy.scala file in core/containerpool/v2: ```scala logging.info( this, s"No more run Activation --testing-- is coming in state: $stateName, action: ${data.action}, container: ${data.container.containerId}") ``` 2. Rebuild the invoker Docker image: ```shell ./gradlew :core:invoker:clean :core:invoker:distDocker ``` 3. Redeploy OpenWhisk using Ansible: ```shell cd ansible sudo ansible-playbook -i environments/local openwhisk.yml -e mode=clean sudo ansible-playbook -i environments/local openwhisk.yml ``` 4. Check the logs of the invoker: ```shell cat /var/tmp/wsklogs/invoker0/invoker0_logs.log ``` ## Expected Behavior ``` The log message should reflect the updated text: "No more run Activation --testing-- is coming in state ...". ``` ## Observed Behavior ``` [2024-12-30T02:16:47.868Z] [INFO] [#tid_sid_unknown] [FunctionPullingContainerProxy] No more run activation is coming in state: Running, action: ExecutableWhiskAction/guest/[email protected], container: ContainerId(8ae3468b23719f4ab251254997b1487fcc49171ce1a50596da75895d41093a2a) ``` ## Additional information you deem important: * Verified that the updated code is correctly written in the source file. * Rebuilt the invoker Docker image using :core:invoker:clean and :core:invoker:distDocker. * Observed the Docker image timestamp, and it reflects the recent build. * Also tried a more complex way to rebuild, but still not working. ```shell export ENVIRONMENT=local sudo ansible-playbook -i environments/$ENVIRONMENT openwhisk.yml -e mode=clean sudo ansible-playbook -i environments/$ENVIRONMENT setup.yml sudo ansible-playbook -i environments/$ENVIRONMENT prereq.yml sudo systemctl stop couchdb cd .. ./gradlew clean export ENVIRONMENT=local ./gradlew distDocker cd ansible sudo ansible-playbook -i environments/$ENVIRONMENT couchdb.yml sudo ansible-playbook -i environments/$ENVIRONMENT initdb.yml sudo ansible-playbook -i environments/$ENVIRONMENT wipe.yml sudo ansible-playbook -i environments/$ENVIRONMENT elasticsearch.yml sudo ansible-playbook -i environments/$ENVIRONMENT openwhisk.yml sudo ansible-playbook -i environments/$ENVIRONMENT postdeploy.yml sudo ansible-playbook -i environments/$ENVIRONMENT apigateway.yml sudo ansible-playbook -i environments/$ENVIRONMENT routemgmt.yml ``` -- 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]
