2025-12-04 02:19:59,526 - INFO - Domain Default found not creating
2025-12-04 02:19:59,676 - INFO - Project ctest-TestBasicPolicy-11379966 not found, creating it
2025-12-04 02:20:00,127 - INFO - Created Project:ctest-TestBasicPolicy-11379966, ID : ef5460be-7f34-4664-86be-9cb74502821b
2025-12-04 02:20:01,597 - INFO - ================================================================================
2025-12-04 02:20:01,597 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 02:20:01,597 - 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-12-04 02:20:01,864 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.18': '0'}} with
2025-12-04 02:20:01,864 - INFO - Initial checks done. Running the testcase now
2025-12-04 02:20:01,865 - INFO -
2025-12-04 02:20:02,410 - DEBUG - Response for create_network : {'network': {'id': 'ab10434a-a4f1-4e03-a901-48f20d9b9439', 'name': 'ctest-vn-47990568', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'project_id': 'ef5460be7f34466486be9cb74502821b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-vn-47990568'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:20:02,612 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac84cd0d-5084-44bf-9eea-89fc02d1d580', 'name': '', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'network_id': 'ab10434a-a4f1-4e03-a901-48f20d9b9439', 'ip_version': 4, 'cidr': '124.109.138.64/26', 'allocation_pools': [{'start': '124.109.138.66', 'end': '124.109.138.126'}], 'gateway_ip': '124.109.138.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.109.138.66', 'tags': [], 'project_id': 'ef5460be7f34466486be9cb74502821b'}}
2025-12-04 02:20:02,628 - INFO - Created VN ctest-vn-47990568
2025-12-04 02:20:02,685 - DEBUG - VN ctest-vn-47990568 UUID is ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:02,998 - DEBUG - Response for create_network : {'network': {'id': 'c82e2b5e-cbd3-4e6a-9251-39e2203f24af', 'name': 'ctest-vn-52222981', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'project_id': 'ef5460be7f34466486be9cb74502821b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-vn-52222981'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:20:03,207 - DEBUG - Response for create_subnet : {'subnet': {'id': '4c5c3903-2e8c-415e-939c-aef919c21259', 'name': '', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'network_id': 'c82e2b5e-cbd3-4e6a-9251-39e2203f24af', 'ip_version': 4, 'cidr': '212.59.23.128/26', 'allocation_pools': [{'start': '212.59.23.130', 'end': '212.59.23.190'}], 'gateway_ip': '212.59.23.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.59.23.130', 'tags': [], 'project_id': 'ef5460be7f34466486be9cb74502821b'}}
2025-12-04 02:20:03,223 - INFO - Created VN ctest-vn-52222981
2025-12-04 02:20:03,272 - DEBUG - VN ctest-vn-52222981 UUID is c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:03,416 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568, 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-11379966:ctest-vn-52222981, 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-12-04 02:20:03,705 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab10434a-a4f1-4e03-a901-48f20d9b9439', 'name': 'ctest-vn-47990568', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'project_id': 'ef5460be7f34466486be9cb74502821b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ac84cd0d-5084-44bf-9eea-89fc02d1d580'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-vn-47990568'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-policy-allow-all-98034764']], 'subnet_ipam': [{'subnet_cidr': '124.109.138.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:20:03,922 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c82e2b5e-cbd3-4e6a-9251-39e2203f24af', 'name': 'ctest-vn-52222981', 'tenant_id': 'ef5460be7f34466486be9cb74502821b', 'project_id': 'ef5460be7f34466486be9cb74502821b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4c5c3903-2e8c-415e-939c-aef919c21259'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-vn-52222981'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-policy-allow-all-98034764']], 'subnet_ipam': [{'subnet_cidr': '212.59.23.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:20:04,069 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-12-04 02:20:04,384 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-12-04 02:20:04,412 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d532fd41-7a3b-4b8f-b16e-ec4424c8956a
2025-12-04 02:20:04,424 - DEBUG - Requesting: http://10.0.0.41:8082/project/ef5460be-7f34-4664-86be-9cb74502821b
2025-12-04 02:20:04,497 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,507 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,515 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/276779e1-7100-473f-983b-3949a64b0875
2025-12-04 02:20:04,521 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/276779e1-7100-473f-983b-3949a64b0875
2025-12-04 02:20:04,527 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f5970b1-e7ef-4162-8f67-72094aaa0c0e
2025-12-04 02:20:04,532 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:20:04,532 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,540 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/276779e1-7100-473f-983b-3949a64b0875
2025-12-04 02:20:04,553 - INFO - Verified VN network id 11 for VN ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,553 - INFO - Verifications in API Server for VN ctest-vn-47990568 passed
2025-12-04 02:20:04,553 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,560 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/276779e1-7100-473f-983b-3949a64b0875
2025-12-04 02:20:04,566 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/276779e1-7100-473f-983b-3949a64b0875
2025-12-04 02:20:04,572 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/1f5970b1-e7ef-4162-8f67-72094aaa0c0e
2025-12-04 02:20:04,582 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11379966', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12326426167986966019', 'uuid-lslong': '12178095071834117177'}, 'enable': 'true', 'created': '2025-12-04T02:20:02', 'last-modified': '2025-12-04T02:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.895243'}
2025-12-04 02:20:04,587 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:20:04,587 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47990568 passed
2025-12-04 02:20:04,587 - DEBUG - ====Verifying policy data for ctest-vn-47990568 in API_Server ======
2025-12-04 02:20:04,588 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-12-04 02:20:04,593 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d532fd41-7a3b-4b8f-b16e-ec4424c8956a
2025-12-04 02:20:04,603 - DEBUG - Requesting: http://10.0.0.41:8082/project/ef5460be-7f34-4664-86be-9cb74502821b
2025-12-04 02:20:04,673 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/ab10434a-a4f1-4e03-a901-48f20d9b9439
2025-12-04 02:20:04,682 - DEBUG - ==>Verifying data for policy with id: ba140005-767d-45d9-916e-dcfd39aa6b2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-policy-allow-all-98034764']
2025-12-04 02:20:04,682 - INFO - VN ctest-vn-47990568 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:20:04,682 - DEBUG - Verifying the vn in opserver
2025-12-04 02:20:04,682 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568 virtual network link through opserver 10.0.0.41
2025-12-04 02:20:04,682 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-12-04 02:20:04,976 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-12-04 02:20:05,034 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568?flat'}
2025-12-04 02:20:05,034 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-47990568 is found in opserver
2025-12-04 02:20:05,043 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:20:05,049 - DEBUG - VRF ids for VN ctest-vn-47990568: {}
2025-12-04 02:20:05,049 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-12-04 02:20:05,055 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d532fd41-7a3b-4b8f-b16e-ec4424c8956a
2025-12-04 02:20:05,066 - DEBUG - Requesting: http://10.0.0.41:8082/project/ef5460be-7f34-4664-86be-9cb74502821b
2025-12-04 02:20:05,129 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,139 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,147 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07c01584-2bf0-4fbd-a1eb-9c12fd5bf1c3
2025-12-04 02:20:05,154 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07c01584-2bf0-4fbd-a1eb-9c12fd5bf1c3
2025-12-04 02:20:05,160 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c42746f9-34b2-4ea2-895e-7c9c65b0940f
2025-12-04 02:20:05,167 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:20:05,167 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,175 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07c01584-2bf0-4fbd-a1eb-9c12fd5bf1c3
2025-12-04 02:20:05,188 - INFO - Verified VN network id 12 for VN c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,188 - INFO - Verifications in API Server for VN ctest-vn-52222981 passed
2025-12-04 02:20:05,188 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,205 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07c01584-2bf0-4fbd-a1eb-9c12fd5bf1c3
2025-12-04 02:20:05,211 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/07c01584-2bf0-4fbd-a1eb-9c12fd5bf1c3
2025-12-04 02:20:05,217 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/c42746f9-34b2-4ea2-895e-7c9c65b0940f
2025-12-04 02:20:05,227 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-52222981', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11379966', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14424514342660820586', 'uuid-lslong': '10543271846017442991'}, 'enable': 'true', 'created': '2025-12-04T02:20:02', 'last-modified': '2025-12-04T02:20:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.320508'}
2025-12-04 02:20:05,234 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:20:05,234 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52222981 passed
2025-12-04 02:20:05,234 - DEBUG - ====Verifying policy data for ctest-vn-52222981 in API_Server ======
2025-12-04 02:20:05,234 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-12-04 02:20:05,239 - DEBUG - Requesting: http://10.0.0.41:8082/domain/d532fd41-7a3b-4b8f-b16e-ec4424c8956a
2025-12-04 02:20:05,248 - DEBUG - Requesting: http://10.0.0.41:8082/project/ef5460be-7f34-4664-86be-9cb74502821b
2025-12-04 02:20:05,320 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/c82e2b5e-cbd3-4e6a-9251-39e2203f24af
2025-12-04 02:20:05,330 - DEBUG - ==>Verifying data for policy with id: ba140005-767d-45d9-916e-dcfd39aa6b2d, fqn: ['default-domain', 'ctest-TestBasicPolicy-11379966', 'ctest-policy-allow-all-98034764']
2025-12-04 02:20:05,330 - INFO - VN ctest-vn-52222981 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:20:05,330 - DEBUG - Verifying the vn in opserver
2025-12-04 02:20:05,330 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-52222981 virtual network link through opserver 10.0.0.41
2025-12-04 02:20:05,331 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-12-04 02:20:05,339 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-52222981', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-52222981?flat'}
2025-12-04 02:20:05,340 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11379966:ctest-vn-52222981 is found in opserver
2025-12-04 02:20:05,349 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:20:05,353 - DEBUG - VRF ids for VN ctest-vn-52222981: {}
2025-12-04 02:20:05,413 - DEBUG - Services list from nova: [