2025-08-19 15:27:13,795 - INFO - Domain Default found not creating
2025-08-19 15:27:13,907 - INFO - Project ctest-TestBasicPolicy-54108162 not found, creating it
2025-08-19 15:27:14,351 - INFO - Created Project:ctest-TestBasicPolicy-54108162, ID : d791e16c-7d2d-4e95-b7d8-c7f85ffc5b8e
2025-08-19 15:27:15,720 - INFO - ================================================================================
2025-08-19 15:27:15,721 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-19 15:27:15,721 - 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-08-19 15:27:15,968 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.254': '0'}} with
2025-08-19 15:27:15,968 - INFO - Initial checks done. Running the testcase now
2025-08-19 15:27:15,968 - INFO -
2025-08-19 15:27:16,480 - DEBUG - Response for create_network : {'network': {'id': 'bd6dba36-0815-46a9-873d-3bff72a7562f', 'name': 'ctest-vn-83007059', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-vn-83007059'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 15:27:16,696 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a50eac13-f78e-44e1-864a-8edbe1043d7e', 'name': '', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'network_id': 'bd6dba36-0815-46a9-873d-3bff72a7562f', 'ip_version': 4, 'cidr': '221.172.190.64/26', 'allocation_pools': [{'start': '221.172.190.66', 'end': '221.172.190.126'}], 'gateway_ip': '221.172.190.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.172.190.66', 'tags': [], 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e'}}
2025-08-19 15:27:16,711 - INFO - Created VN ctest-vn-83007059
2025-08-19 15:27:16,767 - DEBUG - VN ctest-vn-83007059 UUID is bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:17,064 - DEBUG - Response for create_network : {'network': {'id': '63b3445b-b7a2-402f-b9cf-b6d4769e4e6a', 'name': 'ctest-vn-80616101', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-vn-80616101'], 'port_security_enabled': True, 'description': ''}}
2025-08-19 15:27:17,238 - DEBUG - Response for create_subnet : {'subnet': {'id': '59cc7f57-dcd0-4f83-995f-62ca9fd99727', 'name': '', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'network_id': '63b3445b-b7a2-402f-b9cf-b6d4769e4e6a', 'ip_version': 4, 'cidr': '66.14.122.0/26', 'allocation_pools': [{'start': '66.14.122.2', 'end': '66.14.122.62'}], 'gateway_ip': '66.14.122.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.14.122.2', 'tags': [], 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e'}}
2025-08-19 15:27:17,254 - INFO - Created VN ctest-vn-80616101
2025-08-19 15:27:17,311 - DEBUG - VN ctest-vn-80616101 UUID is 63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:17,455 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059, 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-54108162:ctest-vn-80616101, 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-08-19 15:27:17,753 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'bd6dba36-0815-46a9-873d-3bff72a7562f', 'name': 'ctest-vn-83007059', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a50eac13-f78e-44e1-864a-8edbe1043d7e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-vn-83007059'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-policy-allow-all-51640799']], 'subnet_ipam': [{'subnet_cidr': '221.172.190.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 15:27:17,960 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '63b3445b-b7a2-402f-b9cf-b6d4769e4e6a', 'name': 'ctest-vn-80616101', 'tenant_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'project_id': 'd791e16c7d2d4e95b7d8c7f85ffc5b8e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['59cc7f57-dcd0-4f83-995f-62ca9fd99727'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-vn-80616101'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-policy-allow-all-51640799']], 'subnet_ipam': [{'subnet_cidr': '66.14.122.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-19 15:27:18,123 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-19 15:27:18,411 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-19 15:27:18,436 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8
2025-08-19 15:27:18,448 - DEBUG - Requesting: http://10.0.0.49:8082/project/d791e16c-7d2d-4e95-b7d8-c7f85ffc5b8e
2025-08-19 15:27:18,520 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,530 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,538 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/88536a40-4d90-4652-ac2f-3c1ad5ecaae8
2025-08-19 15:27:18,543 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/88536a40-4d90-4652-ac2f-3c1ad5ecaae8
2025-08-19 15:27:18,549 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1570e18e-32a5-4368-94ca-66ba8f2e3636
2025-08-19 15:27:18,554 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 15:27:18,554 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,562 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/88536a40-4d90-4652-ac2f-3c1ad5ecaae8
2025-08-19 15:27:18,574 - INFO - Verified VN network id 11 for VN bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,574 - INFO - Verifications in API Server for VN ctest-vn-83007059 passed
2025-08-19 15:27:18,574 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,582 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/88536a40-4d90-4652-ac2f-3c1ad5ecaae8
2025-08-19 15:27:18,588 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/88536a40-4d90-4652-ac2f-3c1ad5ecaae8
2025-08-19 15:27:18,594 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/1570e18e-32a5-4368-94ca-66ba8f2e3636
2025-08-19 15:27:18,606 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54108162', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13649770786856453801', 'uuid-lslong': '9745011137025889839'}, 'enable': 'true', 'created': '2025-08-19T15:27:16', 'last-modified': '2025-08-19T15:27:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.886915'}
2025-08-19 15:27:18,612 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-19 15:27:18,612 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83007059 passed
2025-08-19 15:27:18,612 - DEBUG - ====Verifying policy data for ctest-vn-83007059 in API_Server ======
2025-08-19 15:27:18,612 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-19 15:27:18,616 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8
2025-08-19 15:27:18,626 - DEBUG - Requesting: http://10.0.0.49:8082/project/d791e16c-7d2d-4e95-b7d8-c7f85ffc5b8e
2025-08-19 15:27:18,697 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/bd6dba36-0815-46a9-873d-3bff72a7562f
2025-08-19 15:27:18,706 - DEBUG - ==>Verifying data for policy with id: deb4e748-858d-49f2-911e-9f41da438992, fqn: ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-policy-allow-all-51640799']
2025-08-19 15:27:18,706 - INFO - VN ctest-vn-83007059 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 15:27:18,706 - DEBUG - Verifying the vn in opserver
2025-08-19 15:27:18,706 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059 virtual network link through opserver 10.0.0.49
2025-08-19 15:27:18,707 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-19 15:27:18,997 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-19 15:27:19,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059?flat'}
2025-08-19 15:27:19,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-83007059 is found in opserver
2025-08-19 15:27:19,056 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 15:27:19,061 - DEBUG - VRF ids for VN ctest-vn-83007059: {}
2025-08-19 15:27:19,061 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-19 15:27:19,066 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8
2025-08-19 15:27:19,076 - DEBUG - Requesting: http://10.0.0.49:8082/project/d791e16c-7d2d-4e95-b7d8-c7f85ffc5b8e
2025-08-19 15:27:19,149 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,160 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,168 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/258909b2-9238-43d3-b7d8-9152ed11ce36
2025-08-19 15:27:19,175 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/258909b2-9238-43d3-b7d8-9152ed11ce36
2025-08-19 15:27:19,181 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/3b50aaee-4327-49d8-b8d9-c96cf1c0abe6
2025-08-19 15:27:19,187 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 15:27:19,187 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,195 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/258909b2-9238-43d3-b7d8-9152ed11ce36
2025-08-19 15:27:19,207 - INFO - Verified VN network id 12 for VN 63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,207 - INFO - Verifications in API Server for VN ctest-vn-80616101 passed
2025-08-19 15:27:19,207 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,215 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/258909b2-9238-43d3-b7d8-9152ed11ce36
2025-08-19 15:27:19,221 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/258909b2-9238-43d3-b7d8-9152ed11ce36
2025-08-19 15:27:19,227 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/3b50aaee-4327-49d8-b8d9-c96cf1c0abe6
2025-08-19 15:27:19,238 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-80616101', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54108162', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7184160991299649583', 'uuid-lslong': '13389121240835182186'}, 'enable': 'true', 'created': '2025-08-19T15:27:17', 'last-modified': '2025-08-19T15:27:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.295573'}
2025-08-19 15:27:19,244 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-19 15:27:19,246 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80616101 passed
2025-08-19 15:27:19,246 - DEBUG - ====Verifying policy data for ctest-vn-80616101 in API_Server ======
2025-08-19 15:27:19,246 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-08-19 15:27:19,251 - DEBUG - Requesting: http://10.0.0.49:8082/domain/40c8ee2e-6a09-4a45-b7f4-39b8251a7cd8
2025-08-19 15:27:19,261 - DEBUG - Requesting: http://10.0.0.49:8082/project/d791e16c-7d2d-4e95-b7d8-c7f85ffc5b8e
2025-08-19 15:27:19,328 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/63b3445b-b7a2-402f-b9cf-b6d4769e4e6a
2025-08-19 15:27:19,336 - DEBUG - ==>Verifying data for policy with id: deb4e748-858d-49f2-911e-9f41da438992, fqn: ['default-domain', 'ctest-TestBasicPolicy-54108162', 'ctest-policy-allow-all-51640799']
2025-08-19 15:27:19,337 - INFO - VN ctest-vn-80616101 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-19 15:27:19,337 - DEBUG - Verifying the vn in opserver
2025-08-19 15:27:19,337 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-80616101 virtual network link through opserver 10.0.0.49
2025-08-19 15:27:19,337 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-08-19 15:27:19,345 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-80616101', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-80616101?flat'}
2025-08-19 15:27:19,345 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54108162:ctest-vn-80616101 is found in opserver
2025-08-19 15:27:19,355 - DEBUG - Do not have enough data to verify VN in agent
2025-08-19 15:27:19,359 - DEBUG - VRF ids for VN ctest-vn-80616101: {}
2025-08-19 15:27:19,405 - DEBUG - Services list from nova: [