2025-07-18 18:31:24,361 - INFO - Domain Default found not creating
2025-07-18 18:31:24,508 - INFO - Project ctest-TestBasicPolicy-32699721 not found, creating it
2025-07-18 18:31:24,987 - INFO - Created Project:ctest-TestBasicPolicy-32699721, ID : 20d9dd45-c876-4268-aba8-7e65ccefa936
2025-07-18 18:31:26,579 - INFO - ================================================================================
2025-07-18 18:31:26,579 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-18 18:31:26,579 - 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-07-18 18:31:26,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-18 18:31:26,834 - INFO - Initial checks done. Running the testcase now
2025-07-18 18:31:26,834 - INFO -
2025-07-18 18:31:27,466 - DEBUG - Response for create_network : {'network': {'id': 'e99730d0-b362-469f-9f32-ded37a7a0964', 'name': 'ctest-vn-55831302', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'project_id': '20d9dd45c8764268aba87e65ccefa936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-vn-55831302'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 18:31:27,701 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e468ca8b-e6b6-496c-8242-c36a385e3fb7', 'name': '', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'network_id': 'e99730d0-b362-469f-9f32-ded37a7a0964', 'ip_version': 4, 'cidr': '91.172.87.0/26', 'allocation_pools': [{'start': '91.172.87.2', 'end': '91.172.87.62'}], 'gateway_ip': '91.172.87.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '91.172.87.2', 'tags': [], 'project_id': '20d9dd45c8764268aba87e65ccefa936'}}
2025-07-18 18:31:27,721 - INFO - Created VN ctest-vn-55831302
2025-07-18 18:31:27,772 - DEBUG - VN ctest-vn-55831302 UUID is e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:28,089 - DEBUG - Response for create_network : {'network': {'id': '7fc04b6e-507a-4f8e-a53f-16c1c453665c', 'name': 'ctest-vn-84589608', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'project_id': '20d9dd45c8764268aba87e65ccefa936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-vn-84589608'], 'port_security_enabled': True, 'description': ''}}
2025-07-18 18:31:28,257 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c412697-da2e-43da-a5e0-3ea2387cfb53', 'name': '', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'network_id': '7fc04b6e-507a-4f8e-a53f-16c1c453665c', 'ip_version': 4, 'cidr': '8.192.9.128/26', 'allocation_pools': [{'start': '8.192.9.130', 'end': '8.192.9.190'}], 'gateway_ip': '8.192.9.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.192.9.130', 'tags': [], 'project_id': '20d9dd45c8764268aba87e65ccefa936'}}
2025-07-18 18:31:28,275 - INFO - Created VN ctest-vn-84589608
2025-07-18 18:31:28,328 - DEBUG - VN ctest-vn-84589608 UUID is 7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:28,480 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302, 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-32699721:ctest-vn-84589608, 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-07-18 18:31:28,792 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e99730d0-b362-469f-9f32-ded37a7a0964', 'name': 'ctest-vn-55831302', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'project_id': '20d9dd45c8764268aba87e65ccefa936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e468ca8b-e6b6-496c-8242-c36a385e3fb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-vn-55831302'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-policy-allow-all-85009971']], 'subnet_ipam': [{'subnet_cidr': '91.172.87.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 18:31:29,025 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7fc04b6e-507a-4f8e-a53f-16c1c453665c', 'name': 'ctest-vn-84589608', 'tenant_id': '20d9dd45c8764268aba87e65ccefa936', 'project_id': '20d9dd45c8764268aba87e65ccefa936', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c412697-da2e-43da-a5e0-3ea2387cfb53'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-vn-84589608'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-policy-allow-all-85009971']], 'subnet_ipam': [{'subnet_cidr': '8.192.9.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-18 18:31:29,176 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 18:31:29,514 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 18:31:29,543 - DEBUG - Requesting: http://10.0.0.254:8082/domain/58970787-2a19-47bf-854e-587baf473ab7
2025-07-18 18:31:29,556 - DEBUG - Requesting: http://10.0.0.254:8082/project/20d9dd45-c876-4268-aba8-7e65ccefa936
2025-07-18 18:31:29,627 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,640 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,651 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3dec3e1f-c964-4626-a0db-a0ec8426e9b1
2025-07-18 18:31:29,658 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3dec3e1f-c964-4626-a0db-a0ec8426e9b1
2025-07-18 18:31:29,666 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dbf197bb-3812-4755-a0e4-a1dfb249bfdd
2025-07-18 18:31:29,672 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 18:31:29,672 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,682 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3dec3e1f-c964-4626-a0db-a0ec8426e9b1
2025-07-18 18:31:29,695 - INFO - Verified VN network id 8 for VN e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,696 - INFO - Verifications in API Server for VN ctest-vn-55831302 passed
2025-07-18 18:31:29,696 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,705 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3dec3e1f-c964-4626-a0db-a0ec8426e9b1
2025-07-18 18:31:29,712 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3dec3e1f-c964-4626-a0db-a0ec8426e9b1
2025-07-18 18:31:29,718 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/dbf197bb-3812-4755-a0e4-a1dfb249bfdd
2025-07-18 18:31:29,730 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32699721', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16831975805241411231', 'uuid-lslong': '11471476200740358500'}, 'enable': 'true', 'created': '2025-07-18T18:31:27', 'last-modified': '2025-07-18T18:31:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965784'}
2025-07-18 18:31:29,737 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-18 18:31:29,738 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55831302 passed
2025-07-18 18:31:29,738 - DEBUG - ====Verifying policy data for ctest-vn-55831302 in API_Server ======
2025-07-18 18:31:29,738 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 18:31:29,744 - DEBUG - Requesting: http://10.0.0.254:8082/domain/58970787-2a19-47bf-854e-587baf473ab7
2025-07-18 18:31:29,755 - DEBUG - Requesting: http://10.0.0.254:8082/project/20d9dd45-c876-4268-aba8-7e65ccefa936
2025-07-18 18:31:29,829 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e99730d0-b362-469f-9f32-ded37a7a0964
2025-07-18 18:31:29,839 - DEBUG - ==>Verifying data for policy with id: 994a9ed4-ad98-42ca-a1ad-9e35c5ea1be2, fqn: ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-policy-allow-all-85009971']
2025-07-18 18:31:29,839 - INFO - VN ctest-vn-55831302 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 18:31:29,839 - DEBUG - Verifying the vn in opserver
2025-07-18 18:31:29,839 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302 virtual network link through opserver 10.0.0.254
2025-07-18 18:31:29,839 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 18:31:30,171 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 18:31:30,227 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302?flat'}
2025-07-18 18:31:30,227 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-55831302 is found in opserver
2025-07-18 18:31:30,238 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 18:31:30,244 - DEBUG - VRF ids for VN ctest-vn-55831302: {}
2025-07-18 18:31:30,244 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 18:31:30,250 - DEBUG - Requesting: http://10.0.0.254:8082/domain/58970787-2a19-47bf-854e-587baf473ab7
2025-07-18 18:31:30,263 - DEBUG - Requesting: http://10.0.0.254:8082/project/20d9dd45-c876-4268-aba8-7e65ccefa936
2025-07-18 18:31:30,335 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,349 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,359 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/50d44bb6-cb16-4620-93a2-1c7c3d279053
2025-07-18 18:31:30,367 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/50d44bb6-cb16-4620-93a2-1c7c3d279053
2025-07-18 18:31:30,374 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fe074781-0315-47b6-9a1f-2a8b03e74442
2025-07-18 18:31:30,380 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 18:31:30,380 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/50d44bb6-cb16-4620-93a2-1c7c3d279053
2025-07-18 18:31:30,405 - INFO - Verified VN network id 9 for VN 7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,405 - INFO - Verifications in API Server for VN ctest-vn-84589608 passed
2025-07-18 18:31:30,405 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,415 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/50d44bb6-cb16-4620-93a2-1c7c3d279053
2025-07-18 18:31:30,422 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/50d44bb6-cb16-4620-93a2-1c7c3d279053
2025-07-18 18:31:30,428 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/fe074781-0315-47b6-9a1f-2a8b03e74442
2025-07-18 18:31:30,440 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-84589608', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-32699721', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9205440575513972622', 'uuid-lslong': '11907260961269179996'}, 'enable': 'true', 'created': '2025-07-18T18:31:28', 'last-modified': '2025-07-18T18:31:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437863'}
2025-07-18 18:31:30,446 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-18 18:31:30,446 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-84589608 passed
2025-07-18 18:31:30,447 - DEBUG - ====Verifying policy data for ctest-vn-84589608 in API_Server ======
2025-07-18 18:31:30,447 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-18 18:31:30,452 - DEBUG - Requesting: http://10.0.0.254:8082/domain/58970787-2a19-47bf-854e-587baf473ab7
2025-07-18 18:31:30,463 - DEBUG - Requesting: http://10.0.0.254:8082/project/20d9dd45-c876-4268-aba8-7e65ccefa936
2025-07-18 18:31:30,542 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7fc04b6e-507a-4f8e-a53f-16c1c453665c
2025-07-18 18:31:30,556 - DEBUG - ==>Verifying data for policy with id: 994a9ed4-ad98-42ca-a1ad-9e35c5ea1be2, fqn: ['default-domain', 'ctest-TestBasicPolicy-32699721', 'ctest-policy-allow-all-85009971']
2025-07-18 18:31:30,556 - INFO - VN ctest-vn-84589608 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-18 18:31:30,556 - DEBUG - Verifying the vn in opserver
2025-07-18 18:31:30,556 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-84589608 virtual network link through opserver 10.0.0.254
2025-07-18 18:31:30,556 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-18 18:31:30,568 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-84589608', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-84589608?flat'}
2025-07-18 18:31:30,568 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-32699721:ctest-vn-84589608 is found in opserver
2025-07-18 18:31:30,579 - DEBUG - Do not have enough data to verify VN in agent
2025-07-18 18:31:30,584 - DEBUG - VRF ids for VN ctest-vn-84589608: {}
2025-07-18 18:31:30,639 - DEBUG - Services list from nova: [