2025-06-09 15:05:05,434 - INFO - Domain Default found not creating 2025-06-09 15:05:05,585 - INFO - Project ctest-TestBasicPolicy-00855122 not found, creating it 2025-06-09 15:05:06,047 - INFO - Created Project:ctest-TestBasicPolicy-00855122, ID : 0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:07,512 - INFO - ================================================================================ 2025-06-09 15:05:07,512 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-06-09 15:05:07,512 - 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-06-09 15:05:07,769 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-06-09 15:05:07,770 - INFO - Initial checks done. Running the testcase now 2025-06-09 15:05:07,770 - INFO - 2025-06-09 15:05:08,337 - DEBUG - Response for create_network : {'network': {'id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'name': 'ctest-vn-04611356', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-04611356'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 15:05:08,514 - DEBUG - Response for create_subnet : {'subnet': {'id': '89d34ce1-c7b0-4294-8204-81adfb706960', 'name': '', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'network_id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'ip_version': 4, 'cidr': '177.138.230.0/26', 'allocation_pools': [{'start': '177.138.230.2', 'end': '177.138.230.62'}], 'gateway_ip': '177.138.230.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.138.230.2', 'tags': [], 'project_id': '0f31491fd9ce483c97e44294f6f63250'}} 2025-06-09 15:05:08,534 - INFO - Created VN ctest-vn-04611356 2025-06-09 15:05:08,587 - DEBUG - VN ctest-vn-04611356 UUID is 179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:08,888 - DEBUG - Response for create_network : {'network': {'id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'name': 'ctest-vn-05679803', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-05679803'], 'port_security_enabled': True, 'description': ''}} 2025-06-09 15:05:09,056 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cf6bc013-94eb-4f34-8c0f-014c3a722b40', 'name': '', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'network_id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'ip_version': 4, 'cidr': '180.79.54.64/26', 'allocation_pools': [{'start': '180.79.54.66', 'end': '180.79.54.126'}], 'gateway_ip': '180.79.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.79.54.66', 'tags': [], 'project_id': '0f31491fd9ce483c97e44294f6f63250'}} 2025-06-09 15:05:09,076 - INFO - Created VN ctest-vn-05679803 2025-06-09 15:05:09,135 - DEBUG - VN ctest-vn-05679803 UUID is a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:09,291 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356, 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-00855122:ctest-vn-05679803, 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-06-09 15:05:09,605 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '179a26c5-6969-4487-91bb-a4dbda08f04f', 'name': 'ctest-vn-04611356', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['89d34ce1-c7b0-4294-8204-81adfb706960'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-04611356'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']], 'subnet_ipam': [{'subnet_cidr': '177.138.230.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-09 15:05:09,886 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5101fbf-b896-416e-aa29-f92c98d9649f', 'name': 'ctest-vn-05679803', 'tenant_id': '0f31491fd9ce483c97e44294f6f63250', 'project_id': '0f31491fd9ce483c97e44294f6f63250', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cf6bc013-94eb-4f34-8c0f-014c3a722b40'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-vn-05679803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852']], 'subnet_ipam': [{'subnet_cidr': '180.79.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-06-09 15:05:10,035 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:10,332 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:10,358 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:10,369 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:10,439 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,448 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,457 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:10,464 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:10,471 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c87c91a-bb43-4288-b6b5-a2906aeee26b 2025-06-09 15:05:10,478 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 15:05:10,478 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,487 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:10,504 - INFO - Verified VN network id 7 for VN 179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,504 - INFO - Verifications in API Server for VN ctest-vn-04611356 passed 2025-06-09 15:05:10,504 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,514 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:10,522 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:10,532 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/3c87c91a-bb43-4288-b6b5-a2906aeee26b 2025-06-09 15:05:10,550 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00855122', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1700714438604702855', 'uuid-lslong': '10501168220307255375'}, 'enable': 'true', 'created': '2025-06-09T15:05:08', 'last-modified': '2025-06-09T15:05:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.964817'} 2025-06-09 15:05:10,557 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-06-09 15:05:10,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04611356 passed 2025-06-09 15:05:10,558 - DEBUG - ====Verifying policy data for ctest-vn-04611356 in API_Server ====== 2025-06-09 15:05:10,558 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:10,566 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:10,584 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:10,665 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/179a26c5-6969-4487-91bb-a4dbda08f04f 2025-06-09 15:05:10,675 - DEBUG - ==>Verifying data for policy with id: ab4d678d-05ca-433f-a41a-f08d039cd2d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852'] 2025-06-09 15:05:10,675 - INFO - VN ctest-vn-04611356 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 15:05:10,675 - DEBUG - Verifying the vn in opserver 2025-06-09 15:05:10,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 virtual network link through opserver 10.0.0.254 2025-06-09 15:05:10,675 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-09 15:05:10,971 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-09 15:05:14,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 virtual network link through opserver 10.0.0.254 2025-06-09 15:05:14,034 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-09 15:05:14,045 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356?flat'} 2025-06-09 15:05:14,045 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 is found in opserver 2025-06-09 15:05:14,056 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 15:05:14,061 - DEBUG - VRF ids for VN ctest-vn-04611356: {} 2025-06-09 15:05:14,061 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:14,068 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:14,080 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:14,156 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,169 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,185 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:14,193 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:14,202 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/218ad530-8387-4e15-9307-ed835c7141ae 2025-06-09 15:05:14,210 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 15:05:14,210 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,220 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:14,235 - INFO - Verified VN network id 8 for VN a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,235 - INFO - Verifications in API Server for VN ctest-vn-05679803 passed 2025-06-09 15:05:14,235 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,246 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:14,254 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:14,262 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/218ad530-8387-4e15-9307-ed835c7141ae 2025-06-09 15:05:14,275 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-00855122', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11894041524181549422', 'uuid-lslong': '12261605430431147167'}, 'enable': 'true', 'created': '2025-06-09T15:05:08', 'last-modified': '2025-06-09T15:05:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:04.453004'} 2025-06-09 15:05:14,281 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-06-09 15:05:14,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05679803 passed 2025-06-09 15:05:14,282 - DEBUG - ====Verifying policy data for ctest-vn-05679803 in API_Server ====== 2025-06-09 15:05:14,282 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:14,289 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:14,301 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:14,374 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a5101fbf-b896-416e-aa29-f92c98d9649f 2025-06-09 15:05:14,384 - DEBUG - ==>Verifying data for policy with id: ab4d678d-05ca-433f-a41a-f08d039cd2d2, fqn: ['default-domain', 'ctest-TestBasicPolicy-00855122', 'ctest-policy-allow-all-68718852'] 2025-06-09 15:05:14,384 - INFO - VN ctest-vn-05679803 Policy verification: verify_vn_policy_in_api_server, status: True 2025-06-09 15:05:14,384 - DEBUG - Verifying the vn in opserver 2025-06-09 15:05:14,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803 virtual network link through opserver 10.0.0.254 2025-06-09 15:05:14,384 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-06-09 15:05:14,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803?flat'} 2025-06-09 15:05:14,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-05679803 is found in opserver 2025-06-09 15:05:14,406 - DEBUG - Do not have enough data to verify VN in agent 2025-06-09 15:05:14,411 - DEBUG - VRF ids for VN ctest-vn-05679803: {} 2025-06-09 15:05:14,469 - DEBUG - Services list from nova: [, , ] 2025-06-09 15:05:15,488 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3425-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3425-1) 2025-06-09 15:05:16,760 - INFO - VM ([]) created on node: (cn-jenkins-deploy-platform-ansible-os-3425-1), Zone: (nova:cn-jenkins-deploy-platform-ansible-os-3425-1) 2025-06-09 15:05:16,761 - INFO - Waiting for VM ctest-TestBasicPolicy-00855122-52146748 to be up.. 2025-06-09 15:05:16,847 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-06-09 15:05:21,931 - DEBUG - VM is in ACTIVE state now 2025-06-09 15:05:21,931 - INFO - VM name : ctest-TestBasicPolicy-00855122-52146748 2025-06-09 15:05:22,026 - DEBUG - VM ctest-TestBasicPolicy-00855122-52146748 ID is f837d110-6c49-43d1-ba5c-972b2b2137ab 2025-06-09 15:05:22,048 - DEBUG - VM ctest-TestBasicPolicy-00855122-52146748 launched on Node cn-jenkins-deploy-platform-ansible-os-3425-1. 2025-06-09 15:05:22,135 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/f837d110-6c49-43d1-ba5c-972b2b2137ab 2025-06-09 15:05:22,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/7760cf37-22bd-4263-a823-91c657c5dc8a 2025-06-09 15:05:25,421 - 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 1019ms') 2025-06-09 15:05:25,421 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00855122-52146748 failed! 2025-06-09 15:05:25,483 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-00855122:ctest-vn-04611356 is 177.138.230.1 and allocation pool is NOT set 2025-06-09 15:05:27,546 - 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=5.52 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.446 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.446/2.982/5.518/2.536 ms') 2025-06-09 15:05:27,546 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-00855122-52146748 passed 2025-06-09 15:05:27,695 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 15:05:27,695 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00855122-52146748, IP 177.138.230.3, Port 22 2025-06-09 15:05:27,851 - DEBUG - VM ctest-TestBasicPolicy-00855122-52146748 is ready for SSH connections 2025-06-09 15:05:27,851 - INFO - Waiting for VM ctest-TestBasicPolicy-00855122-70877712 to be up.. 2025-06-09 15:05:27,932 - DEBUG - VM is in ACTIVE state now 2025-06-09 15:05:27,932 - INFO - VM name : ctest-TestBasicPolicy-00855122-70877712 2025-06-09 15:05:28,018 - DEBUG - VM ctest-TestBasicPolicy-00855122-70877712 ID is 91e662ce-5fb5-460f-b1f0-f1f8b0f0b394 2025-06-09 15:05:28,018 - DEBUG - VM ctest-TestBasicPolicy-00855122-70877712 launched on Node cn-jenkins-deploy-platform-ansible-os-3425-1. 2025-06-09 15:05:28,107 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine/91e662ce-5fb5-460f-b1f0-f1f8b0f0b394 2025-06-09 15:05:28,117 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-machine-interface/dffde1ba-71b7-4fb2-8afc-fe2a96fc2b7e 2025-06-09 15:05:29,362 - 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.72 ms\r\n64 bytes from 169.254.0.4: icmp_seq=2 ttl=63 time=0.418 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.418/1.568/2.719/1.150 ms') 2025-06-09 15:05:29,362 - INFO - Ping to Metadata IP 169.254.0.4 of VM ctest-TestBasicPolicy-00855122-70877712 passed 2025-06-09 15:05:29,511 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 15:05:29,511 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-00855122-70877712, IP 180.79.54.67, Port 22 2025-06-09 15:05:29,666 - DEBUG - VM ctest-TestBasicPolicy-00855122-70877712 is ready for SSH connections 2025-06-09 15:05:29,666 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 15:05:29,666 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.79.54.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-09 15:05:29,666 - DEBUG - ping -s 56 -c 3 -W 1 180.79.54.67 2025-06-09 15:05:33,669 - DEBUG - PING 180.79.54.67 (180.79.54.67): 56 data bytes 64 bytes from 180.79.54.67: seq=0 ttl=63 time=3.304 ms 64 bytes from 180.79.54.67: seq=1 ttl=63 time=0.828 ms 64 bytes from 180.79.54.67: seq=2 ttl=63 time=0.953 ms --- 180.79.54.67 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max = 0.828/1.695/3.304 ms 2025-06-09 15:05:33,669 - INFO - Ping to IP 180.79.54.67 from VM ctest-TestBasicPolicy-00855122-52146748 passed 2025-06-09 15:05:33,867 - DEBUG - Policy Update Response {"network-policy": {"uuid": "ab4d678d-05ca-433f-a41a-f08d039cd2d2", "href": "http://10.0.0.254:8082/network-policy/ab4d678d-05ca-433f-a41a-f08d039cd2d2"}} 2025-06-09 15:05:33,867 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-06-09 15:05:33,867 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 180.79.54.67, host_string: cirros@169.254.0.3, password: cubswin:)gateway: ubuntu@10.0.0.254, gateway password: c0ntrail123 2025-06-09 15:05:33,867 - DEBUG - ping -s 56 -c 3 -W 1 180.79.54.67 2025-06-09 15:05:37,073 - DEBUG - PING 180.79.54.67 (180.79.54.67): 56 data bytes --- 180.79.54.67 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss 2025-06-09 15:05:37,074 - WARNING - Ping to IP 180.79.54.67 from VM ctest-TestBasicPolicy-00855122-52146748 failed 2025-06-09 15:05:37,074 - INFO - Deleting VM ctest-TestBasicPolicy-00855122-70877712 2025-06-09 15:05:37,145 - INFO - Deleting VM ctest-TestBasicPolicy-00855122-52146748 2025-06-09 15:05:37,529 - INFO - Deleted policy ctest-policy-allow-all-68718852 2025-06-09 15:05:37,529 - INFO - Deleting VN ctest-vn-05679803 2025-06-09 15:05:37,567 - DEBUG - VN a5101fbf-b896-416e-aa29-f92c98d9649f still in use: Unable to complete operation on network a5101fbf-b896-416e-aa29-f92c98d9649f. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-6da59a8b-0eb0-4c26-8c70-2976971517da'] 2025-06-09 15:05:37,567 - WARNING - Deleting VN ctest-vn-05679803 failed..Will retry 2025-06-09 15:05:39,683 - DEBUG - Response for deleting network () 2025-06-09 15:05:39,683 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/34a0234f-3cd6-4532-9f7c-decb61e1320f 2025-06-09 15:05:39,691 - DEBUG - Response Code: 404 2025-06-09 15:05:39,691 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:39,698 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:39,753 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:39,828 - INFO - Validated that VN ctest-vn-05679803 is not found in API Server 2025-06-09 15:05:39,836 - DEBUG - VN ctest-vn-05679803 is not present in Agent 10.0.0.254 2025-06-09 15:05:39,837 - INFO - Validated that VN ctest-vn-05679803 is not in any agent 2025-06-09 15:05:39,852 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-05679803 info 2025-06-09 15:05:39,852 - INFO - Deleting VN ctest-vn-04611356 2025-06-09 15:05:39,960 - DEBUG - Response for deleting network () 2025-06-09 15:05:39,960 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/59bfaf55-113b-438b-8f55-7a29c0376714 2025-06-09 15:05:39,965 - DEBUG - Response Code: 404 2025-06-09 15:05:39,965 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-06-09 15:05:39,970 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d12e9e27-812a-4dfe-816b-11abf84b0f36 2025-06-09 15:05:40,024 - DEBUG - Requesting: http://10.0.0.254:8082/project/0f31491f-d9ce-483c-97e4-4294f6f63250 2025-06-09 15:05:40,093 - INFO - Validated that VN ctest-vn-04611356 is not found in API Server 2025-06-09 15:05:40,103 - DEBUG - VN ctest-vn-04611356 is not present in Agent 10.0.0.254 2025-06-09 15:05:40,104 - INFO - Validated that VN ctest-vn-04611356 is not in any agent 2025-06-09 15:05:40,119 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-04611356 info 2025-06-09 15:05:40,371 - DEBUG - No XMPP flaps were noticed during the test
2025-06-09 15:05:40,371 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:00:33]
2025-06-09 15:05:40,371 - INFO - -------------------------------------------------------------------------------- 2025-06-09 15:05:41,078 - INFO - Deleted project: ctest-TestBasicPolicy-00855122, ID : 0f31491f-d9ce-483c-97e4-4294f6f63250