2025-06-04 22:12:04,354 - INFO - Domain Default found not creating
2025-06-04 22:12:04,516 - INFO - Project ctest-TestBasicPolicy-06165221 not found, creating it
2025-06-04 22:12:05,102 - INFO - Created Project:ctest-TestBasicPolicy-06165221, ID : 9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c
2025-06-04 22:12:06,663 - INFO - ================================================================================
2025-06-04 22:12:06,663 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-04 22:12:06,663 - 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-06-04 22:12:06,921 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with
2025-06-04 22:12:06,922 - INFO - Initial checks done. Running the testcase now
2025-06-04 22:12:06,922 - INFO -
2025-06-04 22:12:07,478 - DEBUG - Response for create_network : {'network': {'id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'name': 'ctest-vn-32811853', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-32811853'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:12:07,691 - DEBUG - Response for create_subnet : {'subnet': {'id': '02cbe9fc-611a-4738-b838-3ccdf5ab950a', 'name': '', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'network_id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'ip_version': 4, 'cidr': '139.148.99.192/26', 'allocation_pools': [{'start': '139.148.99.194', 'end': '139.148.99.254'}], 'gateway_ip': '139.148.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.148.99.194', 'tags': [], 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c'}}
2025-06-04 22:12:07,709 - INFO - Created VN ctest-vn-32811853
2025-06-04 22:12:07,760 - DEBUG - VN ctest-vn-32811853 UUID is fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:08,096 - DEBUG - Response for create_network : {'network': {'id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'name': 'ctest-vn-26649618', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-26649618'], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:12:08,299 - DEBUG - Response for create_subnet : {'subnet': {'id': '803f8132-0147-4786-9d06-b4230d6a9832', 'name': '', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'network_id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'ip_version': 4, 'cidr': '35.221.45.128/26', 'allocation_pools': [{'start': '35.221.45.130', 'end': '35.221.45.190'}], 'gateway_ip': '35.221.45.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '35.221.45.130', 'tags': [], 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c'}}
2025-06-04 22:12:08,317 - INFO - Created VN ctest-vn-26649618
2025-06-04 22:12:08,372 - DEBUG - VN ctest-vn-26649618 UUID is 77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:08,495 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853, 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-06165221:ctest-vn-26649618, 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-06-04 22:12:08,817 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fad5ac1f-c6f2-458a-bcb6-e0b112625679', 'name': 'ctest-vn-32811853', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['02cbe9fc-611a-4738-b838-3ccdf5ab950a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-32811853'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']], 'subnet_ipam': [{'subnet_cidr': '139.148.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:12:09,056 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77ba8dc9-3314-4879-a8a3-363597b0ac27', 'name': 'ctest-vn-26649618', 'tenant_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'project_id': '9d2c5c7e491a4d21ab2cfcbe843ad19c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['803f8132-0147-4786-9d06-b4230d6a9832'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-vn-26649618'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']], 'subnet_ipam': [{'subnet_cidr': '35.221.45.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-04 22:12:09,228 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-04 22:12:09,527 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-04 22:12:09,555 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565
2025-06-04 22:12:09,566 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c
2025-06-04 22:12:09,642 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,652 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,660 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5
2025-06-04 22:12:09,666 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5
2025-06-04 22:12:09,672 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cec2b34f-fd60-4b53-bdaa-c084bfcbb348
2025-06-04 22:12:09,678 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 22:12:09,678 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,687 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5
2025-06-04 22:12:09,700 - INFO - Verified VN network id 7 for VN fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,700 - INFO - Verifications in API Server for VN ctest-vn-32811853 passed
2025-06-04 22:12:09,700 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,708 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5
2025-06-04 22:12:09,717 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/d3d092ac-5647-4977-9920-34e0166e5ac5
2025-06-04 22:12:09,724 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/cec2b34f-fd60-4b53-bdaa-c084bfcbb348
2025-06-04 22:12:09,735 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06165221', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18074541932003083658', 'uuid-lslong': '13598303176014059129'}, 'enable': 'true', 'created': '2025-06-04T22:12:07', 'last-modified': '2025-06-04T22:12:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950817'}
2025-06-04 22:12:09,743 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-04 22:12:09,743 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32811853 passed
2025-06-04 22:12:09,743 - DEBUG - ====Verifying policy data for ctest-vn-32811853 in API_Server ======
2025-06-04 22:12:09,743 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-04 22:12:09,748 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565
2025-06-04 22:12:09,760 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c
2025-06-04 22:12:09,836 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/fad5ac1f-c6f2-458a-bcb6-e0b112625679
2025-06-04 22:12:09,847 - DEBUG - ==>Verifying data for policy with id: a187e8b7-d9a6-4427-853a-6811bff277b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']
2025-06-04 22:12:09,847 - INFO - VN ctest-vn-32811853 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 22:12:09,847 - DEBUG - Verifying the vn in opserver
2025-06-04 22:12:09,847 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853 virtual network link through opserver 10.0.0.57
2025-06-04 22:12:09,848 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-04 22:12:10,164 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-04 22:12:10,228 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853?flat'}
2025-06-04 22:12:10,228 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-32811853 is found in opserver
2025-06-04 22:12:10,238 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 22:12:10,243 - DEBUG - VRF ids for VN ctest-vn-32811853: {}
2025-06-04 22:12:10,244 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-04 22:12:10,250 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565
2025-06-04 22:12:10,335 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c
2025-06-04 22:12:10,410 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,421 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,431 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83
2025-06-04 22:12:10,445 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83
2025-06-04 22:12:10,453 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a99766e-4572-44f1-8e41-289409120db7
2025-06-04 22:12:10,460 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 22:12:10,460 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,470 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83
2025-06-04 22:12:10,485 - INFO - Verified VN network id 8 for VN 77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,485 - INFO - Verifications in API Server for VN ctest-vn-26649618 passed
2025-06-04 22:12:10,485 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,494 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83
2025-06-04 22:12:10,501 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/37fc41a6-151f-4057-ae8e-51f1025a1e83
2025-06-04 22:12:10,509 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/9a99766e-4572-44f1-8e41-289409120db7
2025-06-04 22:12:10,520 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06165221', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8627363931466516601', 'uuid-lslong': '12151615823381834791'}, 'enable': 'true', 'created': '2025-06-04T22:12:08', 'last-modified': '2025-06-04T22:12:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.488859'}
2025-06-04 22:12:10,526 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-04 22:12:10,526 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26649618 passed
2025-06-04 22:12:10,526 - DEBUG - ====Verifying policy data for ctest-vn-26649618 in API_Server ======
2025-06-04 22:12:10,526 - DEBUG - Requesting: http://10.0.0.57:8082/domains
2025-06-04 22:12:10,532 - DEBUG - Requesting: http://10.0.0.57:8082/domain/53966ec4-eeda-496b-b3cc-f9d67f34f565
2025-06-04 22:12:10,543 - DEBUG - Requesting: http://10.0.0.57:8082/project/9d2c5c7e-491a-4d21-ab2c-fcbe843ad19c
2025-06-04 22:12:10,614 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/77ba8dc9-3314-4879-a8a3-363597b0ac27
2025-06-04 22:12:10,623 - DEBUG - ==>Verifying data for policy with id: a187e8b7-d9a6-4427-853a-6811bff277b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-06165221', 'ctest-policy-allow-all-24899891']
2025-06-04 22:12:10,623 - INFO - VN ctest-vn-26649618 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-04 22:12:10,624 - DEBUG - Verifying the vn in opserver
2025-06-04 22:12:10,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618 virtual network link through opserver 10.0.0.57
2025-06-04 22:12:10,624 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks
2025-06-04 22:12:10,637 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618?flat'}
2025-06-04 22:12:10,637 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06165221:ctest-vn-26649618 is found in opserver
2025-06-04 22:12:10,653 - DEBUG - Do not have enough data to verify VN in agent
2025-06-04 22:12:10,659 - DEBUG - VRF ids for VN ctest-vn-26649618: {}
2025-06-04 22:12:10,724 - DEBUG - Services list from nova: [