2025-06-26 08:39:51,118 - INFO - Domain Default found not creating
2025-06-26 08:39:51,304 - INFO - Project ctest-TestBasicPolicy-22813364 not found, creating it
2025-06-26 08:39:51,852 - INFO - Created Project:ctest-TestBasicPolicy-22813364, ID : 50e46d8a-3bc8-4d0b-9798-9213a8e20714
2025-06-26 08:39:53,685 - INFO - ================================================================================
2025-06-26 08:39:53,686 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 08:39:53,687 - 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-26 08:39:53,971 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with
2025-06-26 08:39:53,972 - INFO - Initial checks done. Running the testcase now
2025-06-26 08:39:53,972 - INFO -
2025-06-26 08:39:54,673 - DEBUG - Response for create_network : {'network': {'id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'name': 'ctest-vn-96464441', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-96464441'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 08:39:54,912 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ea0b37e0-dcb1-44c8-81b9-7153ddb8ec60', 'name': '', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'network_id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'ip_version': 4, 'cidr': '180.112.237.192/26', 'allocation_pools': [{'start': '180.112.237.194', 'end': '180.112.237.254'}], 'gateway_ip': '180.112.237.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.112.237.194', 'tags': [], 'project_id': '50e46d8a3bc84d0b97989213a8e20714'}}
2025-06-26 08:39:54,935 - INFO - Created VN ctest-vn-96464441
2025-06-26 08:39:54,991 - DEBUG - VN ctest-vn-96464441 UUID is 0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:55,352 - DEBUG - Response for create_network : {'network': {'id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'name': 'ctest-vn-30146624', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-30146624'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 08:39:55,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a9c97081-ddf5-4f73-b846-f3e4b1f7bf0d', 'name': '', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'network_id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'ip_version': 4, 'cidr': '121.114.143.64/26', 'allocation_pools': [{'start': '121.114.143.66', 'end': '121.114.143.126'}], 'gateway_ip': '121.114.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '121.114.143.66', 'tags': [], 'project_id': '50e46d8a3bc84d0b97989213a8e20714'}}
2025-06-26 08:39:55,595 - INFO - Created VN ctest-vn-30146624
2025-06-26 08:39:55,650 - DEBUG - VN ctest-vn-30146624 UUID is 2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:55,782 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441, 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-22813364:ctest-vn-30146624, 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-26 08:39:56,141 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0068ff7d-4387-424f-a244-e65f7b7f2c84', 'name': 'ctest-vn-96464441', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ea0b37e0-dcb1-44c8-81b9-7153ddb8ec60'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-96464441'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']], 'subnet_ipam': [{'subnet_cidr': '180.112.237.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 08:39:56,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ca58cec-8133-4ee1-927d-d34f0315b0d0', 'name': 'ctest-vn-30146624', 'tenant_id': '50e46d8a3bc84d0b97989213a8e20714', 'project_id': '50e46d8a3bc84d0b97989213a8e20714', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a9c97081-ddf5-4f73-b846-f3e4b1f7bf0d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-vn-30146624'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']], 'subnet_ipam': [{'subnet_cidr': '121.114.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 08:39:56,602 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 08:39:56,951 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 08:39:56,985 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe
2025-06-26 08:39:57,006 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714
2025-06-26 08:39:57,120 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,134 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,147 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561
2025-06-26 08:39:57,157 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561
2025-06-26 08:39:57,168 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aaaf3647-45d4-4370-ba1d-09fa59f9efa9
2025-06-26 08:39:57,178 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 08:39:57,178 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,192 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561
2025-06-26 08:39:57,212 - INFO - Verified VN network id 7 for VN 0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,212 - INFO - Verifications in API Server for VN ctest-vn-96464441 passed
2025-06-26 08:39:57,213 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,225 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561
2025-06-26 08:39:57,235 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b0134e20-b56b-4cf6-af29-615d54261561
2025-06-26 08:39:57,244 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/aaaf3647-45d4-4370-ba1d-09fa59f9efa9
2025-06-26 08:39:57,262 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22813364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '29554311046840911', 'uuid-lslong': '11692723830328863876'}, 'enable': 'true', 'created': '2025-06-26T08:39:54', 'last-modified': '2025-06-26T08:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.164768'}
2025-06-26 08:39:57,272 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 08:39:57,272 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-96464441 passed
2025-06-26 08:39:57,272 - DEBUG - ====Verifying policy data for ctest-vn-96464441 in API_Server ======
2025-06-26 08:39:57,272 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 08:39:57,281 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe
2025-06-26 08:39:57,302 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714
2025-06-26 08:39:57,386 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/0068ff7d-4387-424f-a244-e65f7b7f2c84
2025-06-26 08:39:57,400 - DEBUG - ==>Verifying data for policy with id: 476d075d-f2af-42eb-9cac-1743f0bd3c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']
2025-06-26 08:39:57,400 - INFO - VN ctest-vn-96464441 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 08:39:57,401 - DEBUG - Verifying the vn in opserver
2025-06-26 08:39:57,401 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441 virtual network link through opserver 10.0.0.48
2025-06-26 08:39:57,401 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 08:39:57,763 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 08:39:57,840 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441?flat'}
2025-06-26 08:39:57,840 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-96464441 is found in opserver
2025-06-26 08:39:57,856 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 08:39:57,864 - DEBUG - VRF ids for VN ctest-vn-96464441: {}
2025-06-26 08:39:57,864 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 08:39:57,871 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe
2025-06-26 08:39:57,890 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714
2025-06-26 08:39:57,973 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,004 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,016 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc
2025-06-26 08:39:58,027 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc
2025-06-26 08:39:58,036 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a7b96d52-2753-4497-a9b1-faba8d3cbdfe
2025-06-26 08:39:58,048 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 08:39:58,048 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,062 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc
2025-06-26 08:39:58,081 - INFO - Verified VN network id 8 for VN 2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,081 - INFO - Verifications in API Server for VN ctest-vn-30146624 passed
2025-06-26 08:39:58,081 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,093 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc
2025-06-26 08:39:58,103 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/a0faa099-8e1d-49a8-b7be-571fe535a2bc
2025-06-26 08:39:58,113 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/a7b96d52-2753-4497-a9b1-faba8d3cbdfe
2025-06-26 08:39:58,130 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-22813364', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3217132456233881313', 'uuid-lslong': '10555825437933940944'}, 'enable': 'true', 'created': '2025-06-26T08:39:55', 'last-modified': '2025-06-26T08:39:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.745373'}
2025-06-26 08:39:58,137 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 08:39:58,138 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30146624 passed
2025-06-26 08:39:58,138 - DEBUG - ====Verifying policy data for ctest-vn-30146624 in API_Server ======
2025-06-26 08:39:58,138 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-06-26 08:39:58,147 - DEBUG - Requesting: http://10.0.0.48:8082/domain/9736171d-bcfe-48a2-b6ee-2e2f4da123fe
2025-06-26 08:39:58,164 - DEBUG - Requesting: http://10.0.0.48:8082/project/50e46d8a-3bc8-4d0b-9798-9213a8e20714
2025-06-26 08:39:58,247 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/2ca58cec-8133-4ee1-927d-d34f0315b0d0
2025-06-26 08:39:58,258 - DEBUG - ==>Verifying data for policy with id: 476d075d-f2af-42eb-9cac-1743f0bd3c83, fqn: ['default-domain', 'ctest-TestBasicPolicy-22813364', 'ctest-policy-allow-all-30017424']
2025-06-26 08:39:58,258 - INFO - VN ctest-vn-30146624 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 08:39:58,258 - DEBUG - Verifying the vn in opserver
2025-06-26 08:39:58,258 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624 virtual network link through opserver 10.0.0.48
2025-06-26 08:39:58,258 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-06-26 08:39:58,272 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624?flat'}
2025-06-26 08:39:58,272 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-22813364:ctest-vn-30146624 is found in opserver
2025-06-26 08:39:58,286 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 08:39:58,292 - DEBUG - VRF ids for VN ctest-vn-30146624: {}
2025-06-26 08:39:58,362 - DEBUG - Services list from nova: [