2025-04-17 02:33:17,595 - INFO - Domain Default found not creating
2025-04-17 02:33:17,789 - INFO - Project ctest-TestBasicPolicy-96527784 not found, creating it
2025-04-17 02:33:18,309 - INFO - Created Project:ctest-TestBasicPolicy-96527784, ID : 3f2029b8-6be4-4bd8-9cf4-c598ae891ecc
2025-04-17 02:33:19,952 - INFO - ================================================================================
2025-04-17 02:33:19,952 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-17 02:33:19,952 - 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-04-17 02:33:20,213 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.14': '0'}} with
2025-04-17 02:33:20,213 - INFO - Initial checks done. Running the testcase now
2025-04-17 02:33:20,213 - INFO -
2025-04-17 02:33:21,075 - DEBUG - Response for create_network : {'network': {'id': '8e65244b-31d0-4d03-9b29-c82c590008d3', 'name': 'ctest-vn-50192854', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'project_id': '3f2029b86be44bd89cf4c598ae891ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-vn-50192854'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:33:21,263 - DEBUG - Response for create_subnet : {'subnet': {'id': '5a1dc2a8-1043-4e96-a5ff-b950c63faa76', 'name': '', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'network_id': '8e65244b-31d0-4d03-9b29-c82c590008d3', 'ip_version': 4, 'cidr': '180.7.14.128/26', 'allocation_pools': [{'start': '180.7.14.130', 'end': '180.7.14.190'}], 'gateway_ip': '180.7.14.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '180.7.14.130', 'tags': [], 'project_id': '3f2029b86be44bd89cf4c598ae891ecc'}}
2025-04-17 02:33:21,286 - INFO - Created VN ctest-vn-50192854
2025-04-17 02:33:21,341 - DEBUG - VN ctest-vn-50192854 UUID is 8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:21,713 - DEBUG - Response for create_network : {'network': {'id': 'f193d3e4-b867-40a6-b1d9-93de9d79bcd3', 'name': 'ctest-vn-44870308', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'project_id': '3f2029b86be44bd89cf4c598ae891ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-vn-44870308'], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:33:21,901 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f97f0bb4-641f-4b9b-9e84-bf1a0a570759', 'name': '', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'network_id': 'f193d3e4-b867-40a6-b1d9-93de9d79bcd3', 'ip_version': 4, 'cidr': '53.92.97.64/26', 'allocation_pools': [{'start': '53.92.97.66', 'end': '53.92.97.126'}], 'gateway_ip': '53.92.97.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.92.97.66', 'tags': [], 'project_id': '3f2029b86be44bd89cf4c598ae891ecc'}}
2025-04-17 02:33:21,925 - INFO - Created VN ctest-vn-44870308
2025-04-17 02:33:21,980 - DEBUG - VN ctest-vn-44870308 UUID is f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:22,112 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854, 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-96527784:ctest-vn-44870308, 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-04-17 02:33:22,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e65244b-31d0-4d03-9b29-c82c590008d3', 'name': 'ctest-vn-50192854', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'project_id': '3f2029b86be44bd89cf4c598ae891ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5a1dc2a8-1043-4e96-a5ff-b950c63faa76'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-vn-50192854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-policy-allow-all-49394750']], 'subnet_ipam': [{'subnet_cidr': '180.7.14.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:33:22,697 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f193d3e4-b867-40a6-b1d9-93de9d79bcd3', 'name': 'ctest-vn-44870308', 'tenant_id': '3f2029b86be44bd89cf4c598ae891ecc', 'project_id': '3f2029b86be44bd89cf4c598ae891ecc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f97f0bb4-641f-4b9b-9e84-bf1a0a570759'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-vn-44870308'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-policy-allow-all-49394750']], 'subnet_ipam': [{'subnet_cidr': '53.92.97.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-17 02:33:22,857 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-17 02:33:23,167 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-17 02:33:23,201 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a9199e49-ddf7-4a44-9dbe-b10e2792616c
2025-04-17 02:33:23,218 - DEBUG - Requesting: http://10.0.0.23:8082/project/3f2029b8-6be4-4bd8-9cf4-c598ae891ecc
2025-04-17 02:33:23,298 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,311 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,325 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/75f3027f-83f1-499e-b33b-fbebf48c5057
2025-04-17 02:33:23,334 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/75f3027f-83f1-499e-b33b-fbebf48c5057
2025-04-17 02:33:23,343 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/89b3c636-db4f-48af-99f0-f3dbaae251c0
2025-04-17 02:33:23,351 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 02:33:23,351 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,364 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/75f3027f-83f1-499e-b33b-fbebf48c5057
2025-04-17 02:33:23,389 - INFO - Verified VN network id 8 for VN 8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,389 - INFO - Verifications in API Server for VN ctest-vn-50192854 passed
2025-04-17 02:33:23,389 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,405 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/75f3027f-83f1-499e-b33b-fbebf48c5057
2025-04-17 02:33:23,416 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/75f3027f-83f1-499e-b33b-fbebf48c5057
2025-04-17 02:33:23,426 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/89b3c636-db4f-48af-99f0-f3dbaae251c0
2025-04-17 02:33:23,443 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96527784', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10260647231410425091', 'uuid-lslong': '11180687642721257683'}, 'enable': 'true', 'created': '2025-04-17T02:33:21', 'last-modified': '2025-04-17T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.025336'}
2025-04-17 02:33:23,451 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-17 02:33:23,451 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50192854 passed
2025-04-17 02:33:23,451 - DEBUG - ====Verifying policy data for ctest-vn-50192854 in API_Server ======
2025-04-17 02:33:23,451 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-17 02:33:23,459 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a9199e49-ddf7-4a44-9dbe-b10e2792616c
2025-04-17 02:33:23,472 - DEBUG - Requesting: http://10.0.0.23:8082/project/3f2029b8-6be4-4bd8-9cf4-c598ae891ecc
2025-04-17 02:33:23,557 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/8e65244b-31d0-4d03-9b29-c82c590008d3
2025-04-17 02:33:23,572 - DEBUG - ==>Verifying data for policy with id: 1a458220-afc3-49ac-b54c-21a2cf231645, fqn: ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-policy-allow-all-49394750']
2025-04-17 02:33:23,572 - INFO - VN ctest-vn-50192854 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 02:33:23,572 - DEBUG - Verifying the vn in opserver
2025-04-17 02:33:23,572 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854 virtual network link through opserver 10.0.0.23
2025-04-17 02:33:23,573 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-17 02:33:23,877 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-17 02:33:23,951 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854?flat'}
2025-04-17 02:33:23,951 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-50192854 is found in opserver
2025-04-17 02:33:23,964 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 02:33:23,970 - DEBUG - VRF ids for VN ctest-vn-50192854: {}
2025-04-17 02:33:23,970 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-17 02:33:23,977 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a9199e49-ddf7-4a44-9dbe-b10e2792616c
2025-04-17 02:33:23,992 - DEBUG - Requesting: http://10.0.0.23:8082/project/3f2029b8-6be4-4bd8-9cf4-c598ae891ecc
2025-04-17 02:33:24,076 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,091 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,103 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a0766119-32e3-4dac-b312-68652dead694
2025-04-17 02:33:24,112 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a0766119-32e3-4dac-b312-68652dead694
2025-04-17 02:33:24,121 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6521fec6-4721-43a4-88b3-015d3c361669
2025-04-17 02:33:24,130 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 02:33:24,130 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,142 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a0766119-32e3-4dac-b312-68652dead694
2025-04-17 02:33:24,162 - INFO - Verified VN network id 9 for VN f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,162 - INFO - Verifications in API Server for VN ctest-vn-44870308 passed
2025-04-17 02:33:24,162 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,174 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a0766119-32e3-4dac-b312-68652dead694
2025-04-17 02:33:24,183 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/a0766119-32e3-4dac-b312-68652dead694
2025-04-17 02:33:24,193 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/6521fec6-4721-43a4-88b3-015d3c361669
2025-04-17 02:33:24,210 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-44870308', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-96527784', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17407489964016877734', 'uuid-lslong': '12815436798993480915'}, 'enable': 'true', 'created': '2025-04-17T02:33:21', 'last-modified': '2025-04-17T02:33:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.537406'}
2025-04-17 02:33:24,218 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-17 02:33:24,218 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44870308 passed
2025-04-17 02:33:24,218 - DEBUG - ====Verifying policy data for ctest-vn-44870308 in API_Server ======
2025-04-17 02:33:24,218 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-17 02:33:24,225 - DEBUG - Requesting: http://10.0.0.23:8082/domain/a9199e49-ddf7-4a44-9dbe-b10e2792616c
2025-04-17 02:33:24,239 - DEBUG - Requesting: http://10.0.0.23:8082/project/3f2029b8-6be4-4bd8-9cf4-c598ae891ecc
2025-04-17 02:33:24,320 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f193d3e4-b867-40a6-b1d9-93de9d79bcd3
2025-04-17 02:33:24,333 - DEBUG - ==>Verifying data for policy with id: 1a458220-afc3-49ac-b54c-21a2cf231645, fqn: ['default-domain', 'ctest-TestBasicPolicy-96527784', 'ctest-policy-allow-all-49394750']
2025-04-17 02:33:24,333 - INFO - VN ctest-vn-44870308 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-17 02:33:24,333 - DEBUG - Verifying the vn in opserver
2025-04-17 02:33:24,333 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-44870308 virtual network link through opserver 10.0.0.23
2025-04-17 02:33:24,333 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-17 02:33:24,352 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-44870308', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-44870308?flat'}
2025-04-17 02:33:24,352 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-96527784:ctest-vn-44870308 is found in opserver
2025-04-17 02:33:24,367 - DEBUG - Do not have enough data to verify VN in agent
2025-04-17 02:33:24,374 - DEBUG - VRF ids for VN ctest-vn-44870308: {}
2025-04-17 02:33:24,443 - DEBUG - Services list from nova: [