2025-06-23 16:07:45,205 - INFO - Domain Default found not creating
2025-06-23 16:07:45,373 - INFO - Project ctest-TestBasicPolicy-73414066 not found, creating it
2025-06-23 16:07:45,903 - INFO - Created Project:ctest-TestBasicPolicy-73414066, ID : 60ecf09d-17c8-4ed7-ab28-eee346b43bfd
2025-06-23 16:07:47,606 - INFO - ================================================================================
2025-06-23 16:07:47,606 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-23 16:07:47,606 - 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-23 16:07:47,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-23 16:07:47,870 - INFO - Initial checks done. Running the testcase now
2025-06-23 16:07:47,870 - INFO -
2025-06-23 16:07:48,534 - DEBUG - Response for create_network : {'network': {'id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'name': 'ctest-vn-35462266', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-35462266'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 16:07:48,696 - DEBUG - Response for create_subnet : {'subnet': {'id': '90309d38-503c-4bc7-a8ed-07dfb80427e2', 'name': '', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'network_id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'ip_version': 4, 'cidr': '217.68.116.64/26', 'allocation_pools': [{'start': '217.68.116.66', 'end': '217.68.116.126'}], 'gateway_ip': '217.68.116.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '217.68.116.66', 'tags': [], 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd'}}
2025-06-23 16:07:48,721 - INFO - Created VN ctest-vn-35462266
2025-06-23 16:07:48,779 - DEBUG - VN ctest-vn-35462266 UUID is 164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:49,141 - DEBUG - Response for create_network : {'network': {'id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'name': 'ctest-vn-10833803', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-10833803'], 'port_security_enabled': True, 'description': ''}}
2025-06-23 16:07:49,373 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df2e617b-9cdc-4ed8-9419-9d2cbd15d34d', 'name': '', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'network_id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'ip_version': 4, 'cidr': '68.96.215.64/26', 'allocation_pools': [{'start': '68.96.215.66', 'end': '68.96.215.126'}], 'gateway_ip': '68.96.215.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.96.215.66', 'tags': [], 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd'}}
2025-06-23 16:07:49,400 - INFO - Created VN ctest-vn-10833803
2025-06-23 16:07:49,459 - DEBUG - VN ctest-vn-10833803 UUID is f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:49,594 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266, 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-73414066:ctest-vn-10833803, 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-23 16:07:49,936 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '164db450-8669-4d05-ae9e-aa3d1b6951e5', 'name': 'ctest-vn-35462266', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90309d38-503c-4bc7-a8ed-07dfb80427e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-35462266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']], 'subnet_ipam': [{'subnet_cidr': '217.68.116.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 16:07:50,233 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f483dd1a-0024-4950-8f68-9f60bda662bd', 'name': 'ctest-vn-10833803', 'tenant_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'project_id': '60ecf09d17c84ed7ab28eee346b43bfd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df2e617b-9cdc-4ed8-9419-9d2cbd15d34d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-vn-10833803'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']], 'subnet_ipam': [{'subnet_cidr': '68.96.215.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-23 16:07:50,379 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 16:07:50,718 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 16:07:50,751 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2
2025-06-23 16:07:50,768 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd
2025-06-23 16:07:50,846 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:50,860 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:50,872 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88
2025-06-23 16:07:50,881 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88
2025-06-23 16:07:50,890 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1752ef33-dc78-4aac-93ec-e330a4fc5068
2025-06-23 16:07:50,898 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 16:07:50,898 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:50,912 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88
2025-06-23 16:07:50,932 - INFO - Verified VN network id 7 for VN 164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:50,932 - INFO - Verifications in API Server for VN ctest-vn-35462266 passed
2025-06-23 16:07:50,932 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:50,943 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88
2025-06-23 16:07:50,952 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61cc9ae5-b336-4f8d-83fc-348bf371fd88
2025-06-23 16:07:50,961 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/1752ef33-dc78-4aac-93ec-e330a4fc5068
2025-06-23 16:07:50,977 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73414066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1607138899986566405', 'uuid-lslong': '12582681588349358565'}, 'enable': 'true', 'created': '2025-06-23T16:07:48', 'last-modified': '2025-06-23T16:07:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.080963'}
2025-06-23 16:07:50,985 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-23 16:07:50,985 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35462266 passed
2025-06-23 16:07:50,985 - DEBUG - ====Verifying policy data for ctest-vn-35462266 in API_Server ======
2025-06-23 16:07:50,986 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 16:07:50,993 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2
2025-06-23 16:07:51,007 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd
2025-06-23 16:07:51,092 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/164db450-8669-4d05-ae9e-aa3d1b6951e5
2025-06-23 16:07:51,106 - DEBUG - ==>Verifying data for policy with id: 3c98c20f-2056-4c9d-bd2e-c26b6bc5e997, fqn: ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']
2025-06-23 16:07:51,106 - INFO - VN ctest-vn-35462266 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 16:07:51,106 - DEBUG - Verifying the vn in opserver
2025-06-23 16:07:51,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266 virtual network link through opserver 10.0.0.38
2025-06-23 16:07:51,107 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 16:07:51,450 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 16:07:51,524 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266?flat'}
2025-06-23 16:07:51,524 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-35462266 is found in opserver
2025-06-23 16:07:51,542 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 16:07:51,559 - DEBUG - VRF ids for VN ctest-vn-35462266: {}
2025-06-23 16:07:51,559 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 16:07:51,572 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2
2025-06-23 16:07:51,591 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd
2025-06-23 16:07:51,668 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,694 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3
2025-06-23 16:07:51,703 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3
2025-06-23 16:07:51,713 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8925d134-1966-46c4-acd0-6ddfb911b11c
2025-06-23 16:07:51,722 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 16:07:51,722 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,735 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3
2025-06-23 16:07:51,757 - INFO - Verified VN network id 8 for VN f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,757 - INFO - Verifications in API Server for VN ctest-vn-10833803 passed
2025-06-23 16:07:51,757 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,769 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3
2025-06-23 16:07:51,778 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9e7a0fd0-8636-4be1-abd1-0edc034dfbc3
2025-06-23 16:07:51,786 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/8925d134-1966-46c4-acd0-6ddfb911b11c
2025-06-23 16:07:51,799 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-73414066', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17619169270944778576', 'uuid-lslong': '10333684582849077949'}, 'enable': 'true', 'created': '2025-06-23T16:07:49', 'last-modified': '2025-06-23T16:07:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.642104'}
2025-06-23 16:07:51,807 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-23 16:07:51,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10833803 passed
2025-06-23 16:07:51,807 - DEBUG - ====Verifying policy data for ctest-vn-10833803 in API_Server ======
2025-06-23 16:07:51,807 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-23 16:07:51,813 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b125e871-acd4-49cc-857e-f413f392efc2
2025-06-23 16:07:51,826 - DEBUG - Requesting: http://10.0.0.38:8082/project/60ecf09d-17c8-4ed7-ab28-eee346b43bfd
2025-06-23 16:07:51,903 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/f483dd1a-0024-4950-8f68-9f60bda662bd
2025-06-23 16:07:51,914 - DEBUG - ==>Verifying data for policy with id: 3c98c20f-2056-4c9d-bd2e-c26b6bc5e997, fqn: ['default-domain', 'ctest-TestBasicPolicy-73414066', 'ctest-policy-allow-all-62603309']
2025-06-23 16:07:51,914 - INFO - VN ctest-vn-10833803 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-23 16:07:51,914 - DEBUG - Verifying the vn in opserver
2025-06-23 16:07:51,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803 virtual network link through opserver 10.0.0.38
2025-06-23 16:07:51,915 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-23 16:07:51,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803?flat'}
2025-06-23 16:07:51,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-73414066:ctest-vn-10833803 is found in opserver
2025-06-23 16:07:51,942 - DEBUG - Do not have enough data to verify VN in agent
2025-06-23 16:07:51,950 - DEBUG - VRF ids for VN ctest-vn-10833803: {}
2025-06-23 16:07:52,014 - DEBUG - Services list from nova: [