2025-08-04 03:00:17,569 - INFO - Domain Default found not creating 2025-08-04 03:00:17,755 - INFO - Project ctest-TestBasicPolicy-79841335 not found, creating it 2025-08-04 03:00:18,434 - INFO - Created Project:ctest-TestBasicPolicy-79841335, ID : 258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:00:20,054 - INFO - ================================================================================ 2025-08-04 03:00:20,055 - INFO - STARTING TEST : test_basic_policy_allow_deny 2025-08-04 03:00:20,055 - 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-08-04 03:00:21,359 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.57': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2025-08-04 03:00:21,359 - INFO - Initial checks done. Running the testcase now 2025-08-04 03:00:21,359 - INFO - 2025-08-04 03:00:22,056 - DEBUG - Response for create_network : {'network': {'id': '7443f265-8c45-40e2-a675-448a597ad8ab', 'name': 'ctest-vn-73793936', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'project_id': '258c2744d5c240c3834caac382d09987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-vn-73793936'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 03:00:22,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '258aa425-f72f-400a-90a7-bf192bc735d1', 'name': '', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'network_id': '7443f265-8c45-40e2-a675-448a597ad8ab', 'ip_version': 4, 'cidr': '76.71.127.64/26', 'allocation_pools': [{'start': '76.71.127.66', 'end': '76.71.127.126'}], 'gateway_ip': '76.71.127.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '76.71.127.66', 'tags': [], 'project_id': '258c2744d5c240c3834caac382d09987'}} 2025-08-04 03:00:22,329 - INFO - Created VN ctest-vn-73793936 2025-08-04 03:00:22,346 - DEBUG - VN ctest-vn-73793936 UUID is 7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:22,777 - DEBUG - Response for create_network : {'network': {'id': 'b57e83aa-d30f-41a5-a305-8da66a177fbf', 'name': 'ctest-vn-91509701', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'project_id': '258c2744d5c240c3834caac382d09987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-vn-91509701'], 'port_security_enabled': True, 'description': ''}} 2025-08-04 03:00:23,019 - DEBUG - Response for create_subnet : {'subnet': {'id': '93e4f6dd-994d-4428-aff9-6cc8ae1ec2d6', 'name': '', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'network_id': 'b57e83aa-d30f-41a5-a305-8da66a177fbf', 'ip_version': 4, 'cidr': '114.45.216.128/26', 'allocation_pools': [{'start': '114.45.216.130', 'end': '114.45.216.190'}], 'gateway_ip': '114.45.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.45.216.130', 'tags': [], 'project_id': '258c2744d5c240c3834caac382d09987'}} 2025-08-04 03:00:23,045 - INFO - Created VN ctest-vn-91509701 2025-08-04 03:00:23,059 - DEBUG - VN ctest-vn-91509701 UUID is b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:23,169 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936, 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-79841335:ctest-vn-91509701, 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-08-04 03:00:23,540 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7443f265-8c45-40e2-a675-448a597ad8ab', 'name': 'ctest-vn-73793936', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'project_id': '258c2744d5c240c3834caac382d09987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['258aa425-f72f-400a-90a7-bf192bc735d1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-vn-73793936'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-policy-allow-all-73149052']], 'subnet_ipam': [{'subnet_cidr': '76.71.127.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 03:00:23,751 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b57e83aa-d30f-41a5-a305-8da66a177fbf', 'name': 'ctest-vn-91509701', 'tenant_id': '258c2744d5c240c3834caac382d09987', 'project_id': '258c2744d5c240c3834caac382d09987', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93e4f6dd-994d-4428-aff9-6cc8ae1ec2d6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-vn-91509701'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-policy-allow-all-73149052']], 'subnet_ipam': [{'subnet_cidr': '114.45.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-04 03:00:23,899 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:00:24,226 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:00:24,264 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:00:24,285 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:00:24,397 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,418 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,431 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:00:24,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:00:24,450 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/52b0f573-bad2-4d93-8c33-fe66c895fd5e 2025-08-04 03:00:24,459 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 03:00:24,459 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,471 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:00:24,500 - INFO - Verified VN network id 13 for VN 7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,500 - INFO - Verifications in API Server for VN ctest-vn-73793936 passed 2025-08-04 03:00:24,500 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,517 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:00:24,536 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:00:24,548 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/52b0f573-bad2-4d93-8c33-fe66c895fd5e 2025-08-04 03:00:24,565 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8377806249798222050', 'uuid-lslong': '11994568543568582827'}, 'enable': 'true', 'created': '2025-08-04T03:00:21', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.065999'} 2025-08-04 03:00:24,574 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 03:00:24,581 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8377806249798222050', 'uuid-lslong': '11994568543568582827'}, 'enable': 'true', 'created': '2025-08-04T03:00:21', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.091175'} 2025-08-04 03:00:24,588 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 03:00:24,595 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8377806249798222050', 'uuid-lslong': '11994568543568582827'}, 'enable': 'true', 'created': '2025-08-04T03:00:21', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.099009'} 2025-08-04 03:00:24,603 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-04 03:00:24,603 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-73793936 passed 2025-08-04 03:00:24,603 - DEBUG - ====Verifying policy data for ctest-vn-73793936 in API_Server ====== 2025-08-04 03:00:24,603 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:00:24,613 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:00:24,630 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:00:24,741 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/7443f265-8c45-40e2-a675-448a597ad8ab 2025-08-04 03:00:24,761 - DEBUG - ==>Verifying data for policy with id: 29347525-5527-4263-abf3-4e7be830b7be, fqn: ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-policy-allow-all-73149052'] 2025-08-04 03:00:24,761 - INFO - VN ctest-vn-73793936 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 03:00:24,761 - DEBUG - Verifying the vn in opserver 2025-08-04 03:00:24,762 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 virtual network link through opserver 10.0.0.27 2025-08-04 03:00:24,762 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,066 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,139 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936?flat'} 2025-08-04 03:00:25,139 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 virtual network link through opserver 10.0.0.38 2025-08-04 03:00:25,139 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,451 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,536 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936?flat'} 2025-08-04 03:00:25,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 virtual network link through opserver 10.0.0.61 2025-08-04 03:00:25,536 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,863 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-08-04 03:00:25,947 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936?flat'} 2025-08-04 03:00:25,947 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is found in opserver 2025-08-04 03:00:25,979 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 03:00:25,998 - DEBUG - VRF ids for VN ctest-vn-73793936: {} 2025-08-04 03:00:25,998 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:00:26,010 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:00:26,028 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:00:26,138 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,181 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,203 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:00:26,231 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:00:26,244 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d1aced81-1d1b-4c65-ad26-1d3f3b248680 2025-08-04 03:00:26,256 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-04 03:00:26,256 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,270 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:00:26,302 - INFO - Verified VN network id 14 for VN b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,303 - INFO - Verifications in API Server for VN ctest-vn-91509701 passed 2025-08-04 03:00:26,303 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,322 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:00:26,334 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:00:26,351 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d1aced81-1d1b-4c65-ad26-1d3f3b248680 2025-08-04 03:00:26,391 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13078035137639170469', 'uuid-lslong': '11746950948949819327'}, 'enable': 'true', 'created': '2025-08-04T03:00:22', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.681414'} 2025-08-04 03:00:26,401 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-04 03:00:26,411 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13078035137639170469', 'uuid-lslong': '11746950948949819327'}, 'enable': 'true', 'created': '2025-08-04T03:00:22', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.690443'} 2025-08-04 03:00:26,422 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-04 03:00:26,435 - DEBUG - Control-node 10.0.0.61 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79841335', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13078035137639170469', 'uuid-lslong': '11746950948949819327'}, 'enable': 'true', 'created': '2025-08-04T03:00:22', 'last-modified': '2025-08-04T03:00:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.715628'} 2025-08-04 03:00:26,443 - DEBUG - Route Targets: ['target:64512:8000006'] 2025-08-04 03:00:26,444 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91509701 passed 2025-08-04 03:00:26,444 - DEBUG - ====Verifying policy data for ctest-vn-91509701 in API_Server ====== 2025-08-04 03:00:26,444 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:00:26,454 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:00:26,476 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:00:26,602 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/b57e83aa-d30f-41a5-a305-8da66a177fbf 2025-08-04 03:00:26,622 - DEBUG - ==>Verifying data for policy with id: 29347525-5527-4263-abf3-4e7be830b7be, fqn: ['default-domain', 'ctest-TestBasicPolicy-79841335', 'ctest-policy-allow-all-73149052'] 2025-08-04 03:00:26,623 - INFO - VN ctest-vn-91509701 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-04 03:00:26,623 - DEBUG - Verifying the vn in opserver 2025-08-04 03:00:26,623 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701 virtual network link through opserver 10.0.0.27 2025-08-04 03:00:26,623 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-04 03:00:26,709 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701?flat'} 2025-08-04 03:00:26,709 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701 virtual network link through opserver 10.0.0.38 2025-08-04 03:00:26,709 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-04 03:00:26,785 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701?flat'} 2025-08-04 03:00:26,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701 virtual network link through opserver 10.0.0.61 2025-08-04 03:00:26,786 - DEBUG - Requesting: http://10.0.0.61:8081/analytics/uves/virtual-networks 2025-08-04 03:00:26,866 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701', 'href': 'http://10.0.0.61:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701?flat'} 2025-08-04 03:00:26,866 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-91509701 is found in opserver 2025-08-04 03:00:26,897 - DEBUG - Do not have enough data to verify VN in agent 2025-08-04 03:00:26,912 - DEBUG - VRF ids for VN ctest-vn-91509701: {} 2025-08-04 03:00:26,993 - DEBUG - Services list from nova: [, , , ] 2025-08-04 03:00:28,230 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-2), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-2) 2025-08-04 03:00:29,676 - INFO - VM ([]) created on node: (an-jenkins-deploy-platform-ansible-os-3750-1), Zone: (nova:an-jenkins-deploy-platform-ansible-os-3750-1) 2025-08-04 03:00:29,676 - INFO - Waiting for VM ctest-TestBasicPolicy-79841335-29351459 to be up.. 2025-08-04 03:00:29,794 - DEBUG - VM is still in BUILD state, Expected: ACTIVE 2025-08-04 03:00:34,897 - DEBUG - VM is in ACTIVE state now 2025-08-04 03:00:34,897 - INFO - VM name : ctest-TestBasicPolicy-79841335-29351459 2025-08-04 03:00:34,994 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 ID is 3f610fcd-757f-4984-aac8-bb2f062c64e1 2025-08-04 03:00:35,027 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 launched on Node an-jenkins-deploy-platform-ansible-os-3750-2 2025-08-04 03:00:35,119 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/3f610fcd-757f-4984-aac8-bb2f062c64e1 2025-08-04 03:00:35,428 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/3f610fcd-757f-4984-aac8-bb2f062c64e1 2025-08-04 03:00:35,474 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/4b88aa5f-1c32-4589-aa0e-e71f61d04b86 2025-08-04 03:00:38,719 - 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 1023ms') 2025-08-04 03:00:38,720 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:38,738 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:00:42,818 - 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 1015ms') 2025-08-04 03:00:42,818 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:42,844 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:00:46,913 - 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 1003ms') 2025-08-04 03:00:46,914 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:46,935 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:00:51,006 - 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 1011ms') 2025-08-04 03:00:51,006 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:51,028 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:00:55,106 - 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 1015ms') 2025-08-04 03:00:55,106 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:55,128 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:00:59,201 - 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') 2025-08-04 03:00:59,201 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:00:59,219 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:01:03,291 - 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 1015ms') 2025-08-04 03:01:03,291 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:01:03,312 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:01:07,393 - 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 1023ms') 2025-08-04 03:01:07,393 - DEBUG - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 failed! 2025-08-04 03:01:07,411 - DEBUG - Gateway for vn default-domain:ctest-TestBasicPolicy-79841335:ctest-vn-73793936 is 76.71.127.65 and allocation pool is NOT set 2025-08-04 03:01:09,478 - 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.61 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=1.28 ms\r\n\r\n--- 169.254.0.3 ping statistics ---\r\n2 packets transmitted, 2 received, 0% packet loss, time 1002ms\r\nrtt min/avg/max/mdev = 1.281/3.444/5.607/2.163 ms') 2025-08-04 03:01:09,478 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-29351459 passed 2025-08-04 03:01:09,596 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:09,596 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-29351459, IP 76.71.127.67, Port 22 2025-08-04 03:01:09,668 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-04 03:01:09,802 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-04 03:01:14,802 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:14,803 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-29351459, IP 76.71.127.67, Port 22 2025-08-04 03:01:14,860 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-04 03:01:14,950 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-04 03:01:19,951 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:19,952 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-29351459, IP 76.71.127.67, Port 22 2025-08-04 03:01:20,019 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-04 03:01:20,139 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-04 03:01:25,140 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:25,140 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-29351459, IP 76.71.127.67, Port 22 2025-08-04 03:01:25,306 - DEBUG - VM ctest-TestBasicPolicy-79841335-29351459 is ready for SSH connections 2025-08-04 03:01:25,306 - INFO - Waiting for VM ctest-TestBasicPolicy-79841335-18624577 to be up.. 2025-08-04 03:01:25,395 - DEBUG - VM is in ACTIVE state now 2025-08-04 03:01:25,395 - INFO - VM name : ctest-TestBasicPolicy-79841335-18624577 2025-08-04 03:01:25,497 - DEBUG - VM ctest-TestBasicPolicy-79841335-18624577 ID is b50f265e-708b-4685-afd8-ae748fe71119 2025-08-04 03:01:25,497 - DEBUG - VM ctest-TestBasicPolicy-79841335-18624577 launched on Node an-jenkins-deploy-platform-ansible-os-3750-1 2025-08-04 03:01:25,607 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine/b50f265e-708b-4685-afd8-ae748fe71119 2025-08-04 03:01:25,624 - DEBUG - Requesting: http://10.0.0.61:8082/virtual-machine-interface/f436d433-2c8c-4c7b-b36e-d35b3fb9bd3f 2025-08-04 03:01:26,860 - 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=6.50 ms\r\n64 bytes from 169.254.0.3: icmp_seq=2 ttl=63 time=0.374 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.374/3.437/6.501/3.063 ms') 2025-08-04 03:01:26,860 - INFO - Ping to Metadata IP 169.254.0.3 of VM ctest-TestBasicPolicy-79841335-18624577 passed 2025-08-04 03:01:26,981 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:26,981 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-18624577, IP 114.45.216.131, Port 22 2025-08-04 03:01:27,038 - DEBUG - Error on ssh to ubuntu@169.254.0.3:22, result: /bin/bash: connect: Connection refused /bin/bash: line 1: /dev/tcp/169.254.0.3/22: Connection refused {'failed': True, 'command': '(echo > /dev/tcp/169.254.0.3/22)', 'real_command': '/bin/bash -l -c "(echo > /dev/tcp/169.254.0.3/22)"', 'return_code': 1, 'succeeded': False, 'stderr': ''} 2025-08-04 03:01:27,149 - DEBUG - VM ctest-TestBasicPolicy-79841335-18624577 is NOT ready for SSH connections, VM status: ACTIVE 2025-08-04 03:01:32,149 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:32,149 - DEBUG - Waiting to SSH to VM ctest-TestBasicPolicy-79841335-18624577, IP 114.45.216.131, Port 22 2025-08-04 03:01:32,324 - DEBUG - VM ctest-TestBasicPolicy-79841335-18624577 is ready for SSH connections 2025-08-04 03:01:32,324 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:01:32,324 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.45.216.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-04 03:01:32,324 - DEBUG - ping -s 56 -c 3 -W 1 114.45.216.131 2025-08-04 03:02:22,730 - DEBUG - PING 114.45.216.131 (114.45.216.131) 56(84) bytes of data. 64 bytes from 114.45.216.131: icmp_req=1 ttl=63 time=6.27 ms 64 bytes from 114.45.216.131: icmp_req=2 ttl=63 time=1.13 ms 64 bytes from 114.45.216.131: icmp_req=3 ttl=63 time=1.08 ms --- 114.45.216.131 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.082/2.830/6.271/2.433 ms 2025-08-04 03:02:22,730 - INFO - Ping to IP 114.45.216.131 from VM ctest-TestBasicPolicy-79841335-29351459 passed 2025-08-04 03:02:23,040 - DEBUG - Policy Update Response {"network-policy": {"uuid": "29347525-5527-4263-abf3-4e7be830b7be", "href": "http://10.0.0.61:8082/network-policy/29347525-5527-4263-abf3-4e7be830b7be"}} 2025-08-04 03:02:23,040 - DEBUG - verify_vm_launched is skipped since self.vm_launch_flag is set 2025-08-04 03:02:23,040 - DEBUG - Running remote_cmd, Cmd : ping -s 56 -c 3 -W 1 114.45.216.131, host_string: ubuntu@169.254.0.3, password: ubuntugateway: ubuntu@10.0.0.57, gateway password: c0ntrail123 2025-08-04 03:02:23,040 - DEBUG - ping -s 56 -c 3 -W 1 114.45.216.131 2025-08-04 03:02:26,501 - DEBUG - PING 114.45.216.131 (114.45.216.131) 56(84) bytes of data. 64 bytes from 114.45.216.131: icmp_req=1 ttl=63 time=2.61 ms --- 114.45.216.131 ping statistics --- 3 packets transmitted, 1 received, 66% packet loss, time 2009ms rtt min/avg/max/mdev = 2.610/2.610/2.610/0.000 ms 2025-08-04 03:02:26,501 - WARNING - Ping to IP 114.45.216.131 from VM ctest-TestBasicPolicy-79841335-29351459 failed 2025-08-04 03:02:26,501 - INFO - Deleting VM ctest-TestBasicPolicy-79841335-18624577 2025-08-04 03:02:26,578 - INFO - Deleting VM ctest-TestBasicPolicy-79841335-29351459 2025-08-04 03:02:27,155 - INFO - Deleted policy ctest-policy-allow-all-73149052 2025-08-04 03:02:27,155 - INFO - Deleting VN ctest-vn-91509701 2025-08-04 03:02:27,226 - DEBUG - VN b57e83aa-d30f-41a5-a305-8da66a177fbf still in use: Unable to complete operation on network b57e83aa-d30f-41a5-a305-8da66a177fbf. There are one or more ports still in use on the network. Neutron server returns request_ids: ['req-3b387e62-16d8-4b09-8d0a-ffd98bdc6e3a'] 2025-08-04 03:02:27,226 - WARNING - Deleting VN ctest-vn-91509701 failed..Will retry 2025-08-04 03:02:29,508 - DEBUG - Response for deleting network () 2025-08-04 03:02:29,509 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/0d534511-b523-4b8f-81d7-567e20f1579a 2025-08-04 03:02:29,518 - DEBUG - Response Code: 404 2025-08-04 03:02:29,519 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:02:29,537 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:02:29,563 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:02:29,681 - INFO - Validated that VN ctest-vn-91509701 is not found in API Server 2025-08-04 03:02:29,709 - DEBUG - VN ctest-vn-91509701 is not present in Agent 10.0.0.41 2025-08-04 03:02:29,733 - DEBUG - VN ctest-vn-91509701 is not present in Agent 10.0.0.57 2025-08-04 03:02:29,733 - INFO - Validated that VN ctest-vn-91509701 is not in any agent 2025-08-04 03:02:29,782 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-91509701 info 2025-08-04 03:02:29,783 - INFO - Deleting VN ctest-vn-73793936 2025-08-04 03:02:30,010 - DEBUG - Response for deleting network () 2025-08-04 03:02:30,010 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/204c57dd-bbee-45ba-972d-bcbe8a3ed54b 2025-08-04 03:02:30,022 - DEBUG - Response Code: 404 2025-08-04 03:02:30,022 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-04 03:02:30,046 - DEBUG - Requesting: http://10.0.0.27:8082/domain/8d00e278-1e00-4abc-a644-cc23d080d5d1 2025-08-04 03:02:30,091 - DEBUG - Requesting: http://10.0.0.27:8082/project/258c2744-d5c2-40c3-834c-aac382d09987 2025-08-04 03:02:30,199 - INFO - Validated that VN ctest-vn-73793936 is not found in API Server 2025-08-04 03:02:30,229 - DEBUG - VN ctest-vn-73793936 is not present in Agent 10.0.0.41 2025-08-04 03:02:30,245 - DEBUG - VN ctest-vn-73793936 is not present in Agent 10.0.0.57 2025-08-04 03:02:30,245 - INFO - Validated that VN ctest-vn-73793936 is not in any agent 2025-08-04 03:02:30,295 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn-73793936 info 2025-08-04 03:02:31,603 - DEBUG - No XMPP flaps were noticed during the test
2025-08-04 03:02:31,603 - INFO - END TEST : test_basic_policy_allow_deny : PASSED[0:02:11]
2025-08-04 03:02:31,603 - INFO - -------------------------------------------------------------------------------- 2025-08-04 03:02:32,723 - INFO - Deleted project: ctest-TestBasicPolicy-79841335, ID : 258c2744-d5c2-40c3-834c-aac382d09987