2025-12-04 02:22:19,657 - INFO - Domain Default found not creating
2025-12-04 02:22:19,844 - INFO - Project ctest-TestBasicPolicy-31850003 not found, creating it
2025-12-04 02:22:20,337 - INFO - Created Project:ctest-TestBasicPolicy-31850003, ID : 5e026a09-7fbc-4412-ab9d-de67946119ba
2025-12-04 02:22:21,961 - INFO - ================================================================================
2025-12-04 02:22:21,961 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-04 02:22:21,961 - 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:22:22,248 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.129': '0'}} with
2025-12-04 02:22:22,248 - INFO - Initial checks done. Running the testcase now
2025-12-04 02:22:22,248 - INFO -
2025-12-04 02:22:22,872 - DEBUG - Response for create_network : {'network': {'id': 'e0a3ad97-f4b5-420e-97ac-f7bce62518dd', 'name': 'ctest-vn-74826599', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'project_id': '5e026a097fbc4412ab9dde67946119ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-vn-74826599'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:22:23,095 - DEBUG - Response for create_subnet : {'subnet': {'id': '34f67a3f-b096-4fe5-8acb-23cba749ef83', 'name': '', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'network_id': 'e0a3ad97-f4b5-420e-97ac-f7bce62518dd', 'ip_version': 4, 'cidr': '177.178.122.192/26', 'allocation_pools': [{'start': '177.178.122.194', 'end': '177.178.122.254'}], 'gateway_ip': '177.178.122.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.178.122.194', 'tags': [], 'project_id': '5e026a097fbc4412ab9dde67946119ba'}}
2025-12-04 02:22:23,114 - INFO - Created VN ctest-vn-74826599
2025-12-04 02:22:23,168 - DEBUG - VN ctest-vn-74826599 UUID is e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:23,484 - DEBUG - Response for create_network : {'network': {'id': 'ba71f6ac-4f54-4287-9eca-02129ff15e13', 'name': 'ctest-vn-66913083', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'project_id': '5e026a097fbc4412ab9dde67946119ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-vn-66913083'], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:22:23,694 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b8081695-c49c-4c6a-a32c-dd9dd8d96888', 'name': '', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'network_id': 'ba71f6ac-4f54-4287-9eca-02129ff15e13', 'ip_version': 4, 'cidr': '193.47.111.0/26', 'allocation_pools': [{'start': '193.47.111.2', 'end': '193.47.111.62'}], 'gateway_ip': '193.47.111.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.47.111.2', 'tags': [], 'project_id': '5e026a097fbc4412ab9dde67946119ba'}}
2025-12-04 02:22:23,713 - INFO - Created VN ctest-vn-66913083
2025-12-04 02:22:23,767 - DEBUG - VN ctest-vn-66913083 UUID is ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:23,887 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599, 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-31850003:ctest-vn-66913083, 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:22:24,187 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e0a3ad97-f4b5-420e-97ac-f7bce62518dd', 'name': 'ctest-vn-74826599', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'project_id': '5e026a097fbc4412ab9dde67946119ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['34f67a3f-b096-4fe5-8acb-23cba749ef83'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-vn-74826599'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-policy-allow-all-35713444']], 'subnet_ipam': [{'subnet_cidr': '177.178.122.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:22:24,465 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba71f6ac-4f54-4287-9eca-02129ff15e13', 'name': 'ctest-vn-66913083', 'tenant_id': '5e026a097fbc4412ab9dde67946119ba', 'project_id': '5e026a097fbc4412ab9dde67946119ba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b8081695-c49c-4c6a-a32c-dd9dd8d96888'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-vn-66913083'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-policy-allow-all-35713444']], 'subnet_ipam': [{'subnet_cidr': '193.47.111.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-04 02:22:24,612 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-04 02:22:24,914 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-04 02:22:24,950 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed
2025-12-04 02:22:24,964 - DEBUG - Requesting: http://10.0.0.19:8082/project/5e026a09-7fbc-4412-ab9d-de67946119ba
2025-12-04 02:22:25,042 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,053 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,064 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/df1d37e1-3331-46c6-a5af-d19ca3db7b3d
2025-12-04 02:22:25,072 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/df1d37e1-3331-46c6-a5af-d19ca3db7b3d
2025-12-04 02:22:25,079 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b08803dc-0fbe-4894-8042-b18b95b8566c
2025-12-04 02:22:25,087 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:22:25,087 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,096 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/df1d37e1-3331-46c6-a5af-d19ca3db7b3d
2025-12-04 02:22:25,112 - INFO - Verified VN network id 11 for VN e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,112 - INFO - Verifications in API Server for VN ctest-vn-74826599 passed
2025-12-04 02:22:25,112 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,121 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/df1d37e1-3331-46c6-a5af-d19ca3db7b3d
2025-12-04 02:22:25,128 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/df1d37e1-3331-46c6-a5af-d19ca3db7b3d
2025-12-04 02:22:25,135 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/b08803dc-0fbe-4894-8042-b18b95b8566c
2025-12-04 02:22:25,148 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31850003', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16186972353856881166', 'uuid-lslong': '10929382786408454365'}, 'enable': 'true', 'created': '2025-12-04T02:22:22', 'last-modified': '2025-12-04T02:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.984359'}
2025-12-04 02:22:25,154 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-04 02:22:25,154 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74826599 passed
2025-12-04 02:22:25,154 - DEBUG - ====Verifying policy data for ctest-vn-74826599 in API_Server ======
2025-12-04 02:22:25,154 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-04 02:22:25,160 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed
2025-12-04 02:22:25,174 - DEBUG - Requesting: http://10.0.0.19:8082/project/5e026a09-7fbc-4412-ab9d-de67946119ba
2025-12-04 02:22:25,248 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/e0a3ad97-f4b5-420e-97ac-f7bce62518dd
2025-12-04 02:22:25,258 - DEBUG - ==>Verifying data for policy with id: e8797297-afd4-4f23-9a2f-bc09d6814cb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-policy-allow-all-35713444']
2025-12-04 02:22:25,258 - INFO - VN ctest-vn-74826599 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:22:25,258 - DEBUG - Verifying the vn in opserver
2025-12-04 02:22:25,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599 virtual network link through opserver 10.0.0.19
2025-12-04 02:22:25,258 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-04 02:22:25,555 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-04 02:22:25,623 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599?flat'}
2025-12-04 02:22:25,623 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-74826599 is found in opserver
2025-12-04 02:22:25,634 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:22:25,638 - DEBUG - VRF ids for VN ctest-vn-74826599: {}
2025-12-04 02:22:25,638 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-04 02:22:25,644 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed
2025-12-04 02:22:25,655 - DEBUG - Requesting: http://10.0.0.19:8082/project/5e026a09-7fbc-4412-ab9d-de67946119ba
2025-12-04 02:22:25,729 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,742 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,752 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/885d5a1f-d069-47e6-a731-10014fa259f6
2025-12-04 02:22:25,761 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/885d5a1f-d069-47e6-a731-10014fa259f6
2025-12-04 02:22:25,772 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/12df260f-e00a-4dff-a729-3853f43816c2
2025-12-04 02:22:25,779 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:22:25,780 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,790 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/885d5a1f-d069-47e6-a731-10014fa259f6
2025-12-04 02:22:25,806 - INFO - Verified VN network id 12 for VN ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,806 - INFO - Verifications in API Server for VN ctest-vn-66913083 passed
2025-12-04 02:22:25,806 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,817 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/885d5a1f-d069-47e6-a731-10014fa259f6
2025-12-04 02:22:25,823 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/885d5a1f-d069-47e6-a731-10014fa259f6
2025-12-04 02:22:25,830 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/12df260f-e00a-4dff-a729-3853f43816c2
2025-12-04 02:22:25,840 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-66913083', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-31850003', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13434790383348630151', 'uuid-lslong': '11441960082304228883'}, 'enable': 'true', 'created': '2025-12-04T02:22:23', 'last-modified': '2025-12-04T02:22:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.447245'}
2025-12-04 02:22:25,846 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-04 02:22:25,847 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66913083 passed
2025-12-04 02:22:25,847 - DEBUG - ====Verifying policy data for ctest-vn-66913083 in API_Server ======
2025-12-04 02:22:25,847 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-12-04 02:22:25,852 - DEBUG - Requesting: http://10.0.0.19:8082/domain/4ab31d1a-963f-4ca3-8cea-f2f2d6aa3fed
2025-12-04 02:22:25,862 - DEBUG - Requesting: http://10.0.0.19:8082/project/5e026a09-7fbc-4412-ab9d-de67946119ba
2025-12-04 02:22:25,938 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/ba71f6ac-4f54-4287-9eca-02129ff15e13
2025-12-04 02:22:25,949 - DEBUG - ==>Verifying data for policy with id: e8797297-afd4-4f23-9a2f-bc09d6814cb7, fqn: ['default-domain', 'ctest-TestBasicPolicy-31850003', 'ctest-policy-allow-all-35713444']
2025-12-04 02:22:25,949 - INFO - VN ctest-vn-66913083 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-04 02:22:25,949 - DEBUG - Verifying the vn in opserver
2025-12-04 02:22:25,949 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-66913083 virtual network link through opserver 10.0.0.19
2025-12-04 02:22:25,949 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-12-04 02:22:25,960 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-66913083', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-66913083?flat'}
2025-12-04 02:22:25,960 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-31850003:ctest-vn-66913083 is found in opserver
2025-12-04 02:22:25,970 - DEBUG - Do not have enough data to verify VN in agent
2025-12-04 02:22:25,976 - DEBUG - VRF ids for VN ctest-vn-66913083: {}
2025-12-04 02:22:26,039 - DEBUG - Services list from nova: [