Ask Your Question

very slow cloud-config runcmd execution [closed]

asked 2017-05-22 06:58:05 -0500

AB239 gravatar image


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:

  list: |                                                    
  expire: False                                              
apt_upgrade: false                                           
# 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.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by AB239
close date 2018-03-16 02:36:23.187014


Has anyone experienced similar problem?

AB239 gravatar imageAB239 ( 2017-07-04 01:32:22 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2018-03-16 02:36:08 -0500

AB239 gravatar image

It was happening due to high DISK IO consumption on my HOSt machine which slowed down disk operations on all the VMs as well.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-05-22 06:58:05 -0500

Seen: 283 times

Last updated: Mar 16 '18