2025-07-21 02:30:46,013 - INFO - Domain Default found not creating
2025-07-21 02:30:46,343 - INFO - Project ctest-TestBasicPolicy-54023415 not found, creating it
2025-07-21 02:30:46,925 - INFO - Created Project:ctest-TestBasicPolicy-54023415, ID : 6a2a271a-f1b5-43b5-b597-5fb97395f980
2025-07-21 02:30:49,085 - INFO - ================================================================================
2025-07-21 02:30:49,085 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-21 02:30:49,085 - 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-07-21 02:30:49,408 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.201': '0'}} with
2025-07-21 02:30:49,409 - INFO - Initial checks done. Running the testcase now
2025-07-21 02:30:49,409 - INFO -
2025-07-21 02:30:50,207 - DEBUG - Response for create_network : {'network': {'id': '8d1d2940-6009-43fa-8ede-697d2645fdf3', 'name': 'ctest-vn-75357746', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'project_id': '6a2a271af1b543b5b5975fb97395f980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-vn-75357746'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:30:50,425 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cbcf54d-fef7-428c-a1da-ea1c5aa969d2', 'name': '', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'network_id': '8d1d2940-6009-43fa-8ede-697d2645fdf3', 'ip_version': 4, 'cidr': '153.31.47.192/26', 'allocation_pools': [{'start': '153.31.47.194', 'end': '153.31.47.254'}], 'gateway_ip': '153.31.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '153.31.47.194', 'tags': [], 'project_id': '6a2a271af1b543b5b5975fb97395f980'}}
2025-07-21 02:30:50,456 - INFO - Created VN ctest-vn-75357746
2025-07-21 02:30:50,513 - DEBUG - VN ctest-vn-75357746 UUID is 8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:50,956 - DEBUG - Response for create_network : {'network': {'id': '64438c18-4ac5-4edb-95ae-ec49bd0c633f', 'name': 'ctest-vn-50143644', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'project_id': '6a2a271af1b543b5b5975fb97395f980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-vn-50143644'], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:30:51,233 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e4741f7-c43b-4c7c-b98a-b79cbda0979d', 'name': '', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'network_id': '64438c18-4ac5-4edb-95ae-ec49bd0c633f', 'ip_version': 4, 'cidr': '223.251.7.64/26', 'allocation_pools': [{'start': '223.251.7.66', 'end': '223.251.7.126'}], 'gateway_ip': '223.251.7.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.251.7.66', 'tags': [], 'project_id': '6a2a271af1b543b5b5975fb97395f980'}}
2025-07-21 02:30:51,256 - INFO - Created VN ctest-vn-50143644
2025-07-21 02:30:51,325 - DEBUG - VN ctest-vn-50143644 UUID is 64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:51,516 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746, 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-54023415:ctest-vn-50143644, 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-07-21 02:30:51,948 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8d1d2940-6009-43fa-8ede-697d2645fdf3', 'name': 'ctest-vn-75357746', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'project_id': '6a2a271af1b543b5b5975fb97395f980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cbcf54d-fef7-428c-a1da-ea1c5aa969d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-vn-75357746'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-policy-allow-all-02369219']], 'subnet_ipam': [{'subnet_cidr': '153.31.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:30:52,280 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64438c18-4ac5-4edb-95ae-ec49bd0c633f', 'name': 'ctest-vn-50143644', 'tenant_id': '6a2a271af1b543b5b5975fb97395f980', 'project_id': '6a2a271af1b543b5b5975fb97395f980', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e4741f7-c43b-4c7c-b98a-b79cbda0979d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-vn-50143644'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-policy-allow-all-02369219']], 'subnet_ipam': [{'subnet_cidr': '223.251.7.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-21 02:30:52,453 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-07-21 02:30:52,782 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-07-21 02:30:52,834 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7efc2d2b-d635-4bdd-aee4-a434fefb3828
2025-07-21 02:30:52,869 - DEBUG - Requesting: http://10.0.0.73:8082/project/6a2a271a-f1b5-43b5-b597-5fb97395f980
2025-07-21 02:30:53,002 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,030 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,055 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0e8b45ae-f473-418b-a156-cb460e7c1176
2025-07-21 02:30:53,075 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0e8b45ae-f473-418b-a156-cb460e7c1176
2025-07-21 02:30:53,096 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/ed40cdde-db5d-40e1-af88-5ca56348c52e
2025-07-21 02:30:53,118 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:30:53,119 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,153 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0e8b45ae-f473-418b-a156-cb460e7c1176
2025-07-21 02:30:53,203 - INFO - Verified VN network id 7 for VN 8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,203 - INFO - Verifications in API Server for VN ctest-vn-75357746 passed
2025-07-21 02:30:53,204 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,228 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0e8b45ae-f473-418b-a156-cb460e7c1176
2025-07-21 02:30:53,243 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/0e8b45ae-f473-418b-a156-cb460e7c1176
2025-07-21 02:30:53,260 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/ed40cdde-db5d-40e1-af88-5ca56348c52e
2025-07-21 02:30:53,288 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54023415', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10168328890138313722', 'uuid-lslong': '10294781784449482227'}, 'enable': 'true', 'created': '2025-07-21T02:30:50', 'last-modified': '2025-07-21T02:30:51', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.384625'}
2025-07-21 02:30:53,304 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-21 02:30:53,305 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75357746 passed
2025-07-21 02:30:53,305 - DEBUG - ====Verifying policy data for ctest-vn-75357746 in API_Server ======
2025-07-21 02:30:53,305 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-07-21 02:30:53,322 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7efc2d2b-d635-4bdd-aee4-a434fefb3828
2025-07-21 02:30:53,341 - DEBUG - Requesting: http://10.0.0.73:8082/project/6a2a271a-f1b5-43b5-b597-5fb97395f980
2025-07-21 02:30:53,441 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/8d1d2940-6009-43fa-8ede-697d2645fdf3
2025-07-21 02:30:53,455 - DEBUG - ==>Verifying data for policy with id: 0f6c97b9-7dd5-4985-b05e-0a7590c7f87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-policy-allow-all-02369219']
2025-07-21 02:30:53,455 - INFO - VN ctest-vn-75357746 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:30:53,455 - DEBUG - Verifying the vn in opserver
2025-07-21 02:30:53,455 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746 virtual network link through opserver 10.0.0.73
2025-07-21 02:30:53,456 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-07-21 02:30:53,779 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-07-21 02:30:53,879 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746?flat'}
2025-07-21 02:30:53,879 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-75357746 is found in opserver
2025-07-21 02:30:53,914 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:30:53,931 - DEBUG - VRF ids for VN ctest-vn-75357746: {}
2025-07-21 02:30:53,931 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-07-21 02:30:53,949 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7efc2d2b-d635-4bdd-aee4-a434fefb3828
2025-07-21 02:30:53,985 - DEBUG - Requesting: http://10.0.0.73:8082/project/6a2a271a-f1b5-43b5-b597-5fb97395f980
2025-07-21 02:30:54,111 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,147 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,178 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/ac488aa7-6242-44ab-944e-e15783422922
2025-07-21 02:30:54,201 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/ac488aa7-6242-44ab-944e-e15783422922
2025-07-21 02:30:54,224 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/cfbf89cd-b9f4-4f71-956c-efef9866229e
2025-07-21 02:30:54,248 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:30:54,248 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,289 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/ac488aa7-6242-44ab-944e-e15783422922
2025-07-21 02:30:54,333 - INFO - Verified VN network id 8 for VN 64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,333 - INFO - Verifications in API Server for VN ctest-vn-50143644 passed
2025-07-21 02:30:54,333 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,355 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/ac488aa7-6242-44ab-944e-e15783422922
2025-07-21 02:30:54,375 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/ac488aa7-6242-44ab-944e-e15783422922
2025-07-21 02:30:54,399 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/cfbf89cd-b9f4-4f71-956c-efef9866229e
2025-07-21 02:30:54,443 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-50143644', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-54023415', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7224772263193956059', 'uuid-lslong': '10785817959047390015'}, 'enable': 'true', 'created': '2025-07-21T02:30:50', 'last-modified': '2025-07-21T02:30:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:02.192154'}
2025-07-21 02:30:54,462 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-21 02:30:54,462 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50143644 passed
2025-07-21 02:30:54,463 - DEBUG - ====Verifying policy data for ctest-vn-50143644 in API_Server ======
2025-07-21 02:30:54,463 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-07-21 02:30:54,484 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7efc2d2b-d635-4bdd-aee4-a434fefb3828
2025-07-21 02:30:54,532 - DEBUG - Requesting: http://10.0.0.73:8082/project/6a2a271a-f1b5-43b5-b597-5fb97395f980
2025-07-21 02:30:54,620 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/64438c18-4ac5-4edb-95ae-ec49bd0c633f
2025-07-21 02:30:54,647 - DEBUG - ==>Verifying data for policy with id: 0f6c97b9-7dd5-4985-b05e-0a7590c7f87e, fqn: ['default-domain', 'ctest-TestBasicPolicy-54023415', 'ctest-policy-allow-all-02369219']
2025-07-21 02:30:54,648 - INFO - VN ctest-vn-50143644 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-21 02:30:54,648 - DEBUG - Verifying the vn in opserver
2025-07-21 02:30:54,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-50143644 virtual network link through opserver 10.0.0.73
2025-07-21 02:30:54,648 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-07-21 02:30:54,667 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-50143644', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-50143644?flat'}
2025-07-21 02:30:54,667 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-54023415:ctest-vn-50143644 is found in opserver
2025-07-21 02:30:54,688 - DEBUG - Do not have enough data to verify VN in agent
2025-07-21 02:30:54,695 - DEBUG - VRF ids for VN ctest-vn-50143644: {}
2025-07-21 02:30:54,827 - DEBUG - Services list from nova: [