2026-05-09 05:31:47,920 - INFO - Domain Default found not creating
2026-05-09 05:31:48,071 - INFO - Project ctest-TestBasicPolicy-53096688 not found, creating it
2026-05-09 05:31:48,506 - INFO - Created Project:ctest-TestBasicPolicy-53096688, ID : 0893982d-ada1-465b-8315-2732a0fc85cd
2026-05-09 05:31:49,924 - INFO - ================================================================================
2026-05-09 05:31:49,924 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-09 05:31:49,924 - 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-05-09 05:31:50,178 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-05-09 05:31:50,178 - INFO - Initial checks done. Running the testcase now
2026-05-09 05:31:50,178 - INFO -
2026-05-09 05:31:50,706 - DEBUG - Response for create_network : {'network': {'id': 'b060d148-75b2-4b58-beb3-316c9c8f79e8', 'name': 'ctest-vn-17990443', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'project_id': '0893982dada1465b83152732a0fc85cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-vn-17990443'], 'port_security_enabled': True, 'description': ''}}
2026-05-09 05:31:50,908 - DEBUG - Response for create_subnet : {'subnet': {'id': '313aaf2f-0bb6-4bc0-98bb-05a497f4e25a', 'name': '', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'network_id': 'b060d148-75b2-4b58-beb3-316c9c8f79e8', 'ip_version': 4, 'cidr': '112.45.138.0/26', 'allocation_pools': [{'start': '112.45.138.2', 'end': '112.45.138.62'}], 'gateway_ip': '112.45.138.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.45.138.2', 'tags': [], 'project_id': '0893982dada1465b83152732a0fc85cd'}}
2026-05-09 05:31:50,924 - INFO - Created VN ctest-vn-17990443
2026-05-09 05:31:50,977 - DEBUG - VN ctest-vn-17990443 UUID is b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:51,275 - DEBUG - Response for create_network : {'network': {'id': '69418f38-bd68-4202-b0d5-37b717a086e0', 'name': 'ctest-vn-29952615', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'project_id': '0893982dada1465b83152732a0fc85cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-vn-29952615'], 'port_security_enabled': True, 'description': ''}}
2026-05-09 05:31:51,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a369b26-61bb-4621-ab43-5e158cb446fa', 'name': '', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'network_id': '69418f38-bd68-4202-b0d5-37b717a086e0', 'ip_version': 4, 'cidr': '162.208.21.64/26', 'allocation_pools': [{'start': '162.208.21.66', 'end': '162.208.21.126'}], 'gateway_ip': '162.208.21.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '162.208.21.66', 'tags': [], 'project_id': '0893982dada1465b83152732a0fc85cd'}}
2026-05-09 05:31:51,496 - INFO - Created VN ctest-vn-29952615
2026-05-09 05:31:51,551 - DEBUG - VN ctest-vn-29952615 UUID is 69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:51,701 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443, 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-53096688:ctest-vn-29952615, 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-05-09 05:31:52,026 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b060d148-75b2-4b58-beb3-316c9c8f79e8', 'name': 'ctest-vn-17990443', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'project_id': '0893982dada1465b83152732a0fc85cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['313aaf2f-0bb6-4bc0-98bb-05a497f4e25a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-vn-17990443'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-policy-allow-all-51182907']], 'subnet_ipam': [{'subnet_cidr': '112.45.138.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-09 05:31:52,264 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69418f38-bd68-4202-b0d5-37b717a086e0', 'name': 'ctest-vn-29952615', 'tenant_id': '0893982dada1465b83152732a0fc85cd', 'project_id': '0893982dada1465b83152732a0fc85cd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a369b26-61bb-4621-ab43-5e158cb446fa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-vn-29952615'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-policy-allow-all-51182907']], 'subnet_ipam': [{'subnet_cidr': '162.208.21.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-09 05:31:52,428 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-09 05:31:52,722 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-09 05:31:52,752 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3
2026-05-09 05:31:52,765 - DEBUG - Requesting: http://10.0.0.38:8082/project/0893982d-ada1-465b-8315-2732a0fc85cd
2026-05-09 05:31:52,836 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:52,849 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:52,857 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9928d856-15d8-416f-9aca-5a7a68ca2954
2026-05-09 05:31:52,865 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9928d856-15d8-416f-9aca-5a7a68ca2954
2026-05-09 05:31:52,871 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea1e9c6f-7a38-4112-920c-ba121de9d263
2026-05-09 05:31:52,886 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-09 05:31:52,886 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:52,897 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9928d856-15d8-416f-9aca-5a7a68ca2954
2026-05-09 05:31:52,913 - INFO - Verified VN network id 11 for VN b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:52,913 - INFO - Verifications in API Server for VN ctest-vn-17990443 passed
2026-05-09 05:31:52,914 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:52,924 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9928d856-15d8-416f-9aca-5a7a68ca2954
2026-05-09 05:31:52,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9928d856-15d8-416f-9aca-5a7a68ca2954
2026-05-09 05:31:52,938 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ea1e9c6f-7a38-4112-920c-ba121de9d263
2026-05-09 05:31:52,949 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53096688', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12709388257582009176', 'uuid-lslong': '13741381230590392808'}, 'enable': 'true', 'created': '2026-05-09T05:31:50', 'last-modified': '2026-05-09T05:31:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.951683'}
2026-05-09 05:31:52,954 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-09 05:31:52,954 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-17990443 passed
2026-05-09 05:31:52,955 - DEBUG - ====Verifying policy data for ctest-vn-17990443 in API_Server ======
2026-05-09 05:31:52,955 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-09 05:31:52,960 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3
2026-05-09 05:31:52,971 - DEBUG - Requesting: http://10.0.0.38:8082/project/0893982d-ada1-465b-8315-2732a0fc85cd
2026-05-09 05:31:53,038 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b060d148-75b2-4b58-beb3-316c9c8f79e8
2026-05-09 05:31:53,047 - DEBUG - ==>Verifying data for policy with id: 5974e7b6-f595-430d-9a8c-5d4aa287f422, fqn: ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-policy-allow-all-51182907']
2026-05-09 05:31:53,047 - INFO - VN ctest-vn-17990443 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-09 05:31:53,048 - DEBUG - Verifying the vn in opserver
2026-05-09 05:31:53,048 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443 virtual network link through opserver 10.0.0.38
2026-05-09 05:31:53,048 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-09 05:31:53,342 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-09 05:31:53,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443?flat'}
2026-05-09 05:31:53,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-17990443 is found in opserver
2026-05-09 05:31:53,415 - DEBUG - Do not have enough data to verify VN in agent
2026-05-09 05:31:53,420 - DEBUG - VRF ids for VN ctest-vn-17990443: {}
2026-05-09 05:31:53,420 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-09 05:31:53,425 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3
2026-05-09 05:31:53,436 - DEBUG - Requesting: http://10.0.0.38:8082/project/0893982d-ada1-465b-8315-2732a0fc85cd
2026-05-09 05:31:53,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,518 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,528 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d708e4b-3408-4f30-b380-a064e0977aa1
2026-05-09 05:31:53,536 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d708e4b-3408-4f30-b380-a064e0977aa1
2026-05-09 05:31:53,544 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/21efa1fc-9abf-4550-98e4-65bac7b9fc79
2026-05-09 05:31:53,552 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-09 05:31:53,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,561 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d708e4b-3408-4f30-b380-a064e0977aa1
2026-05-09 05:31:53,575 - INFO - Verified VN network id 12 for VN 69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,575 - INFO - Verifications in API Server for VN ctest-vn-29952615 passed
2026-05-09 05:31:53,575 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d708e4b-3408-4f30-b380-a064e0977aa1
2026-05-09 05:31:53,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d708e4b-3408-4f30-b380-a064e0977aa1
2026-05-09 05:31:53,599 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/21efa1fc-9abf-4550-98e4-65bac7b9fc79
2026-05-09 05:31:53,613 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-29952615', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-53096688', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7584500721327292930', 'uuid-lslong': '12742151980229625568'}, 'enable': 'true', 'created': '2026-05-09T05:31:51', 'last-modified': '2026-05-09T05:31:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.378294'}
2026-05-09 05:31:53,620 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-09 05:31:53,620 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-29952615 passed
2026-05-09 05:31:53,620 - DEBUG - ====Verifying policy data for ctest-vn-29952615 in API_Server ======
2026-05-09 05:31:53,620 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-05-09 05:31:53,626 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c3976781-ee5c-4ebc-8205-9d6772bd7cc3
2026-05-09 05:31:53,637 - DEBUG - Requesting: http://10.0.0.38:8082/project/0893982d-ada1-465b-8315-2732a0fc85cd
2026-05-09 05:31:53,709 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/69418f38-bd68-4202-b0d5-37b717a086e0
2026-05-09 05:31:53,719 - DEBUG - ==>Verifying data for policy with id: 5974e7b6-f595-430d-9a8c-5d4aa287f422, fqn: ['default-domain', 'ctest-TestBasicPolicy-53096688', 'ctest-policy-allow-all-51182907']
2026-05-09 05:31:53,720 - INFO - VN ctest-vn-29952615 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-09 05:31:53,720 - DEBUG - Verifying the vn in opserver
2026-05-09 05:31:53,720 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-29952615 virtual network link through opserver 10.0.0.38
2026-05-09 05:31:53,720 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-05-09 05:31:53,729 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-29952615', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-29952615?flat'}
2026-05-09 05:31:53,729 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-53096688:ctest-vn-29952615 is found in opserver
2026-05-09 05:31:53,739 - DEBUG - Do not have enough data to verify VN in agent
2026-05-09 05:31:53,743 - DEBUG - VRF ids for VN ctest-vn-29952615: {}
2026-05-09 05:31:53,798 - DEBUG - Services list from nova: [