2025-11-17 22:50:38,208 - INFO - Domain Default found not creating
2025-11-17 22:50:38,343 - INFO - Project ctest-TestBasicPolicy-15460393 not found, creating it
2025-11-17 22:50:38,793 - INFO - Created Project:ctest-TestBasicPolicy-15460393, ID : 59ed6cdf-4573-4743-97ce-30e31abfab39
2025-11-17 22:50:40,107 - INFO - ================================================================================
2025-11-17 22:50:40,107 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-17 22:50:40,107 - 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-11-17 22:50:40,356 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-17 22:50:40,356 - INFO - Initial checks done. Running the testcase now
2025-11-17 22:50:40,356 - INFO -
2025-11-17 22:50:41,001 - DEBUG - Response for create_network : {'network': {'id': '2b3780db-df5a-4d67-af64-aedb4386b070', 'name': 'ctest-vn-51626255', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'project_id': '59ed6cdf4573474397ce30e31abfab39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-vn-51626255'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:50:41,124 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c761ce6c-fdc5-4f06-93c6-006ef3509614', 'name': '', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'network_id': '2b3780db-df5a-4d67-af64-aedb4386b070', 'ip_version': 4, 'cidr': '90.234.113.0/26', 'allocation_pools': [{'start': '90.234.113.2', 'end': '90.234.113.62'}], 'gateway_ip': '90.234.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.234.113.2', 'tags': [], 'project_id': '59ed6cdf4573474397ce30e31abfab39'}}
2025-11-17 22:50:41,138 - INFO - Created VN ctest-vn-51626255
2025-11-17 22:50:41,187 - DEBUG - VN ctest-vn-51626255 UUID is 2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:41,463 - DEBUG - Response for create_network : {'network': {'id': 'f94eec6b-9060-43be-9c30-e71f83b9be54', 'name': 'ctest-vn-94646145', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'project_id': '59ed6cdf4573474397ce30e31abfab39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-vn-94646145'], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:50:41,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '06f6fa7a-02af-42ec-b1d3-aa5df04748aa', 'name': '', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'network_id': 'f94eec6b-9060-43be-9c30-e71f83b9be54', 'ip_version': 4, 'cidr': '113.254.209.0/26', 'allocation_pools': [{'start': '113.254.209.2', 'end': '113.254.209.62'}], 'gateway_ip': '113.254.209.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.254.209.2', 'tags': [], 'project_id': '59ed6cdf4573474397ce30e31abfab39'}}
2025-11-17 22:50:41,663 - INFO - Created VN ctest-vn-94646145
2025-11-17 22:50:41,715 - DEBUG - VN ctest-vn-94646145 UUID is f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:41,859 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255, 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-15460393:ctest-vn-94646145, 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-11-17 22:50:42,133 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b3780db-df5a-4d67-af64-aedb4386b070', 'name': 'ctest-vn-51626255', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'project_id': '59ed6cdf4573474397ce30e31abfab39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c761ce6c-fdc5-4f06-93c6-006ef3509614'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-vn-51626255'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-policy-allow-all-65865850']], 'subnet_ipam': [{'subnet_cidr': '90.234.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:50:42,403 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f94eec6b-9060-43be-9c30-e71f83b9be54', 'name': 'ctest-vn-94646145', 'tenant_id': '59ed6cdf4573474397ce30e31abfab39', 'project_id': '59ed6cdf4573474397ce30e31abfab39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['06f6fa7a-02af-42ec-b1d3-aa5df04748aa'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-vn-94646145'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-policy-allow-all-65865850']], 'subnet_ipam': [{'subnet_cidr': '113.254.209.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-17 22:50:42,547 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 22:50:42,842 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 22:50:42,868 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2565e28-b2d8-4e32-845a-d70bec41d8d3
2025-11-17 22:50:42,878 - DEBUG - Requesting: http://10.0.0.50:8082/project/59ed6cdf-4573-4743-97ce-30e31abfab39
2025-11-17 22:50:42,945 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:42,954 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:42,961 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61912cfd-d571-4f18-a62f-105f26918d31
2025-11-17 22:50:42,966 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61912cfd-d571-4f18-a62f-105f26918d31
2025-11-17 22:50:42,972 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4d2f4923-b2d2-48f1-8d14-66a41ac48005
2025-11-17 22:50:42,976 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 22:50:42,977 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:42,983 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61912cfd-d571-4f18-a62f-105f26918d31
2025-11-17 22:50:42,994 - INFO - Verified VN network id 11 for VN 2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:42,994 - INFO - Verifications in API Server for VN ctest-vn-51626255 passed
2025-11-17 22:50:42,994 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:43,001 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61912cfd-d571-4f18-a62f-105f26918d31
2025-11-17 22:50:43,006 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/61912cfd-d571-4f18-a62f-105f26918d31
2025-11-17 22:50:43,011 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4d2f4923-b2d2-48f1-8d14-66a41ac48005
2025-11-17 22:50:43,019 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15460393', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3114099349183417703', 'uuid-lslong': '12638418711062425712'}, 'enable': 'true', 'created': '2025-11-17T22:50:40', 'last-modified': '2025-11-17T22:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907038'}
2025-11-17 22:50:43,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-17 22:50:43,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-51626255 passed
2025-11-17 22:50:43,025 - DEBUG - ====Verifying policy data for ctest-vn-51626255 in API_Server ======
2025-11-17 22:50:43,025 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 22:50:43,028 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2565e28-b2d8-4e32-845a-d70bec41d8d3
2025-11-17 22:50:43,037 - DEBUG - Requesting: http://10.0.0.50:8082/project/59ed6cdf-4573-4743-97ce-30e31abfab39
2025-11-17 22:50:43,101 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/2b3780db-df5a-4d67-af64-aedb4386b070
2025-11-17 22:50:43,109 - DEBUG - ==>Verifying data for policy with id: 39c845b7-1d1a-4523-99d0-f6ef4ea7ce77, fqn: ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-policy-allow-all-65865850']
2025-11-17 22:50:43,109 - INFO - VN ctest-vn-51626255 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 22:50:43,109 - DEBUG - Verifying the vn in opserver
2025-11-17 22:50:43,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255 virtual network link through opserver 10.0.0.50
2025-11-17 22:50:43,109 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 22:50:43,396 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 22:50:43,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255?flat'}
2025-11-17 22:50:43,454 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-51626255 is found in opserver
2025-11-17 22:50:43,462 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 22:50:43,467 - DEBUG - VRF ids for VN ctest-vn-51626255: {}
2025-11-17 22:50:43,467 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 22:50:43,473 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2565e28-b2d8-4e32-845a-d70bec41d8d3
2025-11-17 22:50:43,482 - DEBUG - Requesting: http://10.0.0.50:8082/project/59ed6cdf-4573-4743-97ce-30e31abfab39
2025-11-17 22:50:43,548 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,558 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,565 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0fe397b-68db-4a0b-9948-5f027a49ba96
2025-11-17 22:50:43,571 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0fe397b-68db-4a0b-9948-5f027a49ba96
2025-11-17 22:50:43,576 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9b2e874-56ca-4657-8891-348c10a48069
2025-11-17 22:50:43,581 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 22:50:43,581 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0fe397b-68db-4a0b-9948-5f027a49ba96
2025-11-17 22:50:43,599 - INFO - Verified VN network id 12 for VN f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,599 - INFO - Verifications in API Server for VN ctest-vn-94646145 passed
2025-11-17 22:50:43,599 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,607 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0fe397b-68db-4a0b-9948-5f027a49ba96
2025-11-17 22:50:43,612 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/c0fe397b-68db-4a0b-9948-5f027a49ba96
2025-11-17 22:50:43,617 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e9b2e874-56ca-4657-8891-348c10a48069
2025-11-17 22:50:43,627 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-94646145', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-15460393', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17964555910355370942', 'uuid-lslong': '11254749591338860116'}, 'enable': 'true', 'created': '2025-11-17T22:50:41', 'last-modified': '2025-11-17T22:50:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.290035'}
2025-11-17 22:50:43,631 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-17 22:50:43,632 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-94646145 passed
2025-11-17 22:50:43,632 - DEBUG - ====Verifying policy data for ctest-vn-94646145 in API_Server ======
2025-11-17 22:50:43,632 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-17 22:50:43,637 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2565e28-b2d8-4e32-845a-d70bec41d8d3
2025-11-17 22:50:43,646 - DEBUG - Requesting: http://10.0.0.50:8082/project/59ed6cdf-4573-4743-97ce-30e31abfab39
2025-11-17 22:50:43,714 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f94eec6b-9060-43be-9c30-e71f83b9be54
2025-11-17 22:50:43,724 - DEBUG - ==>Verifying data for policy with id: 39c845b7-1d1a-4523-99d0-f6ef4ea7ce77, fqn: ['default-domain', 'ctest-TestBasicPolicy-15460393', 'ctest-policy-allow-all-65865850']
2025-11-17 22:50:43,724 - INFO - VN ctest-vn-94646145 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-17 22:50:43,724 - DEBUG - Verifying the vn in opserver
2025-11-17 22:50:43,724 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-94646145 virtual network link through opserver 10.0.0.50
2025-11-17 22:50:43,724 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-17 22:50:43,734 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-94646145', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-94646145?flat'}
2025-11-17 22:50:43,734 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-15460393:ctest-vn-94646145 is found in opserver
2025-11-17 22:50:43,744 - DEBUG - Do not have enough data to verify VN in agent
2025-11-17 22:50:43,748 - DEBUG - VRF ids for VN ctest-vn-94646145: {}
2025-11-17 22:50:43,802 - DEBUG - Services list from nova: [