2025-12-30 03:01:39,628 - INFO - Domain Default found not creating
2025-12-30 03:01:39,774 - INFO - Project ctest-TestBasicPolicy-97874326 not found, creating it
2025-12-30 03:01:40,196 - INFO - Created Project:ctest-TestBasicPolicy-97874326, ID : 0b98db1b-e7cd-40ce-9d13-64fb11279554
2025-12-30 03:01:41,581 - INFO - ================================================================================
2025-12-30 03:01:41,581 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-30 03:01:41,581 - 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-30 03:01:41,834 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.14': '0'}} with
2025-12-30 03:01:41,834 - INFO - Initial checks done. Running the testcase now
2025-12-30 03:01:41,834 - INFO -
2025-12-30 03:01:42,345 - DEBUG - Response for create_network : {'network': {'id': 'c5414044-cbff-44b8-aed9-afcca61a94c8', 'name': 'ctest-vn-66783148', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'project_id': '0b98db1be7cd40ce9d1364fb11279554', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-vn-66783148'], 'port_security_enabled': True, 'description': ''}}
2025-12-30 03:01:42,539 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9a23972-0b7a-4ebc-89a7-17eb36518878', 'name': '', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'network_id': 'c5414044-cbff-44b8-aed9-afcca61a94c8', 'ip_version': 4, 'cidr': '33.46.39.128/26', 'allocation_pools': [{'start': '33.46.39.130', 'end': '33.46.39.190'}], 'gateway_ip': '33.46.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33.46.39.130', 'tags': [], 'project_id': '0b98db1be7cd40ce9d1364fb11279554'}}
2025-12-30 03:01:42,554 - INFO - Created VN ctest-vn-66783148
2025-12-30 03:01:42,606 - DEBUG - VN ctest-vn-66783148 UUID is c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:42,907 - DEBUG - Response for create_network : {'network': {'id': '6dc10e08-5cff-4207-80c5-d6c7499c25d3', 'name': 'ctest-vn-38520773', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'project_id': '0b98db1be7cd40ce9d1364fb11279554', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-vn-38520773'], 'port_security_enabled': True, 'description': ''}}
2025-12-30 03:01:43,040 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9bbe42d-f950-4556-833d-c17de1e2aeb9', 'name': '', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'network_id': '6dc10e08-5cff-4207-80c5-d6c7499c25d3', 'ip_version': 4, 'cidr': '109.159.248.192/26', 'allocation_pools': [{'start': '109.159.248.194', 'end': '109.159.248.254'}], 'gateway_ip': '109.159.248.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '109.159.248.194', 'tags': [], 'project_id': '0b98db1be7cd40ce9d1364fb11279554'}}
2025-12-30 03:01:43,056 - INFO - Created VN ctest-vn-38520773
2025-12-30 03:01:43,110 - DEBUG - VN ctest-vn-38520773 UUID is 6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:43,253 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148, 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-97874326:ctest-vn-38520773, 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-30 03:01:43,527 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c5414044-cbff-44b8-aed9-afcca61a94c8', 'name': 'ctest-vn-66783148', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'project_id': '0b98db1be7cd40ce9d1364fb11279554', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9a23972-0b7a-4ebc-89a7-17eb36518878'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-vn-66783148'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-policy-allow-all-41882939']], 'subnet_ipam': [{'subnet_cidr': '33.46.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-30 03:01:43,740 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dc10e08-5cff-4207-80c5-d6c7499c25d3', 'name': 'ctest-vn-38520773', 'tenant_id': '0b98db1be7cd40ce9d1364fb11279554', 'project_id': '0b98db1be7cd40ce9d1364fb11279554', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e9bbe42d-f950-4556-833d-c17de1e2aeb9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-vn-38520773'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-policy-allow-all-41882939']], 'subnet_ipam': [{'subnet_cidr': '109.159.248.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-30 03:01:43,886 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-30 03:01:44,184 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-30 03:01:44,211 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6
2025-12-30 03:01:44,221 - DEBUG - Requesting: http://10.0.0.249:8082/project/0b98db1b-e7cd-40ce-9d13-64fb11279554
2025-12-30 03:01:44,290 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,300 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,308 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e76bd575-5723-457d-83e5-65640a614df1
2025-12-30 03:01:44,322 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e76bd575-5723-457d-83e5-65640a614df1
2025-12-30 03:01:44,328 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f1ecfafe-a214-43ef-bdb1-d59b1ef717a5
2025-12-30 03:01:44,334 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-30 03:01:44,334 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,342 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e76bd575-5723-457d-83e5-65640a614df1
2025-12-30 03:01:44,353 - INFO - Verified VN network id 11 for VN c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,353 - INFO - Verifications in API Server for VN ctest-vn-66783148 passed
2025-12-30 03:01:44,353 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,361 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e76bd575-5723-457d-83e5-65640a614df1
2025-12-30 03:01:44,367 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/e76bd575-5723-457d-83e5-65640a614df1
2025-12-30 03:01:44,373 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/f1ecfafe-a214-43ef-bdb1-d59b1ef717a5
2025-12-30 03:01:44,382 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97874326', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14213712563182453944', 'uuid-lslong': '12599294726040622280'}, 'enable': 'true', 'created': '2025-12-30T03:01:42', 'last-modified': '2025-12-30T03:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.872464'}
2025-12-30 03:01:44,387 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-30 03:01:44,387 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66783148 passed
2025-12-30 03:01:44,388 - DEBUG - ====Verifying policy data for ctest-vn-66783148 in API_Server ======
2025-12-30 03:01:44,388 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-30 03:01:44,392 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6
2025-12-30 03:01:44,404 - DEBUG - Requesting: http://10.0.0.249:8082/project/0b98db1b-e7cd-40ce-9d13-64fb11279554
2025-12-30 03:01:44,470 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/c5414044-cbff-44b8-aed9-afcca61a94c8
2025-12-30 03:01:44,478 - DEBUG - ==>Verifying data for policy with id: 756f88fd-35d3-488a-a886-23655393fc4f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-policy-allow-all-41882939']
2025-12-30 03:01:44,478 - INFO - VN ctest-vn-66783148 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-30 03:01:44,479 - DEBUG - Verifying the vn in opserver
2025-12-30 03:01:44,479 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148 virtual network link through opserver 10.0.0.249
2025-12-30 03:01:44,479 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-30 03:01:44,772 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-30 03:01:44,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148?flat'}
2025-12-30 03:01:44,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-66783148 is found in opserver
2025-12-30 03:01:44,837 - DEBUG - Do not have enough data to verify VN in agent
2025-12-30 03:01:44,841 - DEBUG - VRF ids for VN ctest-vn-66783148: {}
2025-12-30 03:01:44,841 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-30 03:01:44,846 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6
2025-12-30 03:01:44,857 - DEBUG - Requesting: http://10.0.0.249:8082/project/0b98db1b-e7cd-40ce-9d13-64fb11279554
2025-12-30 03:01:44,927 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:44,940 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:44,949 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/efc06f37-75a9-4671-ae0f-ce96fe745649
2025-12-30 03:01:44,955 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/efc06f37-75a9-4671-ae0f-ce96fe745649
2025-12-30 03:01:44,960 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/46c4c295-6900-43f7-9372-7fe3dc540476
2025-12-30 03:01:44,966 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-30 03:01:44,966 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:44,974 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/efc06f37-75a9-4671-ae0f-ce96fe745649
2025-12-30 03:01:44,986 - INFO - Verified VN network id 12 for VN 6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:44,986 - INFO - Verifications in API Server for VN ctest-vn-38520773 passed
2025-12-30 03:01:44,986 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:44,993 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/efc06f37-75a9-4671-ae0f-ce96fe745649
2025-12-30 03:01:44,998 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/efc06f37-75a9-4671-ae0f-ce96fe745649
2025-12-30 03:01:45,003 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/46c4c295-6900-43f7-9372-7fe3dc540476
2025-12-30 03:01:45,012 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-38520773', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-97874326', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7908617849722061319', 'uuid-lslong': '9279058758688581075'}, 'enable': 'true', 'created': '2025-12-30T03:01:42', 'last-modified': '2025-12-30T03:01:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.289182'}
2025-12-30 03:01:45,017 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-30 03:01:45,017 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38520773 passed
2025-12-30 03:01:45,017 - DEBUG - ====Verifying policy data for ctest-vn-38520773 in API_Server ======
2025-12-30 03:01:45,017 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-12-30 03:01:45,024 - DEBUG - Requesting: http://10.0.0.249:8082/domain/150b051f-c1fa-4acc-b2e5-58d0303793b6
2025-12-30 03:01:45,034 - DEBUG - Requesting: http://10.0.0.249:8082/project/0b98db1b-e7cd-40ce-9d13-64fb11279554
2025-12-30 03:01:45,104 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/6dc10e08-5cff-4207-80c5-d6c7499c25d3
2025-12-30 03:01:45,112 - DEBUG - ==>Verifying data for policy with id: 756f88fd-35d3-488a-a886-23655393fc4f, fqn: ['default-domain', 'ctest-TestBasicPolicy-97874326', 'ctest-policy-allow-all-41882939']
2025-12-30 03:01:45,113 - INFO - VN ctest-vn-38520773 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-30 03:01:45,113 - DEBUG - Verifying the vn in opserver
2025-12-30 03:01:45,113 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-38520773 virtual network link through opserver 10.0.0.249
2025-12-30 03:01:45,113 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-12-30 03:01:45,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-38520773', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-38520773?flat'}
2025-12-30 03:01:45,121 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-97874326:ctest-vn-38520773 is found in opserver
2025-12-30 03:01:45,129 - DEBUG - Do not have enough data to verify VN in agent
2025-12-30 03:01:45,133 - DEBUG - VRF ids for VN ctest-vn-38520773: {}
2025-12-30 03:01:45,183 - DEBUG - Services list from nova: [