2025-06-18 08:03:01,166 - INFO - Domain Default found not creating
2025-06-18 08:03:01,317 - INFO - Project ctest-TestBasicPolicy-90317795 not found, creating it
2025-06-18 08:03:01,781 - INFO - Created Project:ctest-TestBasicPolicy-90317795, ID : d484c93e-99ae-4875-b754-0efe6b75b2d7
2025-06-18 08:03:03,208 - INFO - ================================================================================
2025-06-18 08:03:03,208 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-18 08:03:03,208 - 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-18 08:03:03,462 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-06-18 08:03:03,462 - INFO - Initial checks done. Running the testcase now
2025-06-18 08:03:03,462 - INFO -
2025-06-18 08:03:04,011 - DEBUG - Response for create_network : {'network': {'id': '00b9a895-0057-4dde-94ea-36e539515a57', 'name': 'ctest-vn-88655365', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-vn-88655365'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 08:03:04,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '7c16b2c4-4df1-4bf1-ad69-661b85de10f4', 'name': '', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'network_id': '00b9a895-0057-4dde-94ea-36e539515a57', 'ip_version': 4, 'cidr': '135.49.133.128/26', 'allocation_pools': [{'start': '135.49.133.130', 'end': '135.49.133.190'}], 'gateway_ip': '135.49.133.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '135.49.133.130', 'tags': [], 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7'}}
2025-06-18 08:03:04,180 - INFO - Created VN ctest-vn-88655365
2025-06-18 08:03:04,232 - DEBUG - VN ctest-vn-88655365 UUID is 00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:04,534 - DEBUG - Response for create_network : {'network': {'id': '0dffbc3a-1f87-4a53-8717-e07df624ba22', 'name': 'ctest-vn-82006506', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-vn-82006506'], 'port_security_enabled': True, 'description': ''}}
2025-06-18 08:03:04,760 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edb7319d-ad3a-4970-bc33-d2bd107cf679', 'name': '', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'network_id': '0dffbc3a-1f87-4a53-8717-e07df624ba22', 'ip_version': 4, 'cidr': '168.189.129.64/26', 'allocation_pools': [{'start': '168.189.129.66', 'end': '168.189.129.126'}], 'gateway_ip': '168.189.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '168.189.129.66', 'tags': [], 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7'}}
2025-06-18 08:03:04,778 - INFO - Created VN ctest-vn-82006506
2025-06-18 08:03:04,832 - DEBUG - VN ctest-vn-82006506 UUID is 0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:04,988 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365, 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-90317795:ctest-vn-82006506, 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-18 08:03:05,276 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '00b9a895-0057-4dde-94ea-36e539515a57', 'name': 'ctest-vn-88655365', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7c16b2c4-4df1-4bf1-ad69-661b85de10f4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-vn-88655365'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-policy-allow-all-91527568']], 'subnet_ipam': [{'subnet_cidr': '135.49.133.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 08:03:05,521 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0dffbc3a-1f87-4a53-8717-e07df624ba22', 'name': 'ctest-vn-82006506', 'tenant_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'project_id': 'd484c93e99ae4875b7540efe6b75b2d7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edb7319d-ad3a-4970-bc33-d2bd107cf679'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-vn-82006506'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-policy-allow-all-91527568']], 'subnet_ipam': [{'subnet_cidr': '168.189.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-18 08:03:05,688 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-18 08:03:05,985 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-18 08:03:06,012 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7d958fe9-c2a6-4bdc-88ff-4aa1d1660941
2025-06-18 08:03:06,026 - DEBUG - Requesting: http://10.0.0.19:8082/project/d484c93e-99ae-4875-b754-0efe6b75b2d7
2025-06-18 08:03:06,100 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,111 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,121 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8a9e2652-f53e-4fb0-a761-3d04040e73d8
2025-06-18 08:03:06,129 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8a9e2652-f53e-4fb0-a761-3d04040e73d8
2025-06-18 08:03:06,136 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/23d81373-3716-4758-a407-21f28f44cdfe
2025-06-18 08:03:06,143 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 08:03:06,143 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,153 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8a9e2652-f53e-4fb0-a761-3d04040e73d8
2025-06-18 08:03:06,168 - INFO - Verified VN network id 8 for VN 00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,168 - INFO - Verifications in API Server for VN ctest-vn-88655365 passed
2025-06-18 08:03:06,168 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,178 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8a9e2652-f53e-4fb0-a761-3d04040e73d8
2025-06-18 08:03:06,185 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8a9e2652-f53e-4fb0-a761-3d04040e73d8
2025-06-18 08:03:06,192 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/23d81373-3716-4758-a407-21f28f44cdfe
2025-06-18 08:03:06,204 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90317795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '52258228600786398', 'uuid-lslong': '10730449420300671575'}, 'enable': 'true', 'created': '2025-06-18T08:03:03', 'last-modified': '2025-06-18T08:03:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.949568'}
2025-06-18 08:03:06,211 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-18 08:03:06,211 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88655365 passed
2025-06-18 08:03:06,211 - DEBUG - ====Verifying policy data for ctest-vn-88655365 in API_Server ======
2025-06-18 08:03:06,211 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-18 08:03:06,217 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7d958fe9-c2a6-4bdc-88ff-4aa1d1660941
2025-06-18 08:03:06,229 - DEBUG - Requesting: http://10.0.0.19:8082/project/d484c93e-99ae-4875-b754-0efe6b75b2d7
2025-06-18 08:03:06,305 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/00b9a895-0057-4dde-94ea-36e539515a57
2025-06-18 08:03:06,315 - DEBUG - ==>Verifying data for policy with id: d6f08b18-47f9-43a9-b0f8-052df8613a45, fqn: ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-policy-allow-all-91527568']
2025-06-18 08:03:06,315 - INFO - VN ctest-vn-88655365 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 08:03:06,315 - DEBUG - Verifying the vn in opserver
2025-06-18 08:03:06,315 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365 virtual network link through opserver 10.0.0.19
2025-06-18 08:03:06,315 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-18 08:03:06,607 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-18 08:03:06,671 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365?flat'}
2025-06-18 08:03:06,671 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-88655365 is found in opserver
2025-06-18 08:03:06,682 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 08:03:06,688 - DEBUG - VRF ids for VN ctest-vn-88655365: {}
2025-06-18 08:03:06,688 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-18 08:03:06,694 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7d958fe9-c2a6-4bdc-88ff-4aa1d1660941
2025-06-18 08:03:06,706 - DEBUG - Requesting: http://10.0.0.19:8082/project/d484c93e-99ae-4875-b754-0efe6b75b2d7
2025-06-18 08:03:06,785 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:06,798 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:06,808 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1f20e5da-4293-44ef-9615-4f8938a4a5ce
2025-06-18 08:03:06,816 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1f20e5da-4293-44ef-9615-4f8938a4a5ce
2025-06-18 08:03:06,824 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3ef8b18c-f2a7-4b93-99d0-fddbc574700b
2025-06-18 08:03:06,834 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 08:03:06,834 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:06,844 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1f20e5da-4293-44ef-9615-4f8938a4a5ce
2025-06-18 08:03:06,859 - INFO - Verified VN network id 9 for VN 0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:06,859 - INFO - Verifications in API Server for VN ctest-vn-82006506 passed
2025-06-18 08:03:06,859 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:06,870 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1f20e5da-4293-44ef-9615-4f8938a4a5ce
2025-06-18 08:03:06,878 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/1f20e5da-4293-44ef-9615-4f8938a4a5ce
2025-06-18 08:03:06,886 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/3ef8b18c-f2a7-4b93-99d0-fddbc574700b
2025-06-18 08:03:06,900 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-82006506', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90317795', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1008731799377365587', 'uuid-lslong': '9734495951189752354'}, 'enable': 'true', 'created': '2025-06-18T08:03:04', 'last-modified': '2025-06-18T08:03:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.403173'}
2025-06-18 08:03:06,907 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-18 08:03:06,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82006506 passed
2025-06-18 08:03:06,907 - DEBUG - ====Verifying policy data for ctest-vn-82006506 in API_Server ======
2025-06-18 08:03:06,907 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-06-18 08:03:06,914 - DEBUG - Requesting: http://10.0.0.19:8082/domain/7d958fe9-c2a6-4bdc-88ff-4aa1d1660941
2025-06-18 08:03:06,925 - DEBUG - Requesting: http://10.0.0.19:8082/project/d484c93e-99ae-4875-b754-0efe6b75b2d7
2025-06-18 08:03:06,997 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/0dffbc3a-1f87-4a53-8717-e07df624ba22
2025-06-18 08:03:07,008 - DEBUG - ==>Verifying data for policy with id: d6f08b18-47f9-43a9-b0f8-052df8613a45, fqn: ['default-domain', 'ctest-TestBasicPolicy-90317795', 'ctest-policy-allow-all-91527568']
2025-06-18 08:03:07,008 - INFO - VN ctest-vn-82006506 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-18 08:03:07,008 - DEBUG - Verifying the vn in opserver
2025-06-18 08:03:07,008 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-82006506 virtual network link through opserver 10.0.0.19
2025-06-18 08:03:07,008 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-06-18 08:03:07,019 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-82006506', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-82006506?flat'}
2025-06-18 08:03:07,019 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90317795:ctest-vn-82006506 is found in opserver
2025-06-18 08:03:07,030 - DEBUG - Do not have enough data to verify VN in agent
2025-06-18 08:03:07,035 - DEBUG - VRF ids for VN ctest-vn-82006506: {}
2025-06-18 08:03:07,096 - DEBUG - Services list from nova: [