2025-06-12 02:06:01,544 - INFO - Reading existing Domain with UUID bdbe3031-7e2d-440d-9beb-999b09a0498c
2025-06-12 02:06:01,560 - INFO - Using existing domain ['admin_domain'](bdbe3031-7e2d-440d-9beb-999b09a0498c)
2025-06-12 02:06:01,755 - INFO - Project ctest-TestBasicPolicy-14631470 not found, creating it
2025-06-12 02:06:02,265 - INFO - Created Project:ctest-TestBasicPolicy-14631470, ID : 179c70e5-e4d4-40e4-9865-2dde522eb774
2025-06-12 02:06:03,953 - INFO - ================================================================================
2025-06-12 02:06:03,954 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-12 02:06:03,954 - 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-12 02:06:04,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.0.0.56': '0'}} with
2025-06-12 02:06:04,319 - INFO - Initial checks done. Running the testcase now
2025-06-12 02:06:04,319 - INFO -
2025-06-12 02:06:05,310 - DEBUG - Response for create_network : {'network': {'id': 'ebbcc628-e394-4b45-9b0e-ffd3d7407b1e', 'name': 'ctest-vn-56695935', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'project_id': '179c70e5e4d440e498652dde522eb774', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-vn-56695935'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-12 02:06:05,566 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b1ec3964-9fe9-4e77-be9f-2d25d418f914', 'name': '', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'network_id': 'ebbcc628-e394-4b45-9b0e-ffd3d7407b1e', 'ip_version': 4, 'cidr': '103.63.142.192/26', 'allocation_pools': [{'start': '103.63.142.194', 'end': '103.63.142.254'}], 'gateway_ip': '103.63.142.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-12T02:06:05.440226', 'updated_at': '2025-06-12T02:06:05.440226', 'dns_server_address': '103.63.142.194', 'tags': [], 'project_id': '179c70e5e4d440e498652dde522eb774'}}
2025-06-12 02:06:05,632 - INFO - Created VN ctest-vn-56695935
2025-06-12 02:06:05,686 - DEBUG - VN ctest-vn-56695935 UUID is ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:06,250 - DEBUG - Response for create_network : {'network': {'id': '811f0189-89c2-4ec8-9999-d3ad86ca88ec', 'name': 'ctest-vn-48124814', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'project_id': '179c70e5e4d440e498652dde522eb774', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-vn-48124814'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}}
2025-06-12 02:06:06,510 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cea577de-2054-498c-8354-bcdd2174f15b', 'name': '', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'network_id': '811f0189-89c2-4ec8-9999-d3ad86ca88ec', 'ip_version': 4, 'cidr': '162.117.201.64/26', 'allocation_pools': [{'start': '162.117.201.66', 'end': '162.117.201.126'}], 'gateway_ip': '162.117.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-06-12T02:06:06.356710', 'updated_at': '2025-06-12T02:06:06.356710', 'dns_server_address': '162.117.201.66', 'tags': [], 'project_id': '179c70e5e4d440e498652dde522eb774'}}
2025-06-12 02:06:06,576 - INFO - Created VN ctest-vn-48124814
2025-06-12 02:06:06,638 - DEBUG - VN ctest-vn-48124814 UUID is 811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:06,851 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814, 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-12 02:06:07,265 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ebbcc628-e394-4b45-9b0e-ffd3d7407b1e', 'name': 'ctest-vn-56695935', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'project_id': '179c70e5e4d440e498652dde522eb774', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b1ec3964-9fe9-4e77-be9f-2d25d418f914'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-vn-56695935'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-policy-allow-all-76438562']], 'subnet_ipam': [{'subnet_cidr': '103.63.142.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-12T02:06:05.042646', 'updated_at': '2025-06-12T02:06:05.454756'}}
2025-06-12 02:06:07,617 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '811f0189-89c2-4ec8-9999-d3ad86ca88ec', 'name': 'ctest-vn-48124814', 'tenant_id': '179c70e5e4d440e498652dde522eb774', 'project_id': '179c70e5e4d440e498652dde522eb774', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cea577de-2054-498c-8354-bcdd2174f15b'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-vn-48124814'], 'policys': [['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-policy-allow-all-76438562']], 'subnet_ipam': [{'subnet_cidr': '162.117.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-06-12T02:06:06.170683', 'updated_at': '2025-06-12T02:06:06.368906'}}
2025-06-12 02:06:07,838 - DEBUG - Requesting: https://10.0.0.56:8082/domains
2025-06-12 02:06:08,188 - DEBUG - Requesting: https://10.0.0.56:8082/domains
2025-06-12 02:06:08,270 - DEBUG - Requesting: https://10.0.0.56:8082/domain/bdbe3031-7e2d-440d-9beb-999b09a0498c
2025-06-12 02:06:08,327 - DEBUG - Requesting: https://10.0.0.56:8082/project/179c70e5-e4d4-40e4-9865-2dde522eb774
2025-06-12 02:06:08,407 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:08,464 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:08,524 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/85fedeac-1cf2-45e7-89a9-042df809f73e
2025-06-12 02:06:08,583 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/85fedeac-1cf2-45e7-89a9-042df809f73e
2025-06-12 02:06:08,635 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/79b78073-732e-44a4-bfd4-21858f29cfdf
2025-06-12 02:06:08,687 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:06:08,687 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:08,744 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/85fedeac-1cf2-45e7-89a9-042df809f73e
2025-06-12 02:06:08,807 - INFO - Verified VN network id 7 for VN ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:08,807 - INFO - Verifications in API Server for VN ctest-vn-56695935 passed
2025-06-12 02:06:08,807 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:08,864 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/85fedeac-1cf2-45e7-89a9-042df809f73e
2025-06-12 02:06:08,919 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/85fedeac-1cf2-45e7-89a9-042df809f73e
2025-06-12 02:06:08,975 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/79b78073-732e-44a4-bfd4-21858f29cfdf
2025-06-12 02:06:09,079 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14631470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16986669773453806405', 'uuid-lslong': '11173149010867288862'}, 'enable': 'true', 'created': '2025-06-12T02:06:05', 'last-modified': '2025-06-12T02:06:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.854478'}
2025-06-12 02:06:09,128 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-12 02:06:09,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56695935 passed
2025-06-12 02:06:09,128 - DEBUG - ====Verifying policy data for ctest-vn-56695935 in API_Server ======
2025-06-12 02:06:09,128 - DEBUG - Requesting: https://10.0.0.56:8082/domains
2025-06-12 02:06:09,178 - DEBUG - Requesting: https://10.0.0.56:8082/domain/bdbe3031-7e2d-440d-9beb-999b09a0498c
2025-06-12 02:06:09,286 - DEBUG - Requesting: https://10.0.0.56:8082/project/179c70e5-e4d4-40e4-9865-2dde522eb774
2025-06-12 02:06:09,368 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/ebbcc628-e394-4b45-9b0e-ffd3d7407b1e
2025-06-12 02:06:09,424 - DEBUG - ==>Verifying data for policy with id: 117e5b0f-5ad6-4ec1-a2a5-595fdf84b443, fqn: ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-policy-allow-all-76438562']
2025-06-12 02:06:09,424 - INFO - VN ctest-vn-56695935 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:06:09,424 - DEBUG - Verifying the vn in opserver
2025-06-12 02:06:09,424 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935 virtual network link through opserver 10.0.0.56
2025-06-12 02:06:09,424 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-12 02:06:09,774 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-12 02:06:09,882 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935', 'href': 'https://10.0.0.56:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935?flat'}
2025-06-12 02:06:09,882 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-56695935 is found in opserver
2025-06-12 02:06:09,978 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:06:10,026 - DEBUG - VRF ids for VN ctest-vn-56695935: {}
2025-06-12 02:06:10,026 - DEBUG - Requesting: https://10.0.0.56:8082/domains
2025-06-12 02:06:10,078 - DEBUG - Requesting: https://10.0.0.56:8082/domain/bdbe3031-7e2d-440d-9beb-999b09a0498c
2025-06-12 02:06:10,135 - DEBUG - Requesting: https://10.0.0.56:8082/project/179c70e5-e4d4-40e4-9865-2dde522eb774
2025-06-12 02:06:10,219 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:10,276 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:10,332 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9530a969-b958-49eb-bfd2-44802822ffc4
2025-06-12 02:06:10,387 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9530a969-b958-49eb-bfd2-44802822ffc4
2025-06-12 02:06:10,439 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/410f9ff5-02a6-4c32-8a63-19b5b00f3745
2025-06-12 02:06:10,491 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:06:10,491 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:10,548 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9530a969-b958-49eb-bfd2-44802822ffc4
2025-06-12 02:06:10,616 - INFO - Verified VN network id 8 for VN 811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:10,616 - INFO - Verifications in API Server for VN ctest-vn-48124814 passed
2025-06-12 02:06:10,616 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:10,672 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9530a969-b958-49eb-bfd2-44802822ffc4
2025-06-12 02:06:10,727 - DEBUG - Requesting: https://10.0.0.56:8082/routing-instance/9530a969-b958-49eb-bfd2-44802822ffc4
2025-06-12 02:06:10,783 - DEBUG - Requesting: https://10.0.0.56:8082/route-target/410f9ff5-02a6-4c32-8a63-19b5b00f3745
2025-06-12 02:06:10,887 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14631470', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9304157045404094152', 'uuid-lslong': '11068110301483927788'}, 'enable': 'true', 'created': '2025-06-12T02:06:06', 'last-modified': '2025-06-12T02:06:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:03.310686'}
2025-06-12 02:06:10,940 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-12 02:06:10,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48124814 passed
2025-06-12 02:06:10,941 - DEBUG - ====Verifying policy data for ctest-vn-48124814 in API_Server ======
2025-06-12 02:06:10,941 - DEBUG - Requesting: https://10.0.0.56:8082/domains
2025-06-12 02:06:10,998 - DEBUG - Requesting: https://10.0.0.56:8082/domain/bdbe3031-7e2d-440d-9beb-999b09a0498c
2025-06-12 02:06:11,059 - DEBUG - Requesting: https://10.0.0.56:8082/project/179c70e5-e4d4-40e4-9865-2dde522eb774
2025-06-12 02:06:11,147 - DEBUG - Requesting: https://10.0.0.56:8082/virtual-network/811f0189-89c2-4ec8-9999-d3ad86ca88ec
2025-06-12 02:06:11,206 - DEBUG - ==>Verifying data for policy with id: 117e5b0f-5ad6-4ec1-a2a5-595fdf84b443, fqn: ['admin_domain', 'ctest-TestBasicPolicy-14631470', 'ctest-policy-allow-all-76438562']
2025-06-12 02:06:11,206 - INFO - VN ctest-vn-48124814 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-12 02:06:11,206 - DEBUG - Verifying the vn in opserver
2025-06-12 02:06:11,207 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814 virtual network link through opserver 10.0.0.56
2025-06-12 02:06:11,207 - DEBUG - Requesting: https://10.0.0.56:8081/analytics/uves/virtual-networks
2025-06-12 02:06:11,263 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814', 'href': 'https://10.0.0.56:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814?flat'}
2025-06-12 02:06:11,263 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicy-14631470:ctest-vn-48124814 is found in opserver
2025-06-12 02:06:11,366 - DEBUG - Do not have enough data to verify VN in agent
2025-06-12 02:06:11,418 - DEBUG - VRF ids for VN ctest-vn-48124814: {}
2025-06-12 02:06:11,482 - DEBUG - Services list from nova: [