2025-08-25 15:28:25,384 - INFO - Domain Default found not creating
2025-08-25 15:28:25,517 - INFO - Project ctest-TestBasicPolicy-10921131 not found, creating it
2025-08-25 15:28:25,994 - INFO - Created Project:ctest-TestBasicPolicy-10921131, ID : 2da3841d-d834-4eb6-9b9f-fd5afbe7d687
2025-08-25 15:28:27,955 - INFO - ================================================================================
2025-08-25 15:28:27,955 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 15:28:27,955 - 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-25 15:28:28,215 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-08-25 15:28:28,215 - INFO - Initial checks done. Running the testcase now
2025-08-25 15:28:28,215 - INFO -
2025-08-25 15:28:28,753 - DEBUG - Response for create_network : {'network': {'id': '483f58f4-ed46-4dc9-9eb5-b062adbbde9e', 'name': 'ctest-vn-54299250', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-vn-54299250'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 15:28:28,888 - DEBUG - Response for create_subnet : {'subnet': {'id': '012c9b76-63d3-4f9d-bcf7-5e69df4b205b', 'name': '', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'network_id': '483f58f4-ed46-4dc9-9eb5-b062adbbde9e', 'ip_version': 4, 'cidr': '17.171.40.192/26', 'allocation_pools': [{'start': '17.171.40.194', 'end': '17.171.40.254'}], 'gateway_ip': '17.171.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.171.40.194', 'tags': [], 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687'}}
2025-08-25 15:28:28,905 - INFO - Created VN ctest-vn-54299250
2025-08-25 15:28:28,958 - DEBUG - VN ctest-vn-54299250 UUID is 483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:29,307 - DEBUG - Response for create_network : {'network': {'id': '98015412-2abd-4a39-a080-760a7822c750', 'name': 'ctest-vn-33562712', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-vn-33562712'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 15:28:29,538 - DEBUG - Response for create_subnet : {'subnet': {'id': '82936dfc-334e-4db1-aa67-cb549942a0e3', 'name': '', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'network_id': '98015412-2abd-4a39-a080-760a7822c750', 'ip_version': 4, 'cidr': '20.0.81.128/26', 'allocation_pools': [{'start': '20.0.81.130', 'end': '20.0.81.190'}], 'gateway_ip': '20.0.81.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.0.81.130', 'tags': [], 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687'}}
2025-08-25 15:28:29,555 - INFO - Created VN ctest-vn-33562712
2025-08-25 15:28:29,606 - DEBUG - VN ctest-vn-33562712 UUID is 98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:29,754 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250, 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-10921131:ctest-vn-33562712, 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-25 15:28:30,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '483f58f4-ed46-4dc9-9eb5-b062adbbde9e', 'name': 'ctest-vn-54299250', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['012c9b76-63d3-4f9d-bcf7-5e69df4b205b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-vn-54299250'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-policy-allow-all-88054081']], 'subnet_ipam': [{'subnet_cidr': '17.171.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 15:28:30,331 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '98015412-2abd-4a39-a080-760a7822c750', 'name': 'ctest-vn-33562712', 'tenant_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'project_id': '2da3841dd8344eb69b9ffd5afbe7d687', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82936dfc-334e-4db1-aa67-cb549942a0e3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-vn-33562712'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-policy-allow-all-88054081']], 'subnet_ipam': [{'subnet_cidr': '20.0.81.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 15:28:30,482 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 15:28:30,777 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 15:28:30,802 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dce98733-cf31-450d-9078-7137e59fd3f3
2025-08-25 15:28:30,815 - DEBUG - Requesting: http://10.0.0.254:8082/project/2da3841d-d834-4eb6-9b9f-fd5afbe7d687
2025-08-25 15:28:30,888 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:30,899 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:30,908 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5d767bc-e471-4ad8-ae8c-56d69d80d1fb
2025-08-25 15:28:30,914 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5d767bc-e471-4ad8-ae8c-56d69d80d1fb
2025-08-25 15:28:30,920 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c56a2609-3f8e-4633-bc33-799f88bc3fa0
2025-08-25 15:28:30,926 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 15:28:30,927 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:30,936 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5d767bc-e471-4ad8-ae8c-56d69d80d1fb
2025-08-25 15:28:30,951 - INFO - Verified VN network id 11 for VN 483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:30,951 - INFO - Verifications in API Server for VN ctest-vn-54299250 passed
2025-08-25 15:28:30,951 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:30,961 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5d767bc-e471-4ad8-ae8c-56d69d80d1fb
2025-08-25 15:28:30,967 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/f5d767bc-e471-4ad8-ae8c-56d69d80d1fb
2025-08-25 15:28:30,974 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/c56a2609-3f8e-4633-bc33-799f88bc3fa0
2025-08-25 15:28:30,987 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10921131', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5205977503239654857', 'uuid-lslong': '11436240766645296798'}, 'enable': 'true', 'created': '2025-08-25T15:28:28', 'last-modified': '2025-08-25T15:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962068'}
2025-08-25 15:28:30,993 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 15:28:30,993 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-54299250 passed
2025-08-25 15:28:30,993 - DEBUG - ====Verifying policy data for ctest-vn-54299250 in API_Server ======
2025-08-25 15:28:30,993 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 15:28:30,998 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dce98733-cf31-450d-9078-7137e59fd3f3
2025-08-25 15:28:31,009 - DEBUG - Requesting: http://10.0.0.254:8082/project/2da3841d-d834-4eb6-9b9f-fd5afbe7d687
2025-08-25 15:28:31,089 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/483f58f4-ed46-4dc9-9eb5-b062adbbde9e
2025-08-25 15:28:31,098 - DEBUG - ==>Verifying data for policy with id: 904d66b0-0e23-4527-bcb9-f0f0fd66db5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-policy-allow-all-88054081']
2025-08-25 15:28:31,098 - INFO - VN ctest-vn-54299250 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 15:28:31,098 - DEBUG - Verifying the vn in opserver
2025-08-25 15:28:31,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250 virtual network link through opserver 10.0.0.254
2025-08-25 15:28:31,098 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 15:28:31,386 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 15:28:31,435 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250?flat'}
2025-08-25 15:28:31,435 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-54299250 is found in opserver
2025-08-25 15:28:31,446 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 15:28:31,451 - DEBUG - VRF ids for VN ctest-vn-54299250: {}
2025-08-25 15:28:31,451 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 15:28:31,456 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dce98733-cf31-450d-9078-7137e59fd3f3
2025-08-25 15:28:31,467 - DEBUG - Requesting: http://10.0.0.254:8082/project/2da3841d-d834-4eb6-9b9f-fd5afbe7d687
2025-08-25 15:28:31,535 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,551 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,564 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b63278db-2514-45a4-937c-518b5a637191
2025-08-25 15:28:31,572 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b63278db-2514-45a4-937c-518b5a637191
2025-08-25 15:28:31,578 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8242a3fe-1451-4467-8284-5b0e1a56e257
2025-08-25 15:28:31,585 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 15:28:31,585 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,594 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b63278db-2514-45a4-937c-518b5a637191
2025-08-25 15:28:31,606 - INFO - Verified VN network id 12 for VN 98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,607 - INFO - Verifications in API Server for VN ctest-vn-33562712 passed
2025-08-25 15:28:31,607 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,616 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b63278db-2514-45a4-937c-518b5a637191
2025-08-25 15:28:31,622 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/b63278db-2514-45a4-937c-518b5a637191
2025-08-25 15:28:31,628 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8242a3fe-1451-4467-8284-5b0e1a56e257
2025-08-25 15:28:31,652 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-33562712', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10921131', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10953128205744949817', 'uuid-lslong': '11565373630424729424'}, 'enable': 'true', 'created': '2025-08-25T15:28:29', 'last-modified': '2025-08-25T15:28:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384330'}
2025-08-25 15:28:31,658 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 15:28:31,658 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33562712 passed
2025-08-25 15:28:31,659 - DEBUG - ====Verifying policy data for ctest-vn-33562712 in API_Server ======
2025-08-25 15:28:31,659 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-25 15:28:31,664 - DEBUG - Requesting: http://10.0.0.254:8082/domain/dce98733-cf31-450d-9078-7137e59fd3f3
2025-08-25 15:28:31,675 - DEBUG - Requesting: http://10.0.0.254:8082/project/2da3841d-d834-4eb6-9b9f-fd5afbe7d687
2025-08-25 15:28:31,755 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/98015412-2abd-4a39-a080-760a7822c750
2025-08-25 15:28:31,765 - DEBUG - ==>Verifying data for policy with id: 904d66b0-0e23-4527-bcb9-f0f0fd66db5b, fqn: ['default-domain', 'ctest-TestBasicPolicy-10921131', 'ctest-policy-allow-all-88054081']
2025-08-25 15:28:31,765 - INFO - VN ctest-vn-33562712 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 15:28:31,766 - DEBUG - Verifying the vn in opserver
2025-08-25 15:28:31,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-33562712 virtual network link through opserver 10.0.0.254
2025-08-25 15:28:31,766 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-25 15:28:31,775 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-33562712', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-33562712?flat'}
2025-08-25 15:28:31,775 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10921131:ctest-vn-33562712 is found in opserver
2025-08-25 15:28:31,786 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 15:28:31,791 - DEBUG - VRF ids for VN ctest-vn-33562712: {}
2025-08-25 15:28:31,842 - DEBUG - Services list from nova: [