2026-03-04 17:39:46,082 - INFO - Domain Default found not creating
2026-03-04 17:39:46,222 - INFO - Project ctest-TestBasicPolicy-22583400 not found, creating it
2026-03-04 17:39:46,663 - INFO - Created Project:ctest-TestBasicPolicy-22583400, ID : cfdfe168-2452-427d-b982-1fe5c14d9029
2026-03-04 17:39:48,050 - INFO - ================================================================================
2026-03-04 17:39:48,050 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-03-04 17:39:48,050 - 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
2026-03-04 17:39:48,307 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.14': '0'}} with
2026-03-04 17:39:48,307 - INFO - Initial checks done. Running the testcase now
2026-03-04 17:39:48,307 - INFO -
2026-03-04 17:39:48,826 - DEBUG - Response for create_network : {'network': {'id': '61b684e5-88fe-4922-bf3d-61a5724d8625', 'name': 'ctest-vn-66684370', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'project_id': 'cfdfe1682452427db9821fe5c14d9029', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-vn-66684370'], 'port_security_enabled': True, 'description': ''}}
2026-03-04 17:39:48,974 - DEBUG - Response for create_subnet : {'subnet': {'id': '5bcc3956-dda1-4772-bbcc-5e8a715f3bad', 'name': '', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'network_id': '61b684e5-88fe-4922-bf3d-61a5724d8625', 'ip_version': 4, 'cidr': '135.150.141.64/26', 'allocation_pools': [{'start': '135.150.141.66', 'end': '135.150.141.126'}], 'gateway_ip': '135.150.141.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.150.141.66', 'tags': [], 'project_id': 'cfdfe1682452427db9821fe5c14d9029'}}
2026-03-04 17:39:48,990 - INFO - Created VN ctest-vn-66684370
2026-03-04 17:39:49,040 - DEBUG - VN ctest-vn-66684370 UUID is 61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:49,342 - DEBUG - Response for create_network : {'network': {'id': 'eef17ab9-c244-4dcc-8fb6-1f711337ae0c', 'name': 'ctest-vn-20233293', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'project_id': 'cfdfe1682452427db9821fe5c14d9029', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-vn-20233293'], 'port_security_enabled': True, 'description': ''}}
2026-03-04 17:39:49,558 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f0346e6-3682-4390-ac4a-f18ed9923931', 'name': '', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'network_id': 'eef17ab9-c244-4dcc-8fb6-1f711337ae0c', 'ip_version': 4, 'cidr': '217.58.195.64/26', 'allocation_pools': [{'start': '217.58.195.66', 'end': '217.58.195.126'}], 'gateway_ip': '217.58.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.58.195.66', 'tags': [], 'project_id': 'cfdfe1682452427db9821fe5c14d9029'}}
2026-03-04 17:39:49,573 - INFO - Created VN ctest-vn-20233293
2026-03-04 17:39:49,624 - DEBUG - VN ctest-vn-20233293 UUID is eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:49,768 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370, 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-22583400:ctest-vn-20233293, 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]
2026-03-04 17:39:50,047 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '61b684e5-88fe-4922-bf3d-61a5724d8625', 'name': 'ctest-vn-66684370', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'project_id': 'cfdfe1682452427db9821fe5c14d9029', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5bcc3956-dda1-4772-bbcc-5e8a715f3bad'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-vn-66684370'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-policy-allow-all-24039426']], 'subnet_ipam': [{'subnet_cidr': '135.150.141.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-04 17:39:50,325 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eef17ab9-c244-4dcc-8fb6-1f711337ae0c', 'name': 'ctest-vn-20233293', 'tenant_id': 'cfdfe1682452427db9821fe5c14d9029', 'project_id': 'cfdfe1682452427db9821fe5c14d9029', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8f0346e6-3682-4390-ac4a-f18ed9923931'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-vn-20233293'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-policy-allow-all-24039426']], 'subnet_ipam': [{'subnet_cidr': '217.58.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-03-04 17:39:50,470 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-04 17:39:50,765 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-04 17:39:50,793 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61
2026-03-04 17:39:50,803 - DEBUG - Requesting: http://10.0.0.33:8082/project/cfdfe168-2452-427d-b982-1fe5c14d9029
2026-03-04 17:39:50,878 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:50,887 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:50,895 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32885f59-803e-44a3-b0f1-4f0fda93f17a
2026-03-04 17:39:50,901 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32885f59-803e-44a3-b0f1-4f0fda93f17a
2026-03-04 17:39:50,906 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/35d78b81-451d-49ea-80ce-7b91bef5874b
2026-03-04 17:39:50,911 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-04 17:39:50,911 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:50,918 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32885f59-803e-44a3-b0f1-4f0fda93f17a
2026-03-04 17:39:50,930 - INFO - Verified VN network id 11 for VN 61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:50,930 - INFO - Verifications in API Server for VN ctest-vn-66684370 passed
2026-03-04 17:39:50,930 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:50,937 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32885f59-803e-44a3-b0f1-4f0fda93f17a
2026-03-04 17:39:50,942 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/32885f59-803e-44a3-b0f1-4f0fda93f17a
2026-03-04 17:39:50,947 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/35d78b81-451d-49ea-80ce-7b91bef5874b
2026-03-04 17:39:50,956 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22583400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7040961188821092642', 'uuid-lslong': '13780277798038767141'}, 'enable': 'true', 'created': '2026-03-04T17:39:48', 'last-modified': '2026-03-04T17:39:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929391'}
2026-03-04 17:39:50,961 - DEBUG - Route Targets: ['target:64512:8000004']
2026-03-04 17:39:50,961 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66684370 passed
2026-03-04 17:39:50,961 - DEBUG - ====Verifying policy data for ctest-vn-66684370 in API_Server ======
2026-03-04 17:39:50,961 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-04 17:39:50,965 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61
2026-03-04 17:39:50,976 - DEBUG - Requesting: http://10.0.0.33:8082/project/cfdfe168-2452-427d-b982-1fe5c14d9029
2026-03-04 17:39:51,049 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/61b684e5-88fe-4922-bf3d-61a5724d8625
2026-03-04 17:39:51,057 - DEBUG - ==>Verifying data for policy with id: 8c77c618-16c3-4757-8b3e-ba4783dee5b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-policy-allow-all-24039426']
2026-03-04 17:39:51,057 - INFO - VN ctest-vn-66684370 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-04 17:39:51,057 - DEBUG - Verifying the vn in opserver
2026-03-04 17:39:51,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370 virtual network link through opserver 10.0.0.33
2026-03-04 17:39:51,057 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-04 17:39:51,346 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-04 17:39:51,406 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370?flat'}
2026-03-04 17:39:51,406 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-66684370 is found in opserver
2026-03-04 17:39:51,415 - DEBUG - Do not have enough data to verify VN in agent
2026-03-04 17:39:51,419 - DEBUG - VRF ids for VN ctest-vn-66684370: {}
2026-03-04 17:39:51,419 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-04 17:39:51,425 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61
2026-03-04 17:39:51,435 - DEBUG - Requesting: http://10.0.0.33:8082/project/cfdfe168-2452-427d-b982-1fe5c14d9029
2026-03-04 17:39:51,505 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,514 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,521 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/56e991ef-af41-447a-8d4b-04d77db8c05d
2026-03-04 17:39:51,527 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/56e991ef-af41-447a-8d4b-04d77db8c05d
2026-03-04 17:39:51,532 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/55d4cafe-183d-4740-b222-e0556d530f05
2026-03-04 17:39:51,537 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-04 17:39:51,537 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,544 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/56e991ef-af41-447a-8d4b-04d77db8c05d
2026-03-04 17:39:51,554 - INFO - Verified VN network id 12 for VN eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,555 - INFO - Verifications in API Server for VN ctest-vn-20233293 passed
2026-03-04 17:39:51,555 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,562 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/56e991ef-af41-447a-8d4b-04d77db8c05d
2026-03-04 17:39:51,567 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/56e991ef-af41-447a-8d4b-04d77db8c05d
2026-03-04 17:39:51,572 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/55d4cafe-183d-4740-b222-e0556d530f05
2026-03-04 17:39:51,581 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-20233293', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22583400', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17217677788660911564', 'uuid-lslong': '10355498963699215884'}, 'enable': 'true', 'created': '2026-03-04T17:39:49', 'last-modified': '2026-03-04T17:39:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.327376'}
2026-03-04 17:39:51,586 - DEBUG - Route Targets: ['target:64512:8000005']
2026-03-04 17:39:51,586 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20233293 passed
2026-03-04 17:39:51,587 - DEBUG - ====Verifying policy data for ctest-vn-20233293 in API_Server ======
2026-03-04 17:39:51,587 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-03-04 17:39:51,591 - DEBUG - Requesting: http://10.0.0.33:8082/domain/92eed5d6-8d29-4d71-8bbc-d9e02df5cf61
2026-03-04 17:39:51,600 - DEBUG - Requesting: http://10.0.0.33:8082/project/cfdfe168-2452-427d-b982-1fe5c14d9029
2026-03-04 17:39:51,669 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eef17ab9-c244-4dcc-8fb6-1f711337ae0c
2026-03-04 17:39:51,677 - DEBUG - ==>Verifying data for policy with id: 8c77c618-16c3-4757-8b3e-ba4783dee5b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-22583400', 'ctest-policy-allow-all-24039426']
2026-03-04 17:39:51,677 - INFO - VN ctest-vn-20233293 Policy verification: verify_vn_policy_in_api_server, status: True
2026-03-04 17:39:51,677 - DEBUG - Verifying the vn in opserver
2026-03-04 17:39:51,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-20233293 virtual network link through opserver 10.0.0.33
2026-03-04 17:39:51,677 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-03-04 17:39:51,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-20233293', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-20233293?flat'}
2026-03-04 17:39:51,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22583400:ctest-vn-20233293 is found in opserver
2026-03-04 17:39:51,694 - DEBUG - Do not have enough data to verify VN in agent
2026-03-04 17:39:51,697 - DEBUG - VRF ids for VN ctest-vn-20233293: {}
2026-03-04 17:39:51,747 - DEBUG - Services list from nova: [