2024-11-07 16:48:54,871 - INFO - Domain Default found not creating 2024-11-07 16:48:55,046 - INFO - Project ctest-TestBasicPolicy-56578453 not found, creating it 2024-11-07 16:48:55,580 - INFO - Created Project:ctest-TestBasicPolicy-56578453, ID : b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:48:57,247 - INFO - ================================================================================ 2024-11-07 16:48:57,247 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-11-07 16:48:57,247 - INFO - TEST DESCRIPTION : Create 2 Vns and allow icmp traffic between them and validate with pings Update the policy to deny the same traffic Check that pings fail 2024-11-07 16:48:57,506 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.5': '0'}} with 2024-11-07 16:48:57,507 - INFO - Initial checks done. Running the testcase now 2024-11-07 16:48:57,507 - INFO - 2024-11-07 16:48:58,135 - DEBUG - Response for create_network : {'network': {'id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'name': 'ctest-vn-37910489', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-37910489'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:58,282 - DEBUG - Response for create_subnet : {'subnet': {'id': '774f8405-ab67-4f4c-8793-731e01928c42', 'name': '', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'network_id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'ip_version': 4, 'cidr': '143.230.203.64/26', 'allocation_pools': [{'start': '143.230.203.66', 'end': '143.230.203.126'}], 'gateway_ip': '143.230.203.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.230.203.66', 'tags': [], 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9'}} 2024-11-07 16:48:58,302 - INFO - Created VN ctest-vn-37910489 2024-11-07 16:48:58,360 - DEBUG - VN ctest-vn-37910489 UUID is 79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:48:58,717 - DEBUG - Response for create_network : {'network': {'id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'name': 'ctest-vn-51284649', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-51284649'], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:58,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ec49192b-8d7e-47f3-aa5b-87c2e2d99e42', 'name': '', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'network_id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'ip_version': 4, 'cidr': '209.36.50.128/26', 'allocation_pools': [{'start': '209.36.50.130', 'end': '209.36.50.190'}], 'gateway_ip': '209.36.50.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.36.50.130', 'tags': [], 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9'}} 2024-11-07 16:48:58,927 - INFO - Created VN ctest-vn-51284649 2024-11-07 16:48:58,988 - DEBUG - VN ctest-vn-51284649 UUID is e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:48:59,126 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None] 2024-11-07 16:48:59,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3', 'name': 'ctest-vn-37910489', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['774f8405-ab67-4f4c-8793-731e01928c42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-37910489'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']], 'subnet_ipam': [{'subnet_cidr': '143.230.203.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:59,734 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e8697174-da93-4b9b-bc6e-0f86a2bfb7e3', 'name': 'ctest-vn-51284649', 'tenant_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'project_id': 'b2b803de99df4cc295e7ff4dd09024f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ec49192b-8d7e-47f3-aa5b-87c2e2d99e42'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-vn-51284649'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343']], 'subnet_ipam': [{'subnet_cidr': '209.36.50.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-11-07 16:48:59,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:00,262 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:00,299 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:00,317 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:00,409 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,426 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,442 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:00,452 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:00,464 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2c17e1-80e7-456e-b51f-43f811e3cc04 2024-11-07 16:49:00,483 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 16:49:00,484 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,505 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:00,527 - INFO - Verified VN network id 8 for VN 79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,527 - INFO - Verifications in API Server for VN ctest-vn-37910489 passed 2024-11-07 16:49:00,527 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,543 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:00,553 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:00,562 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4b2c17e1-80e7-456e-b51f-43f811e3cc04 2024-11-07 16:49:00,579 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56578453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8752776981550942885', 'uuid-lslong': '13575411891776056771'}, 'enable': 'true', 'created': '2024-11-07T16:48:58', 'last-modified': '2024-11-07T16:48:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.148783'} 2024-11-07 16:49:00,586 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-11-07 16:49:00,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37910489 passed 2024-11-07 16:49:00,586 - DEBUG - ====Verifying policy data for ctest-vn-37910489 in API_Server ====== 2024-11-07 16:49:00,586 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:00,594 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:00,610 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:00,701 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/79781c4a-5f8f-4aa5-bc65-8d30a0ecedc3 2024-11-07 16:49:00,717 - DEBUG - ==>Verifying data for policy with id: 265a22fb-8d62-4374-856d-0bf5ee4346a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343'] 2024-11-07 16:49:00,718 - INFO - VN ctest-vn-37910489 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 16:49:00,718 - DEBUG - Verifying the vn in opserver 2024-11-07 16:49:00,718 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489 virtual network link through opserver 10.0.0.38 2024-11-07 16:49:00,718 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-11-07 16:49:01,060 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-11-07 16:49:01,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489?flat'} 2024-11-07 16:49:01,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489 is found in opserver 2024-11-07 16:49:01,144 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 16:49:01,150 - DEBUG - VRF ids for VN ctest-vn-37910489: {} 2024-11-07 16:49:01,151 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:01,158 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:01,174 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:01,272 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:01,320 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:01,330 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e010514-11e3-49f0-9cf0-b8ee0edc4d09 2024-11-07 16:49:01,338 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 16:49:01,338 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,353 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:01,377 - INFO - Verified VN network id 9 for VN e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,377 - INFO - Verifications in API Server for VN ctest-vn-51284649 passed 2024-11-07 16:49:01,377 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,392 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:01,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:01,413 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6e010514-11e3-49f0-9cf0-b8ee0edc4d09 2024-11-07 16:49:01,428 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56578453', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16747041436051131291', 'uuid-lslong': '13577806997499131875'}, 'enable': 'true', 'created': '2024-11-07T16:48:58', 'last-modified': '2024-11-07T16:48:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.728437'} 2024-11-07 16:49:01,436 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-11-07 16:49:01,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51284649 passed 2024-11-07 16:49:01,436 - DEBUG - ====Verifying policy data for ctest-vn-51284649 in API_Server ====== 2024-11-07 16:49:01,436 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:01,443 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:01,457 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:01,542 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 2024-11-07 16:49:01,557 - DEBUG - ==>Verifying data for policy with id: 265a22fb-8d62-4374-856d-0bf5ee4346a0, fqn: ['default-domain', 'ctest-TestBasicPolicy-56578453', 'ctest-policy-allow-all-29194343'] 2024-11-07 16:49:01,557 - INFO - VN ctest-vn-51284649 Policy verification: verify_vn_policy_in_api_server, status: True 2024-11-07 16:49:01,558 - DEBUG - Verifying the vn in opserver 2024-11-07 16:49:01,558 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649 virtual network link through opserver 10.0.0.38 2024-11-07 16:49:01,558 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2024-11-07 16:49:01,570 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649?flat'} 2024-11-07 16:49:01,570 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-51284649 is found in opserver 2024-11-07 16:49:01,582 - DEBUG - Do not have enough data to verify VN in agent 2024-11-07 16:49:01,588 - DEBUG - VRF ids for VN ctest-vn-51284649: {} 2024-11-07 16:49:01,664 - DEBUG - Services list from nova: [, , ] 2024-11-07 16:49:02,823 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2220-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2220-1) 2024-11-07 16:49:04,250 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2220-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2220-1) 2024-11-07 16:49:04,251 - INFO - Waiting for VM ctest-TestBasicPolicy-56578453-75412214 to be up.. 2024-11-07 16:49:04,347 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-11-07 16:49:09,443 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:49:09,443 - INFO - VM name : ctest-TestBasicPolicy-56578453-75412214 2024-11-07 16:49:09,534 - DEBUG - VM ctest-TestBasicPolicy-56578453-75412214 ID is 819b8880-be7c-4c0d-b139-d2c10fd81564 2024-11-07 16:49:09,558 - DEBUG - VM ctest-TestBasicPolicy-56578453-75412214 launched on Node cn-jenkins-deploy-platform-ansible-os-2220-1 2024-11-07 16:49:09,650 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/819b8880-be7c-4c0d-b139-d2c10fd81564 2024-11-07 16:49:09,662 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/849f041f-1743-43f5-8250-0ef3d734c1dc 2024-11-07 16:49:12,936 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 0 received, 100% packet loss, time 1002ms') 2024-11-07 16:49:12,936 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56578453-75412214 failed! 2024-11-07 16:49:13,000 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-56578453:ctest-vn-37910489 is 143.230.203.65 and allocation pool is NOT set 2024-11-07 16:49:15,061 - DEBUG - (True, 'PING 169.254.0.3 (169.254.0.3) 56(84) bytes of data.\r\n64 bytes from 169.254.0.3: icmp_seq=1 ttl=63 time=8.03 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.461 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.461/4.246/8.031/3.785 ms') 2024-11-07 16:49:15,061 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-56578453-75412214 passed 2024-11-07 16:49:15,220 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:49:15,220 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56578453-75412214, IP 143.230.203.67, Port 22 2024-11-07 16:49:15,386 - DEBUG - VM ctest-TestBasicPolicy-56578453-75412214 is ready for SSH connections 2024-11-07 16:49:15,387 - INFO - Waiting for VM ctest-TestBasicPolicy-56578453-98383172 to be up.. 2024-11-07 16:49:15,480 - DEBUG - VM is in ACTIVE state now 2024-11-07 16:49:15,480 - INFO - VM name : ctest-TestBasicPolicy-56578453-98383172 2024-11-07 16:49:15,570 - DEBUG - VM ctest-TestBasicPolicy-56578453-98383172 ID is 823f81cd-0188-4845-a0f4-83787d6971b3 2024-11-07 16:49:15,571 - DEBUG - VM ctest-TestBasicPolicy-56578453-98383172 launched on Node cn-jenkins-deploy-platform-ansible-os-2220-1 2024-11-07 16:49:15,656 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine/823f81cd-0188-4845-a0f4-83787d6971b3 2024-11-07 16:49:15,666 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-machine-interface/9412ee4c-ad1b-4a80-a878-d6fc71d3c3ed 2024-11-07 16:49:16,928 - DEBUG - (True, 'PING 169.254.0.4 (169.254.0.4) 56(84) bytes of data.\r\n64 bytes from 169.254.0.4: icmp_seq=1 ttl=63 time=5.13 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.919 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.919/3.024/5.129/2.105 ms') 2024-11-07 16:49:16,928 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-56578453-98383172 passed 2024-11-07 16:49:17,088 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:49:17,088 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-56578453-98383172, IP 209.36.50.131, Port 22 2024-11-07 16:49:17,243 - DEBUG - VM ctest-TestBasicPolicy-56578453-98383172 is ready for SSH connections 2024-11-07 16:49:17,243 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:49:17,244 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.36.50.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-11-07 16:49:17,244 - DEBUG - ping -s 56 -c 3 -W 1 209.36.50.131 2024-11-07 16:49:21,330 - DEBUG - PING 209.36.50.131 (209.36.50.131): 56 data bytes 64 bytes from 209.36.50.131: seq=0 ttl=63 time=3.641 ms 64 bytes from 209.36.50.131: seq=1 ttl=63 time=1.066 ms 64 bytes from 209.36.50.131: seq=2 ttl=63 time=0.857 ms --- 209.36.50.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.857/1.854/3.641 ms 2024-11-07 16:49:21,330 - INFO - Ping to IP 209.36.50.131 from VM ctest-TestBasicPolicy-56578453-75412214 passed 2024-11-07 16:49:21,520 - DEBUG - Policy Update Response {"network-policy": {"uuid": "265a22fb-8d62-4374-856d-0bf5ee4346a0", "href": "http://10.0.0.38:8082/network-policy/265a22fb-8d62-4374-856d-0bf5ee4346a0"}} 2024-11-07 16:49:21,520 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-11-07 16:49:21,520 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 209.36.50.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.38, gateway password: c0ntrail123 2024-11-07 16:49:21,520 - DEBUG - ping -s 56 -c 3 -W 1 209.36.50.131 2024-11-07 16:49:24,742 - DEBUG - PING 209.36.50.131 (209.36.50.131): 56 data bytes --- 209.36.50.131 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2024-11-07 16:49:24,742 - WARNING - Ping to IP 209.36.50.131 from VM ctest-TestBasicPolicy-56578453-75412214 failed 2024-11-07 16:49:24,742 - INFO - Deleting VM ctest-TestBasicPolicy-56578453-98383172 2024-11-07 16:49:24,819 - INFO - Deleting VM ctest-TestBasicPolicy-56578453-75412214 2024-11-07 16:49:25,314 - INFO - Deleted policy ctest-policy-allow-all-29194343 2024-11-07 16:49:25,314 - INFO - Deleting VN ctest-vn-51284649 2024-11-07 16:49:25,359 - DEBUG - VN e8697174-da93-4b9b-bc6e-0f86a2bfb7e3 still in use: Unable to complete operation on network e8697174-da93-4b9b-bc6e-0f86a2bfb7e3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-0541fcd5-5b97-4311-b3d8-6de0257105c6'] 2024-11-07 16:49:25,360 - WARNING - Deleting VN ctest-vn-51284649 failed..Will retry 2024-11-07 16:49:27,497 - DEBUG - Response for deleting network () 2024-11-07 16:49:27,497 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9dd6f31b-7ddb-450e-8870-3806dad38c8f 2024-11-07 16:49:27,504 - DEBUG - Response Code: 404 2024-11-07 16:49:27,504 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:27,514 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:27,572 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:27,661 - INFO - Validated that VN ctest-vn-51284649 is not found in API Server 2024-11-07 16:49:27,676 - DEBUG - VN ctest-vn-51284649 is not present in Agent 10.0.0.38 2024-11-07 16:49:27,676 - INFO - Validated that VN ctest-vn-51284649 is not in any agent 2024-11-07 16:49:27,693 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51284649 info 2024-11-07 16:49:27,693 - INFO - Deleting VN ctest-vn-37910489 2024-11-07 16:49:27,815 - DEBUG - Response for deleting network () 2024-11-07 16:49:27,815 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/55a74c58-a20c-4214-8c28-8faf94fee0c9 2024-11-07 16:49:27,826 - DEBUG - Response Code: 404 2024-11-07 16:49:27,826 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2024-11-07 16:49:27,835 - DEBUG - Requesting: http://10.0.0.38:8082/domain/5db538cf-907c-436b-bc6d-9870bfa35860 2024-11-07 16:49:27,894 - DEBUG - Requesting: http://10.0.0.38:8082/project/b2b803de-99df-4cc2-95e7-ff4dd09024f9 2024-11-07 16:49:27,976 - INFO - Validated that VN ctest-vn-37910489 is not found in API Server 2024-11-07 16:49:27,987 - DEBUG - VN ctest-vn-37910489 is not present in Agent 10.0.0.38 2024-11-07 16:49:27,987 - INFO - Validated that VN ctest-vn-37910489 is not in any agent 2024-11-07 16:49:28,005 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-37910489 info 2024-11-07 16:49:28,270 - DEBUG - No XMPP flaps were noticed during the test 2024-11-07 16:49:28,271 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:31] 2024-11-07 16:49:28,271 - INFO - -------------------------------------------------------------------------------- 2024-11-07 16:49:29,075 - INFO - Deleted project: ctest-TestBasicPolicy-56578453, ID : b2b803de-99df-4cc2-95e7-ff4dd09024f9