2025-01-08 15:06:24,610 - INFO - Domain Default found not creating 2025-01-08 15:06:24,747 - INFO - Project ctest-TestBasicPolicy-87771628 not found, creating it 2025-01-08 15:06:25,474 - INFO - Created Project:ctest-TestBasicPolicy-87771628, ID : 7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:26,901 - INFO - ================================================================================ 2025-01-08 15:06:26,901 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-01-08 15:06:26,901 - 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 2025-01-08 15:06:27,159 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.11': '0'}} with 2025-01-08 15:06:27,159 - INFO - Initial checks done. Running the testcase now 2025-01-08 15:06:27,159 - INFO - 2025-01-08 15:06:27,698 - DEBUG - Response for create_network : {'network': {'id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'name': 'ctest-vn-62895632', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-62895632'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 15:06:27,880 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd15b285b-6449-4755-ab63-3661d8b8d41c', 'name': '', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'network_id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'ip_version': 4, 'cidr': '44.232.99.128/26', 'allocation_pools': [{'start': '44.232.99.130', 'end': '44.232.99.190'}], 'gateway_ip': '44.232.99.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '44.232.99.130', 'tags': [], 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2'}} 2025-01-08 15:06:27,898 - INFO - Created VN ctest-vn-62895632 2025-01-08 15:06:27,949 - DEBUG - VN ctest-vn-62895632 UUID is a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:28,252 - DEBUG - Response for create_network : {'network': {'id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'name': 'ctest-vn-83947385', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-83947385'], 'port_security_enabled': True, 'description': ''}} 2025-01-08 15:06:28,425 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb5942a5-e7f2-4264-81e4-6beb8f6d9713', 'name': '', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'network_id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'ip_version': 4, 'cidr': '171.70.193.128/26', 'allocation_pools': [{'start': '171.70.193.130', 'end': '171.70.193.190'}], 'gateway_ip': '171.70.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.70.193.130', 'tags': [], 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2'}} 2025-01-08 15:06:28,443 - INFO - Created VN ctest-vn-83947385 2025-01-08 15:06:28,497 - DEBUG - VN ctest-vn-83947385 UUID is c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:28,645 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632, 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-87771628:ctest-vn-83947385, 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] 2025-01-08 15:06:28,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0f1df0f-1c49-4cf7-85b6-823493e7e6b0', 'name': 'ctest-vn-62895632', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d15b285b-6449-4755-ab63-3661d8b8d41c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-62895632'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']], 'subnet_ipam': [{'subnet_cidr': '44.232.99.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 15:06:29,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c7ab8da8-887d-492c-bede-7f8ed43d37c2', 'name': 'ctest-vn-83947385', 'tenant_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'project_id': '7bfc4821ef8a4e00abfc19a2770b25d2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb5942a5-e7f2-4264-81e4-6beb8f6d9713'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-vn-83947385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569']], 'subnet_ipam': [{'subnet_cidr': '171.70.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-01-08 15:06:29,337 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:29,632 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:29,664 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:29,679 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:29,753 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,765 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,774 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:29,781 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:29,787 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c917631b-e3e8-4ff2-85be-da876c902295 2025-01-08 15:06:29,793 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 15:06:29,793 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,801 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:29,814 - INFO - Verified VN network id 8 for VN a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,814 - INFO - Verifications in API Server for VN ctest-vn-62895632 passed 2025-01-08 15:06:29,814 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,823 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:29,829 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:29,835 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/c917631b-e3e8-4ff2-85be-da876c902295 2025-01-08 15:06:29,846 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87771628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11597295771447807223', 'uuid-lslong': '9635031615137113776'}, 'enable': 'true', 'created': '2025-01-08T15:06:27', 'last-modified': '2025-01-08T15:06:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.935658'} 2025-01-08 15:06:29,852 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-01-08 15:06:29,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62895632 passed 2025-01-08 15:06:29,852 - DEBUG - ====Verifying policy data for ctest-vn-62895632 in API_Server ====== 2025-01-08 15:06:29,852 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:29,858 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:29,868 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:29,942 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/a0f1df0f-1c49-4cf7-85b6-823493e7e6b0 2025-01-08 15:06:29,952 - DEBUG - ==>Verifying data for policy with id: ec70ea20-bf5c-49c2-9b21-115f25dee2fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569'] 2025-01-08 15:06:29,952 - INFO - VN ctest-vn-62895632 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 15:06:29,952 - DEBUG - Verifying the vn in opserver 2025-01-08 15:06:29,952 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632 virtual network link through opserver 10.0.0.23 2025-01-08 15:06:29,952 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-08 15:06:30,253 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-08 15:06:30,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632?flat'} 2025-01-08 15:06:30,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632 is found in opserver 2025-01-08 15:06:30,323 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 15:06:30,328 - DEBUG - VRF ids for VN ctest-vn-62895632: {} 2025-01-08 15:06:30,328 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:30,333 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:30,343 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:30,413 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,425 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,434 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:30,442 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:30,449 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/da28ca8f-d52e-4a56-abbf-711ab43ab3bf 2025-01-08 15:06:30,455 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 15:06:30,455 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,465 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:30,478 - INFO - Verified VN network id 9 for VN c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,478 - INFO - Verifications in API Server for VN ctest-vn-83947385 passed 2025-01-08 15:06:30,478 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,488 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:30,494 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:30,501 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/da28ca8f-d52e-4a56-abbf-711ab43ab3bf 2025-01-08 15:06:30,513 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-87771628', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14387749189549115692', 'uuid-lslong': '13753570563458938818'}, 'enable': 'true', 'created': '2025-01-08T15:06:28', 'last-modified': '2025-01-08T15:06:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.367573'} 2025-01-08 15:06:30,519 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-01-08 15:06:30,519 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83947385 passed 2025-01-08 15:06:30,519 - DEBUG - ====Verifying policy data for ctest-vn-83947385 in API_Server ====== 2025-01-08 15:06:30,519 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:30,524 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:30,535 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:30,609 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/c7ab8da8-887d-492c-bede-7f8ed43d37c2 2025-01-08 15:06:30,619 - DEBUG - ==>Verifying data for policy with id: ec70ea20-bf5c-49c2-9b21-115f25dee2fb, fqn: ['default-domain', 'ctest-TestBasicPolicy-87771628', 'ctest-policy-allow-all-19863569'] 2025-01-08 15:06:30,619 - INFO - VN ctest-vn-83947385 Policy verification: verify_vn_policy_in_api_server, status: True 2025-01-08 15:06:30,619 - DEBUG - Verifying the vn in opserver 2025-01-08 15:06:30,619 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385 virtual network link through opserver 10.0.0.23 2025-01-08 15:06:30,619 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-01-08 15:06:30,629 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385?flat'} 2025-01-08 15:06:30,629 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-83947385 is found in opserver 2025-01-08 15:06:30,639 - DEBUG - Do not have enough data to verify VN in agent 2025-01-08 15:06:30,644 - DEBUG - VRF ids for VN ctest-vn-83947385: {} 2025-01-08 15:06:30,697 - DEBUG - Services list from nova: [, , ] 2025-01-08 15:06:31,647 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2563-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2563-1) 2025-01-08 15:06:32,845 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-2563-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-2563-1) 2025-01-08 15:06:32,846 - INFO - Waiting for VM ctest-TestBasicPolicy-87771628-30387894 to be up.. 2025-01-08 15:06:32,920 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-01-08 15:06:38,014 - DEBUG - VM is in ACTIVE state now 2025-01-08 15:06:38,014 - INFO - VM name : ctest-TestBasicPolicy-87771628-30387894 2025-01-08 15:06:38,107 - DEBUG - VM ctest-TestBasicPolicy-87771628-30387894 ID is a68055b3-6ff9-458a-afdf-c0fe85b7086e 2025-01-08 15:06:38,126 - DEBUG - VM ctest-TestBasicPolicy-87771628-30387894 launched on Node cn-jenkins-deploy-platform-ansible-os-2563-1 2025-01-08 15:06:38,201 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/a68055b3-6ff9-458a-afdf-c0fe85b7086e 2025-01-08 15:06:38,210 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/ca33e8d1-7ae0-43c3-89c3-7fafc5ee082f 2025-01-08 15:06:41,475 - 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 1031ms') 2025-01-08 15:06:41,475 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87771628-30387894 failed! 2025-01-08 15:06:41,529 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-87771628:ctest-vn-62895632 is 44.232.99.129 and allocation pool is NOT set 2025-01-08 15:06:43,593 - 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.94 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.39 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 = 1.390/2.665/3.940/1.275 ms') 2025-01-08 15:06:43,593 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-87771628-30387894 passed 2025-01-08 15:06:43,745 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 15:06:43,745 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87771628-30387894, IP 44.232.99.131, Port 22 2025-01-08 15:06:43,900 - DEBUG - VM ctest-TestBasicPolicy-87771628-30387894 is ready for SSH connections 2025-01-08 15:06:43,900 - INFO - Waiting for VM ctest-TestBasicPolicy-87771628-21816020 to be up.. 2025-01-08 15:06:43,983 - DEBUG - VM is in ACTIVE state now 2025-01-08 15:06:43,983 - INFO - VM name : ctest-TestBasicPolicy-87771628-21816020 2025-01-08 15:06:44,063 - DEBUG - VM ctest-TestBasicPolicy-87771628-21816020 ID is 5c96fd54-8d0f-4c64-930e-62be767f0c33 2025-01-08 15:06:44,063 - DEBUG - VM ctest-TestBasicPolicy-87771628-21816020 launched on Node cn-jenkins-deploy-platform-ansible-os-2563-1 2025-01-08 15:06:44,154 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine/5c96fd54-8d0f-4c64-930e-62be767f0c33 2025-01-08 15:06:44,166 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-machine-interface/2989f14e-0d6c-4f43-96bd-45e6fab18766 2025-01-08 15:06:45,426 - 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=2.98 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.377 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.377/1.677/2.977/1.300 ms') 2025-01-08 15:06:45,426 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-87771628-21816020 passed 2025-01-08 15:06:45,577 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 15:06:45,577 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-87771628-21816020, IP 171.70.193.131, Port 22 2025-01-08 15:06:45,729 - DEBUG - VM ctest-TestBasicPolicy-87771628-21816020 is ready for SSH connections 2025-01-08 15:06:45,729 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 15:06:45,729 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.70.193.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-08 15:06:45,729 - DEBUG - ping -s 56 -c 3 -W 1 171.70.193.131 2025-01-08 15:06:49,411 - DEBUG - PING 171.70.193.131 (171.70.193.131): 56 data bytes 64 bytes from 171.70.193.131: seq=0 ttl=63 time=3.441 ms 64 bytes from 171.70.193.131: seq=1 ttl=63 time=0.684 ms 64 bytes from 171.70.193.131: seq=2 ttl=63 time=0.629 ms --- 171.70.193.131 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.629/1.584/3.441 ms 2025-01-08 15:06:49,411 - INFO - Ping to IP 171.70.193.131 from VM ctest-TestBasicPolicy-87771628-30387894 passed 2025-01-08 15:06:49,585 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ec70ea20-bf5c-49c2-9b21-115f25dee2fb", "href": "http://10.0.0.23:8082/network-policy/ec70ea20-bf5c-49c2-9b21-115f25dee2fb"}} 2025-01-08 15:06:49,585 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-01-08 15:06:49,585 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 171.70.193.131, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.23, gateway password: c0ntrail123 2025-01-08 15:06:49,585 - DEBUG - ping -s 56 -c 3 -W 1 171.70.193.131 2025-01-08 15:06:52,790 - DEBUG - PING 171.70.193.131 (171.70.193.131): 56 data bytes 64 bytes from 171.70.193.131: seq=0 ttl=63 time=1.403 ms --- 171.70.193.131 ping statistics --- 3 packets transmitted, 1 packets received, 66% packet loss round-trip min/avg/max = 1.403/1.403/1.403 ms 2025-01-08 15:06:52,790 - WARNING - Ping to IP 171.70.193.131 from VM ctest-TestBasicPolicy-87771628-30387894 failed 2025-01-08 15:06:52,790 - INFO - Deleting VM ctest-TestBasicPolicy-87771628-21816020 2025-01-08 15:06:52,853 - INFO - Deleting VM ctest-TestBasicPolicy-87771628-30387894 2025-01-08 15:06:53,245 - INFO - Deleted policy ctest-policy-allow-all-19863569 2025-01-08 15:06:53,245 - INFO - Deleting VN ctest-vn-83947385 2025-01-08 15:06:53,280 - DEBUG - VN c7ab8da8-887d-492c-bede-7f8ed43d37c2 still in use: Unable to complete operation on network c7ab8da8-887d-492c-bede-7f8ed43d37c2. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-67d1a311-77a9-4f78-921e-30dbc46e981f'] 2025-01-08 15:06:53,280 - WARNING - Deleting VN ctest-vn-83947385 failed..Will retry 2025-01-08 15:06:55,381 - DEBUG - Response for deleting network () 2025-01-08 15:06:55,381 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/7c80f46b-d30a-401b-b0fd-0b1612571a84 2025-01-08 15:06:55,389 - DEBUG - Response Code: 404 2025-01-08 15:06:55,389 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:55,394 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:55,446 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:55,522 - INFO - Validated that VN ctest-vn-83947385 is not found in API Server 2025-01-08 15:06:55,533 - DEBUG - VN ctest-vn-83947385 is not present in Agent 10.0.0.23 2025-01-08 15:06:55,533 - INFO - Validated that VN ctest-vn-83947385 is not in any agent 2025-01-08 15:06:55,548 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-83947385 info 2025-01-08 15:06:55,548 - INFO - Deleting VN ctest-vn-62895632 2025-01-08 15:06:55,647 - DEBUG - Response for deleting network () 2025-01-08 15:06:55,647 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/1fca1118-e076-4873-beb9-d804c155ca32 2025-01-08 15:06:55,654 - DEBUG - Response Code: 404 2025-01-08 15:06:55,654 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-01-08 15:06:55,661 - DEBUG - Requesting: http://10.0.0.23:8082/domain/9bc86d69-b21f-4062-9227-fa1b410f5765 2025-01-08 15:06:55,714 - DEBUG - Requesting: http://10.0.0.23:8082/project/7bfc4821-ef8a-4e00-abfc-19a2770b25d2 2025-01-08 15:06:55,793 - INFO - Validated that VN ctest-vn-62895632 is not found in API Server 2025-01-08 15:06:55,805 - DEBUG - VN ctest-vn-62895632 is not present in Agent 10.0.0.23 2025-01-08 15:06:55,805 - INFO - Validated that VN ctest-vn-62895632 is not in any agent 2025-01-08 15:06:55,819 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-62895632 info 2025-01-08 15:06:56,074 - DEBUG - No XMPP flaps were noticed during the test 2025-01-08 15:06:56,074 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:30] 2025-01-08 15:06:56,074 - INFO - -------------------------------------------------------------------------------- 2025-01-08 15:06:56,745 - INFO - Deleted project: ctest-TestBasicPolicy-87771628, ID : 7bfc4821-ef8a-4e00-abfc-19a2770b25d2