2025-02-10 10:13:16,588 - INFO - Domain Default found not creating
2025-02-10 10:13:16,713 - INFO - Project ctest-TestBasicPolicy-21638520 not found, creating it
2025-02-10 10:13:17,159 - INFO - Created Project:ctest-TestBasicPolicy-21638520, ID : 57b22aef-7433-40d9-8da0-6d0e7d348011
2025-02-10 10:13:18,669 - INFO - ================================================================================
2025-02-10 10:13:18,670 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-10 10:13:18,670 - 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-02-10 10:13:18,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.45': {'10.20.0.10': '0'}} with
2025-02-10 10:13:18,932 - INFO - Initial checks done. Running the testcase now
2025-02-10 10:13:18,932 - INFO -
2025-02-10 10:13:19,463 - DEBUG - Response for create_network : {'network': {'id': 'f662ccc3-a166-4b92-ba7e-8cfd0a8c258d', 'name': 'ctest-vn-07731663', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'project_id': '57b22aef743340d98da06d0e7d348011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-vn-07731663'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 10:13:19,634 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe6d8e08-fdd8-47ac-9596-d3234d065d5a', 'name': '', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'network_id': 'f662ccc3-a166-4b92-ba7e-8cfd0a8c258d', 'ip_version': 4, 'cidr': '61.32.135.192/26', 'allocation_pools': [{'start': '61.32.135.194', 'end': '61.32.135.254'}], 'gateway_ip': '61.32.135.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '61.32.135.194', 'tags': [], 'project_id': '57b22aef743340d98da06d0e7d348011'}}
2025-02-10 10:13:19,652 - INFO - Created VN ctest-vn-07731663
2025-02-10 10:13:19,706 - DEBUG - VN ctest-vn-07731663 UUID is f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:20,017 - DEBUG - Response for create_network : {'network': {'id': '2728c451-335b-4671-a508-7e30680a273b', 'name': 'ctest-vn-47076069', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'project_id': '57b22aef743340d98da06d0e7d348011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-vn-47076069'], 'port_security_enabled': True, 'description': ''}}
2025-02-10 10:13:20,176 - DEBUG - Response for create_subnet : {'subnet': {'id': '5d375d6c-0e5d-4286-8848-51334b30a300', 'name': '', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'network_id': '2728c451-335b-4671-a508-7e30680a273b', 'ip_version': 4, 'cidr': '126.206.14.0/26', 'allocation_pools': [{'start': '126.206.14.2', 'end': '126.206.14.62'}], 'gateway_ip': '126.206.14.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '126.206.14.2', 'tags': [], 'project_id': '57b22aef743340d98da06d0e7d348011'}}
2025-02-10 10:13:20,192 - INFO - Created VN ctest-vn-47076069
2025-02-10 10:13:20,242 - DEBUG - VN ctest-vn-47076069 UUID is 2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:20,386 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663, 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-21638520:ctest-vn-47076069, 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-02-10 10:13:20,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f662ccc3-a166-4b92-ba7e-8cfd0a8c258d', 'name': 'ctest-vn-07731663', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'project_id': '57b22aef743340d98da06d0e7d348011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fe6d8e08-fdd8-47ac-9596-d3234d065d5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-vn-07731663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-policy-allow-all-88419619']], 'subnet_ipam': [{'subnet_cidr': '61.32.135.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 10:13:20,911 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2728c451-335b-4671-a508-7e30680a273b', 'name': 'ctest-vn-47076069', 'tenant_id': '57b22aef743340d98da06d0e7d348011', 'project_id': '57b22aef743340d98da06d0e7d348011', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5d375d6c-0e5d-4286-8848-51334b30a300'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-vn-47076069'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-policy-allow-all-88419619']], 'subnet_ipam': [{'subnet_cidr': '126.206.14.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-10 10:13:21,074 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-10 10:13:21,363 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-10 10:13:21,389 - DEBUG - Requesting: http://10.0.0.45:8082/domain/6f989ccb-d53f-45ea-91e0-2775f4220d16
2025-02-10 10:13:21,402 - DEBUG - Requesting: http://10.0.0.45:8082/project/57b22aef-7433-40d9-8da0-6d0e7d348011
2025-02-10 10:13:21,475 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,486 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,495 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e90b63b7-5164-4ba2-a65e-bb3b518ffbc8
2025-02-10 10:13:21,502 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e90b63b7-5164-4ba2-a65e-bb3b518ffbc8
2025-02-10 10:13:21,508 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/4557984f-3850-469d-b4e9-b31d62e7dd81
2025-02-10 10:13:21,514 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 10:13:21,514 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,522 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e90b63b7-5164-4ba2-a65e-bb3b518ffbc8
2025-02-10 10:13:21,534 - INFO - Verified VN network id 9 for VN f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,534 - INFO - Verifications in API Server for VN ctest-vn-07731663 passed
2025-02-10 10:13:21,534 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,543 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e90b63b7-5164-4ba2-a65e-bb3b518ffbc8
2025-02-10 10:13:21,549 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/e90b63b7-5164-4ba2-a65e-bb3b518ffbc8
2025-02-10 10:13:21,554 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/4557984f-3850-469d-b4e9-b31d62e7dd81
2025-02-10 10:13:21,566 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21638520', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17753977821646441362', 'uuid-lslong': '13438333356551710093'}, 'enable': 'true', 'created': '2025-02-10T10:13:19', 'last-modified': '2025-02-10T10:13:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.906129'}
2025-02-10 10:13:21,571 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-10 10:13:21,572 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07731663 passed
2025-02-10 10:13:21,572 - DEBUG - ====Verifying policy data for ctest-vn-07731663 in API_Server ======
2025-02-10 10:13:21,572 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-10 10:13:21,576 - DEBUG - Requesting: http://10.0.0.45:8082/domain/6f989ccb-d53f-45ea-91e0-2775f4220d16
2025-02-10 10:13:21,586 - DEBUG - Requesting: http://10.0.0.45:8082/project/57b22aef-7433-40d9-8da0-6d0e7d348011
2025-02-10 10:13:21,657 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/f662ccc3-a166-4b92-ba7e-8cfd0a8c258d
2025-02-10 10:13:21,667 - DEBUG - ==>Verifying data for policy with id: 5b7dea12-c828-4348-ad15-365629ffc569, fqn: ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-policy-allow-all-88419619']
2025-02-10 10:13:21,667 - INFO - VN ctest-vn-07731663 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 10:13:21,667 - DEBUG - Verifying the vn in opserver
2025-02-10 10:13:21,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663 virtual network link through opserver 10.0.0.45
2025-02-10 10:13:21,667 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-10 10:13:21,958 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-10 10:13:22,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663?flat'}
2025-02-10 10:13:22,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-07731663 is found in opserver
2025-02-10 10:13:22,021 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 10:13:22,026 - DEBUG - VRF ids for VN ctest-vn-07731663: {}
2025-02-10 10:13:22,026 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-10 10:13:22,033 - DEBUG - Requesting: http://10.0.0.45:8082/domain/6f989ccb-d53f-45ea-91e0-2775f4220d16
2025-02-10 10:13:22,044 - DEBUG - Requesting: http://10.0.0.45:8082/project/57b22aef-7433-40d9-8da0-6d0e7d348011
2025-02-10 10:13:22,121 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,132 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,142 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d8254d55-a0f6-424d-97c1-3c53cd942aa2
2025-02-10 10:13:22,148 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d8254d55-a0f6-424d-97c1-3c53cd942aa2
2025-02-10 10:13:22,155 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/948d8dfb-4a76-488f-b502-0f59a4bbfbeb
2025-02-10 10:13:22,160 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 10:13:22,160 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,169 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d8254d55-a0f6-424d-97c1-3c53cd942aa2
2025-02-10 10:13:22,182 - INFO - Verified VN network id 10 for VN 2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,182 - INFO - Verifications in API Server for VN ctest-vn-47076069 passed
2025-02-10 10:13:22,182 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,191 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d8254d55-a0f6-424d-97c1-3c53cd942aa2
2025-02-10 10:13:22,198 - DEBUG - Requesting: http://10.0.0.45:8082/routing-instance/d8254d55-a0f6-424d-97c1-3c53cd942aa2
2025-02-10 10:13:22,204 - DEBUG - Requesting: http://10.0.0.45:8082/route-target/948d8dfb-4a76-488f-b502-0f59a4bbfbeb
2025-02-10 10:13:22,215 - DEBUG - Control-node 10.0.0.45 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-47076069', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-21638520', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2821721019580630641', 'uuid-lslong': '11891893562440820539'}, 'enable': 'true', 'created': '2025-02-10T10:13:19', 'last-modified': '2025-02-10T10:13:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.325908'}
2025-02-10 10:13:22,222 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-10 10:13:22,222 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47076069 passed
2025-02-10 10:13:22,222 - DEBUG - ====Verifying policy data for ctest-vn-47076069 in API_Server ======
2025-02-10 10:13:22,222 - DEBUG - Requesting: http://10.0.0.45:8082/domains
2025-02-10 10:13:22,228 - DEBUG - Requesting: http://10.0.0.45:8082/domain/6f989ccb-d53f-45ea-91e0-2775f4220d16
2025-02-10 10:13:22,240 - DEBUG - Requesting: http://10.0.0.45:8082/project/57b22aef-7433-40d9-8da0-6d0e7d348011
2025-02-10 10:13:22,312 - DEBUG - Requesting: http://10.0.0.45:8082/virtual-network/2728c451-335b-4671-a508-7e30680a273b
2025-02-10 10:13:22,322 - DEBUG - ==>Verifying data for policy with id: 5b7dea12-c828-4348-ad15-365629ffc569, fqn: ['default-domain', 'ctest-TestBasicPolicy-21638520', 'ctest-policy-allow-all-88419619']
2025-02-10 10:13:22,322 - INFO - VN ctest-vn-47076069 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-10 10:13:22,322 - DEBUG - Verifying the vn in opserver
2025-02-10 10:13:22,322 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-47076069 virtual network link through opserver 10.0.0.45
2025-02-10 10:13:22,322 - DEBUG - Requesting: http://10.0.0.45:8081/analytics/uves/virtual-networks
2025-02-10 10:13:22,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-47076069', 'href': 'http://10.0.0.45:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-47076069?flat'}
2025-02-10 10:13:22,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-21638520:ctest-vn-47076069 is found in opserver
2025-02-10 10:13:22,343 - DEBUG - Do not have enough data to verify VN in agent
2025-02-10 10:13:22,348 - DEBUG - VRF ids for VN ctest-vn-47076069: {}
2025-02-10 10:13:22,402 - DEBUG - Services list from nova: [