2025-05-23 02:13:38,333 - INFO - Domain Default found not creating
2025-05-23 02:13:38,485 - INFO - Project ctest-TestBasicPolicy-66986794 not found, creating it
2025-05-23 02:13:38,931 - INFO - Created Project:ctest-TestBasicPolicy-66986794, ID : 3067b86a-96a3-4ab2-a98b-597dda386e65
2025-05-23 02:13:40,370 - INFO - ================================================================================
2025-05-23 02:13:40,370 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-23 02:13:40,371 - 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-05-23 02:13:40,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with
2025-05-23 02:13:40,624 - INFO - Initial checks done. Running the testcase now
2025-05-23 02:13:40,625 - INFO -
2025-05-23 02:13:41,165 - DEBUG - Response for create_network : {'network': {'id': 'bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2', 'name': 'ctest-vn-16609872', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'project_id': '3067b86a96a34ab2a98b597dda386e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-vn-16609872'], 'port_security_enabled': True, 'description': ''}}
2025-05-23 02:13:41,321 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a31b377-f86d-4f3f-aabd-fd771a75f783', 'name': '', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'network_id': 'bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2', 'ip_version': 4, 'cidr': '200.148.170.64/26', 'allocation_pools': [{'start': '200.148.170.66', 'end': '200.148.170.126'}], 'gateway_ip': '200.148.170.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.148.170.66', 'tags': [], 'project_id': '3067b86a96a34ab2a98b597dda386e65'}}
2025-05-23 02:13:41,340 - INFO - Created VN ctest-vn-16609872
2025-05-23 02:13:41,394 - DEBUG - VN ctest-vn-16609872 UUID is bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:41,675 - DEBUG - Response for create_network : {'network': {'id': '535bc4bc-d5eb-4d9b-bae9-06548f3f29c2', 'name': 'ctest-vn-07120021', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'project_id': '3067b86a96a34ab2a98b597dda386e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-vn-07120021'], 'port_security_enabled': True, 'description': ''}}
2025-05-23 02:13:41,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '25b53c90-ce8c-4e71-8968-8b61e2078d3b', 'name': '', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'network_id': '535bc4bc-d5eb-4d9b-bae9-06548f3f29c2', 'ip_version': 4, 'cidr': '187.66.172.192/26', 'allocation_pools': [{'start': '187.66.172.194', 'end': '187.66.172.254'}], 'gateway_ip': '187.66.172.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.66.172.194', 'tags': [], 'project_id': '3067b86a96a34ab2a98b597dda386e65'}}
2025-05-23 02:13:41,865 - INFO - Created VN ctest-vn-07120021
2025-05-23 02:13:41,918 - DEBUG - VN ctest-vn-07120021 UUID is 535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:42,030 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872, 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-66986794:ctest-vn-07120021, 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-05-23 02:13:42,324 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2', 'name': 'ctest-vn-16609872', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'project_id': '3067b86a96a34ab2a98b597dda386e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a31b377-f86d-4f3f-aabd-fd771a75f783'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-vn-16609872'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-policy-allow-all-10991007']], 'subnet_ipam': [{'subnet_cidr': '200.148.170.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-23 02:13:42,564 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '535bc4bc-d5eb-4d9b-bae9-06548f3f29c2', 'name': 'ctest-vn-07120021', 'tenant_id': '3067b86a96a34ab2a98b597dda386e65', 'project_id': '3067b86a96a34ab2a98b597dda386e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['25b53c90-ce8c-4e71-8968-8b61e2078d3b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-vn-07120021'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-policy-allow-all-10991007']], 'subnet_ipam': [{'subnet_cidr': '187.66.172.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-23 02:13:42,731 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-23 02:13:43,032 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-23 02:13:43,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/427cf32e-1753-416d-af96-9faeb96a85a8
2025-05-23 02:13:43,083 - DEBUG - Requesting: http://10.0.0.50:8082/project/3067b86a-96a3-4ab2-a98b-597dda386e65
2025-05-23 02:13:43,168 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,180 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,191 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/885e1670-0cc1-4b9e-9361-f0cbbb79754c
2025-05-23 02:13:43,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/885e1670-0cc1-4b9e-9361-f0cbbb79754c
2025-05-23 02:13:43,209 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72f145bd-379e-40ae-9773-dc0c843a3756
2025-05-23 02:13:43,218 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-23 02:13:43,218 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/885e1670-0cc1-4b9e-9361-f0cbbb79754c
2025-05-23 02:13:43,250 - INFO - Verified VN network id 8 for VN bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,250 - INFO - Verifications in API Server for VN ctest-vn-16609872 passed
2025-05-23 02:13:43,251 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,264 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/885e1670-0cc1-4b9e-9361-f0cbbb79754c
2025-05-23 02:13:43,272 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/885e1670-0cc1-4b9e-9361-f0cbbb79754c
2025-05-23 02:13:43,280 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/72f145bd-379e-40ae-9773-dc0c843a3756
2025-05-23 02:13:43,294 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66986794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13547605114780404844', 'uuid-lslong': '10015325859320356802'}, 'enable': 'true', 'created': '2025-05-23T02:13:41', 'last-modified': '2025-05-23T02:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990004'}
2025-05-23 02:13:43,300 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-23 02:13:43,301 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16609872 passed
2025-05-23 02:13:43,301 - DEBUG - ====Verifying policy data for ctest-vn-16609872 in API_Server ======
2025-05-23 02:13:43,301 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-23 02:13:43,307 - DEBUG - Requesting: http://10.0.0.50:8082/domain/427cf32e-1753-416d-af96-9faeb96a85a8
2025-05-23 02:13:43,319 - DEBUG - Requesting: http://10.0.0.50:8082/project/3067b86a-96a3-4ab2-a98b-597dda386e65
2025-05-23 02:13:43,396 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/bc02c312-d7c0-4c6c-8afd-95ce3a92dfc2
2025-05-23 02:13:43,409 - DEBUG - ==>Verifying data for policy with id: b486651b-64f1-4214-953d-81c32c136f5d, fqn: ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-policy-allow-all-10991007']
2025-05-23 02:13:43,409 - INFO - VN ctest-vn-16609872 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-23 02:13:43,409 - DEBUG - Verifying the vn in opserver
2025-05-23 02:13:43,409 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872 virtual network link through opserver 10.0.0.50
2025-05-23 02:13:43,409 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-23 02:13:43,702 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-23 02:13:43,760 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872?flat'}
2025-05-23 02:13:43,760 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-16609872 is found in opserver
2025-05-23 02:13:43,771 - DEBUG - Do not have enough data to verify VN in agent
2025-05-23 02:13:43,777 - DEBUG - VRF ids for VN ctest-vn-16609872: {}
2025-05-23 02:13:43,777 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-23 02:13:43,783 - DEBUG - Requesting: http://10.0.0.50:8082/domain/427cf32e-1753-416d-af96-9faeb96a85a8
2025-05-23 02:13:43,795 - DEBUG - Requesting: http://10.0.0.50:8082/project/3067b86a-96a3-4ab2-a98b-597dda386e65
2025-05-23 02:13:43,870 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:43,882 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:43,892 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba3082c7-383a-4071-8928-d3b59a49345b
2025-05-23 02:13:43,900 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba3082c7-383a-4071-8928-d3b59a49345b
2025-05-23 02:13:43,907 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9aa899fa-6300-495d-9425-7d8741dd4d75
2025-05-23 02:13:43,914 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-23 02:13:43,914 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:43,923 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba3082c7-383a-4071-8928-d3b59a49345b
2025-05-23 02:13:43,937 - INFO - Verified VN network id 9 for VN 535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:43,937 - INFO - Verifications in API Server for VN ctest-vn-07120021 passed
2025-05-23 02:13:43,937 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:43,947 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba3082c7-383a-4071-8928-d3b59a49345b
2025-05-23 02:13:43,955 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/ba3082c7-383a-4071-8928-d3b59a49345b
2025-05-23 02:13:43,962 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/9aa899fa-6300-495d-9425-7d8741dd4d75
2025-05-23 02:13:43,975 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-07120021', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-66986794', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6006610843350551963', 'uuid-lslong': '13468303120878479810'}, 'enable': 'true', 'created': '2025-05-23T02:13:41', 'last-modified': '2025-05-23T02:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.437152'}
2025-05-23 02:13:43,982 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-23 02:13:43,982 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07120021 passed
2025-05-23 02:13:43,982 - DEBUG - ====Verifying policy data for ctest-vn-07120021 in API_Server ======
2025-05-23 02:13:43,982 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-05-23 02:13:43,989 - DEBUG - Requesting: http://10.0.0.50:8082/domain/427cf32e-1753-416d-af96-9faeb96a85a8
2025-05-23 02:13:44,005 - DEBUG - Requesting: http://10.0.0.50:8082/project/3067b86a-96a3-4ab2-a98b-597dda386e65
2025-05-23 02:13:44,099 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/535bc4bc-d5eb-4d9b-bae9-06548f3f29c2
2025-05-23 02:13:44,109 - DEBUG - ==>Verifying data for policy with id: b486651b-64f1-4214-953d-81c32c136f5d, fqn: ['default-domain', 'ctest-TestBasicPolicy-66986794', 'ctest-policy-allow-all-10991007']
2025-05-23 02:13:44,110 - INFO - VN ctest-vn-07120021 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-23 02:13:44,110 - DEBUG - Verifying the vn in opserver
2025-05-23 02:13:44,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-07120021 virtual network link through opserver 10.0.0.50
2025-05-23 02:13:44,110 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-05-23 02:13:44,121 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-07120021', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-07120021?flat'}
2025-05-23 02:13:44,121 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-66986794:ctest-vn-07120021 is found in opserver
2025-05-23 02:13:44,131 - DEBUG - Do not have enough data to verify VN in agent
2025-05-23 02:13:44,137 - DEBUG - VRF ids for VN ctest-vn-07120021: {}
2025-05-23 02:13:44,205 - DEBUG - Services list from nova: [