GutoVeronezi opened a new pull request, #10987:
URL: https://github.com/apache/cloudstack/pull/10987

   ### Description
   
   While creating VMs, ACS configures HTTPd on the VR to serve metadata files 
to be consumed by CloudInit. However, the file 
`/var/www/html/meta-data/<vm-ip>/metadata` is appended with the same content 
every time a VM is started through CloudStack, causing the file to have 
replicated lines; as VMs are created/started, this file grows _ad infinitum_, 
consuming the VR's storage, and making Apache HTTPd consume more memory than it 
should. 
   
   This PR intends to fix this metadata replication on the VRs.
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [X] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] build/CI
   - [ ] test (unit or integration test code)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [X] Minor
   - [ ] Trivial
   
   ### Screenshots (if appropriate):
   
   ### How Has This Been Tested?
   
   Without the changes:
   1. I created a network;
   2. I created a VM;
   3. I checked the VM's metadata file in the VR, and observed that it had only 
a single entry for each attribute;
   4. I checked the metadata in the VM;
   5. I stopped the VM;
   6. I started the VM again;
   7. I checked that the VM's metadata file in the VR had duplicated entries 
for every attribute;
   8. I checked the metadata in the VM;
   
   
   With the changes:
   1. I created a network;
   2. I created a VM;
   3. I checked the VM's metadata file in the VR, and observed that it had only 
a single entry for each attribute;
   4. I checked the metadata in the VM;
   5. I stopped the VM;
   6. I started the VM again;
   7. I checked the VM's metadata file in the VR, and observed that it had only 
a single entry for each attribute;
   8. I checked the metadata in the VM;
   


-- 
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: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to