2025-09-11 19:18:49,409 - INFO - Domain Default found not creating
2025-09-11 19:18:49,579 - INFO - Project ctest-TestBasicPolicy-93844035 not found, creating it
2025-09-11 19:18:50,072 - INFO - Created Project:ctest-TestBasicPolicy-93844035, ID : a3bd5e4a-c423-4a10-9fce-4815abb04950
2025-09-11 19:18:51,541 - INFO - ================================================================================
2025-09-11 19:18:51,542 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-11 19:18:51,542 - 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-11 19:18:51,796 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-09-11 19:18:51,796 - INFO - Initial checks done. Running the testcase now
2025-09-11 19:18:51,796 - INFO -
2025-09-11 19:18:52,336 - DEBUG - Response for create_network : {'network': {'id': 'f3068acf-7955-4bb8-8167-37b2733570f7', 'name': 'ctest-vn-72399687', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'project_id': 'a3bd5e4ac4234a109fce4815abb04950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-vn-72399687'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 19:18:52,548 - DEBUG - Response for create_subnet : {'subnet': {'id': '55ed460a-84c4-4429-a39b-dc2198e8b353', 'name': '', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'network_id': 'f3068acf-7955-4bb8-8167-37b2733570f7', 'ip_version': 4, 'cidr': '118.58.113.128/26', 'allocation_pools': [{'start': '118.58.113.130', 'end': '118.58.113.190'}], 'gateway_ip': '118.58.113.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '118.58.113.130', 'tags': [], 'project_id': 'a3bd5e4ac4234a109fce4815abb04950'}}
2025-09-11 19:18:52,568 - INFO - Created VN ctest-vn-72399687
2025-09-11 19:18:52,622 - DEBUG - VN ctest-vn-72399687 UUID is f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:52,910 - DEBUG - Response for create_network : {'network': {'id': 'f6c48cf8-e62c-4421-9125-68cefd720137', 'name': 'ctest-vn-21099201', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'project_id': 'a3bd5e4ac4234a109fce4815abb04950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-vn-21099201'], 'port_security_enabled': True, 'description': ''}}
2025-09-11 19:18:53,089 - DEBUG - Response for create_subnet : {'subnet': {'id': '8d70524f-0033-4ad9-9a0b-9b0d23f6edc7', 'name': '', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'network_id': 'f6c48cf8-e62c-4421-9125-68cefd720137', 'ip_version': 4, 'cidr': '31.200.155.64/26', 'allocation_pools': [{'start': '31.200.155.66', 'end': '31.200.155.126'}], 'gateway_ip': '31.200.155.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.200.155.66', 'tags': [], 'project_id': 'a3bd5e4ac4234a109fce4815abb04950'}}
2025-09-11 19:18:53,108 - INFO - Created VN ctest-vn-21099201
2025-09-11 19:18:53,158 - DEBUG - VN ctest-vn-21099201 UUID is f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:53,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687, 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-93844035:ctest-vn-21099201, 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-11 19:18:53,606 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f3068acf-7955-4bb8-8167-37b2733570f7', 'name': 'ctest-vn-72399687', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'project_id': 'a3bd5e4ac4234a109fce4815abb04950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['55ed460a-84c4-4429-a39b-dc2198e8b353'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-vn-72399687'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-policy-allow-all-99372290']], 'subnet_ipam': [{'subnet_cidr': '118.58.113.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 19:18:53,883 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f6c48cf8-e62c-4421-9125-68cefd720137', 'name': 'ctest-vn-21099201', 'tenant_id': 'a3bd5e4ac4234a109fce4815abb04950', 'project_id': 'a3bd5e4ac4234a109fce4815abb04950', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8d70524f-0033-4ad9-9a0b-9b0d23f6edc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-vn-21099201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-policy-allow-all-99372290']], 'subnet_ipam': [{'subnet_cidr': '31.200.155.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-11 19:18:54,030 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 19:18:54,326 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 19:18:54,359 - DEBUG - Requesting: http://10.0.0.22:8082/domain/10fca3b2-93f4-4535-8ba7-b618bcb6a5b2
2025-09-11 19:18:54,371 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3bd5e4a-c423-4a10-9fce-4815abb04950
2025-09-11 19:18:54,446 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,457 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,467 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/11661ddf-9454-4976-8c89-d8c4852ec098
2025-09-11 19:18:54,474 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/11661ddf-9454-4976-8c89-d8c4852ec098
2025-09-11 19:18:54,481 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b3898894-5dd6-4823-825f-07bb28c8a2a3
2025-09-11 19:18:54,487 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 19:18:54,487 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,496 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/11661ddf-9454-4976-8c89-d8c4852ec098
2025-09-11 19:18:54,510 - INFO - Verified VN network id 11 for VN f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,510 - INFO - Verifications in API Server for VN ctest-vn-72399687 passed
2025-09-11 19:18:54,510 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,518 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/11661ddf-9454-4976-8c89-d8c4852ec098
2025-09-11 19:18:54,525 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/11661ddf-9454-4976-8c89-d8c4852ec098
2025-09-11 19:18:54,533 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/b3898894-5dd6-4823-825f-07bb28c8a2a3
2025-09-11 19:18:54,546 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93844035', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17511836824775248824', 'uuid-lslong': '9324482793070489847'}, 'enable': 'true', 'created': '2025-09-11T19:18:52', 'last-modified': '2025-09-11T19:18:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.965538'}
2025-09-11 19:18:54,552 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-11 19:18:54,552 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72399687 passed
2025-09-11 19:18:54,552 - DEBUG - ====Verifying policy data for ctest-vn-72399687 in API_Server ======
2025-09-11 19:18:54,552 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 19:18:54,557 - DEBUG - Requesting: http://10.0.0.22:8082/domain/10fca3b2-93f4-4535-8ba7-b618bcb6a5b2
2025-09-11 19:18:54,567 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3bd5e4a-c423-4a10-9fce-4815abb04950
2025-09-11 19:18:54,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f3068acf-7955-4bb8-8167-37b2733570f7
2025-09-11 19:18:54,648 - DEBUG - ==>Verifying data for policy with id: 1b146895-8014-4ac7-a3e8-83e4361d241f, fqn: ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-policy-allow-all-99372290']
2025-09-11 19:18:54,648 - INFO - VN ctest-vn-72399687 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 19:18:54,648 - DEBUG - Verifying the vn in opserver
2025-09-11 19:18:54,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687 virtual network link through opserver 10.0.0.22
2025-09-11 19:18:54,648 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 19:18:54,936 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 19:18:54,991 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687?flat'}
2025-09-11 19:18:54,991 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-72399687 is found in opserver
2025-09-11 19:18:55,000 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 19:18:55,004 - DEBUG - VRF ids for VN ctest-vn-72399687: {}
2025-09-11 19:18:55,004 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 19:18:55,010 - DEBUG - Requesting: http://10.0.0.22:8082/domain/10fca3b2-93f4-4535-8ba7-b618bcb6a5b2
2025-09-11 19:18:55,023 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3bd5e4a-c423-4a10-9fce-4815abb04950
2025-09-11 19:18:55,092 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,103 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,111 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0220e63-5d32-4fbd-8e0c-47a13b8dc41b
2025-09-11 19:18:55,118 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0220e63-5d32-4fbd-8e0c-47a13b8dc41b
2025-09-11 19:18:55,125 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0eca82a9-6c6f-40b5-867b-8a78b7f1b6b5
2025-09-11 19:18:55,131 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 19:18:55,132 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,140 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0220e63-5d32-4fbd-8e0c-47a13b8dc41b
2025-09-11 19:18:55,153 - INFO - Verified VN network id 12 for VN f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,153 - INFO - Verifications in API Server for VN ctest-vn-21099201 passed
2025-09-11 19:18:55,153 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,161 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0220e63-5d32-4fbd-8e0c-47a13b8dc41b
2025-09-11 19:18:55,167 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/f0220e63-5d32-4fbd-8e0c-47a13b8dc41b
2025-09-11 19:18:55,174 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0eca82a9-6c6f-40b5-867b-8a78b7f1b6b5
2025-09-11 19:18:55,185 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-21099201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93844035', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17781492229406999585', 'uuid-lslong': '10458880947862503735'}, 'enable': 'true', 'created': '2025-09-11T19:18:52', 'last-modified': '2025-09-11T19:18:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.368717'}
2025-09-11 19:18:55,190 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-11 19:18:55,192 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21099201 passed
2025-09-11 19:18:55,192 - DEBUG - ====Verifying policy data for ctest-vn-21099201 in API_Server ======
2025-09-11 19:18:55,192 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-09-11 19:18:55,198 - DEBUG - Requesting: http://10.0.0.22:8082/domain/10fca3b2-93f4-4535-8ba7-b618bcb6a5b2
2025-09-11 19:18:55,208 - DEBUG - Requesting: http://10.0.0.22:8082/project/a3bd5e4a-c423-4a10-9fce-4815abb04950
2025-09-11 19:18:55,277 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f6c48cf8-e62c-4421-9125-68cefd720137
2025-09-11 19:18:55,288 - DEBUG - ==>Verifying data for policy with id: 1b146895-8014-4ac7-a3e8-83e4361d241f, fqn: ['default-domain', 'ctest-TestBasicPolicy-93844035', 'ctest-policy-allow-all-99372290']
2025-09-11 19:18:55,288 - INFO - VN ctest-vn-21099201 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-11 19:18:55,288 - DEBUG - Verifying the vn in opserver
2025-09-11 19:18:55,288 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-21099201 virtual network link through opserver 10.0.0.22
2025-09-11 19:18:55,288 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-09-11 19:18:55,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-21099201', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-21099201?flat'}
2025-09-11 19:18:55,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93844035:ctest-vn-21099201 is found in opserver
2025-09-11 19:18:55,309 - DEBUG - Do not have enough data to verify VN in agent
2025-09-11 19:18:55,313 - DEBUG - VRF ids for VN ctest-vn-21099201: {}
2025-09-11 19:18:55,371 - DEBUG - Services list from nova: [