2025-08-22 13:34:07,306 - INFO - Domain Default found not creating
2025-08-22 13:34:07,431 - INFO - Project ctest-TestBasicPolicy-25636082 not found, creating it
2025-08-22 13:34:07,863 - INFO - Created Project:ctest-TestBasicPolicy-25636082, ID : abc1ff73-7c0d-47fb-b314-e993de066c03
2025-08-22 13:34:09,165 - INFO - ================================================================================
2025-08-22 13:34:09,165 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-22 13:34:09,165 - 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-22 13:34:09,419 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with
2025-08-22 13:34:09,419 - INFO - Initial checks done. Running the testcase now
2025-08-22 13:34:09,420 - INFO -
2025-08-22 13:34:09,959 - DEBUG - Response for create_network : {'network': {'id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'name': 'ctest-vn-99866217', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-99866217'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:34:10,221 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd19c0f9f-fb9e-4e1b-9a50-ee12f926bfdc', 'name': '', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'network_id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'ip_version': 4, 'cidr': '143.159.110.64/26', 'allocation_pools': [{'start': '143.159.110.66', 'end': '143.159.110.126'}], 'gateway_ip': '143.159.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '143.159.110.66', 'tags': [], 'project_id': 'abc1ff737c0d47fbb314e993de066c03'}}
2025-08-22 13:34:10,240 - INFO - Created VN ctest-vn-99866217
2025-08-22 13:34:10,291 - DEBUG - VN ctest-vn-99866217 UUID is 37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:10,613 - DEBUG - Response for create_network : {'network': {'id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'name': 'ctest-vn-56614991', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-56614991'], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:34:10,780 - DEBUG - Response for create_subnet : {'subnet': {'id': '43f3c862-d298-44d5-87e4-438a218d49b6', 'name': '', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'network_id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'ip_version': 4, 'cidr': '194.104.26.128/26', 'allocation_pools': [{'start': '194.104.26.130', 'end': '194.104.26.190'}], 'gateway_ip': '194.104.26.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.104.26.130', 'tags': [], 'project_id': 'abc1ff737c0d47fbb314e993de066c03'}}
2025-08-22 13:34:10,795 - INFO - Created VN ctest-vn-56614991
2025-08-22 13:34:10,847 - DEBUG - VN ctest-vn-56614991 UUID is d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:10,995 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217, 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-25636082:ctest-vn-56614991, 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-22 13:34:11,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37630eb4-2639-4456-87b9-4bd58b661e1e', 'name': 'ctest-vn-99866217', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d19c0f9f-fb9e-4e1b-9a50-ee12f926bfdc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-99866217'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']], 'subnet_ipam': [{'subnet_cidr': '143.159.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:34:11,588 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd856ac39-2ea6-41ae-b4eb-47bd3b5a613b', 'name': 'ctest-vn-56614991', 'tenant_id': 'abc1ff737c0d47fbb314e993de066c03', 'project_id': 'abc1ff737c0d47fbb314e993de066c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['43f3c862-d298-44d5-87e4-438a218d49b6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-vn-56614991'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']], 'subnet_ipam': [{'subnet_cidr': '194.104.26.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-22 13:34:11,743 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 13:34:12,044 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 13:34:12,071 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98
2025-08-22 13:34:12,083 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03
2025-08-22 13:34:12,163 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,173 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,181 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1
2025-08-22 13:34:12,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1
2025-08-22 13:34:12,194 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/465416e3-78f1-4f9f-b8a7-7ba32cde877d
2025-08-22 13:34:12,199 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 13:34:12,199 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,207 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1
2025-08-22 13:34:12,218 - INFO - Verified VN network id 12 for VN 37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,218 - INFO - Verifications in API Server for VN ctest-vn-99866217 passed
2025-08-22 13:34:12,218 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,227 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1
2025-08-22 13:34:12,232 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/dee2edca-fb6f-4d42-a7ae-351e412149f1
2025-08-22 13:34:12,237 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/465416e3-78f1-4f9f-b8a7-7ba32cde877d
2025-08-22 13:34:12,247 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25636082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3991049861678580822', 'uuid-lslong': '9779931446350585374'}, 'enable': 'true', 'created': '2025-08-22T13:34:09', 'last-modified': '2025-08-22T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.974723'}
2025-08-22 13:34:12,253 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-22 13:34:12,253 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-99866217 passed
2025-08-22 13:34:12,253 - DEBUG - ====Verifying policy data for ctest-vn-99866217 in API_Server ======
2025-08-22 13:34:12,253 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 13:34:12,257 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98
2025-08-22 13:34:12,267 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03
2025-08-22 13:34:12,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/37630eb4-2639-4456-87b9-4bd58b661e1e
2025-08-22 13:34:12,346 - DEBUG - ==>Verifying data for policy with id: e369fc43-a59c-4a4d-b373-38b48b424d51, fqn: ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']
2025-08-22 13:34:12,346 - INFO - VN ctest-vn-99866217 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 13:34:12,346 - DEBUG - Verifying the vn in opserver
2025-08-22 13:34:12,346 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217 virtual network link through opserver 10.0.0.254
2025-08-22 13:34:12,346 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 13:34:12,633 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 13:34:12,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217?flat'}
2025-08-22 13:34:12,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-99866217 is found in opserver
2025-08-22 13:34:12,694 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 13:34:12,699 - DEBUG - VRF ids for VN ctest-vn-99866217: {}
2025-08-22 13:34:12,699 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 13:34:12,704 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98
2025-08-22 13:34:12,715 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03
2025-08-22 13:34:12,797 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:12,813 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:12,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c
2025-08-22 13:34:12,832 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c
2025-08-22 13:34:12,842 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a72475bf-4333-42f8-8b2c-5645d9322731
2025-08-22 13:34:12,851 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 13:34:12,851 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:12,859 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c
2025-08-22 13:34:12,870 - INFO - Verified VN network id 13 for VN d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:12,871 - INFO - Verifications in API Server for VN ctest-vn-56614991 passed
2025-08-22 13:34:12,871 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:12,879 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c
2025-08-22 13:34:12,884 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/d43cd884-f80d-4ba4-991d-9b9541c0a30c
2025-08-22 13:34:12,890 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a72475bf-4333-42f8-8b2c-5645d9322731
2025-08-22 13:34:12,899 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-25636082', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15588836521785311662', 'uuid-lslong': '13036592424424202555'}, 'enable': 'true', 'created': '2025-08-22T13:34:10', 'last-modified': '2025-08-22T13:34:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384667'}
2025-08-22 13:34:12,904 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-22 13:34:12,904 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56614991 passed
2025-08-22 13:34:12,905 - DEBUG - ====Verifying policy data for ctest-vn-56614991 in API_Server ======
2025-08-22 13:34:12,905 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-22 13:34:12,924 - DEBUG - Requesting: http://10.0.0.254:8082/domain/2dff4d33-b265-4d68-b70d-495dc8dc0f98
2025-08-22 13:34:12,940 - DEBUG - Requesting: http://10.0.0.254:8082/project/abc1ff73-7c0d-47fb-b314-e993de066c03
2025-08-22 13:34:13,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/d856ac39-2ea6-41ae-b4eb-47bd3b5a613b
2025-08-22 13:34:13,020 - DEBUG - ==>Verifying data for policy with id: e369fc43-a59c-4a4d-b373-38b48b424d51, fqn: ['default-domain', 'ctest-TestBasicPolicy-25636082', 'ctest-policy-allow-all-55046045']
2025-08-22 13:34:13,020 - INFO - VN ctest-vn-56614991 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-22 13:34:13,020 - DEBUG - Verifying the vn in opserver
2025-08-22 13:34:13,020 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991 virtual network link through opserver 10.0.0.254
2025-08-22 13:34:13,020 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-22 13:34:13,030 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991?flat'}
2025-08-22 13:34:13,030 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-25636082:ctest-vn-56614991 is found in opserver
2025-08-22 13:34:13,041 - DEBUG - Do not have enough data to verify VN in agent
2025-08-22 13:34:13,046 - DEBUG - VRF ids for VN ctest-vn-56614991: {}
2025-08-22 13:34:13,102 - DEBUG - Services list from nova: [