2025-05-31 07:28:26,102 - INFO - Domain Default found not creating
2025-05-31 07:28:26,255 - INFO - Project ctest-TestBasicPolicy-72657348 not found, creating it
2025-05-31 07:28:26,737 - INFO - Created Project:ctest-TestBasicPolicy-72657348, ID : d66c7bde-5829-478d-b261-08b81b858e9a
2025-05-31 07:28:28,392 - INFO - ================================================================================
2025-05-31 07:28:28,392 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-31 07:28:28,392 - 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-31 07:28:28,656 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-05-31 07:28:28,657 - INFO - Initial checks done. Running the testcase now
2025-05-31 07:28:28,657 - INFO -
2025-05-31 07:28:29,324 - DEBUG - Response for create_network : {'network': {'id': '84f77537-7119-4fbc-8dd2-7b33f2ac2183', 'name': 'ctest-vn-62040146', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'project_id': 'd66c7bde5829478db26108b81b858e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-vn-62040146'], 'port_security_enabled': True, 'description': ''}}
2025-05-31 07:28:29,532 - DEBUG - Response for create_subnet : {'subnet': {'id': '93317871-469f-44c9-9696-3377a0355f0f', 'name': '', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'network_id': '84f77537-7119-4fbc-8dd2-7b33f2ac2183', 'ip_version': 4, 'cidr': '222.177.228.64/26', 'allocation_pools': [{'start': '222.177.228.66', 'end': '222.177.228.126'}], 'gateway_ip': '222.177.228.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '222.177.228.66', 'tags': [], 'project_id': 'd66c7bde5829478db26108b81b858e9a'}}
2025-05-31 07:28:29,551 - INFO - Created VN ctest-vn-62040146
2025-05-31 07:28:29,604 - DEBUG - VN ctest-vn-62040146 UUID is 84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:29,919 - DEBUG - Response for create_network : {'network': {'id': '99671dd0-05ee-4e3d-a425-3282323bbe6e', 'name': 'ctest-vn-42614171', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'project_id': 'd66c7bde5829478db26108b81b858e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-vn-42614171'], 'port_security_enabled': True, 'description': ''}}
2025-05-31 07:28:30,095 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b740f204-ddc3-461c-ae52-8e52f62b38ed', 'name': '', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'network_id': '99671dd0-05ee-4e3d-a425-3282323bbe6e', 'ip_version': 4, 'cidr': '210.209.227.192/26', 'allocation_pools': [{'start': '210.209.227.194', 'end': '210.209.227.254'}], 'gateway_ip': '210.209.227.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '210.209.227.194', 'tags': [], 'project_id': 'd66c7bde5829478db26108b81b858e9a'}}
2025-05-31 07:28:30,120 - INFO - Created VN ctest-vn-42614171
2025-05-31 07:28:30,172 - DEBUG - VN ctest-vn-42614171 UUID is 99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:30,293 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146, 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-72657348:ctest-vn-42614171, 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-31 07:28:30,609 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '84f77537-7119-4fbc-8dd2-7b33f2ac2183', 'name': 'ctest-vn-62040146', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'project_id': 'd66c7bde5829478db26108b81b858e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['93317871-469f-44c9-9696-3377a0355f0f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-vn-62040146'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-policy-allow-all-52733187']], 'subnet_ipam': [{'subnet_cidr': '222.177.228.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-31 07:28:30,853 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99671dd0-05ee-4e3d-a425-3282323bbe6e', 'name': 'ctest-vn-42614171', 'tenant_id': 'd66c7bde5829478db26108b81b858e9a', 'project_id': 'd66c7bde5829478db26108b81b858e9a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b740f204-ddc3-461c-ae52-8e52f62b38ed'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-vn-42614171'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-policy-allow-all-52733187']], 'subnet_ipam': [{'subnet_cidr': '210.209.227.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-31 07:28:31,028 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-31 07:28:31,371 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-31 07:28:31,401 - DEBUG - Requesting: http://10.0.0.38:8082/domain/76bce2b0-b0a3-4b84-be67-32558554004f
2025-05-31 07:28:31,414 - DEBUG - Requesting: http://10.0.0.38:8082/project/d66c7bde-5829-478d-b261-08b81b858e9a
2025-05-31 07:28:31,490 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,517 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57102a48-74c1-4de1-b524-fe018685f7fb
2025-05-31 07:28:31,526 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57102a48-74c1-4de1-b524-fe018685f7fb
2025-05-31 07:28:31,534 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4221a3f6-29cb-47bc-a07c-db435ca50eef
2025-05-31 07:28:31,543 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-31 07:28:31,543 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,557 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57102a48-74c1-4de1-b524-fe018685f7fb
2025-05-31 07:28:31,574 - INFO - Verified VN network id 8 for VN 84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,574 - INFO - Verifications in API Server for VN ctest-vn-62040146 passed
2025-05-31 07:28:31,574 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,585 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57102a48-74c1-4de1-b524-fe018685f7fb
2025-05-31 07:28:31,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57102a48-74c1-4de1-b524-fe018685f7fb
2025-05-31 07:28:31,600 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4221a3f6-29cb-47bc-a07c-db435ca50eef
2025-05-31 07:28:31,615 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72657348', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9581255613235154876', 'uuid-lslong': '10219365967501992323'}, 'enable': 'true', 'created': '2025-05-31T07:28:29', 'last-modified': '2025-05-31T07:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.029775'}
2025-05-31 07:28:31,623 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-31 07:28:31,623 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-62040146 passed
2025-05-31 07:28:31,624 - DEBUG - ====Verifying policy data for ctest-vn-62040146 in API_Server ======
2025-05-31 07:28:31,624 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-31 07:28:31,631 - DEBUG - Requesting: http://10.0.0.38:8082/domain/76bce2b0-b0a3-4b84-be67-32558554004f
2025-05-31 07:28:31,645 - DEBUG - Requesting: http://10.0.0.38:8082/project/d66c7bde-5829-478d-b261-08b81b858e9a
2025-05-31 07:28:31,731 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/84f77537-7119-4fbc-8dd2-7b33f2ac2183
2025-05-31 07:28:31,742 - DEBUG - ==>Verifying data for policy with id: 0669fcab-eb17-4998-a026-f1b5a24bac32, fqn: ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-policy-allow-all-52733187']
2025-05-31 07:28:31,742 - INFO - VN ctest-vn-62040146 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-31 07:28:31,742 - DEBUG - Verifying the vn in opserver
2025-05-31 07:28:31,742 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146 virtual network link through opserver 10.0.0.38
2025-05-31 07:28:31,742 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-31 07:28:32,077 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-31 07:28:32,150 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146?flat'}
2025-05-31 07:28:32,150 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-62040146 is found in opserver
2025-05-31 07:28:32,162 - DEBUG - Do not have enough data to verify VN in agent
2025-05-31 07:28:32,168 - DEBUG - VRF ids for VN ctest-vn-62040146: {}
2025-05-31 07:28:32,168 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-31 07:28:32,174 - DEBUG - Requesting: http://10.0.0.38:8082/domain/76bce2b0-b0a3-4b84-be67-32558554004f
2025-05-31 07:28:32,188 - DEBUG - Requesting: http://10.0.0.38:8082/project/d66c7bde-5829-478d-b261-08b81b858e9a
2025-05-31 07:28:32,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,282 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,294 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2552b36b-67eb-4d86-a9a6-f972106be334
2025-05-31 07:28:32,302 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2552b36b-67eb-4d86-a9a6-f972106be334
2025-05-31 07:28:32,311 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/23e970f7-f08d-4f35-9527-430cb77511e8
2025-05-31 07:28:32,319 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-31 07:28:32,320 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,332 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2552b36b-67eb-4d86-a9a6-f972106be334
2025-05-31 07:28:32,349 - INFO - Verified VN network id 9 for VN 99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,349 - INFO - Verifications in API Server for VN ctest-vn-42614171 passed
2025-05-31 07:28:32,349 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2552b36b-67eb-4d86-a9a6-f972106be334
2025-05-31 07:28:32,368 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2552b36b-67eb-4d86-a9a6-f972106be334
2025-05-31 07:28:32,377 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/23e970f7-f08d-4f35-9527-430cb77511e8
2025-05-31 07:28:32,390 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-42614171', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-72657348', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11053836589694078525', 'uuid-lslong': '11827915531128389230'}, 'enable': 'true', 'created': '2025-05-31T07:28:29', 'last-modified': '2025-05-31T07:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.563162'}
2025-05-31 07:28:32,397 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-31 07:28:32,397 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42614171 passed
2025-05-31 07:28:32,397 - DEBUG - ====Verifying policy data for ctest-vn-42614171 in API_Server ======
2025-05-31 07:28:32,397 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-05-31 07:28:32,403 - DEBUG - Requesting: http://10.0.0.38:8082/domain/76bce2b0-b0a3-4b84-be67-32558554004f
2025-05-31 07:28:32,414 - DEBUG - Requesting: http://10.0.0.38:8082/project/d66c7bde-5829-478d-b261-08b81b858e9a
2025-05-31 07:28:32,500 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/99671dd0-05ee-4e3d-a425-3282323bbe6e
2025-05-31 07:28:32,511 - DEBUG - ==>Verifying data for policy with id: 0669fcab-eb17-4998-a026-f1b5a24bac32, fqn: ['default-domain', 'ctest-TestBasicPolicy-72657348', 'ctest-policy-allow-all-52733187']
2025-05-31 07:28:32,511 - INFO - VN ctest-vn-42614171 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-31 07:28:32,511 - DEBUG - Verifying the vn in opserver
2025-05-31 07:28:32,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-42614171 virtual network link through opserver 10.0.0.38
2025-05-31 07:28:32,511 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-05-31 07:28:32,523 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-42614171', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-42614171?flat'}
2025-05-31 07:28:32,523 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-72657348:ctest-vn-42614171 is found in opserver
2025-05-31 07:28:32,535 - DEBUG - Do not have enough data to verify VN in agent
2025-05-31 07:28:32,540 - DEBUG - VRF ids for VN ctest-vn-42614171: {}
2025-05-31 07:28:32,599 - DEBUG - Services list from nova: [