2025-11-24 20:31:51,178 - INFO - Domain Default found not creating
2025-11-24 20:31:51,343 - INFO - Project ctest-TestBasicPolicy-17711012 not found, creating it
2025-11-24 20:31:51,824 - INFO - Created Project:ctest-TestBasicPolicy-17711012, ID : 2c82119e-a6a3-47c1-9ed3-8c90ed198a11
2025-11-24 20:31:53,370 - INFO - ================================================================================
2025-11-24 20:31:53,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 20:31:53,370 - 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-24 20:31:53,623 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with
2025-11-24 20:31:53,623 - INFO - Initial checks done. Running the testcase now
2025-11-24 20:31:53,623 - INFO -
2025-11-24 20:31:54,192 - DEBUG - Response for create_network : {'network': {'id': 'a72d9d0f-5aff-482f-b52e-3287d6771719', 'name': 'ctest-vn-32666585', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'project_id': '2c82119ea6a347c19ed38c90ed198a11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-vn-32666585'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 20:31:54,382 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fab68944-cb35-4830-977c-ea78fe329600', 'name': '', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'network_id': 'a72d9d0f-5aff-482f-b52e-3287d6771719', 'ip_version': 4, 'cidr': '83.48.193.128/26', 'allocation_pools': [{'start': '83.48.193.130', 'end': '83.48.193.190'}], 'gateway_ip': '83.48.193.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.48.193.130', 'tags': [], 'project_id': '2c82119ea6a347c19ed38c90ed198a11'}}
2025-11-24 20:31:54,400 - INFO - Created VN ctest-vn-32666585
2025-11-24 20:31:54,454 - DEBUG - VN ctest-vn-32666585 UUID is a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:54,749 - DEBUG - Response for create_network : {'network': {'id': 'a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31', 'name': 'ctest-vn-30657905', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'project_id': '2c82119ea6a347c19ed38c90ed198a11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-vn-30657905'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 20:31:54,906 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd4204fc8-2964-4516-993e-929838a30bf6', 'name': '', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'network_id': 'a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31', 'ip_version': 4, 'cidr': '70.114.23.128/26', 'allocation_pools': [{'start': '70.114.23.130', 'end': '70.114.23.190'}], 'gateway_ip': '70.114.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.114.23.130', 'tags': [], 'project_id': '2c82119ea6a347c19ed38c90ed198a11'}}
2025-11-24 20:31:54,926 - INFO - Created VN ctest-vn-30657905
2025-11-24 20:31:54,982 - DEBUG - VN ctest-vn-30657905 UUID is a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:55,096 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585, 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-17711012:ctest-vn-30657905, 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-24 20:31:55,384 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a72d9d0f-5aff-482f-b52e-3287d6771719', 'name': 'ctest-vn-32666585', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'project_id': '2c82119ea6a347c19ed38c90ed198a11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fab68944-cb35-4830-977c-ea78fe329600'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-vn-32666585'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-policy-allow-all-87751835']], 'subnet_ipam': [{'subnet_cidr': '83.48.193.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 20:31:55,628 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31', 'name': 'ctest-vn-30657905', 'tenant_id': '2c82119ea6a347c19ed38c90ed198a11', 'project_id': '2c82119ea6a347c19ed38c90ed198a11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d4204fc8-2964-4516-993e-929838a30bf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-vn-30657905'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-policy-allow-all-87751835']], 'subnet_ipam': [{'subnet_cidr': '70.114.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 20:31:55,810 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 20:31:56,113 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 20:31:56,145 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1
2025-11-24 20:31:56,158 - DEBUG - Requesting: http://10.0.0.22:8082/project/2c82119e-a6a3-47c1-9ed3-8c90ed198a11
2025-11-24 20:31:56,230 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,240 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,249 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/257693d5-cc6d-46bc-809a-7895f6a52a9b
2025-11-24 20:31:56,255 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/257693d5-cc6d-46bc-809a-7895f6a52a9b
2025-11-24 20:31:56,261 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee8b590d-ac50-46d1-82eb-840bd6b12879
2025-11-24 20:31:56,266 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 20:31:56,266 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,274 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/257693d5-cc6d-46bc-809a-7895f6a52a9b
2025-11-24 20:31:56,289 - INFO - Verified VN network id 11 for VN a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,289 - INFO - Verifications in API Server for VN ctest-vn-32666585 passed
2025-11-24 20:31:56,290 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,299 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/257693d5-cc6d-46bc-809a-7895f6a52a9b
2025-11-24 20:31:56,305 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/257693d5-cc6d-46bc-809a-7895f6a52a9b
2025-11-24 20:31:56,312 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/ee8b590d-ac50-46d1-82eb-840bd6b12879
2025-11-24 20:31:56,322 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17711012', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12046457267562694703', 'uuid-lslong': '13055427928793749273'}, 'enable': 'true', 'created': '2025-11-24T20:31:54', 'last-modified': '2025-11-24T20:31:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.963778'}
2025-11-24 20:31:56,328 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 20:31:56,328 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32666585 passed
2025-11-24 20:31:56,328 - DEBUG - ====Verifying policy data for ctest-vn-32666585 in API_Server ======
2025-11-24 20:31:56,329 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 20:31:56,334 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1
2025-11-24 20:31:56,344 - DEBUG - Requesting: http://10.0.0.22:8082/project/2c82119e-a6a3-47c1-9ed3-8c90ed198a11
2025-11-24 20:31:56,417 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a72d9d0f-5aff-482f-b52e-3287d6771719
2025-11-24 20:31:56,426 - DEBUG - ==>Verifying data for policy with id: 955fa13a-ef1c-4340-b048-381e6e31a3f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-policy-allow-all-87751835']
2025-11-24 20:31:56,426 - INFO - VN ctest-vn-32666585 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 20:31:56,426 - DEBUG - Verifying the vn in opserver
2025-11-24 20:31:56,426 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585 virtual network link through opserver 10.0.0.22
2025-11-24 20:31:56,426 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 20:31:56,725 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 20:31:56,787 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585?flat'}
2025-11-24 20:31:56,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-32666585 is found in opserver
2025-11-24 20:31:56,800 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 20:31:56,805 - DEBUG - VRF ids for VN ctest-vn-32666585: {}
2025-11-24 20:31:56,805 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 20:31:56,810 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1
2025-11-24 20:31:56,820 - DEBUG - Requesting: http://10.0.0.22:8082/project/2c82119e-a6a3-47c1-9ed3-8c90ed198a11
2025-11-24 20:31:56,887 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:56,898 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:56,907 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf4e924-32bf-4b72-99c0-d84f954df8b2
2025-11-24 20:31:56,913 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf4e924-32bf-4b72-99c0-d84f954df8b2
2025-11-24 20:31:56,920 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b1d8dbc0-e75a-4587-9ab6-70d6f6ba6005
2025-11-24 20:31:56,926 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 20:31:56,926 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:56,934 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf4e924-32bf-4b72-99c0-d84f954df8b2
2025-11-24 20:31:56,947 - INFO - Verified VN network id 12 for VN a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:56,947 - INFO - Verifications in API Server for VN ctest-vn-30657905 passed
2025-11-24 20:31:56,947 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:56,955 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf4e924-32bf-4b72-99c0-d84f954df8b2
2025-11-24 20:31:56,961 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/5cf4e924-32bf-4b72-99c0-d84f954df8b2
2025-11-24 20:31:56,967 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b1d8dbc0-e75a-4587-9ab6-70d6f6ba6005
2025-11-24 20:31:56,978 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-30657905', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17711012', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12086865653168619588', 'uuid-lslong': '13383663343585503793'}, 'enable': 'true', 'created': '2025-11-24T20:31:54', 'last-modified': '2025-11-24T20:31:55', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.381208'}
2025-11-24 20:31:56,983 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 20:31:56,983 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30657905 passed
2025-11-24 20:31:56,983 - DEBUG - ====Verifying policy data for ctest-vn-30657905 in API_Server ======
2025-11-24 20:31:56,985 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 20:31:56,990 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1
2025-11-24 20:31:56,999 - DEBUG - Requesting: http://10.0.0.22:8082/project/2c82119e-a6a3-47c1-9ed3-8c90ed198a11
2025-11-24 20:31:57,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/a7bd2c45-c8fc-4044-b9bc-52e6bbd4aa31
2025-11-24 20:31:57,076 - DEBUG - ==>Verifying data for policy with id: 955fa13a-ef1c-4340-b048-381e6e31a3f3, fqn: ['default-domain', 'ctest-TestBasicPolicy-17711012', 'ctest-policy-allow-all-87751835']
2025-11-24 20:31:57,076 - INFO - VN ctest-vn-30657905 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 20:31:57,077 - DEBUG - Verifying the vn in opserver
2025-11-24 20:31:57,077 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-30657905 virtual network link through opserver 10.0.0.22
2025-11-24 20:31:57,077 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 20:31:57,085 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-30657905', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-30657905?flat'}
2025-11-24 20:31:57,085 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17711012:ctest-vn-30657905 is found in opserver
2025-11-24 20:31:57,094 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 20:31:57,098 - DEBUG - VRF ids for VN ctest-vn-30657905: {}
2025-11-24 20:31:57,155 - DEBUG - Services list from nova: [