2025-11-13 02:07:40,934 - INFO - Domain Default found not creating
2025-11-13 02:07:41,080 - INFO - Project ctest-TestBasicPolicy-67647562 not found, creating it
2025-11-13 02:07:41,515 - INFO - Created Project:ctest-TestBasicPolicy-67647562, ID : 64238cb0-dfbe-47e9-ace2-1008fcb5e334
2025-11-13 02:07:42,904 - INFO - ================================================================================
2025-11-13 02:07:42,904 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-13 02:07:42,904 - 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-11-13 02:07:43,159 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-13 02:07:43,159 - INFO - Initial checks done. Running the testcase now
2025-11-13 02:07:43,159 - INFO -
2025-11-13 02:07:43,879 - DEBUG - Response for create_network : {'network': {'id': '632a4792-7a42-4651-88b5-dbf241147fe1', 'name': 'ctest-vn-28516685', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'project_id': '64238cb0dfbe47e9ace21008fcb5e334', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-vn-28516685'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:44,130 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b91755c1-b241-4330-8a13-9eef3e05f4f7', 'name': '', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'network_id': '632a4792-7a42-4651-88b5-dbf241147fe1', 'ip_version': 4, 'cidr': '67.200.80.192/26', 'allocation_pools': [{'start': '67.200.80.194', 'end': '67.200.80.254'}], 'gateway_ip': '67.200.80.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '67.200.80.194', 'tags': [], 'project_id': '64238cb0dfbe47e9ace21008fcb5e334'}}
2025-11-13 02:07:44,151 - INFO - Created VN ctest-vn-28516685
2025-11-13 02:07:44,210 - DEBUG - VN ctest-vn-28516685 UUID is 632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:44,509 - DEBUG - Response for create_network : {'network': {'id': '68994e28-627c-494a-8bbe-1b2742040cb7', 'name': 'ctest-vn-47489188', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'project_id': '64238cb0dfbe47e9ace21008fcb5e334', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-vn-47489188'], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:44,726 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcb05524-cb88-48e5-b318-eeb5e1145234', 'name': '', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'network_id': '68994e28-627c-494a-8bbe-1b2742040cb7', 'ip_version': 4, 'cidr': '32.245.65.0/26', 'allocation_pools': [{'start': '32.245.65.2', 'end': '32.245.65.62'}], 'gateway_ip': '32.245.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.245.65.2', 'tags': [], 'project_id': '64238cb0dfbe47e9ace21008fcb5e334'}}
2025-11-13 02:07:44,742 - INFO - Created VN ctest-vn-47489188
2025-11-13 02:07:44,794 - DEBUG - VN ctest-vn-47489188 UUID is 68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:44,946 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685, 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-67647562:ctest-vn-47489188, 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-11-13 02:07:45,231 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '632a4792-7a42-4651-88b5-dbf241147fe1', 'name': 'ctest-vn-28516685', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'project_id': '64238cb0dfbe47e9ace21008fcb5e334', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b91755c1-b241-4330-8a13-9eef3e05f4f7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-vn-28516685'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-policy-allow-all-76561077']], 'subnet_ipam': [{'subnet_cidr': '67.200.80.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:45,447 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '68994e28-627c-494a-8bbe-1b2742040cb7', 'name': 'ctest-vn-47489188', 'tenant_id': '64238cb0dfbe47e9ace21008fcb5e334', 'project_id': '64238cb0dfbe47e9ace21008fcb5e334', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bcb05524-cb88-48e5-b318-eeb5e1145234'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-vn-47489188'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-policy-allow-all-76561077']], 'subnet_ipam': [{'subnet_cidr': '32.245.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-13 02:07:45,614 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 02:07:45,905 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 02:07:45,931 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8
2025-11-13 02:07:45,941 - DEBUG - Requesting: http://10.0.0.22:8082/project/64238cb0-dfbe-47e9-ace2-1008fcb5e334
2025-11-13 02:07:46,013 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,023 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,033 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/10cef645-4613-4ff7-b802-93b20b8fb7c8
2025-11-13 02:07:46,040 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/10cef645-4613-4ff7-b802-93b20b8fb7c8
2025-11-13 02:07:46,047 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8755b579-530a-4255-9010-de3b42bb857f
2025-11-13 02:07:46,053 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 02:07:46,053 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,060 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/10cef645-4613-4ff7-b802-93b20b8fb7c8
2025-11-13 02:07:46,072 - INFO - Verified VN network id 10 for VN 632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,072 - INFO - Verifications in API Server for VN ctest-vn-28516685 passed
2025-11-13 02:07:46,072 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,080 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/10cef645-4613-4ff7-b802-93b20b8fb7c8
2025-11-13 02:07:46,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/10cef645-4613-4ff7-b802-93b20b8fb7c8
2025-11-13 02:07:46,091 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/8755b579-530a-4255-9010-de3b42bb857f
2025-11-13 02:07:46,100 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67647562', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7145602453218674257', 'uuid-lslong': '9851021593463259105'}, 'enable': 'true', 'created': '2025-11-13T02:07:43', 'last-modified': '2025-11-13T02:07:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893097'}
2025-11-13 02:07:46,107 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-13 02:07:46,107 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28516685 passed
2025-11-13 02:07:46,107 - DEBUG - ====Verifying policy data for ctest-vn-28516685 in API_Server ======
2025-11-13 02:07:46,107 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 02:07:46,112 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8
2025-11-13 02:07:46,122 - DEBUG - Requesting: http://10.0.0.22:8082/project/64238cb0-dfbe-47e9-ace2-1008fcb5e334
2025-11-13 02:07:46,192 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/632a4792-7a42-4651-88b5-dbf241147fe1
2025-11-13 02:07:46,201 - DEBUG - ==>Verifying data for policy with id: b2e0b0f4-877f-4f71-862c-dc7449de6235, fqn: ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-policy-allow-all-76561077']
2025-11-13 02:07:46,201 - INFO - VN ctest-vn-28516685 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 02:07:46,201 - DEBUG - Verifying the vn in opserver
2025-11-13 02:07:46,201 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685 virtual network link through opserver 10.0.0.22
2025-11-13 02:07:46,201 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 02:07:46,496 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 02:07:46,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685?flat'}
2025-11-13 02:07:46,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-28516685 is found in opserver
2025-11-13 02:07:46,554 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 02:07:46,560 - DEBUG - VRF ids for VN ctest-vn-28516685: {}
2025-11-13 02:07:46,560 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 02:07:46,565 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8
2025-11-13 02:07:46,578 - DEBUG - Requesting: http://10.0.0.22:8082/project/64238cb0-dfbe-47e9-ace2-1008fcb5e334
2025-11-13 02:07:46,646 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,658 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,668 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ab06691-7242-45c6-b243-8b399cbed0ac
2025-11-13 02:07:46,675 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ab06691-7242-45c6-b243-8b399cbed0ac
2025-11-13 02:07:46,681 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ef05d265-615e-439e-be24-bd2e7fb36dbd
2025-11-13 02:07:46,686 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 02:07:46,687 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,694 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ab06691-7242-45c6-b243-8b399cbed0ac
2025-11-13 02:07:46,705 - INFO - Verified VN network id 11 for VN 68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,705 - INFO - Verifications in API Server for VN ctest-vn-47489188 passed
2025-11-13 02:07:46,705 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,713 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ab06691-7242-45c6-b243-8b399cbed0ac
2025-11-13 02:07:46,719 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/8ab06691-7242-45c6-b243-8b399cbed0ac
2025-11-13 02:07:46,725 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ef05d265-615e-439e-be24-bd2e7fb36dbd
2025-11-13 02:07:46,736 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-47489188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67647562', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7537141386739206474', 'uuid-lslong': '10069515672272243895'}, 'enable': 'true', 'created': '2025-11-13T02:07:44', 'last-modified': '2025-11-13T02:07:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.305251'}
2025-11-13 02:07:46,742 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-13 02:07:46,742 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47489188 passed
2025-11-13 02:07:46,743 - DEBUG - ====Verifying policy data for ctest-vn-47489188 in API_Server ======
2025-11-13 02:07:46,743 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-13 02:07:46,748 - DEBUG - Requesting: http://10.0.0.22:8082/domain/9f8247be-6e54-4b03-8714-086ddf5268d8
2025-11-13 02:07:46,759 - DEBUG - Requesting: http://10.0.0.22:8082/project/64238cb0-dfbe-47e9-ace2-1008fcb5e334
2025-11-13 02:07:46,825 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/68994e28-627c-494a-8bbe-1b2742040cb7
2025-11-13 02:07:46,833 - DEBUG - ==>Verifying data for policy with id: b2e0b0f4-877f-4f71-862c-dc7449de6235, fqn: ['default-domain', 'ctest-TestBasicPolicy-67647562', 'ctest-policy-allow-all-76561077']
2025-11-13 02:07:46,833 - INFO - VN ctest-vn-47489188 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-13 02:07:46,834 - DEBUG - Verifying the vn in opserver
2025-11-13 02:07:46,834 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-47489188 virtual network link through opserver 10.0.0.22
2025-11-13 02:07:46,834 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-13 02:07:46,843 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-47489188', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-47489188?flat'}
2025-11-13 02:07:46,843 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67647562:ctest-vn-47489188 is found in opserver
2025-11-13 02:07:46,852 - DEBUG - Do not have enough data to verify VN in agent
2025-11-13 02:07:46,855 - DEBUG - VRF ids for VN ctest-vn-47489188: {}
2025-11-13 02:07:46,913 - DEBUG - Services list from nova: [