Uploaded image for project: 'CloudStack'
  1. CloudStack
  2. CLOUDSTACK-6344

[Automation]: Random Timeouts inside scripts

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.5.1
    • None
    • Security Level: Public (Anyone can view this level - this is the default.)
    • None

    Description

      1. Currently, at many places, there were few random sleeps kept , EX: To check vm state, download state of few resources, post copy operations etc.
      2. Time for test execution has been random because of these sleeps and has become little unpredictable, instead we can remove random sleeps and use api call to poll check for these status whereapplicable. This enforces good way of usages in marvin and avoid random sleeps and delays.

      Logging this jira item to track the same.

      test/integration/component/test_redundant_router_cleanups.py: time.sleep((delay + exp) * 2)
      test/integration/component/test_redundant_router_cleanups.py: time.sleep((delay + exp) * 3)
      test/integration/component/test_vpc_network_staticnatrule.py: time.sleep(120)
      test/integration/component/test_base_image_updation.py: time.sleep(5)
      test/integration/component/test_base_image_updation.py: time.sleep(self.services["sleep"])
      test/integration/component/test_base_image_updation.py: time.sleep(sleep_seconds)
      test/integration/component/test_base_image_updation.py: time.sleep(60)
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_nw_off.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_resource_limits.py: time.sleep(self.services["sleep"])
      test/integration/component/test_resource_limits.py: time.sleep(int(interval[0].value) * 2)
      test/integration/component/test_eip_elb.py: time.sleep(self.services["sleep"])
      test/integration/component/test_eip_elb.py: time.sleep(total_wait)
      test/integration/component/test_eip_elb.py: time.sleep(60)
      test/integration/component/test_project_usage.py: time.sleep(self.services["sleep"])
      test/integration/component/test_project_usage.py: time.sleep(30)
      test/integration/component/test_vpc_network_pfrules.py: time.sleep(120)
      test/integration/component/test_project_limits.py: time.sleep(int(interval[0].value) * 2)
      test/integration/component/test_templates.py: time.sleep(self.services["sleep"])
      test/integration/component/test_templates.py: time.sleep(5)
      test/integration/component/test_templates.py: time.sleep(cls.services["sleep"])
      test/integration/component/test_templates.py: time.sleep(5)
      test/integration/component/test_vm_passwdenabled.py: time.sleep(cls.services["sleep"])
      test/integration/component/test_vm_passwdenabled.py: time.sleep(self.services["sleep"])
      test/integration/component/test_add_remove_network.py: time.sleep(self.services["sleep"])
      test/integration/component/test_add_remove_network.py: time.sleep(self.services["sleep"])
      test/integration/component/test_add_remove_network.py: time.sleep(5)
      test/integration/component/test_add_remove_network.py: time.sleep(self.services["sleep"])
      test/integration/component/test_add_remove_network.py: time.sleep(5)
      test/integration/component/test_add_remove_network.py: time.sleep(5)
      test/integration/component/test_add_remove_network.py: time.sleep(self.services["sleep"])
      test/integration/component/test_vpc.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_vpc.py: time.sleep(int(interval[0].value))
      test/integration/component/test_vpc_network.py: time.sleep(6)
      test/integration/component/test_snapshots.py: time.sleep(self.services["sleep"])
      test/integration/component/test_usage.py: time.sleep(self.services["sleep"])
      test/integration/component/test_usage.py: time.sleep(30)
      test/integration/component/test_stopped_vm.py: time.sleep((int(interval[0].value) + int(delay[0].value)))
      test/integration/component/test_stopped_vm.py: time.sleep((int(interval[0].value) + int(delay[0].value)) * 2)
      test/integration/component/maint/test_redundant_router_network_rules.py: time.sleep(120)
      test/integration/component/maint/test_vpc_on_host_maintenance.py: time.sleep(cls.services["sleep"])
      test/integration/component/maint/test_vpc_on_host_maintenance.py: time.sleep(cls.services["sleep"])
      test/integration/component/maint/test_vpc_on_host_maintenance.py: time.sleep(cls.services["sleep"])
      test/integration/component/maint/test_vpc_on_host_maintenance.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/maint/test_vpc_on_host_maintenance.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_redundant_router.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_high_availability.py: time.sleep(self.services["sleep"])
      test/integration/component/maint/test_host_high_availability.py: time.sleep(timeout)
      test/integration/component/maint/test_host_high_availability.py: time.sleep(timeout)
      test/integration/component/maint/test_multiple_ip_ranges.py: time.sleep(30)
      test/integration/component/maint/test_multiple_ip_ranges.py: time.sleep(wait_time)
      test/integration/component/test_snapshot_limits.py: time.sleep(
      test/integration/component/test_snapshot_limits.py: time.sleep(self.services["sleep"])
      test/integration/component/test_vpc_vm_life_cycle.py: time.sleep(120)
      test/integration/component/test_vpc_vm_life_cycle.py: time.sleep(120)
      test/integration/component/test_vpc_vm_life_cycle.py: time.sleep(120)
      test/integration/component/test_vpc_vm_life_cycle.py: time.sleep(120)
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb.py: time.sleep( 120 )
      test/integration/component/test_netscaler_lb.py: time.sleep( 120 )
      test/integration/component/test_netscaler_lb.py: time.sleep(int(delay[0].value) + int(wait[0].value))
      test/integration/component/test_advancedsg_networks.py: time.sleep(self.services["sleep"])
      test/integration/component/test_advancedsg_networks.py: time.sleep(self.services["sleep"])
      test/integration/component/test_advancedsg_networks.py: time.sleep(10)
      test/integration/component/test_advancedsg_networks.py: time.sleep(10)
      test/integration/component/test_advancedsg_networks.py: time.sleep(self.services["sleep"])
      test/integration/component/test_advancedsg_networks.py: time.sleep(self.services["sleep"])
      test/integration/component/test_advancedsg_networks.py: time.sleep(self.services["sleep"])
      test/integration/component/test_recurring_snapshots.py: time.sleep(
      test/integration/component/test_recurring_snapshots.py: time.sleep(1)
      test/integration/component/test_recurring_snapshots.py: time.sleep(
      test/integration/component/test_recurring_snapshots.py: time.sleep(1)
      test/integration/component/test_vmware_drs.py: time.sleep(self.services["sleep"])
      test/integration/component/test_egress_fw_rules.py: time.sleep(60)
      test/integration/component/test_egress_fw_rules.py: time.sleep(60)
      test/integration/component/test_egress_fw_rules.py: time.sleep(60)
      test/integration/component/test_projects.py: time.sleep(int(interval[0].value))
      test/integration/component/test_accounts.py: time.sleep(60)
      test/integration/component/test_routers.py: time.sleep(60)
      test/integration/component/test_routers.py: time.sleep(total_wait * 2)
      test/integration/component/test_reset_ssh_keypair.py: time.sleep(sleep)
      test/integration/component/test_reset_ssh_keypair.py: time.sleep(cls.services["sleep"])
      test/integration/component/test_reset_ssh_keypair.py: time.sleep(cls.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep((int(interval[0].value) + int(wait[0].value)) * 2)
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_configs.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_vpc_routers.py: time.sleep(240)
      test/integration/component/test_vpc_routers.py: time.sleep(240)
      test/integration/component/test_project_configs.py: time.sleep(int(self.config.value) * 2)
      test/integration/component/test_project_configs.py: time.sleep(int(self.config.value) * 2)
      test/integration/component/test_netscaler_lb_algo.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb_algo.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_netscaler_lb_algo.py: time.sleep(int(interval[0].value) + int(wait[0].value))
      test/integration/component/test_security_groups.py: time.sleep(self.services["sleep"])
      test/integration/component/test_security_groups.py: time.sleep(int(response.value) * 2)
      test/integration/component/test_security_groups.py: time.sleep(self.services["sleep"])
      test/integration/component/test_security_groups.py: time.sleep(self.services["sleep"])
      test/integration/component/test_security_groups.py: time.sleep(self.services["sleep"])
      test/integration/component/test_vpc_network_lbrules.py: time.sleep(120)
      test/integration/component/test_vpc_network_lbrules.py: time.sleep(120)
      test/integration/component/test_tags.py: time.sleep(self.services["sleep"])
      test/integration/component/test_tags.py: time.sleep(5)
      test/integration/component/test_tags.py: time.sleep(self.services["sleep"])
      test/integration/component/test_blocker_bugs.py: time.sleep(self.services["sleep"])
      test/integration/component/test_blocker_bugs.py: time.sleep(60)
      test/integration/component/test_blocker_bugs.py: time.sleep(30)
      test/integration/component/test_blocker_bugs.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_nic.py: time.sleep(5)
      test/integration/smoke/test_nic.py: time.sleep(5)
      test/integration/smoke/test_nic.py: time.sleep(5)
      test/integration/smoke/test_nic.py: time.sleep(5)
      test/integration/smoke/test_nic.py: time.sleep(10)
      test/integration/smoke/test_vm_snapshots.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_vm_snapshots.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_vm_snapshots.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_vm_snapshots.py: time.sleep(self.services["sleep"] * 3)
      test/integration/smoke/test_network.py: time.sleep(30)
      test/integration/smoke/test_network.py: time.sleep(120)
      test/integration/smoke/test_network.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_network.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_network.py: time.sleep(int(interval[0].value))
      test/integration/smoke/test_templates.py: time.sleep(cls.services["sleep"])
      test/integration/smoke/test_templates.py: time.sleep(cls.services["sleep"])
      test/integration/smoke/test_templates.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_templates.py: time.sleep(10)
      test/integration/smoke/test_templates.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_vm_life_cycle.py: time.sleep(expunge_delay * 2)
      test/integration/smoke/test_vm_life_cycle.py: time.sleep(expunge_cycle)
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_ssvm.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_routers.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_routers.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_loadbalance.py: time.sleep(10)
      test/integration/smoke/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_volumes.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_volumes.py: time.sleep(1)
      test/integration/smoke/test_volumes.py: time.sleep(30)
      test/integration/smoke/test_volumes.py: time.sleep(10)
      test/integration/smoke/test_volumes.py: time.sleep(30)
      test/integration/smoke/test_iso.py: time.sleep(self.services["sleep"])
      test/integration/smoke/test_iso.py: time.sleep(self.services["sleep"])
      tools/marvin/marvin/cloudstackConnection.py: time.sleep(5)
      tools/marvin/marvin/asyncJobMgr.py: time.sleep(self.interval)
      tools/marvin/marvin/0001-Added-fix-for-CLOUDSTACK-6316.patch:+ time.sleep(timeout)
      tools/marvin/marvin/0001-Added-fix-for-CLOUDSTACK-6316.patch:+ time.sleep(timeout)
      tools/marvin/marvin/0001-Added-fix-for-CLOUDSTACK-6316.patch: time.sleep(5)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/utils.py: time.sleep(30)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/utils.py: time.sleep(5)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(10)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(30)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/base.py: time.sleep(30)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(30)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/libs/common.py: time.sleep(interval)
      tools/marvin/marvin/sandbox/demo/simulator/testcase/test_vm_life_cycle.py: time.sleep(self.services["sleep"])
      tools/marvin/marvin/sandbox/demo/simulator/testcase/test_vm_life_cycle.py: time.sleep(self.services["sleep"])
      tools/marvin/marvin/sshClient.py: time.sleep(self.delay)
      tools/marvin/marvin/lib/utils.py: time.sleep(5)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/marvin/lib/base.py: time.sleep(30)
      tools/marvin/marvin/lib/base.py: time.sleep(30)
      tools/marvin/marvin/lib/common.py: time.sleep(int(config_desc.value))
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/0001-Fixed-issues-related-to-CLOUDSTACK-5674.patch: time.sleep(5)
      tools/marvin/build/lib/marvin/cloudstackConnection.py: time.sleep(5)
      tools/marvin/build/lib/marvin/asyncJobMgr.py: time.sleep(self.interval)
      tools/marvin/build/lib/marvin/sshClient.py: time.sleep(self.delay)
      tools/marvin/build/lib/marvin/lib/utils.py: time.sleep(5)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(30)
      tools/marvin/build/lib/marvin/lib/base.py: time.sleep(30)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(int(config_desc.value))
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/marvin/build/lib/marvin/lib/common.py: time.sleep(interval)
      tools/ngui/requester.py: time.sleep(pollperiod)

      Attachments

        Activity

          People

            Unassigned Unassigned
            santhoshe Santhosh Kumar Edukulla
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: