2025-09-05 16:07:59,447 - INFO - Domain Default found not creating
2025-09-05 16:07:59,884 - INFO - Project ctest-TestBasicPolicy-91331436 not found, creating it
2025-09-05 16:08:00,589 - INFO - Created Project:ctest-TestBasicPolicy-91331436, ID : 7fccdeed-8f6a-4320-a334-24a1d54b7f53
2025-09-05 16:08:02,610 - INFO - ================================================================================
2025-09-05 16:08:02,610 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 16:08:02,610 - 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-09-05 16:08:02,932 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-05 16:08:02,932 - INFO - Initial checks done. Running the testcase now
2025-09-05 16:08:02,932 - INFO -
2025-09-05 16:08:03,689 - DEBUG - Response for create_network : {'network': {'id': '15953222-7225-425f-aceb-f728fc67369c', 'name': 'ctest-vn-25004870', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-25004870'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 16:08:03,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '87f97ead-4cea-45f2-958c-c5d25fa2d6ba', 'name': '', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'network_id': '15953222-7225-425f-aceb-f728fc67369c', 'ip_version': 4, 'cidr': '33.53.198.64/26', 'allocation_pools': [{'start': '33.53.198.66', 'end': '33.53.198.126'}], 'gateway_ip': '33.53.198.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.53.198.66', 'tags': [], 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53'}}
2025-09-05 16:08:03,983 - INFO - Created VN ctest-vn-25004870
2025-09-05 16:08:04,039 - DEBUG - VN ctest-vn-25004870 UUID is 15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:04,604 - DEBUG - Response for create_network : {'network': {'id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'name': 'ctest-vn-44223962', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-44223962'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 16:08:04,878 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7d43c6c-dbed-429a-bcfe-5ae4290f5b32', 'name': '', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'network_id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'ip_version': 4, 'cidr': '161.58.212.128/26', 'allocation_pools': [{'start': '161.58.212.130', 'end': '161.58.212.190'}], 'gateway_ip': '161.58.212.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '161.58.212.130', 'tags': [], 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53'}}
2025-09-05 16:08:04,913 - INFO - Created VN ctest-vn-44223962
2025-09-05 16:08:04,983 - DEBUG - VN ctest-vn-44223962 UUID is 187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:05,152 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870, 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-91331436:ctest-vn-44223962, 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-09-05 16:08:05,598 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15953222-7225-425f-aceb-f728fc67369c', 'name': 'ctest-vn-25004870', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87f97ead-4cea-45f2-958c-c5d25fa2d6ba'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-25004870'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']], 'subnet_ipam': [{'subnet_cidr': '33.53.198.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 16:08:05,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '187981af-f36a-4c58-9a5e-4471d92f046c', 'name': 'ctest-vn-44223962', 'tenant_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'project_id': '7fccdeed8f6a4320a33424a1d54b7f53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7d43c6c-dbed-429a-bcfe-5ae4290f5b32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-vn-44223962'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']], 'subnet_ipam': [{'subnet_cidr': '161.58.212.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 16:08:06,163 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-05 16:08:06,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-05 16:08:06,562 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28
2025-09-05 16:08:06,573 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53
2025-09-05 16:08:06,664 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:06,682 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:06,698 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a
2025-09-05 16:08:06,711 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a
2025-09-05 16:08:06,723 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bce4aaf-9f71-4433-a537-935fc75bef0a
2025-09-05 16:08:06,735 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 16:08:06,735 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:06,756 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a
2025-09-05 16:08:06,789 - INFO - Verified VN network id 11 for VN 15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:06,790 - INFO - Verifications in API Server for VN ctest-vn-25004870 passed
2025-09-05 16:08:06,790 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:06,813 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a
2025-09-05 16:08:06,829 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/9a9837a0-b170-43de-8ae2-d0fef637f57a
2025-09-05 16:08:06,846 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/5bce4aaf-9f71-4433-a537-935fc75bef0a
2025-09-05 16:08:06,875 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91331436', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1555204369851695711', 'uuid-lslong': '12460324549455984284'}, 'enable': 'true', 'created': '2025-09-05T16:08:03', 'last-modified': '2025-09-05T16:08:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.332346'}
2025-09-05 16:08:06,891 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 16:08:06,892 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25004870 passed
2025-09-05 16:08:06,892 - DEBUG - ====Verifying policy data for ctest-vn-25004870 in API_Server ======
2025-09-05 16:08:06,892 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-05 16:08:06,911 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28
2025-09-05 16:08:06,939 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53
2025-09-05 16:08:07,067 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/15953222-7225-425f-aceb-f728fc67369c
2025-09-05 16:08:07,086 - DEBUG - ==>Verifying data for policy with id: fc465789-9d1e-4aa8-bccb-7fa7c7649a4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']
2025-09-05 16:08:07,086 - INFO - VN ctest-vn-25004870 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 16:08:07,086 - DEBUG - Verifying the vn in opserver
2025-09-05 16:08:07,086 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870 virtual network link through opserver 10.0.0.22
2025-09-05 16:08:07,087 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-05 16:08:07,446 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-05 16:08:07,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870?flat'}
2025-09-05 16:08:07,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-25004870 is found in opserver
2025-09-05 16:08:07,573 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 16:08:07,588 - DEBUG - VRF ids for VN ctest-vn-25004870: {}
2025-09-05 16:08:07,588 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-05 16:08:07,599 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28
2025-09-05 16:08:07,617 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53
2025-09-05 16:08:07,729 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:07,762 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:07,789 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f
2025-09-05 16:08:07,808 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f
2025-09-05 16:08:07,827 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1dc20c8-f184-44b0-bd68-c75aff93571b
2025-09-05 16:08:07,846 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 16:08:07,846 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:07,870 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f
2025-09-05 16:08:07,902 - INFO - Verified VN network id 12 for VN 187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:07,902 - INFO - Verifications in API Server for VN ctest-vn-44223962 passed
2025-09-05 16:08:07,903 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:07,928 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f
2025-09-05 16:08:07,946 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/32af2364-e8fd-4d9e-b325-e05bdb055f8f
2025-09-05 16:08:07,964 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/d1dc20c8-f184-44b0-bd68-c75aff93571b
2025-09-05 16:08:07,995 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-91331436', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1763583321795349592', 'uuid-lslong': '11123403385417434220'}, 'enable': 'true', 'created': '2025-09-05T16:08:04', 'last-modified': '2025-09-05T16:08:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.144723'}
2025-09-05 16:08:08,012 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 16:08:08,012 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44223962 passed
2025-09-05 16:08:08,013 - DEBUG - ====Verifying policy data for ctest-vn-44223962 in API_Server ======
2025-09-05 16:08:08,013 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-05 16:08:08,026 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f27c11e2-da49-4485-8c6b-c125be6c8d28
2025-09-05 16:08:08,050 - DEBUG - Requesting: http://10.0.0.22:8082/project/7fccdeed-8f6a-4320-a334-24a1d54b7f53
2025-09-05 16:08:08,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/187981af-f36a-4c58-9a5e-4471d92f046c
2025-09-05 16:08:08,190 - DEBUG - ==>Verifying data for policy with id: fc465789-9d1e-4aa8-bccb-7fa7c7649a4d, fqn: ['default-domain', 'ctest-TestBasicPolicy-91331436', 'ctest-policy-allow-all-29057667']
2025-09-05 16:08:08,190 - INFO - VN ctest-vn-44223962 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 16:08:08,191 - DEBUG - Verifying the vn in opserver
2025-09-05 16:08:08,191 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962 virtual network link through opserver 10.0.0.22
2025-09-05 16:08:08,191 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-05 16:08:08,215 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962?flat'}
2025-09-05 16:08:08,215 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-91331436:ctest-vn-44223962 is found in opserver
2025-09-05 16:08:08,235 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 16:08:08,244 - DEBUG - VRF ids for VN ctest-vn-44223962: {}
2025-09-05 16:08:08,387 - DEBUG - Services list from nova: [