2024-08-22 14:25:36,185 - INFO - Domain Default found not creating 2024-08-22 14:25:36,359 - INFO - Project ctest-TestBasicPolicy-94349847 not found, creating it 2024-08-22 14:25:36,850 - INFO - Created Project:ctest-TestBasicPolicy-94349847, ID : 76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:25:38,487 - INFO - ================================================================================ 2024-08-22 14:25:38,487 - INFO - STARTING TEST : test_basic_policy_allow_deny 2024-08-22 14:25:38,488 - 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-08-22 14:25:38,745 - DEBUG - Nothing to compare xmpp stats {'10.0.0.24': {'10.20.0.7': '0'}} with 2024-08-22 14:25:38,745 - INFO - Initial checks done. Running the testcase now 2024-08-22 14:25:38,745 - INFO - 2024-08-22 14:25:39,346 - DEBUG - Response for create_network : {'network': {'id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'name': 'ctest-vn-51248251', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-51248251'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 14:25:39,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '6dbf4af7-098f-4e40-b3df-ad848bb5245e', 'name': '', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'network_id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'ip_version': 4, 'cidr': '210.176.156.64/26', 'allocation_pools': [{'start': '210.176.156.66', 'end': '210.176.156.126'}], 'gateway_ip': '210.176.156.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.176.156.66', 'tags': [], 'project_id': '76b4a377a2464599bec649f1c68bb787'}} 2024-08-22 14:25:39,532 - INFO - Created VN ctest-vn-51248251 2024-08-22 14:25:39,582 - DEBUG - VN ctest-vn-51248251 UUID is 03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:39,882 - DEBUG - Response for create_network : {'network': {'id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'name': 'ctest-vn-26563786', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-26563786'], 'port_security_enabled': True, 'description': ''}} 2024-08-22 14:25:40,116 - DEBUG - Response for create_subnet : {'subnet': {'id': '3e70c4c6-b212-4581-b4bd-90bf733ddb70', 'name': '', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'network_id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'ip_version': 4, 'cidr': '133.237.130.64/26', 'allocation_pools': [{'start': '133.237.130.66', 'end': '133.237.130.126'}], 'gateway_ip': '133.237.130.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.237.130.66', 'tags': [], 'project_id': '76b4a377a2464599bec649f1c68bb787'}} 2024-08-22 14:25:40,135 - INFO - Created VN ctest-vn-26563786 2024-08-22 14:25:40,186 - DEBUG - VN ctest-vn-26563786 UUID is 67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:40,305 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251, 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-94349847:ctest-vn-26563786, 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-08-22 14:25:40,611 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '03927e12-8b76-4fbc-9358-e6105152f1d3', 'name': 'ctest-vn-51248251', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6dbf4af7-098f-4e40-b3df-ad848bb5245e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-51248251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']], 'subnet_ipam': [{'subnet_cidr': '210.176.156.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 14:25:40,901 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67cba52c-f021-464b-bae8-36bbd0ba6bf3', 'name': 'ctest-vn-26563786', 'tenant_id': '76b4a377a2464599bec649f1c68bb787', 'project_id': '76b4a377a2464599bec649f1c68bb787', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3e70c4c6-b212-4581-b4bd-90bf733ddb70'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-vn-26563786'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270']], 'subnet_ipam': [{'subnet_cidr': '133.237.130.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2024-08-22 14:25:41,054 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:25:41,351 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:25:41,383 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:25:41,397 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:25:41,469 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,479 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,488 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:25:41,496 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:25:41,504 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a1a1fb32-7b44-44a5-a6d4-f578e11ec14c 2024-08-22 14:25:41,511 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 14:25:41,511 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,520 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:25:41,534 - INFO - Verified VN network id 9 for VN 03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,534 - INFO - Verifications in API Server for VN ctest-vn-51248251 passed 2024-08-22 14:25:41,534 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,543 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:25:41,551 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:25:41,558 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/a1a1fb32-7b44-44a5-a6d4-f578e11ec14c 2024-08-22 14:25:41,574 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94349847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '257406746827837372', 'uuid-lslong': '10617489079284199891'}, 'enable': 'true', 'created': '2024-08-22T14:25:39', 'last-modified': '2024-08-22T14:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984325'} 2024-08-22 14:25:41,584 - DEBUG - Route Targets: ['target:64512:8000005'] 2024-08-22 14:25:41,584 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51248251 passed 2024-08-22 14:25:41,584 - DEBUG - ====Verifying policy data for ctest-vn-51248251 in API_Server ====== 2024-08-22 14:25:41,584 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:25:41,592 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:25:41,606 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:25:41,681 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/03927e12-8b76-4fbc-9358-e6105152f1d3 2024-08-22 14:25:41,692 - DEBUG - ==>Verifying data for policy with id: 63663c03-ec84-48ea-a18a-49a01d832bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270'] 2024-08-22 14:25:41,692 - INFO - VN ctest-vn-51248251 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 14:25:41,692 - DEBUG - Verifying the vn in opserver 2024-08-22 14:25:41,692 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251 virtual network link through opserver 10.0.0.24 2024-08-22 14:25:41,692 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-22 14:25:41,985 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-22 14:25:42,049 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251?flat'} 2024-08-22 14:25:42,049 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251 is found in opserver 2024-08-22 14:25:42,061 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 14:25:42,067 - DEBUG - VRF ids for VN ctest-vn-51248251: {} 2024-08-22 14:25:42,067 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:25:42,074 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:25:42,085 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:25:42,152 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,162 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,171 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:25:42,179 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:25:42,186 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de0734c6-dcf1-4361-9a08-fb78d350a984 2024-08-22 14:25:42,194 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 14:25:42,194 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,203 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:25:42,216 - INFO - Verified VN network id 10 for VN 67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,216 - INFO - Verifications in API Server for VN ctest-vn-26563786 passed 2024-08-22 14:25:42,216 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,225 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:25:42,233 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:25:42,240 - DEBUG - Requesting: http://10.0.0.24:8082/route-target/de0734c6-dcf1-4361-9a08-fb78d350a984 2024-08-22 14:25:42,252 - DEBUG - Control-node 10.0.0.24 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-94349847', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7479253218604697163', 'uuid-lslong': '13468074865940130803'}, 'enable': 'true', 'created': '2024-08-22T14:25:39', 'last-modified': '2024-08-22T14:25:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.420794'} 2024-08-22 14:25:42,260 - DEBUG - Route Targets: ['target:64512:8000006'] 2024-08-22 14:25:42,260 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26563786 passed 2024-08-22 14:25:42,260 - DEBUG - ====Verifying policy data for ctest-vn-26563786 in API_Server ====== 2024-08-22 14:25:42,260 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:25:42,266 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:25:42,279 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:25:42,348 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-network/67cba52c-f021-464b-bae8-36bbd0ba6bf3 2024-08-22 14:25:42,356 - DEBUG - ==>Verifying data for policy with id: 63663c03-ec84-48ea-a18a-49a01d832bb9, fqn: ['default-domain', 'ctest-TestBasicPolicy-94349847', 'ctest-policy-allow-all-08195270'] 2024-08-22 14:25:42,356 - INFO - VN ctest-vn-26563786 Policy verification: verify_vn_policy_in_api_server, status: True 2024-08-22 14:25:42,356 - DEBUG - Verifying the vn in opserver 2024-08-22 14:25:42,356 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786 virtual network link through opserver 10.0.0.24 2024-08-22 14:25:42,357 - DEBUG - Requesting: http://10.0.0.24:8081/analytics/uves/virtual-networks 2024-08-22 14:25:42,368 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786', 'href': 'http://10.0.0.24:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786?flat'} 2024-08-22 14:25:42,369 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-26563786 is found in opserver 2024-08-22 14:25:42,380 - DEBUG - Do not have enough data to verify VN in agent 2024-08-22 14:25:42,386 - DEBUG - VRF ids for VN ctest-vn-26563786: {} 2024-08-22 14:25:42,441 - DEBUG - Services list from nova: [, , ] 2024-08-22 14:25:43,473 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1714-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1714-1) 2024-08-22 14:25:44,885 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-1714-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-1714-1) 2024-08-22 14:25:44,885 - INFO - Waiting for VM ctest-TestBasicPolicy-94349847-08107438 to be up.. 2024-08-22 14:25:44,977 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2024-08-22 14:25:50,060 - DEBUG - VM is in ACTIVE state now 2024-08-22 14:25:50,060 - INFO - VM name : ctest-TestBasicPolicy-94349847-08107438 2024-08-22 14:25:50,139 - DEBUG - VM ctest-TestBasicPolicy-94349847-08107438 ID is 12eb845e-4994-40f9-a95a-290a7b680a56 2024-08-22 14:25:50,158 - DEBUG - VM ctest-TestBasicPolicy-94349847-08107438 launched on Node cn-jenkins-deploy-platform-ansible-os-1714-1 2024-08-22 14:25:50,237 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/12eb845e-4994-40f9-a95a-290a7b680a56 2024-08-22 14:25:50,246 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/24d1e56a-eda3-4f7a-b046-173adc141b0c 2024-08-22 14:25:53,486 - 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 1007ms') 2024-08-22 14:25:53,487 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94349847-08107438 failed! 2024-08-22 14:25:53,546 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-94349847:ctest-vn-51248251 is 210.176.156.65 and allocation pool is NOT set 2024-08-22 14:25:55,609 - 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=3.72 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.785 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1001ms\r\nrtt min/avg/max/mdev = 0.785/2.253/3.721/1.468 ms') 2024-08-22 14:25:55,609 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-94349847-08107438 passed 2024-08-22 14:25:55,758 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 14:25:55,758 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94349847-08107438, IP 210.176.156.67, Port 22 2024-08-22 14:25:55,923 - DEBUG - VM ctest-TestBasicPolicy-94349847-08107438 is ready for SSH connections 2024-08-22 14:25:55,924 - INFO - Waiting for VM ctest-TestBasicPolicy-94349847-66219470 to be up.. 2024-08-22 14:25:56,022 - DEBUG - VM is in ACTIVE state now 2024-08-22 14:25:56,023 - INFO - VM name : ctest-TestBasicPolicy-94349847-66219470 2024-08-22 14:25:56,109 - DEBUG - VM ctest-TestBasicPolicy-94349847-66219470 ID is 62241d91-781a-4f17-8ca6-bb8de3c8f8c4 2024-08-22 14:25:56,109 - DEBUG - VM ctest-TestBasicPolicy-94349847-66219470 launched on Node cn-jenkins-deploy-platform-ansible-os-1714-1 2024-08-22 14:25:56,191 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine/62241d91-781a-4f17-8ca6-bb8de3c8f8c4 2024-08-22 14:25:56,200 - DEBUG - Requesting: http://10.0.0.24:8082/virtual-machine-interface/8aa0cb19-d0fe-4751-bb4a-2b8b18671885 2024-08-22 14:25:57,437 - 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=4.09 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.691 ms\r\n\r\n--- 169.254.0.4 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1000ms\r\nrtt min/avg/max/mdev = 0.691/2.392/4.093/1.701 ms') 2024-08-22 14:25:57,437 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-94349847-66219470 passed 2024-08-22 14:25:57,586 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 14:25:57,586 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-94349847-66219470, IP 133.237.130.67, Port 22 2024-08-22 14:25:57,751 - DEBUG - VM ctest-TestBasicPolicy-94349847-66219470 is ready for SSH connections 2024-08-22 14:25:57,752 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 14:25:57,752 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.237.130.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-22 14:25:57,752 - DEBUG - ping -s 56 -c 3 -W 1 133.237.130.67 2024-08-22 14:26:01,435 - DEBUG - PING 133.237.130.67 (133.237.130.67): 56 data bytes 64 bytes from 133.237.130.67: seq=0 ttl=63 time=3.764 ms 64 bytes from 133.237.130.67: seq=1 ttl=63 time=0.950 ms 64 bytes from 133.237.130.67: seq=2 ttl=63 time=0.879 ms --- 133.237.130.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.879/1.864/3.764 ms 2024-08-22 14:26:01,435 - INFO - Ping to IP 133.237.130.67 from VM ctest-TestBasicPolicy-94349847-08107438 passed 2024-08-22 14:26:01,614 - DEBUG - Policy Update Response {"network-policy": {"uuid": "63663c03-ec84-48ea-a18a-49a01d832bb9", "href": "http://10.0.0.24:8082/network-policy/63663c03-ec84-48ea-a18a-49a01d832bb9"}} 2024-08-22 14:26:01,614 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2024-08-22 14:26:01,614 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 133.237.130.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.24, gateway password: c0ntrail123 2024-08-22 14:26:01,614 - DEBUG - ping -s 56 -c 3 -W 1 133.237.130.67 2024-08-22 14:26:04,833 - DEBUG - PING 133.237.130.67 (133.237.130.67): 56 data bytes 64 bytes from 133.237.130.67: seq=0 ttl=63 time=1.405 ms --- 133.237.130.67 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.405/1.405/1.405 ms 2024-08-22 14:26:04,833 - WARNING - Ping to IP 133.237.130.67 from VM ctest-TestBasicPolicy-94349847-08107438 failed 2024-08-22 14:26:04,833 - INFO - Deleting VM ctest-TestBasicPolicy-94349847-66219470 2024-08-22 14:26:04,902 - INFO - Deleting VM ctest-TestBasicPolicy-94349847-08107438 2024-08-22 14:26:05,298 - INFO - Deleted policy ctest-policy-allow-all-08195270 2024-08-22 14:26:05,298 - INFO - Deleting VN ctest-vn-26563786 2024-08-22 14:26:05,338 - DEBUG - VN 67cba52c-f021-464b-bae8-36bbd0ba6bf3 still in use: Unable to complete operation on network 67cba52c-f021-464b-bae8-36bbd0ba6bf3. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-554f37a8-a2f1-4bb2-8fa1-f4bbd4001621'] 2024-08-22 14:26:05,338 - WARNING - Deleting VN ctest-vn-26563786 failed..Will retry 2024-08-22 14:26:07,474 - DEBUG - Response for deleting network () 2024-08-22 14:26:07,474 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/c44c06a3-9b2c-4421-aec5-07db442d1762 2024-08-22 14:26:07,482 - DEBUG - Response Code: 404 2024-08-22 14:26:07,482 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:26:07,488 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:26:07,544 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:26:07,614 - INFO - Validated that VN ctest-vn-26563786 is not found in API Server 2024-08-22 14:26:07,626 - DEBUG - VN ctest-vn-26563786 is not present in Agent 10.0.0.24 2024-08-22 14:26:07,626 - INFO - Validated that VN ctest-vn-26563786 is not in any agent 2024-08-22 14:26:07,643 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-26563786 info 2024-08-22 14:26:07,643 - INFO - Deleting VN ctest-vn-51248251 2024-08-22 14:26:07,755 - DEBUG - Response for deleting network () 2024-08-22 14:26:07,755 - DEBUG - Requesting: http://10.0.0.24:8082/routing-instance/1d65a6e0-f6d8-4e8b-bce8-deefb0edde0f 2024-08-22 14:26:07,761 - DEBUG - Response Code: 404 2024-08-22 14:26:07,761 - DEBUG - Requesting: http://10.0.0.24:8082/domains 2024-08-22 14:26:07,769 - DEBUG - Requesting: http://10.0.0.24:8082/domain/78c6899e-6d98-47be-a033-07b4fe5d8289 2024-08-22 14:26:07,831 - DEBUG - Requesting: http://10.0.0.24:8082/project/76b4a377-a246-4599-bec6-49f1c68bb787 2024-08-22 14:26:07,904 - INFO - Validated that VN ctest-vn-51248251 is not found in API Server 2024-08-22 14:26:07,916 - DEBUG - VN ctest-vn-51248251 is not present in Agent 10.0.0.24 2024-08-22 14:26:07,916 - INFO - Validated that VN ctest-vn-51248251 is not in any agent 2024-08-22 14:26:07,933 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-51248251 info 2024-08-22 14:26:08,192 - DEBUG - No XMPP flaps were noticed during the test
2024-08-22 14:26:08,192 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30]
2024-08-22 14:26:08,192 - INFO - -------------------------------------------------------------------------------- 2024-08-22 14:26:08,867 - INFO - Deleted project: ctest-TestBasicPolicy-94349847, ID : 76b4a377-a246-4599-bec6-49f1c68bb787