2025-09-13 16:57:47,346 - INFO - Domain Default found not creating
2025-09-13 16:57:47,520 - INFO - Project ctest-TestBasicPolicy-56334551 not found, creating it
2025-09-13 16:57:48,012 - INFO - Created Project:ctest-TestBasicPolicy-56334551, ID : 33458816-11f5-4324-b79c-81789aff8c03
2025-09-13 16:57:49,482 - INFO - ================================================================================
2025-09-13 16:57:49,482 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-13 16:57:49,482 - 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-13 16:57:49,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-13 16:57:49,741 - INFO - Initial checks done. Running the testcase now
2025-09-13 16:57:49,741 - INFO -
2025-09-13 16:57:50,341 - DEBUG - Response for create_network : {'network': {'id': 'e45aaf1a-f310-47e5-aef7-b768c6054de1', 'name': 'ctest-vn-45504019', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'project_id': '3345881611f54324b79c81789aff8c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-vn-45504019'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 16:57:50,567 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7a6a5eb-b005-4287-b1db-9ccee0a65438', 'name': '', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'network_id': 'e45aaf1a-f310-47e5-aef7-b768c6054de1', 'ip_version': 4, 'cidr': '93.31.148.64/26', 'allocation_pools': [{'start': '93.31.148.66', 'end': '93.31.148.126'}], 'gateway_ip': '93.31.148.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '93.31.148.66', 'tags': [], 'project_id': '3345881611f54324b79c81789aff8c03'}}
2025-09-13 16:57:50,589 - INFO - Created VN ctest-vn-45504019
2025-09-13 16:57:50,643 - DEBUG - VN ctest-vn-45504019 UUID is e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:50,959 - DEBUG - Response for create_network : {'network': {'id': 'b702f448-2069-4c11-8bc2-e5986432ade6', 'name': 'ctest-vn-07231862', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'project_id': '3345881611f54324b79c81789aff8c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-vn-07231862'], 'port_security_enabled': True, 'description': ''}}
2025-09-13 16:57:51,139 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef40529d-9e54-4e62-8918-1e2e3a9523d0', 'name': '', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'network_id': 'b702f448-2069-4c11-8bc2-e5986432ade6', 'ip_version': 4, 'cidr': '212.153.199.192/26', 'allocation_pools': [{'start': '212.153.199.194', 'end': '212.153.199.254'}], 'gateway_ip': '212.153.199.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.153.199.194', 'tags': [], 'project_id': '3345881611f54324b79c81789aff8c03'}}
2025-09-13 16:57:51,159 - INFO - Created VN ctest-vn-07231862
2025-09-13 16:57:51,211 - DEBUG - VN ctest-vn-07231862 UUID is b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:51,330 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019, 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-56334551:ctest-vn-07231862, 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-13 16:57:51,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e45aaf1a-f310-47e5-aef7-b768c6054de1', 'name': 'ctest-vn-45504019', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'project_id': '3345881611f54324b79c81789aff8c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7a6a5eb-b005-4287-b1db-9ccee0a65438'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-vn-45504019'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-policy-allow-all-72742147']], 'subnet_ipam': [{'subnet_cidr': '93.31.148.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 16:57:51,878 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b702f448-2069-4c11-8bc2-e5986432ade6', 'name': 'ctest-vn-07231862', 'tenant_id': '3345881611f54324b79c81789aff8c03', 'project_id': '3345881611f54324b79c81789aff8c03', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef40529d-9e54-4e62-8918-1e2e3a9523d0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-vn-07231862'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-policy-allow-all-72742147']], 'subnet_ipam': [{'subnet_cidr': '212.153.199.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-13 16:57:52,055 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-13 16:57:52,362 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-13 16:57:52,396 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee
2025-09-13 16:57:52,411 - DEBUG - Requesting: http://10.0.0.254:8082/project/33458816-11f5-4324-b79c-81789aff8c03
2025-09-13 16:57:52,483 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,494 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,503 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88823478-dfe2-44a5-9fdd-8cc81054f161
2025-09-13 16:57:52,509 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88823478-dfe2-44a5-9fdd-8cc81054f161
2025-09-13 16:57:52,515 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/68078706-2471-482d-946c-825f1252b338
2025-09-13 16:57:52,520 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 16:57:52,521 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,528 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88823478-dfe2-44a5-9fdd-8cc81054f161
2025-09-13 16:57:52,542 - INFO - Verified VN network id 11 for VN e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,542 - INFO - Verifications in API Server for VN ctest-vn-45504019 passed
2025-09-13 16:57:52,542 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,550 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88823478-dfe2-44a5-9fdd-8cc81054f161
2025-09-13 16:57:52,557 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/88823478-dfe2-44a5-9fdd-8cc81054f161
2025-09-13 16:57:52,564 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/68078706-2471-482d-946c-825f1252b338
2025-09-13 16:57:52,576 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56334551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16454656718833469413', 'uuid-lslong': '12607747342473711073'}, 'enable': 'true', 'created': '2025-09-13T16:57:50', 'last-modified': '2025-09-13T16:57:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.959939'}
2025-09-13 16:57:52,582 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-13 16:57:52,582 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-45504019 passed
2025-09-13 16:57:52,582 - DEBUG - ====Verifying policy data for ctest-vn-45504019 in API_Server ======
2025-09-13 16:57:52,582 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-13 16:57:52,589 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee
2025-09-13 16:57:52,600 - DEBUG - Requesting: http://10.0.0.254:8082/project/33458816-11f5-4324-b79c-81789aff8c03
2025-09-13 16:57:52,670 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e45aaf1a-f310-47e5-aef7-b768c6054de1
2025-09-13 16:57:52,680 - DEBUG - ==>Verifying data for policy with id: 090e285c-b6c2-4ffe-b193-653ea35cf057, fqn: ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-policy-allow-all-72742147']
2025-09-13 16:57:52,680 - INFO - VN ctest-vn-45504019 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 16:57:52,680 - DEBUG - Verifying the vn in opserver
2025-09-13 16:57:52,680 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019 virtual network link through opserver 10.0.0.254
2025-09-13 16:57:52,680 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-13 16:57:52,990 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-13 16:57:53,054 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019?flat'}
2025-09-13 16:57:53,054 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-45504019 is found in opserver
2025-09-13 16:57:53,064 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 16:57:53,070 - DEBUG - VRF ids for VN ctest-vn-45504019: {}
2025-09-13 16:57:53,070 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-13 16:57:53,076 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee
2025-09-13 16:57:53,089 - DEBUG - Requesting: http://10.0.0.254:8082/project/33458816-11f5-4324-b79c-81789aff8c03
2025-09-13 16:57:53,166 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,178 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,188 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22968484-dd60-4524-994b-05bb2a0d6fb5
2025-09-13 16:57:53,195 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22968484-dd60-4524-994b-05bb2a0d6fb5
2025-09-13 16:57:53,203 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8dd1f0f-a838-492f-b18a-c78bd758807a
2025-09-13 16:57:53,212 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 16:57:53,212 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,222 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22968484-dd60-4524-994b-05bb2a0d6fb5
2025-09-13 16:57:53,238 - INFO - Verified VN network id 12 for VN b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,239 - INFO - Verifications in API Server for VN ctest-vn-07231862 passed
2025-09-13 16:57:53,239 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,251 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22968484-dd60-4524-994b-05bb2a0d6fb5
2025-09-13 16:57:53,261 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/22968484-dd60-4524-994b-05bb2a0d6fb5
2025-09-13 16:57:53,269 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c8dd1f0f-a838-492f-b18a-c78bd758807a
2025-09-13 16:57:53,281 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-07231862', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-56334551', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13187371249512827921', 'uuid-lslong': '10070864159432682982'}, 'enable': 'true', 'created': '2025-09-13T16:57:50', 'last-modified': '2025-09-13T16:57:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.430803'}
2025-09-13 16:57:53,288 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-13 16:57:53,288 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07231862 passed
2025-09-13 16:57:53,289 - DEBUG - ====Verifying policy data for ctest-vn-07231862 in API_Server ======
2025-09-13 16:57:53,289 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-13 16:57:53,296 - DEBUG - Requesting: http://10.0.0.254:8082/domain/02c7b8f7-aa1a-4f7e-970a-3488eb6611ee
2025-09-13 16:57:53,307 - DEBUG - Requesting: http://10.0.0.254:8082/project/33458816-11f5-4324-b79c-81789aff8c03
2025-09-13 16:57:53,378 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/b702f448-2069-4c11-8bc2-e5986432ade6
2025-09-13 16:57:53,388 - DEBUG - ==>Verifying data for policy with id: 090e285c-b6c2-4ffe-b193-653ea35cf057, fqn: ['default-domain', 'ctest-TestBasicPolicy-56334551', 'ctest-policy-allow-all-72742147']
2025-09-13 16:57:53,389 - INFO - VN ctest-vn-07231862 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-13 16:57:53,389 - DEBUG - Verifying the vn in opserver
2025-09-13 16:57:53,389 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-07231862 virtual network link through opserver 10.0.0.254
2025-09-13 16:57:53,389 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-13 16:57:53,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-07231862', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-07231862?flat'}
2025-09-13 16:57:53,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-56334551:ctest-vn-07231862 is found in opserver
2025-09-13 16:57:53,414 - DEBUG - Do not have enough data to verify VN in agent
2025-09-13 16:57:53,419 - DEBUG - VRF ids for VN ctest-vn-07231862: {}
2025-09-13 16:57:53,486 - DEBUG - Services list from nova: [