2026-04-30 02:23:54,413 - INFO - Domain Default found not creating
2026-04-30 02:23:54,618 - INFO - Project ctest-TestBasicPolicy-36753027 not found, creating it
2026-04-30 02:23:55,117 - INFO - Created Project:ctest-TestBasicPolicy-36753027, ID : 702e8d36-f2f2-4bbf-a6b4-07fb71d2f84a
2026-04-30 02:23:56,720 - INFO - ================================================================================
2026-04-30 02:23:56,721 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-30 02:23:56,721 - 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
2026-04-30 02:23:56,998 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2026-04-30 02:23:56,998 - INFO - Initial checks done. Running the testcase now
2026-04-30 02:23:56,998 - INFO -
2026-04-30 02:23:57,586 - DEBUG - Response for create_network : {'network': {'id': '73a7ea61-a68f-4f1c-a72c-fb0b69e29da0', 'name': 'ctest-vn-09180467', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-vn-09180467'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:23:57,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '363953e2-c605-4c03-b991-eb9f47bcd806', 'name': '', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'network_id': '73a7ea61-a68f-4f1c-a72c-fb0b69e29da0', 'ip_version': 4, 'cidr': '115.32.151.192/26', 'allocation_pools': [{'start': '115.32.151.194', 'end': '115.32.151.254'}], 'gateway_ip': '115.32.151.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.32.151.194', 'tags': [], 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a'}}
2026-04-30 02:23:57,815 - INFO - Created VN ctest-vn-09180467
2026-04-30 02:23:57,868 - DEBUG - VN ctest-vn-09180467 UUID is 73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:58,179 - DEBUG - Response for create_network : {'network': {'id': 'b507bc1b-a861-4ca5-89f0-f0e710f05d0b', 'name': 'ctest-vn-71295664', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-vn-71295664'], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:23:58,403 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd686a3b4-06ce-4348-a767-99525f17e9e3', 'name': '', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'network_id': 'b507bc1b-a861-4ca5-89f0-f0e710f05d0b', 'ip_version': 4, 'cidr': '63.61.240.64/26', 'allocation_pools': [{'start': '63.61.240.66', 'end': '63.61.240.126'}], 'gateway_ip': '63.61.240.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.61.240.66', 'tags': [], 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a'}}
2026-04-30 02:23:58,424 - INFO - Created VN ctest-vn-71295664
2026-04-30 02:23:58,480 - DEBUG - VN ctest-vn-71295664 UUID is b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:23:58,596 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467, 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-36753027:ctest-vn-71295664, 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]
2026-04-30 02:23:58,917 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '73a7ea61-a68f-4f1c-a72c-fb0b69e29da0', 'name': 'ctest-vn-09180467', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['363953e2-c605-4c03-b991-eb9f47bcd806'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-vn-09180467'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-policy-allow-all-56842542']], 'subnet_ipam': [{'subnet_cidr': '115.32.151.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:23:59,178 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b507bc1b-a861-4ca5-89f0-f0e710f05d0b', 'name': 'ctest-vn-71295664', 'tenant_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'project_id': '702e8d36f2f24bbfa6b407fb71d2f84a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d686a3b4-06ce-4348-a767-99525f17e9e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-vn-71295664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-policy-allow-all-56842542']], 'subnet_ipam': [{'subnet_cidr': '63.61.240.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-30 02:23:59,340 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-30 02:23:59,644 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-30 02:23:59,687 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd
2026-04-30 02:23:59,703 - DEBUG - Requesting: http://10.0.0.38:8082/project/702e8d36-f2f2-4bbf-a6b4-07fb71d2f84a
2026-04-30 02:23:59,779 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:59,793 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:59,805 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ea7d545-7b7d-4278-b114-7be0c82eafa9
2026-04-30 02:23:59,822 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ea7d545-7b7d-4278-b114-7be0c82eafa9
2026-04-30 02:23:59,831 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a2992b1-4bc3-4b6f-bb78-29a33ebb818d
2026-04-30 02:23:59,839 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:23:59,839 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:59,851 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ea7d545-7b7d-4278-b114-7be0c82eafa9
2026-04-30 02:23:59,867 - INFO - Verified VN network id 11 for VN 73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:59,868 - INFO - Verifications in API Server for VN ctest-vn-09180467 passed
2026-04-30 02:23:59,868 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:23:59,878 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ea7d545-7b7d-4278-b114-7be0c82eafa9
2026-04-30 02:23:59,886 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/7ea7d545-7b7d-4278-b114-7be0c82eafa9
2026-04-30 02:23:59,894 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3a2992b1-4bc3-4b6f-bb78-29a33ebb818d
2026-04-30 02:23:59,909 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36753027', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8333887340599529244', 'uuid-lslong': '12046279129748905376'}, 'enable': 'true', 'created': '2026-04-30T02:23:57', 'last-modified': '2026-04-30T02:23:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.013566'}
2026-04-30 02:23:59,915 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-30 02:23:59,916 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09180467 passed
2026-04-30 02:23:59,916 - DEBUG - ====Verifying policy data for ctest-vn-09180467 in API_Server ======
2026-04-30 02:23:59,916 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-30 02:23:59,922 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd
2026-04-30 02:23:59,937 - DEBUG - Requesting: http://10.0.0.38:8082/project/702e8d36-f2f2-4bbf-a6b4-07fb71d2f84a
2026-04-30 02:24:00,022 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/73a7ea61-a68f-4f1c-a72c-fb0b69e29da0
2026-04-30 02:24:00,034 - DEBUG - ==>Verifying data for policy with id: 1b181c08-5596-433a-825a-5beb8336bcec, fqn: ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-policy-allow-all-56842542']
2026-04-30 02:24:00,034 - INFO - VN ctest-vn-09180467 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:24:00,034 - DEBUG - Verifying the vn in opserver
2026-04-30 02:24:00,034 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467 virtual network link through opserver 10.0.0.38
2026-04-30 02:24:00,034 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-30 02:24:00,342 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-30 02:24:00,440 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467?flat'}
2026-04-30 02:24:00,440 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-09180467 is found in opserver
2026-04-30 02:24:00,451 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:24:00,457 - DEBUG - VRF ids for VN ctest-vn-09180467: {}
2026-04-30 02:24:00,457 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-30 02:24:00,465 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd
2026-04-30 02:24:00,479 - DEBUG - Requesting: http://10.0.0.38:8082/project/702e8d36-f2f2-4bbf-a6b4-07fb71d2f84a
2026-04-30 02:24:00,559 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,574 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,588 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9114eeeb-3e90-44f5-93ba-15149b09dcdc
2026-04-30 02:24:00,597 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9114eeeb-3e90-44f5-93ba-15149b09dcdc
2026-04-30 02:24:00,606 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/59d42be2-1c1a-46a4-9f20-8e966af51019
2026-04-30 02:24:00,614 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:24:00,614 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9114eeeb-3e90-44f5-93ba-15149b09dcdc
2026-04-30 02:24:00,646 - INFO - Verified VN network id 12 for VN b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,646 - INFO - Verifications in API Server for VN ctest-vn-71295664 passed
2026-04-30 02:24:00,646 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,658 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9114eeeb-3e90-44f5-93ba-15149b09dcdc
2026-04-30 02:24:00,669 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9114eeeb-3e90-44f5-93ba-15149b09dcdc
2026-04-30 02:24:00,679 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/59d42be2-1c1a-46a4-9f20-8e966af51019
2026-04-30 02:24:00,694 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-71295664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-36753027', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13044601672677018789', 'uuid-lslong': '9939709252818984203'}, 'enable': 'true', 'created': '2026-04-30T02:23:58', 'last-modified': '2026-04-30T02:23:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.544239'}
2026-04-30 02:24:00,702 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-30 02:24:00,702 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71295664 passed
2026-04-30 02:24:00,702 - DEBUG - ====Verifying policy data for ctest-vn-71295664 in API_Server ======
2026-04-30 02:24:00,702 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-30 02:24:00,709 - DEBUG - Requesting: http://10.0.0.38:8082/domain/033dcabd-97df-439f-8207-51383e8b92fd
2026-04-30 02:24:00,723 - DEBUG - Requesting: http://10.0.0.38:8082/project/702e8d36-f2f2-4bbf-a6b4-07fb71d2f84a
2026-04-30 02:24:00,796 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b507bc1b-a861-4ca5-89f0-f0e710f05d0b
2026-04-30 02:24:00,807 - DEBUG - ==>Verifying data for policy with id: 1b181c08-5596-433a-825a-5beb8336bcec, fqn: ['default-domain', 'ctest-TestBasicPolicy-36753027', 'ctest-policy-allow-all-56842542']
2026-04-30 02:24:00,808 - INFO - VN ctest-vn-71295664 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-30 02:24:00,808 - DEBUG - Verifying the vn in opserver
2026-04-30 02:24:00,808 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-71295664 virtual network link through opserver 10.0.0.38
2026-04-30 02:24:00,808 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-30 02:24:00,820 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-71295664', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-71295664?flat'}
2026-04-30 02:24:00,820 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-36753027:ctest-vn-71295664 is found in opserver
2026-04-30 02:24:00,833 - DEBUG - Do not have enough data to verify VN in agent
2026-04-30 02:24:00,840 - DEBUG - VRF ids for VN ctest-vn-71295664: {}
2026-04-30 02:24:00,923 - DEBUG - Services list from nova: [