2025-10-31 00:24:27,742 - INFO - Domain Default found not creating
2025-10-31 00:24:27,912 - INFO - Project ctest-TestBasicPolicy-77541232 not found, creating it
2025-10-31 00:24:28,370 - INFO - Created Project:ctest-TestBasicPolicy-77541232, ID : 9acbcf9d-de2e-45be-951e-828b3c733ab9
2025-10-31 00:24:29,872 - INFO - ================================================================================
2025-10-31 00:24:29,872 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 00:24:29,872 - 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-10-31 00:24:30,145 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.241': '0'}} with
2025-10-31 00:24:30,145 - INFO - Initial checks done. Running the testcase now
2025-10-31 00:24:30,145 - INFO -
2025-10-31 00:24:30,710 - DEBUG - Response for create_network : {'network': {'id': '792f2d68-75c8-49c5-aecf-0adca0c24453', 'name': 'ctest-vn-24831520', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'project_id': '9acbcf9dde2e45be951e828b3c733ab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-vn-24831520'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:24:30,889 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c9554389-e132-4ebe-8a47-a39d861c2e9c', 'name': '', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'network_id': '792f2d68-75c8-49c5-aecf-0adca0c24453', 'ip_version': 4, 'cidr': '195.247.219.0/26', 'allocation_pools': [{'start': '195.247.219.2', 'end': '195.247.219.62'}], 'gateway_ip': '195.247.219.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.247.219.2', 'tags': [], 'project_id': '9acbcf9dde2e45be951e828b3c733ab9'}}
2025-10-31 00:24:30,909 - INFO - Created VN ctest-vn-24831520
2025-10-31 00:24:30,962 - DEBUG - VN ctest-vn-24831520 UUID is 792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:31,250 - DEBUG - Response for create_network : {'network': {'id': '7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c', 'name': 'ctest-vn-91245156', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'project_id': '9acbcf9dde2e45be951e828b3c733ab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-vn-91245156'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:24:31,475 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aae0115b-fcc9-4d8e-b9a3-94d108acf858', 'name': '', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'network_id': '7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c', 'ip_version': 4, 'cidr': '196.198.191.64/26', 'allocation_pools': [{'start': '196.198.191.66', 'end': '196.198.191.126'}], 'gateway_ip': '196.198.191.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.198.191.66', 'tags': [], 'project_id': '9acbcf9dde2e45be951e828b3c733ab9'}}
2025-10-31 00:24:31,496 - INFO - Created VN ctest-vn-91245156
2025-10-31 00:24:31,550 - DEBUG - VN ctest-vn-91245156 UUID is 7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:31,681 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520, 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-77541232:ctest-vn-91245156, 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-10-31 00:24:31,986 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '792f2d68-75c8-49c5-aecf-0adca0c24453', 'name': 'ctest-vn-24831520', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'project_id': '9acbcf9dde2e45be951e828b3c733ab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c9554389-e132-4ebe-8a47-a39d861c2e9c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-vn-24831520'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-policy-allow-all-70922187']], 'subnet_ipam': [{'subnet_cidr': '195.247.219.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:24:32,215 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c', 'name': 'ctest-vn-91245156', 'tenant_id': '9acbcf9dde2e45be951e828b3c733ab9', 'project_id': '9acbcf9dde2e45be951e828b3c733ab9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aae0115b-fcc9-4d8e-b9a3-94d108acf858'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-vn-91245156'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-policy-allow-all-70922187']], 'subnet_ipam': [{'subnet_cidr': '196.198.191.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 00:24:32,387 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-31 00:24:32,686 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-31 00:24:32,727 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1286b9a0-8718-48bc-8ae7-2dda8ecb40be
2025-10-31 00:24:32,744 - DEBUG - Requesting: http://10.0.0.57:8082/project/9acbcf9d-de2e-45be-951e-828b3c733ab9
2025-10-31 00:24:32,823 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:32,836 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:32,847 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/36276094-01bb-4e7c-aaef-75d484ef2138
2025-10-31 00:24:32,854 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/36276094-01bb-4e7c-aaef-75d484ef2138
2025-10-31 00:24:32,861 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e385fd97-69e9-4f55-817d-22f2fad7fb3b
2025-10-31 00:24:32,870 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:24:32,871 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:32,882 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/36276094-01bb-4e7c-aaef-75d484ef2138
2025-10-31 00:24:32,900 - INFO - Verified VN network id 11 for VN 792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:32,900 - INFO - Verifications in API Server for VN ctest-vn-24831520 passed
2025-10-31 00:24:32,900 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:32,910 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/36276094-01bb-4e7c-aaef-75d484ef2138
2025-10-31 00:24:32,919 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/36276094-01bb-4e7c-aaef-75d484ef2138
2025-10-31 00:24:32,927 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/e385fd97-69e9-4f55-817d-22f2fad7fb3b
2025-10-31 00:24:32,938 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77541232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8732248129170590149', 'uuid-lslong': '12596298625484735571'}, 'enable': 'true', 'created': '2025-10-31T00:24:30', 'last-modified': '2025-10-31T00:24:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.978725'}
2025-10-31 00:24:32,944 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 00:24:32,945 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-24831520 passed
2025-10-31 00:24:32,945 - DEBUG - ====Verifying policy data for ctest-vn-24831520 in API_Server ======
2025-10-31 00:24:32,945 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-31 00:24:32,950 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1286b9a0-8718-48bc-8ae7-2dda8ecb40be
2025-10-31 00:24:32,963 - DEBUG - Requesting: http://10.0.0.57:8082/project/9acbcf9d-de2e-45be-951e-828b3c733ab9
2025-10-31 00:24:33,037 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/792f2d68-75c8-49c5-aecf-0adca0c24453
2025-10-31 00:24:33,047 - DEBUG - ==>Verifying data for policy with id: 7cd9d7e1-8e30-4933-ab97-8795dda65eb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-policy-allow-all-70922187']
2025-10-31 00:24:33,047 - INFO - VN ctest-vn-24831520 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:24:33,047 - DEBUG - Verifying the vn in opserver
2025-10-31 00:24:33,047 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520 virtual network link through opserver 10.0.0.57
2025-10-31 00:24:33,047 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-31 00:24:33,347 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-31 00:24:33,420 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520?flat'}
2025-10-31 00:24:33,420 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-24831520 is found in opserver
2025-10-31 00:24:33,432 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:24:33,437 - DEBUG - VRF ids for VN ctest-vn-24831520: {}
2025-10-31 00:24:33,437 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-31 00:24:33,443 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1286b9a0-8718-48bc-8ae7-2dda8ecb40be
2025-10-31 00:24:33,455 - DEBUG - Requesting: http://10.0.0.57:8082/project/9acbcf9d-de2e-45be-951e-828b3c733ab9
2025-10-31 00:24:33,525 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,538 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,547 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0facf5ab-9aef-4f1b-b664-e542fbc9c46e
2025-10-31 00:24:33,554 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0facf5ab-9aef-4f1b-b664-e542fbc9c46e
2025-10-31 00:24:33,561 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/59a1bf06-76f2-4082-90ed-7c49155aea9a
2025-10-31 00:24:33,568 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:24:33,568 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,576 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0facf5ab-9aef-4f1b-b664-e542fbc9c46e
2025-10-31 00:24:33,592 - INFO - Verified VN network id 12 for VN 7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,592 - INFO - Verifications in API Server for VN ctest-vn-91245156 passed
2025-10-31 00:24:33,592 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,603 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0facf5ab-9aef-4f1b-b664-e542fbc9c46e
2025-10-31 00:24:33,613 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0facf5ab-9aef-4f1b-b664-e542fbc9c46e
2025-10-31 00:24:33,621 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/59a1bf06-76f2-4082-90ed-7c49155aea9a
2025-10-31 00:24:33,633 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-91245156', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-77541232', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8933609452115544118', 'uuid-lslong': '11992551833137920636'}, 'enable': 'true', 'created': '2025-10-31T00:24:31', 'last-modified': '2025-10-31T00:24:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441960'}
2025-10-31 00:24:33,638 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 00:24:33,639 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-91245156 passed
2025-10-31 00:24:33,639 - DEBUG - ====Verifying policy data for ctest-vn-91245156 in API_Server ======
2025-10-31 00:24:33,639 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-10-31 00:24:33,645 - DEBUG - Requesting: http://10.0.0.57:8082/domain/1286b9a0-8718-48bc-8ae7-2dda8ecb40be
2025-10-31 00:24:33,655 - DEBUG - Requesting: http://10.0.0.57:8082/project/9acbcf9d-de2e-45be-951e-828b3c733ab9
2025-10-31 00:24:33,725 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/7bfa8e76-e36b-4836-a66e-1a5a5ca53a7c
2025-10-31 00:24:33,734 - DEBUG - ==>Verifying data for policy with id: 7cd9d7e1-8e30-4933-ab97-8795dda65eb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-77541232', 'ctest-policy-allow-all-70922187']
2025-10-31 00:24:33,734 - INFO - VN ctest-vn-91245156 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 00:24:33,734 - DEBUG - Verifying the vn in opserver
2025-10-31 00:24:33,734 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-91245156 virtual network link through opserver 10.0.0.57
2025-10-31 00:24:33,734 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-10-31 00:24:33,744 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-91245156', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-91245156?flat'}
2025-10-31 00:24:33,744 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-77541232:ctest-vn-91245156 is found in opserver
2025-10-31 00:24:33,752 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 00:24:33,757 - DEBUG - VRF ids for VN ctest-vn-91245156: {}
2025-10-31 00:24:33,816 - DEBUG - Services list from nova: [