very slow cloud-config runcmd execution [closed]
Hello,
I have a working cloud-config but it is taking a lot of time to execute. Sometimes a simple execution of apt-get install <package> is taking 7-8 minutes even when I am installing it from a local repository server on LAN. The problem is not with fetching the files, but during installation it takes a long time.
Environment details: 1) Openstack: Newton with neutron 2) Both Compute hosts have 96 GB RAM 3) Network is 1Gbps supported.
Sample cloud-config goes like this:
#cloud-config
chpasswd:
list: |
root:passwd
expire: False
apt_upgrade: false
runcmd:
# Post Installation Commands
- export DEBIAN_FRONTEND=noninteractive
- apt-get update
- apt-get install -y --force-yes --allow-unauthenticated gcc
Also I have checked during the execution, both CPU and RAM are show nothing terribly wrong. CPU just shows 40% occupancy and RAM consumption is less than 30%
Has anyone faced similar issue? What is the solution for this?
Please let me know if you need more information about this.
Has anyone experienced similar problem?