Diagnosed which test it was with:
$ git clone https://git.launchpad.net/cloud-init $ cd cloud-init $ nosetests --with-timer --timer-ok 1 --timer-warning 5
This results in a sorted listed list of all tests with timing in green if less than 1 second, yellow if between 1 and 5 seconds, and red if greater than 5 seconds. All tests were less than one second, except these:
[success] 19.54% tests.unittests.test_datasource.test_ec2.TestEc2.test_unknown_platform_with_strict_false: 127.3695s [success] 19.54% tests.unittests.test_datasource.test_ec2.TestEc2.test_valid_platform_with_strict_true: 127.3614s [success] 19.54% tests.unittests.test_datasource.test_ec2.TestEc2.test_valid_platform_with_strict_false: 127.3573s [success] 19.54% tests.unittests.test_datasource.test_ec2.TestEc2.test_network_config_property_returns_version_1_network_data: 127.3403s [success] 19.54% tests.unittests.test_datasource.test_ec2.TestEc2.test_ec2_local_performs_dhcp_on_non_bsd: 127.3302s [success] 0.78% tests.unittests.test_datasource.test_openstack.TestOpenStackDataSource.test_datasource: 5.0584s [success] 0.77% tests.unittests.test_datasource.test_openstack.TestOpenStackDataSource.test_bad_datasource_meta: 5.0298s
These account for 99.25% of the run time.
Diagnosed which test it was with:
$ git clone https:/ /git.launchpad. net/cloud- init
$ cd cloud-init
$ nosetests --with-timer --timer-ok 1 --timer-warning 5
This results in a sorted listed list of all tests with timing in green if less than 1 second, yellow if between 1 and 5 seconds, and red if greater than 5 seconds. All tests were less than one second, except these:
[success] 19.54% tests.unittests .test_datasourc e.test_ ec2.TestEc2. test_unknown_ platform_ with_strict_ false: 127.3695s .test_datasourc e.test_ ec2.TestEc2. test_valid_ platform_ with_strict_ true: 127.3614s .test_datasourc e.test_ ec2.TestEc2. test_valid_ platform_ with_strict_ false: 127.3573s .test_datasourc e.test_ ec2.TestEc2. test_network_ config_ property_ returns_ version_ 1_network_ data: 127.3403s .test_datasourc e.test_ ec2.TestEc2. test_ec2_ local_performs_ dhcp_on_ non_bsd: 127.3302s .test_datasourc e.test_ openstack. TestOpenStackDa taSource. test_datasource : 5.0584s .test_datasourc e.test_ openstack. TestOpenStackDa taSource. test_bad_ datasource_ meta: 5.0298s
[success] 19.54% tests.unittests
[success] 19.54% tests.unittests
[success] 19.54% tests.unittests
[success] 19.54% tests.unittests
[success] 0.78% tests.unittests
[success] 0.77% tests.unittests
These account for 99.25% of the run time.